/* ===============================
   代表者メッセージ：共通デザイン
=============================== */

/* main の幅制限を解除（message.html 専用） */
.page-message {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
}

/* セクション全体（共通） */
.page-message .section {
  margin-bottom: 40px;
}

/* タイトル（共通） */
.page-message h1 {
  text-align: center;
  font-size: 1.8rem;
  color: #1565c0;
  font-weight: 600;
  border-bottom: 2px solid #bfa76f;
  display: inline-block;
  padding-bottom: 6px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 25px;
}

/* 写真＋本文（スマホは縦並び） */
.page-message .message-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

/* 写真枠（共通） */
.page-message .message-photo {
    width: 50% !important;
    padding: 10px;
    margin: 0 auto 20px;

  /* ★ グラデーション枠（青 → 淡金） */
  border: 2px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #c8d9f0, #bfa76f) border-box;

  /* ★ 高級感のある影 */
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);

  /* ★ 写真を枠の中央にセット */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 写真（共通） */
.page-message .message-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* 名前（共通） */
.page-message .ceo-name {
  margin-top: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

/* 本文（共通） */
.page-message .message-text {
  max-width: 700px;
  line-height: 1.8;
  color: #444;
}

.page-message .message-text p {
  margin-bottom: 18px;
}

/* ===============================
   PC（769px以上）
=============================== */
@media (min-width: 769px) {

  /* ★ ページ中央に大きな水色カードを作る */
  .page-message .section {
    background: #e0efff !important;
    border-radius: 18px;
    padding: 70px 60px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);

    max-width: 1200px;
    width: 90%;
    margin: 0 auto 80px;
  }

  /* タイトル（PC） */
  .page-message h1 {
    font-size: 2.2rem;
    margin-bottom: 50px;
  }

  /* ★ 横並びを強制的に復活させる */
  .page-message .message-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 70px;
  }

  /* 写真枠 */
  .page-message .message-photo {
    width: 200px;
    flex-shrink: 0;
  }

  /* 写真 */
  .page-message .message-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  /* 本文（PC） */
  .page-message .message-text {
    max-width: 700px;
  }
}
