/* ==========================================================================
   TOPページ専用スタイルシート
   Horse Design 二級建築士事務所
   ========================================================================== */


/* --------------------------------------------------------------------------
   CSS カスタムプロパティ
   -------------------------------------------------------------------------- */
:root {
  --hd-main:          #1B435D;
  --hd-main-dark:     #143246;
  --hd-main-light:    #2A5979;
  --hd-accent:        #78BBE6;
  --hd-warm:          #F99F48;
  --hd-warm-dark:     #E88B35;
  --hd-light:         #D5EEFF;
  --hd-bg:            #F8F3EC;
  --hd-text:          #2E3842;
  --hd-white:         #FFFFFF;
  --hd-border:        rgba(27, 67, 93, 0.18);

  --hd-container-max: 1100px;
  --hd-container-px:  clamp(1.25rem, 5vw, 3rem);
  --hd-section-py:    clamp(4.5rem, 9vw, 5.5rem);

  --hd-ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --hd-transition:    0.4s var(--hd-ease);

  /* Cormorant Garamond: ロゴ・セクションENラベル・数字 */
  --hd-font-display:  'Cormorant Garamond', 'Garamond', Georgia, serif;
  /* Noto Serif JP: 日本語見出し */
  --hd-font-serif:    'Noto Serif JP', '游明朝', serif;
  /* Noto Sans JP: 本文 */
  --hd-font-sans:     'Noto Sans JP', sans-serif;
  /* Montserrat: FV英字アクセント */
  --hd-font-en:       'Montserrat', Arial, sans-serif;
}


/* --------------------------------------------------------------------------
   ベース
   -------------------------------------------------------------------------- */
.hd-top-page {
  background-color: var(--hd-bg);
  color: var(--hd-text);
  font-family: var(--hd-font-sans);
}

.hd-container {
  max-width: var(--hd-container-max);
  margin-inline: auto;
  padding-inline: var(--hd-container-px);
}


/* --------------------------------------------------------------------------
   ボタン共通
   -------------------------------------------------------------------------- */
.hd-btn {
  display: inline-block;
  font-family: var(--hd-font-sans);
  text-decoration: none;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background var(--hd-transition),
              color var(--hd-transition),
              border-color var(--hd-transition);
  border-radius: 2px;
  font-size: clamp(0.78rem, 1.4vw, 0.88rem);
}

.hd-btn--primary {
  background: var(--hd-main);
  color: var(--hd-white);
  padding: 0.9em 2.2em;
  border: 1px solid var(--hd-main);
  font-weight: 500;
}
.hd-btn--primary:hover {
  background: var(--hd-main-dark);
  border-color: var(--hd-main-dark);
  color: var(--hd-white);
}

.hd-btn--outline-white {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.85em 1.8em;
  background: transparent;
}
.hd-btn--outline-white:hover {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--hd-white);
}

.hd-btn--outline {
  border: 1.5px solid var(--hd-main);
  color: var(--hd-main);
  padding: 0.8em 2.2em;
  background: transparent;
}
.hd-btn--outline:hover {
  background: var(--hd-main);
  color: var(--hd-white);
}

.hd-btn--text {
  color: var(--hd-main);
  padding: 0;
  border: none;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hd-btn--text:hover { color: var(--hd-accent); }

.hd-section-footer {
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}


/* --------------------------------------------------------------------------
   セクションヘッダー（左揃え水平スタイル）
   -------------------------------------------------------------------------- */
.hd-section-head {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.hd-section-head__en {
  font-family: var(--hd-font-display);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 300;
  color: var(--hd-main);
  letter-spacing: 0.06em;
  line-height: 1;
  flex-shrink: 0;
}

.hd-section-head--light .hd-section-head__en {
  color: #D9E4EB;
}

.hd-section-head__ja {
  font-family: var(--hd-font-serif);
  font-size: clamp(0.72rem, 1.3vw, 0.82rem);
  font-weight: 300;
  color: rgba(46, 56, 66, 0.82);
  letter-spacing: 0.12em;
  padding-bottom: 7px;
  white-space: nowrap;
}

.hd-section-head--light .hd-section-head__ja {
  color: rgba(255, 255, 255, 0.88);
}

.hd-section-head__line {
  flex: 1;
  height: 1px;
  background: var(--hd-border);
  margin-bottom: 9px;
  min-width: 1rem;
}

.hd-section-head--light .hd-section-head__line {
  background: rgba(255, 255, 255, 0.16);
}


/* ==========================================================================
   Section 1: FV（ファーストビュー）
   ========================================================================== */
.hd-fv {
  position: relative;
  height: calc(100svh - 64px);
  min-height: 520px;
  overflow: hidden;
  background: var(--hd-main-dark);

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hd-fv__slider { width: 100%; height: 100%; }

.hd-fv__slide-img { width: 100%; height: 100%; }

.hd-fv__slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--sp-pos, center);
  display: block;
}

@media (min-width: 768px) {
  .hd-fv__slide-img img {
    object-position: var(--pc-pos, center);
  }
}

/* グラデーションオーバーレイ: 左から濃く→右は薄く */
.hd-fv__slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(65, 90, 112, 0.86) 0%,
    rgba(65, 90, 112, 0.48) 50%,
    rgba(65, 90, 112, 0.2) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* テキストオーバーレイ */
.hd-fv__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-inline: var(--hd-container-px);
  max-width: var(--hd-container-max);
  margin-inline: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

/* FVコンテンツ */
.hd-fv__content {
  max-width: 560px;
  display: flex;
  flex-direction: column;
}

/* 縦一本線モチーフ */
.hd-fv__line-motif {
  width: 2px;
  height: clamp(40px, 7vh, 56px);
  background: var(--hd-warm);
  margin-bottom: 2rem;
  flex-shrink: 0;
  display: none;
}

@media (min-width: 768px) {
  .hd-fv__line-motif { display: block; }
}

.hd-fv__catch {
  font-family: var(--hd-font-serif);
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  font-weight: 300;
  color: var(--hd-white);
  line-height: 1.55;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}

.hd-fv__sub-en {
  font-family: var(--hd-font-display);
  font-style: italic;
  font-size: clamp(0.75rem, 1.6vw, 0.92rem);
  color: var(--hd-light);
  letter-spacing: 0.12em;
  margin: 0 0 1.5rem;
}

.hd-fv__desc {
  font-size: clamp(0.75rem, 1.4vw, 0.85rem);
  color: rgba(255, 255, 255, 0.90);
  line-height: 2;
  letter-spacing: 0.08em;
  margin: 0 0 2.25rem;
}

/* ボタン群 */
.hd-fv__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hd-fv__btns .hd-btn--primary {
  background: var(--hd-warm);
  border-color: var(--hd-warm);
  color: var(--hd-main);
}

.hd-fv__btns .hd-btn--primary:hover {
  background: var(--hd-warm-dark);
  border-color: var(--hd-warm-dark);
  color: var(--hd-main);
}

/* ウォーターマーク */
.hd-fv__watermark {
  position: absolute;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(1.5rem, 5vw, 3rem);
  font-family: var(--hd-font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.035);
  letter-spacing: -0.02em;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* Swiper ページネーション */
.hd-fv .swiper-pagination { z-index: 3; bottom: 1.5rem; }
.hd-fv .swiper-pagination-bullet {
  background: var(--hd-white);
  opacity: 0.4;
  width: 6px; height: 6px;
  transition: opacity var(--hd-transition), width var(--hd-transition);
}
.hd-fv .swiper-pagination-bullet-active {
  background: var(--hd-warm);
  opacity: 1;
  width: 20px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   FV 初回ロード エントランスアニメーション（CSS-only）
   -------------------------------------------------------------------------- */

@keyframes hd-fv-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hd-fv-line-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@keyframes hd-fv-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hd-fv__line-motif {
  transform-origin: top;
  transform: scaleY(0);
  animation: hd-fv-line-grow 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hd-fv__catch,
.hd-fv__sub-en,
.hd-fv__desc,
.hd-fv__btns {
  opacity: 0;
  animation: hd-fv-enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hd-fv__catch   { animation-delay: 0.5s; }
.hd-fv__sub-en  { animation-delay: 0.75s; animation-duration: 0.6s; }
.hd-fv__desc    { animation-delay: 0.95s; animation-duration: 0.6s; }
.hd-fv__btns    { animation-delay: 1.15s; animation-duration: 0.6s; }

.hd-fv__watermark {
  animation: hd-fv-fade 1s cubic-bezier(0.16, 1, 0.3, 1) 1.4s both;
}

@media (prefers-reduced-motion: reduce) {
  .hd-fv__catch,
  .hd-fv__sub-en,
  .hd-fv__desc,
  .hd-fv__btns,
  .hd-fv__watermark,
  .hd-fv__line-motif {
    opacity: 1;
    transform: none;
    animation: none;
  }
}


/* ==========================================================================
   Section 2: Stats バー
   ========================================================================== */
.hd-stats {
  background: var(--hd-main);
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* 上部グラデーションライン */
.hd-stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hd-warm) 0%, var(--hd-accent) 60%, transparent 100%);
}

.hd-stat {
  text-align: center;
  padding: clamp(1rem, 2.5vw, 1.5rem) 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.hd-stat:last-child { border-right: none; }
.hd-stat:nth-child(2) { border-right: none; }
.hd-stat:nth-child(1),
.hd-stat:nth-child(2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hd-stat__num {
  font-family: var(--hd-font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--hd-warm);
  line-height: 1;
}

.hd-stat__unit {
  font-size: clamp(0.65rem, 1.2vw, 0.78rem);
  color: rgba(255, 255, 255, 0.88);
  margin-left: 2px;
}

.hd-stat__label {
  font-size: clamp(0.6rem, 1vw, 0.7rem);
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.08em;
  margin-top: 5px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .hd-stats { grid-template-columns: repeat(4, 1fr); }
  .hd-stat:nth-child(2) { border-right: 1px solid rgba(255, 255, 255, 0.12); }
  .hd-stat:nth-child(1),
  .hd-stat:nth-child(2) {
    border-bottom: none;
  }
}


/* ==========================================================================
   Section 3: 制作実績（WORKS）
   ========================================================================== */
.hd-works {
  padding: var(--hd-section-py) 0;
  background: var(--hd-bg);
}

/* 非対称グリッド（モックアップ準拠）
   1番目=大サイズ枠、2番目以降=小サイズ枠。
   表示順は管理画面の「表示順」フィールドで制御される。 */
.hd-works__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 8px;
}

.hd-works__card:first-child {
  grid-column: auto;
  grid-row: auto;
}

@media (min-width: 768px) {
  .hd-works__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .hd-works__card:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }
}

@media (min-width: 1200px) {
  .hd-works__grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: 240px 180px;
  }
  .hd-works__card:first-child {
    grid-column: auto;
    grid-row: 1 / 3;
  }
}

/* カード */
.hd-works__card {
  position: relative;
  overflow: hidden;
  background: var(--hd-main-light);
}

.hd-works__card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
}
.hd-works__card-link--dummy { cursor: default; pointer-events: none; }

/* サムネイル画像 */
.hd-works__thumb {
  width: 100%;
  height: 100%;
  position: relative;
}

.hd-works__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75);
  transition: transform 0.65s var(--hd-ease), filter 0.4s;
}

.hd-works__card-link:hover .hd-works__thumb img {
  transform: scale(1.04);
  filter: brightness(0.55);
}

.hd-works__thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--hd-main-light), var(--hd-main));
  min-height: 200px;
}

/* テキストオーバーレイ（画像の上） */
.hd-works__card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(76, 101, 125, 0.9) 0%, transparent 100%);
  padding: 1.5rem 1rem 0.85rem;
}

.hd-works__tag {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--hd-light);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.hd-works__title {
  font-family: var(--hd-font-serif);
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  font-weight: 300;
  color: var(--hd-white);
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1.5;
}


/* ==========================================================================
   Section 4: ご依頼の流れ（FLOW）
   ========================================================================== */
.hd-flow {
  background: var(--hd-main);
  padding: var(--hd-section-py) 0;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hd-flow .hd-container { /* コンテンツ幅に戻す */
  max-width: var(--hd-container-max);
  margin-inline: auto;
  padding-inline: var(--hd-container-px);
}

/* 4カラム水平ステップ（SP は左に番号縦並び + 縦線、右に説明テキスト） */
.hd-flow__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  position: relative;
  margin-top: 1rem;
}

/* 番号間を結ぶ水平線（PC のみ） */
.hd-flow__steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  display: none;
}

@media (min-width: 768px) {
  .hd-flow__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .hd-flow__steps::before { display: block; }
}

.hd-flow__step {
  position: relative;
  /* SP: 左に丸番号、右にタイトル + 説明（grid-area で右列にまとめる） */
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-areas:
    "num title"
    "num desc";
  column-gap: 1.25rem;
  row-gap: 0.5rem;
  align-items: start;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1.5rem;
  transition:
    background var(--hd-transition),
    border-color var(--hd-transition),
    transform var(--hd-transition);
}

.hd-flow__step-num   { grid-area: num; align-self: start; }
.hd-flow__step-title { grid-area: title; align-self: center; }
.hd-flow__step-desc  { grid-area: desc; }

.hd-flow__step:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(200, 154, 88, 0.25);
  transform: translateY(-2px);
}

/* PC（4カラム）時はカード装飾を解除し、中央寄せに戻す */
@media (min-width: 768px) {
  .hd-flow__step {
    display: block;
    grid-template-columns: none;
    grid-template-areas: none;
    text-align: center;
    padding: 0 1rem;
    background: none;
    border: none;
    border-radius: 0;
  }
  .hd-flow__step:hover {
    background: none;
    border: none;
    transform: none;
  }
  .hd-flow__step-title { align-self: auto; }
}

/* 丸番号 */
.hd-flow__step-num {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(200, 154, 88, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: var(--hd-font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--hd-warm);
  background: rgba(200, 154, 88, 0.1);
  position: relative;
  z-index: 2;
}

/* SP: 番号と番号を結ぶグラデ縦線（最後のステップを除く） */
/* カード化したので、縦線はカードの外＝step の下端から次のカード上端まで伸ばす */
.hd-flow__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 100%;
  left: calc(1.25rem + 28px); /* カード左 padding + 番号半径 */
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(200, 154, 88, 0.55) 0%,
    rgba(200, 154, 88, 0.25) 50%,
    rgba(200, 154, 88, 0) 100%
  );
  height: 2.25rem; /* gap 分 */
  z-index: 1;
}

/* PC: 中央寄せ用の下マージン復元 + 縦線非表示 */
@media (min-width: 768px) {
  .hd-flow__step-num {
    margin: 0 auto 1.25rem;
  }
  .hd-flow__step:not(:last-child)::after {
    display: none;
  }
}

.hd-flow__step-title {
  font-family: var(--hd-font-serif);
  /* SP で読みやすいよう底上げ */
  font-size: clamp(1rem, 4.4vw, 1.05rem);
  font-weight: 400;
  color: var(--hd-white);
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
  .hd-flow__step-title {
    font-size: clamp(0.88rem, 1.6vw, 1rem);
    margin-bottom: 0.65rem;
  }
}

.hd-flow__step-desc {
  /* SP で読みやすいよう底上げ */
  font-size: clamp(0.84rem, 3.6vw, 0.92rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.85;
  letter-spacing: 0.04em;
  margin: 0;
}

/* SP では PC 用の手動改行 (<br>) を抑制し、自然な折り返しに */
.hd-flow__step-desc br {
  display: none;
}

@media (min-width: 768px) {
  .hd-flow__step-desc {
    font-size: clamp(0.7rem, 1.2vw, 0.78rem);
    line-height: 1.8;
  }
  .hd-flow__step-desc br {
    display: inline;
  }
}


/* ==========================================================================
   Section 5: 料金の目安（PRICE）
   ========================================================================== */
.hd-price {
  padding: var(--hd-section-py) 0;
  background: var(--hd-bg);
  position: relative;
  overflow: hidden;
}

/* 背景ウォーターマーク */
.hd-price::before {
  content: 'PRICE';
  position: absolute;
  right: clamp(1rem, 5vw, 3rem);
  top: clamp(2rem, 5vw, 3rem);
  font-family: var(--hd-font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 300;
  color: rgba(90, 114, 136, 0.08);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}

/* 料金カード */
.hd-price__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hd-price__cards { grid-template-columns: repeat(2, 1fr); }
}

.hd-price__card {
  background: var(--hd-white);
  border: 1px solid var(--hd-border);
  padding: clamp(1.5rem, 3vw, 2rem) 1.5rem;
}

.hd-price__card-label {
  font-family: var(--hd-font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--hd-accent);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.hd-price__card-value {
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.hd-price__card-value strong {
  font-family: var(--hd-font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 300;
  color: var(--hd-main);
  letter-spacing: -0.01em;
}

.hd-price__unit {
  font-size: 0.82rem;
  color: rgba(46, 56, 66, 0.82);
  margin-left: 4px;
}

.hd-price__tilde { margin-inline: 2px; }

.hd-price__card-note {
  font-size: 0.75rem;
  color: rgba(46, 56, 66, 0.82);
  line-height: 1.7;
  margin: 0.5rem 0 0;
}

/* シミュレーターリンク */
.hd-price__sim-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--hd-main);
  border-bottom: 1px solid var(--hd-main);
  padding-bottom: 2px;
  text-decoration: none;
  transition: color var(--hd-transition), border-color var(--hd-transition);
}
.hd-price__sim-link:hover {
  color: var(--hd-accent);
  border-color: var(--hd-accent);
}


/* ==========================================================================
   Section 6: 代表メッセージ
   ========================================================================== */
.hd-message {
  padding: var(--hd-section-py) 0;
  background: var(--hd-white);
}

.hd-message__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hd-message__inner {
    grid-template-columns: 2px minmax(0, 320px) 1fr;
    gap: 0 clamp(2rem, 4vw, 3.5rem);
  }
}

.hd-message__line-motif {
  width: 1px;
  align-self: stretch;
  min-height: 200px;
  background: linear-gradient(to bottom, transparent, var(--hd-warm) 20%, var(--hd-warm) 80%, transparent);
  display: none;
}

@media (min-width: 768px) {
  .hd-message__line-motif { display: block; }
}

.hd-message__photo {
  overflow: hidden;
  max-width: 240px;
  margin-inline: auto;
}
.hd-message__photo img {
  width: 100%; height: 100%;
  aspect-ratio: 4/5;
  display: block;
  object-fit: cover;
}

@media (min-width: 768px) {
  .hd-message__photo {
    max-width: 320px;
    margin-inline: 0;
  }
  .hd-message__photo img {
    height: auto;
    aspect-ratio: auto;
  }
}

.hd-message__label {
  font-family: var(--hd-font-display);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--hd-main);
  margin: 0 0 0.75rem;
  display: block;
}

.hd-message__title {
  font-family: var(--hd-font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--hd-main);
  line-height: 1.5;
  margin: 0 0 1.5rem;
  letter-spacing: 0.05em;
}

.hd-message__text {
  font-size: clamp(0.82rem, 1.4vw, 0.9rem);
  line-height: 2;
  color: rgba(40, 50, 61, 0.92);
  margin-bottom: 1.5rem;
}
.hd-message__text p { margin: 0 0 1em; }
.hd-message__text p:last-child { margin-bottom: 0; }

.hd-message__name {
  font-size: 0.78rem;
  color: rgba(46, 56, 66, 0.82);
  line-height: 1.85;
  margin: 0 0 1.5rem;
}
.hd-message__name strong {
  display: block;
  font-size: 0.95rem;
  color: var(--hd-main);
  margin-top: 0.25rem;
}


/* ==========================================================================
   スクロール追従CTAボタン
   ========================================================================== */
.hd-sticky-cta {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--hd-ease), transform 0.4s var(--hd-ease);
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(100%);
}

.hd-sticky-cta[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.hd-sticky-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  background: var(--hd-main);
  color: var(--hd-white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background var(--hd-transition);
}

.hd-sticky-cta__btn:hover { background: var(--hd-main-dark); }

@media (min-width: 768px) {
  .hd-sticky-cta {
    left: auto;
    right: clamp(1.25rem, 3vw, 2rem);
    bottom: clamp(1.25rem, 3vw, 2rem);
    transform: translateY(0.75rem);
  }
  .hd-sticky-cta[aria-hidden="false"] { transform: translateY(0); }
  .hd-sticky-cta__btn {
    flex-direction: column;
    gap: 0.25rem;
    width: 72px;
    height: 72px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    font-family: var(--hd-font-sans);
  box-shadow: 0 4px 20px rgba(200, 154, 88, 0.42);
    transition: background var(--hd-transition), transform var(--hd-transition);
  }
  .hd-sticky-cta__btn:hover {
    background: var(--hd-main-dark);
    transform: scale(1.08);
  }
}
