/* =========================================================
   Front Page - HIN-86 layout v0.4
   - ヒーローを透明感ある軽量化 (overlay 薄化・min-height 抑制)
   - 各セクションの画像端ガター (画面端ぴったり張付きをやめて余白)
   - B-2 「汐見台接骨院について」を 2 枚写真レイアウト
   - カード/info-list の shadow を全体的に淡化 (参考サイト準拠)
   ========================================================= */

/* ---------- 共通レイアウト調整 ---------- */
.section {
  /* 背景色は付与しない（透過） */
  padding: var(--section-padding);
  position: relative;
}
/* v0.7: section 背景は透過に統一。`bg` クラスは互換のため残すが no-op。
   個別コンポーネント (.card / .menu-card-photo / .steps li / .trial-card 等) の
   背景はそのまま残し、section レイヤーの白塗りだけを撤去する。 */
.section.bg {
  /* 互換のためクラスは残すが背景は付与しない */
  background: transparent;
}
.container { max-width: var(--container); margin: 0 auto; }
.section-head { margin-bottom: clamp(48px, 7vw, 88px); display: grid; gap: 14px; }
.section-head .lead { margin-top: 8px; }

/* グリッド汎用 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 36px);
}

/* カード共通 (v0.4: shadow を全体的に淡化) */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid rgba(31, 77, 67, .06);
  box-shadow: 0 8px 28px rgba(31, 77, 67, .035);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(31, 77, 67, .08); }

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 15px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--color-main); color: #fff; box-shadow: none; }
.btn-primary:hover { transform: none; }
.btn-outline { border-color: var(--color-main); color: var(--color-main); background: transparent; }
.btn-outline:hover { background: var(--color-main); color: #fff; }
/* v0.6: ヒーロー上のアウトラインボタンは暗背景に対するコントラスト確保のため白枠白文字に反転。
   ホバーで白背景・テーマカラー文字に切り替え。 */
.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero .btn-outline:hover {
  background: #fff;
  color: var(--color-main-dark);
  border-color: #fff;
}
.btn-line { background: var(--color-line); color: #fff; }
.btn-line:hover { transform: none; }
.hero .btn-line { box-shadow: 0 14px 32px rgba(6,199,85,.28); }
.hero .btn-line:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(6,199,85,.36); }
.btn-wrap { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- B-1 Hero v0.4（透明感を強化・軽量化） ---------- */
.hero-v2 {
  position: relative;
  overflow: hidden;
  background: #1f2a25;
  /* v0.4: 圧迫感を抑えるため min-height を控えめに */
  min-height: clamp(560px, 80vh, 760px);
  display: flex;
  align-items: stretch;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }

.hero-stage-overlay {
  position: absolute;
  inset: 0;
  /* v0.4: 透明感を強めるため濃いマスクを大幅に薄く */
  background:
    linear-gradient(100deg,
      rgba(31, 77, 67, 0.48) 0%,
      rgba(31, 77, 67, 0.32) 38%,
      rgba(31, 77, 67, 0.10) 65%,
      rgba(31, 77, 67, 0.02) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  /* v0.4: 縦パディングを控えめに、左側に少し余裕を */
  padding: clamp(88px, 11vw, 132px) 32px clamp(88px, 11vw, 132px) clamp(64px, 10vw, 156px);
  gap: 48px;
}
.hero-copy {
  color: #fff;
  max-width: 600px;
}
/* hero-copy 内の各要素を上から順番に時間差で fade-in-up */
.hero-copy > * {
  opacity: 0;
  animation: fade-in-up 1.1s cubic-bezier(.2,.7,.3,1) forwards;
}
.hero-copy > .eyebrow    { animation-delay: .15s; }
.hero-copy > h1          { animation-delay: .45s; }
.hero-copy > .hero-text  { animation-delay: .9s; }
.hero-copy > .hero-price { animation-delay: 1.3s; }
.hero-copy > .btn-wrap   { animation-delay: 1.65s; }

.hero-copy .eyebrow {
  display: flex;
  margin-bottom: 16px;
  color: var(--color-accent);
}
.hero-copy .eyebrow::before,
.hero-copy .eyebrow::after { background: var(--color-accent); }
.hero-copy h1 {
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
  font-size: clamp(42px, 6vw, 78px);
  letter-spacing: .04em;
  margin: 0;
  line-height: 1.35;
}
.hero-copy .hero-text {
  margin-top: 28px;
  /* HIN-170: 本文サイズ +20% (18 → 22) */
  font-size: 22px;
  color: rgba(255,255,255,.88);
  line-height: 2.0;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.hero-copy .hero-price {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-copy .price-card {
  /* v0.4: price card も透明感のある淡い背景に */
  background: rgba(255,255,255,.82);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  min-width: 168px;
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.4);
}
.hero-copy .price-card span {
  display: block;
  color: var(--color-muted);
  font-size: 13px;
}
.hero-copy .price-card strong {
  display: block;
  color: var(--color-main);
  font-size: 22px;
  margin-top: 4px;
  font-weight: 700;
}
.hero-copy .btn-wrap { margin-top: 36px; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > * { animation: none !important; opacity: 1; }
  .hero-slide { transition: none; }
}

/* ---------- Split layout (B-2 / B-5 / B-7 共通・非対称オフセット＋角丸＋セクション別サイズ) ---------- */
.section-split {
  padding: clamp(120px, 16vw, 200px) 0;
  position: relative;
  overflow: hidden;
  /* v0.7: 背景は透過。左端ラインを貫通させるため section レイヤーで白塗りしない */
  background: transparent;
}

/*
  非対称グリッド (v0.4: 画面端ガターを追加。bleed しすぎず参考サイトのように少し浮かせる):
    通常 = テキスト 5fr (左) : メディア 7fr (右、画面右端からガター)
    reverse = メディア 7fr (左、画面左端からガター) : テキスト 5fr (右)
*/
.split-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(56px, 8vw, 120px);
  max-width: none;
  padding-left: clamp(56px, 11vw, 180px);
  padding-right: clamp(20px, 3vw, 56px);
}
.split-inner.reverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  padding-left: clamp(20px, 3vw, 56px);
  padding-right: clamp(56px, 11vw, 180px);
}
.split-text {
  max-width: 540px;
  padding: 32px 12px;
}
.split-inner.reverse .split-text {
  margin-left: auto;
  text-align: left;
}
.split-text .eyebrow { display: flex; margin-bottom: 18px; }
.split-text h2 { margin: 4px 0 28px; }
.split-text p + p { margin-top: 18px; }
.split-text .lead { margin-top: 0; margin-bottom: 16px; }
.split-text .btn-wrap { margin-top: 40px; }

/* media 側: ガター分内側に寄せつつ大きな角丸を維持。shadow は淡く (v0.4) */
.split-media {
  width: 100%;
  height: 100%;
  min-height: clamp(360px, 50vw, 560px);
  border-radius: clamp(24px, 4vw, 56px);
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(31,77,67,.10);
  background: #ddd;
  position: relative;
}
.split-media > * { width: 100%; height: 100%; }
.split-media img,
.split-media .exterior-photo,
.split-media .director-photo,
.split-media .counseling-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  display: block;
}
.split-media .exterior-photo img,
.split-media .director-photo img,
.split-media .counseling-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*
  セクション別の画像サイズ・配置のリズム
    B-2 ABOUT       … 中サイズ・通常方向
    B-5 FIRST-VISIT … 縦長・reverse 方向
*/

/* ---------- B-7 院長より: 2col grid (HIN-130) ---------- */
.section-director-teaser {
  background: var(--color-bg);
}

.director-teaser-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}

.director-teaser-photo-wrap .director-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.director-teaser-photo-wrap .director-photo::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  pointer-events: none;
  z-index: 1;
}

.director-teaser-photo-wrap .director-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.front-page .director-teaser-body .eyebrow { margin-bottom: 18px; }
.director-teaser-body h2 { margin: 4px 0 28px; }
.director-teaser-body p + p { margin-top: 18px; }
.director-teaser-body .lead { margin-top: 0; margin-bottom: 16px; }
.director-teaser-body .btn-wrap { margin-top: 40px; }

/* HIN-128: B-5 First Visit は `.firsttimers-*` 横 4col グリッドに刷新。
   旧 `.section-first-visit .split-media` 系スタイルは廃止。 */
/* HIN-125: B-2 ジグザグレイアウト (.split-media-about 系) は AboutTeaser に置換、
   旧スタイルは廃止。 */

/* B-2: AboutTeaser 2col grid (HIN-125)
   HIN-167: ウォーターマーク配置のため position: relative + overflow: hidden を追加 */
.section-about-teaser {
  background: var(--bg-cream-2);
  position: relative;
  overflow: hidden;
}

/* HIN-160: B-4 メニュー / B-8 コラムも about と同じクリーム背景に揃える
   HIN-167: B-8 コラムにもウォーターマーク配置のため position: relative + overflow: hidden を追加
   （B-4 メニューはウォーターマーク無しのため共通宣言からは除外） */
.section-menu,
.section-columns {
  background: var(--bg-cream-2);
}
.section-columns {
  position: relative;
  overflow: hidden;
}

/* HIN-167: B-2 / B-8 大型英字ウォーターマーク。/first-visit/ .fv-trial__watermark と同パターン。
   - .container を z-index: 1 で前面化し、ウォーターマークは z-index: 0 で背景レイヤー化
   - aria-hidden + pointer-events:none + user-select:none で支援技術・操作面では透過 */
.section-about-teaser > .container,
.section-columns > .container {
  position: relative;
  z-index: 1;
}
.section-about-teaser__watermark,
.section-columns__watermark {
  position: absolute;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(180px, 22vw, 360px);
  color: rgba(191, 157, 92, 0.07);
  line-height: 0.9;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}
/* B-2: 下部右寄り */
.section-about-teaser__watermark {
  right: clamp(-60px, -3vw, -20px);
  bottom: -6%;
}
/* B-8: 左上部 */
.section-columns__watermark {
  left: clamp(-60px, -3vw, -20px);
  top: -4%;
}

.about-teaser-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}

/* HIN-160: about 写真は横並びの縦長 2 枚から、上下配置の横長 2 枚へ変更。
   /about/ 側 (.about-values-photo .about-photos) は position:absolute で完結
   しているため、TOP 専用に `.section-about-teaser` 配下でスコープして
   /about/ への副作用を防ぐ。 */
.section-about-teaser .about-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.4vw, 32px);
  align-items: start;
}

.section-about-teaser .about-photo {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--rule-light);
}

.section-about-teaser .about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-about-teaser .about-photo-main {
  aspect-ratio: 16 / 9;
}

/* 小写真は下に右寄せでズレ感を残し、視覚的リズムを保つ */
.section-about-teaser .about-photo-sub {
  aspect-ratio: 16 / 9;
  width: 65%;
  margin-left: auto;
}

.about-teaser-body .eyebrow { margin-bottom: 18px; }
.about-teaser-body h2 { margin: 4px 0 28px; }
.about-teaser-body p + p { margin-top: 18px; }
.about-teaser-body .btn-wrap { margin-top: 40px; }

/* legacy compat (about-intro / message-grid: 旧 grid-2 互換) */
.about-intro { align-items: center; gap: 28px; }
.about-intro-text p + p { margin-top: 16px; }
.about-intro .exterior-photo { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; }
.about-intro .exterior-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.message-grid { align-items: center; gap: 28px; }
.message-grid .director-photo { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; }
.message-grid .director-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.message-body p + p { margin-top: 16px; }

/* ---------- B-3 Reasons ---------- */
.reasons-grid { gap: clamp(24px, 3vw, 36px); }
.reason-card { position: relative; padding-top: 64px; }
.reason-num {
  position: absolute;
  top: 22px;
  right: 28px;
  font-family: var(--font-en);
  font-size: 40px;
  color: var(--color-accent);
  letter-spacing: .04em;
  opacity: .75;
}
.reason-card h3 { color: var(--color-main-dark); margin-bottom: 12px; }

/* ---------- B-4 Menu ---------- */
/* HIN-101: 8 件カード対応のグリッド (4×2 / タブレット 2 列 / モバイル 1 列)。
   既存の .grid-3 とは独立。.menu-card 自体のスタイルはそのまま流用する。 */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 2.4vw, 36px) clamp(20px, 2vw, 28px);
}

/* v0.5: 写真・タイトル・説明・ボタン の縦積みカード
   .card で付いている padding を打ち消し、写真を上部にフルブリードで配置する */
/* HIN-127: 角丸 2px・影なし・ヘアライン border・gap: 0 (components.css 由来 gap: 12px 打ち消し) */
.menu-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: none;
  border: 1px solid var(--rule-light);
  gap: 0;
}
.menu-card:hover { box-shadow: none; }
.menu-card-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-bg-tint);
}
.menu-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.menu-card:hover .menu-card-photo img { transform: scale(1.04); }
/* HIN-171: 左端の窮屈感を解消するため左右余白を 20px → 24px に増量。
   見出しは word-break: auto-phrase で日本語フレーズ境界改行（Chrome/Edge 119+）。
   未対応ブラウザは base.css の text-wrap: balance のみが効くフォールバック。 */
.menu-card h3 {
  margin: 24px 24px 12px;
  word-break: auto-phrase;
}
.menu-card p { color: var(--color-muted); margin: 0 24px 20px; flex-grow: 1; }
.menu-card .btn { margin: 0 24px 24px; align-self: flex-start; }

/* ---------- B-5 First Timers (HIN-153: /first-visit/ FVFlow と整合; HIN-155: intro を grid 外に独立化) ---------- */
.firsttimers-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto clamp(36px, 4vw, 56px);
  max-inline-size: 720px;
}
.firsttimers-intro h2 { margin: 0 0 16px; }
.firsttimers-intro .lead {
  color: var(--fp-color-text);
  /* HIN-170: 本文サイズ +20% (14.5 → 17.5) */
  font-size: 17.5px;
  line-height: 2.0;
  margin: 0 0 32px;
}
.firsttimers-intro .btn-wrap { margin: 0; }
.firsttimers-grid {
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}
.firsttimers-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.firsttimers-steps li {
  padding: clamp(36px, 4.4vw, 60px) clamp(22px, 2.6vw, 38px);
}
.firsttimers-steps li:not(:last-child) {
  border-right: 1px solid var(--rule-light);
}
.step-label {
  display: block;
  font-family: var(--fp-font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--fp-gold-soft);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.step-num {
  display: block;
  font-family: var(--fp-font-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(48px, 5.4vw, 76px);
  letter-spacing: 0.02em;
  color: var(--fp-gold);
  line-height: 1;
  margin-bottom: 16px;
}
.firsttimers-steps li h3 {
  font-family: var(--fp-font-mincho);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--fp-color-main-dark);
  margin: 0 0 12px;
  line-height: 1.5;
}
.firsttimers-steps li p {
  /* HIN-170: 本文サイズ +20% (14.5 → 17.5) */
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--fp-color-text);
  margin: 0;
}

/* B-6 Trial Price は HIN-156 で /first-visit/ の fv-trial と統合され、
   `.fv-trial*` 系セレクタ（assets/css/page-first-visit.css）を共有する。 */

/* ---------- B-8 Column (HIN-131: 写真採用 + アイキャッチ連携) ---------- */
.columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
}
.column-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--color-bg);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition-base);
}
.column-card:hover { opacity: 0.85; }
.column-card-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.column-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.column-card-body {
  padding: 20px 24px 24px;
}
.front-page .section-columns .column-card h3 {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.06em;
}
/* HIN-170: 本文サイズ +20% (14 → 17) */
.front-page .section-columns .column-card p { color: var(--color-muted); font-size: 17px; }
/* コラム一覧を見るボタンは背景を白に（現行維持） */
.section-columns .btn-wrap .btn-outline {
  background: var(--color-white);
}
.section-columns .btn-wrap .btn-outline:hover {
  background: var(--color-main);
  color: #fff;
}
/* HIN-142: 日付・カテゴリ Mono ラベル */
.column-card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
.column-card__date,
.column-card__category {
  font-family: var(--fp-font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}
.column-card__date { color: var(--fp-gold-soft); }
.column-card__category {
  color: var(--fp-color-muted);
  text-transform: uppercase;
}

/* ---------- B-9 お知らせ: stacked center (HIN-132 → HIN-184) ---------- */
.section-info-feed {
  background: var(--color-bg);
  /* HIN-184: アクセスとの間の余白を縮小 */
  padding-bottom: clamp(60px, 8vw, 100px);
}

/* HIN-184: お知らせ↔アクセス間の余白縮小 (上下 section の padding を両方詰める) */
.section-access {
  padding-top: clamp(60px, 8vw, 100px);
}

/* HIN-184: 横並び (PC 2col grid) から 縦並び中央寄せに変更。
   - .info-feed-head と .info-feed-body を縦に積み、画面横幅中央に揃える
   - PC / SP とも同じレイアウト */
.info-feed-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
}

.info-feed-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  align-items: center;
}

.front-page .info-feed-head .eyebrow { margin-bottom: 4px; }
.info-feed-head h2 { margin-top: 4px; margin-bottom: 0; }

.info-feed-body {
  width: 100%;
  max-width: 720px;
}

.info-feed-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px) clamp(28px, 5vw, 48px);
  border: 1px solid var(--rule-light);
}

.info-feed-text {
  margin: 0;
  line-height: 1.85;
  /* HIN-170: 本文サイズ +20% (16 → 19) */
  font-size: 19px;
}

/* ---------- B-10 アクセス (HIN-133)
   HIN-194: 横並び 2-col に変更（左 .access-info / 右 .access-map iframe） ---------- */
.section-access .access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
/* HIN-194: Google Map iframe ラッパ（B-10 専用） */
.section-access .access-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #e0ede9 0%, #f0ede6 100%);
}
.section-access .access-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
  display: block;
}
.section-access .access-info .eyebrow { margin-bottom: 18px; }
.section-access .access-info h2 { margin: 4px 0 32px; }
.section-access .access-detail {
  border-left: 1px solid var(--rule-light);
  padding-left: 24px;
}
.section-access .access-detail p + p { margin-top: 12px; }
.section-access .btn-wrap .btn-outline {
  background: var(--color-white);
}
.section-access .btn-wrap .btn-outline:hover {
  background: var(--color-main);
  color: #fff;
}

/* HIN-143: Access データ項目ラベル (Mono) */
.section-access .access-data {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.section-access .access-detail .access-data + .access-data,
.section-access .access-detail .access-data + .access-transportation,
.section-access .access-detail .access-transportation + .access-data {
  margin-top: 20px;
}
.access-data__label {
  font-family: var(--fp-font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--fp-gold-soft);
  text-transform: uppercase;
}
.section-access .access-hours {
  margin: 0;
}
.section-access .access-hours-row {
  display: flex;
  gap: 16px;
}
.section-access .access-hours-row dt {
  min-width: 6em;
  font-weight: 400;
}
.section-access .access-hours-row dd {
  margin: 0;
}

/* ---------- B-11 CTA (HIN-161: /menu/ M-5 FooterCTA と同デザインに統一)
   - 背景は深緑 #173a33 (var(--color-main-dark))
   - Reservation マーク（左右ルール + ゴールド斜体ラベル）+ 中央寄せの H2/リード
   - ボタンは中央寄せ・縦並びは SP のみ。 LINE はゴールド枠、電話は ink-cream 枠
   - HIN-134 (深緑背景) / HIN-144 (電話ボタン追加) から再構築 */
.front-page .section-cta {
  background: var(--color-main-dark);
  color: var(--ink-cream);
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 1px solid var(--rule-light);
  text-align: center;
}
.front-page .section-cta .cta-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}
/* "Reservation" 中央＋左右ルール（menu-footer-cta-mark 相当） */
.front-page .section-cta .cta-mark {
  display: flex;
  align-items: center;
  gap: 16px;
}
.front-page .section-cta .cta-mark::before,
.front-page .section-cta .cta-mark::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule-dark);
}
.front-page .section-cta .cta-mark-label {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  text-transform: none;
  white-space: nowrap;
}
.front-page .section-cta .cta-title {
  margin: 36px 0 24px;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--ink-cream);
}
.front-page .section-cta .cta-lead {
  margin: 0 0 48px;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 15px;
  line-height: 2.0;
  /* ink-cream-soft 相当（base.css に未定義のためリテラルで指定） */
  color: #b8ad8c;
}
.front-page .section-cta .cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
/* FooterCTA 内の primary（btn-line）はゴールド枠ボタンに切替（menu-footer-cta と同パターン）
   HIN-166: .btn-outline-on-dark と形状を揃えるため border-radius を明示し四角枠化（基底 .btn の 999px を上書き） */
.front-page .section-cta .btn-line {
  padding: 20px 44px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-accent);
  background: transparent;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.16em;
}
.front-page .section-cta .btn-line:hover,
.front-page .section-cta .btn-line:focus-visible {
  background: var(--color-accent);
  color: var(--color-main-dark);
  border-color: var(--color-accent);
}
/* btn-outline-on-dark: 電話ボタン用。深緑面で ink-cream 系。
   menu-footer-cta と同パターンを .front-page スコープで定義 */
.front-page .section-cta .btn-outline-on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 44px;
  /* ink-cream-soft (#b8ad8c) リテラル指定（base.css に未定義） */
  border: 1px solid #b8ad8c;
  border-radius: var(--radius);
  color: var(--ink-cream);
  background: transparent;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}
.front-page .section-cta .btn-outline-on-dark:hover,
.front-page .section-cta .btn-outline-on-dark:focus-visible {
  background: var(--ink-cream);
  color: var(--color-main-dark);
  border-color: var(--ink-cream);
}
/* HIN-162: B-11 CTA 内の TEL / HOURS / CLOSED 3 列情報ブロック
   /first-visit/ .fv-cta__hours と同じ class 名で同等のスタイルを `.front-page`
   スコープに複製（page-first-visit.css への依存を増やさない）。
   ・上罫 + 3 列グリッド + 左罫線縦区切り
   ・ラベルは Cormorant Garamond italic ゴールド系
   ・値は Shippori Mincho 白系、TEL のみ JetBrains Mono italic */
.front-page .section-cta .fv-cta__hours {
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid rgba(216, 192, 138, 0.32);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.front-page .section-cta .fv-cta__hours-row {
  border-left: 1px solid rgba(216, 192, 138, 0.24);
  padding-left: 22px;
}
.front-page .section-cta .fv-cta__hours-label {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--color-accent);
  margin: 0 0 12px;
}
.front-page .section-cta .fv-cta__hours-value {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink-cream);
  letter-spacing: 0.06em;
  margin: 0;
}
.front-page .section-cta .fv-cta__hours-value--en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 22px;
}

/* HIN-188: .reveal 関連は components.css に移動。hero-slide 専用 reduced-motion 対応のみ残す */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* ≤ 1024px: B-8 2col */
  .columns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* HIN-101: メニュー 8 件はタブレットでは 2 列に */
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid {
    grid-template-columns: 1fr;
    padding: clamp(96px, 14vw, 132px) 24px clamp(96px, 14vw, 132px) clamp(28px, 6vw, 48px);
  }
  .hero-copy { max-width: 100%; }
  .section-split { padding: clamp(96px, 14vw, 140px) 0; }
  .split-inner,
  .split-inner.reverse {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 24px;
  }
  .split-media,
  .section-about-intro .split-media {
    min-height: clamp(280px, 60vw, 480px);
    border-radius: var(--radius-lg);
  }
  /* HIN-125: B-2 ジグザグ SP スタイル (.split-media-about / .about-photo-main / sub) は
     AboutTeaser 2col へ置換され、SP スタイルは @media (max-width: 900px) 側に移譲。
     HIN-128: B-5 first-visit SP の `.split-media` 上書きも `.firsttimers-*` 化で不要となり廃止。 */
  .split-text { max-width: none; padding: 0; }
  .split-inner.reverse .split-text { margin-left: 0; }
  /* HIN-161: B-11 CTA を menu-footer-cta と同様の SP レイアウトに
     - ボタンは full-width で縦並び
     - Reservation ラベルは font-size を小さく */
  .front-page .section-cta .cta-actions .btn,
  .front-page .section-cta .cta-actions .btn-line,
  .front-page .section-cta .cta-actions .btn-outline-on-dark {
    width: 100%;
    padding: 16px 32px;
  }
  .front-page .section-cta .cta-mark {
    gap: 14px;
  }
  .front-page .section-cta .cta-mark-label {
    font-size: 18px;
  }
  /* HIN-162: B-11 CTA fv-cta__hours は SP で 1 列縦並び */
  .front-page .section-cta .fv-cta__hours {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  /* HIN-194: B-10 アクセス 2-col → タブレット以下では縦並び（マップは下に配置） */
  .section-access .access-grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 48px);
  }
  .section-access .access-map iframe {
    min-height: 320px;
  }
}
@media (max-width: 900px) {
  .about-teaser-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* HIN-160: SP でも上下配置の横長 2 枚レイアウトを維持。sub の幅は 80% 程度に
     拡げて画面サイズに馴染ませる */
  .section-about-teaser .about-photos {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-about-teaser .about-photo-main {
    aspect-ratio: 16 / 9;
  }

  .section-about-teaser .about-photo-sub {
    aspect-ratio: 16 / 9;
    width: 80%;
  }

  /* B-7 DirectorTeaser: 1col スタック */
  .director-teaser-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* HIN-217: SP では B-7 院長より写真を非表示にする。
     テキストと More ボタンのみを表示する（クライアント要望）。
     PC (>900px) では従来通り写真を表示する。 */
  .director-teaser-photo-wrap {
    display: none;
  }

  /* B-9 お知らせ: SP では gap を 32px に詰める (HIN-184: PC/SP とも縦並び中央寄せに統一済み) */
  .info-feed-inner {
    gap: 32px;
  }

  /* HIN-178: SP では「セクション名 → 写真 → 本文」の順番で表示する。
     - B-2 / B-7 とも `.xxx-inner` を flex column 化し、`.xxx-body` を `display: contents`
       で平坦化することで、HTML 構造を変えずに見出し（eyebrow + h2）を写真の前に
       並び替える。
     - PC レイアウト（≥901px）は元の 2col grid のまま影響を受けない。
     - 非対応ブラウザでは現状の「写真 → 本文」順にフォールバックする。 */
  .about-teaser-inner,
  .director-teaser-inner {
    display: flex;
    flex-direction: column;
  }
  .about-teaser-body,
  .director-teaser-body {
    display: contents;
  }
  .about-teaser-body > .eyebrow,
  .about-teaser-body > h2,
  .director-teaser-body > .eyebrow,
  .director-teaser-body > h2 {
    order: 1;
  }
  .about-teaser-photos,
  .director-teaser-photo-wrap {
    order: 2;
  }
  .about-teaser-body > p,
  .about-teaser-body > .btn-wrap,
  .director-teaser-body > .fv-message__pull,
  .director-teaser-body > p,
  .director-teaser-body > .btn-wrap {
    order: 3;
  }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  /* ≤ 640px: B-8 1col */
  .columns-grid { grid-template-columns: 1fr; }
  /* HIN-101: メニュー 8 件はモバイルでは 1 列に */
  .menu-grid { grid-template-columns: 1fr; }
  /* HIN-217: .director-teaser-photo-wrap は 900px 以下で display: none にしたため
     ここでのサイズ調整は不要（旧 max-width: 260px 相当のルールは削除）。 */
  .hero-v2 { min-height: clamp(520px, 80vh, 680px); }
  .hero-grid { padding: 72px 20px 56px 28px; gap: 32px; }
  .hero-copy h1 { font-size: clamp(34px, 8vw, 48px); }
  /* HIN-170: 本文サイズ +20% (16 → 19) */
  .hero-copy .hero-text { font-size: 19px; }
  .hero-copy .hero-price { gap: 10px; }
  .hero-copy .price-card { min-width: 140px; padding: 14px 18px; }
  .hero-copy .price-card strong { font-size: 20px; }
  .reason-num { font-size: 32px; top: 16px; right: 20px; }
  .reason-card { padding-top: 52px; }
  .info-item { padding: 18px 20px; grid-template-columns: 100px auto; row-gap: 6px; }
  .info-item a { grid-column: 1 / -1; }
  .access-summary { padding-left: 20px; }
}

/* =========================================================
   HIN-118: TOP ページ タイポグラフィ磨き込み（/menu/ と統一）

   - .front-page スコープでトークン宣言・タイポ上書きを完結させる
   - 詳細度を意図的に上げて既存セレクタ（.hero-copy h1 等）を上書き
   - body 系統には漏らさないため /menu/ / /column/ / 他下層ページに副作用なし
   - フォント: Shippori Mincho B1 / Cormorant Garamond italic / JetBrains Mono
   - スマホ表示崩れ対策として clamp 下限を厳しめに、padding 縮小
   ========================================================= */

.front-page {
  --fp-color-main-dark: #173a33;
  --fp-color-accent:    #c8a96a;
  --fp-color-text:      #262626;
  --fp-color-muted:     #6f6f6f;
  --fp-rule-soft:       rgba(23, 58, 51, 0.14);
  --fp-gold:            #c8a96a;
  --fp-gold-soft:       #a88a4f;

  --fp-font-mincho:     var(--font-main);
  --fp-font-en:         var(--font-en);
  --fp-font-mono:       var(--font-mono);

  font-family: var(--fp-font-mincho);
  font-feature-settings: 'palt' 1;
  line-height: 1.85;
  color: var(--fp-color-text);
}

/* ---------- eyebrow: /menu/ 流儀（mono 10px / 0.28em / 1px gold hairline） ---------- */
.front-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fp-font-mono);
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--fp-gold-soft);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.front-page .eyebrow::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 32px;
  height: 1px;
  background: var(--fp-gold-soft);
}
.front-page .eyebrow::after {
  content: none;
}
.front-page .section-head { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.front-page .section-head .eyebrow { justify-content: center; }

/* ---------- 見出し（Shippori Mincho B1）と本文の文字組み ---------- */
.front-page h1,
.front-page h2,
.front-page h3 {
  font-family: var(--fp-font-mincho);
  font-weight: 500;
  color: var(--fp-color-main-dark);
}
.front-page .hero-copy h1 {
  color: #fff;
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.front-page h2 {
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.front-page h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: 0.08em;
  line-height: 1.6;
  margin: 0 0 12px;
}
.front-page p {
  letter-spacing: 0.04em;
  line-height: 1.85;
  color: var(--fp-color-text);
}
.front-page .hero-copy .hero-text {
  margin-top: 28px;
  /* HIN-170: 本文サイズ +20% (clamp(15,1.4vw,18) → clamp(18,1.7vw,22)) */
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.95;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.92);
}
.front-page p.lead,
.front-page .section-head .lead {
  /* HIN-170: 本文サイズ +20% (clamp(14,1.4vw,16) → clamp(17,1.7vw,19)) */
  font-size: clamp(17px, 1.7vw, 19px);
  letter-spacing: 0.08em;
  line-height: 2.0;
  color: var(--fp-color-muted);
}

/* ---------- ボタンタイポ統一 ---------- */
.front-page .btn {
  font-family: var(--fp-font-mincho);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.16em;
  border-radius: 2px;
  padding: 16px 32px;
  min-height: 0;
  transition: all 220ms ease;
}
.front-page .hero .btn {
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

/* ---------- 価格カード（ヒーロー）の数値部分 ---------- */
.front-page .hero-copy .price-card span {
  font-family: var(--fp-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fp-color-muted);
}
.front-page .hero-copy .price-card strong {
  font-family: var(--fp-font-mincho);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: 0.04em;
  color: var(--fp-color-main-dark);
}

/* ---------- B-3 選ばれる理由: 3col グリッド (HIN-126) ---------- */
.front-page .reasons-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--rule-light);
}
.front-page .reason-row {
  display: grid;
  grid-template-columns: 110px 1fr 1.4fr;
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--rule-light);
}
.front-page .reason-row .reason-num {
  position: static;  /* 共通 .reason-num の position:absolute を打ち消す */
  top: auto;
  right: auto;
  opacity: 1;        /* 共通 .reason-num の opacity:.75 を打ち消す */
  font-family: var(--fp-font-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--fp-gold);
}
.front-page .reason-row h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin: 0;
  color: var(--fp-color-main-dark);
  padding-top: 0.15em;  /* 数字ベースラインとの光学的整合 */
}
.front-page .reason-row p {
  margin: 0;
  /* HIN-170: 本文サイズ +20% (clamp(14,1.4vw,16) → clamp(17,1.7vw,19)) */
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.95;
  color: var(--fp-color-text);
  padding-top: 0.15em;
}

/* ---------- B-3 選ばれる理由: サブラベル + Cormorant 数字 (HIN-140) ---------- */
.front-page .reason-card__heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.front-page .reason-card__en {
  font-family: var(--fp-font-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(11px, 1.1vw, 13px);
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--fp-gold-soft);
  overflow-wrap: break-word;
}

/* ---------- ヒーロー Ken Burns: 表示中の slide をゆっくりズームアウト ----------
   main.js の heroIntervalMs = 6500ms と合わせる。
   尺は 7s に取り、切替 crossfade 1.5s と被ってもアニメ末端が静止状態に着地するようにする。
   ベース transform を scale(1.0) に固定し、is-active 時のみ animation を発火させることで、
   crossfade の opacity transition と独立して動作する。 */
.front-page .hero-slide {
  transform: scale(1.0);
  transform-origin: center center;
}
.front-page .hero-slide.is-active {
  animation: fp-hero-ken-burns 7000ms ease-out forwards;
}
@keyframes fp-hero-ken-burns {
  0%   { transform: scale(1.06); }
  100% { transform: scale(1.0); }
}

/* ---------- スマホ最適化（< 768px） ---------- */
@media (max-width: 768px) {
  .front-page .hero-copy h1 {
    font-size: clamp(30px, 8vw, 44px);
    letter-spacing: 0.02em;
    line-height: 1.45;
  }
  .front-page h2 {
    font-size: clamp(22px, 6vw, 30px);
    letter-spacing: 0.04em;
    line-height: 1.55;
  }
  .front-page h3 {
    font-size: 17px;
    letter-spacing: 0.06em;
  }
  .front-page .hero-copy .hero-text {
    /* HIN-170: 本文サイズ +20% (15 → 18) */
    font-size: 18px;
    line-height: 1.9;
  }
  .front-page p.lead,
  .front-page .section-head .lead {
    /* HIN-170: 本文サイズ +20% (13 → 16) */
    font-size: 16px;
    letter-spacing: 0.06em;
  }
  .front-page .btn {
    font-size: 13px;
    letter-spacing: 0.12em;
    padding: 14px 24px;
  }
  .front-page .hero-copy .price-card {
    min-width: 0;
    padding: 12px 16px;
  }
  .front-page .hero-copy .price-card span {
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  .front-page .hero-copy .price-card strong {
    font-size: 18px;
  }
}

/* ---------- B-3 選ばれる理由: レスポンシブ (HIN-126) ---------- */
/* ≤ 900px: 数字列を固定し、heading wrapper + p を右列に収める */
@media (max-width: 900px) {
  .front-page .reason-row {
    grid-template-columns: 110px 1fr;
    gap: clamp(16px, 3vw, 32px);
  }
  .front-page .reason-row .reason-card__index {
    grid-row: 1 / span 2;  /* heading wrapper + p の高さにまたがる */
    align-self: center;
  }
  .front-page .reason-row .reason-card__heading {
    grid-column: 2;
    grid-row: 1;
  }
  .front-page .reason-row p {
    grid-column: 2;
    grid-row: 2;
  }
}

/* ≤ 640px: 完全 1col スタック */
@media (max-width: 640px) {
  .front-page .reason-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }
  .front-page .reason-row .reason-card__index {
    grid-row: auto;
    align-self: auto;
    font-size: 40px;
  }
  .front-page .reason-row .reason-card__heading {
    grid-column: 1;
    grid-row: auto;
  }
  .front-page .reason-row p {
    grid-column: 1;
    grid-row: auto;
    /* HIN-170: 本文サイズ +20% (14 → 17) */
    font-size: 17px;
    line-height: 1.9;
  }
  .front-page .reason-row h3 {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .front-page .hero-slide,
  .front-page .hero-slide.is-active {
    animation: none !important;
    transform: scale(1.0) !important;
  }
}

/* ---------- B-5 First Timers レスポンシブ (HIN-153: 5 ステップ対応; HIN-155: intro 独立化に伴う grid 制御撤去) ---------- */
/* ≤ 900px: steps 2col グリッド（5 つ目は単独行で全幅 = 2+2+1 配置） */
@media (max-width: 900px) {
  .firsttimers-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  /* border 再定義: 全リセット → 左列縦線・上 2 段横線のみ */
  .firsttimers-steps li {
    border-right: none;
  }
  .firsttimers-steps li:nth-child(odd):not(:last-child) {
    border-right: 1px solid var(--rule-light);
  }
  .firsttimers-steps li:nth-child(-n+4) {
    border-bottom: 1px solid var(--rule-light);
  }
  /* 5 つ目（奇数番目・最後）は単独行で全幅 */
  .firsttimers-steps li:last-child {
    grid-column: 1 / -1;
  }
}

/* ≤ 640px: steps 内部を 1col スタック */
@media (max-width: 640px) {
  .firsttimers-steps {
    grid-template-columns: 1fr;
  }
  .firsttimers-steps li:nth-child(odd):not(:last-child) {
    border-right: none;
  }
  .firsttimers-steps li:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--rule-light);
  }
}

/* ==========================================================================
   HIN-176: SP 表示改善（横スクロールカード / 時間差フェードイン / 下部固定 CTA）
   - SP 専用 (@media max-width: 767px) で PC レイアウトには一切影響しない
   - 軽い影・短いトランジションでパフォーマンスに配慮
   - 接骨院サイトの清潔感を損なわない範囲のアニメーション
   ========================================================================== */
@media (max-width: 767px) {

  /* ---------- 1. 横スクロールカード（B-3 選ばれる理由 / B-4 施術メニュー / B-8 コラム） ----------
     SP では「1 枚目はやや大きめ・右端から次のカードがチラ見え」を演出して
     横スワイプ可能であることを伝える。scroll-snap で中央に吸着、スクロール
     バーは非表示にして上品さを保つ。 */
  .reasons-list,
  .menu-grid,
  .columns-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    padding: 4px 5vw 18px;
    margin: 0 -5vw;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 5vw;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .reasons-list::-webkit-scrollbar,
  .menu-grid::-webkit-scrollbar,
  .columns-grid::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
  }

  /* 各カードを横並びアイテムに切り替え */
  .reasons-list .reason-row,
  .menu-grid .menu-card,
  .columns-grid .column-card {
    flex: 0 0 82vw;
    max-width: 82vw;
    scroll-snap-align: center;
    box-sizing: border-box;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(31, 77, 67, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }
  /* タップ時の押下感 */
  .reasons-list .reason-row:active,
  .menu-grid .menu-card:active,
  .columns-grid .column-card:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(31, 77, 67, 0.08);
  }

  /* 選ばれる理由 (.reason-row) は <li> ベースなので listmarker を非表示にして
     カードの上下余白を整える */
  .reasons-list .reason-row {
    list-style: none;
    background: var(--color-white, #fff);
    padding: 22px 20px;
  }

  /* HIN-188: SP 専用の時間差フェード上書きを撤廃。components.css の
     親 .reveal 単位の演出に統一する（孫要素セレクタが TOP の実構造と
     合っていなかったため SP では動作していなかった）。 */

  /* ---------- 3. 下部固定 CTA (SP only) ----------
     LINE 予約 + お電話の 2 ボタンを常時表示。body に sp-fixed-cta-active を
     付与した時のみ表示（main.js が制御）。.back-to-top と高さが被らないよう
     上方にオフセット。
     - z-index: 80（.back-to-top は 90 なので、それより下） */
  .sp-fixed-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    backdrop-filter: saturate(160%) blur(8px);
    border-top: 1px solid rgba(31, 77, 67, 0.08);
    box-shadow: 0 -4px 14px rgba(31, 77, 67, 0.06);
    opacity: 0;
    transform: translateY(120%);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  body.sp-fixed-cta-active .sp-fixed-cta {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .sp-fixed-cta .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(31, 77, 67, 0.08);
  }
  /* 固定 CTA が出ている時は back-to-top を CTA の上に逃がす */
  body.sp-fixed-cta-active .back-to-top {
    bottom: calc(env(safe-area-inset-bottom) + 64px);
  }

}

/* 固定 CTA は PC では表示しない（HTML 側で SP only でレンダリングするが
   保険として display:none も書いておく） */
@media (min-width: 768px) {
  .sp-fixed-cta { display: none !important; }
}

/* prefers-reduced-motion: SP 固定 CTA トランジション抑制
   HIN-188: .reveal の reduced-motion 対応は components.css に集約されたため
   こちらは .sp-fixed-cta 専用となった。 */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .sp-fixed-cta {
    transition: none;
  }
}

/* ==========================================================================
   HIN-177: トップページ SP 微調整
   ==========================================================================
   - B-3 選ばれる理由 SP: 横スクロールヒント矢印 + 3 ドットインジケーター
   - B-4 施術メニュー SP:
     1. カード高さ抑制（説明文 -webkit-line-clamp: 2）
     2. 施術名を写真の上にオーバーレイ（グラデーション + 白文字 + 01-08 番号）
     3. 横スクロールヒント矢印（カード右端から薄く覗かせる）
     4. カウンター UI（← 01 / 08 →）
     5. カード内構成: 写真（名前オーバーレイ）→ 短い説明 → 詳しく見る
   - 全て SP 専用 (@media max-width: 767px)。PC・タブレットには影響しない。
   ========================================================================== */
@media (max-width: 767px) {

  /* ---------- B-3 / B-4 共通: 横スクロールヒント矢印 ----------
     カード一覧の右端から半円形の矢印アイコンを覗かせ、「右に続く」ことを示す。
     scroll 末端まで進むと is-at-end クラスが付与されて opacity: 0 でフェードアウト。
     HIN-177 追記: タップで次のカードへスライドできるよう pointer-events: auto に切替。
                   末端では is-at-end + opacity: 0 + pointer-events: none で完全に無効化。 */
  .reasons-list-wrap,
  .menu-grid-wrap {
    position: relative;
  }
  .scroll-hint-arrow {
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    z-index: 3;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(31, 77, 67, 0.1);
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    /* button 要素扱いに統一するためのリセット */
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.15s ease;
  }
  .scroll-hint-arrow:active {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(0.92);
  }
  .menu-grid-wrap .scroll-hint-arrow:active {
    /* メニュー側は top: 38% のため translateY を合わせる */
    transform: translateY(-50%) scale(0.92);
  }
  .scroll-hint-arrow svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--color-main-dark);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
  }
  /* B-4 メニューはカード下方に矢印を配置（写真と被ると視認性が下がるため少し下寄せ） */
  .menu-grid-wrap .scroll-hint-arrow {
    top: 38%;
  }
  /* 末端ではフェードアウト + クリック無効化 */
  .reasons-list-wrap.is-at-end .scroll-hint-arrow,
  .menu-grid-wrap.is-at-end .scroll-hint-arrow {
    opacity: 0;
    pointer-events: none;
  }

  /* ---------- B-3 選ばれる理由: 3 ドットインジケーター ---------- */
  .reasons-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 4px;
  }
  .reasons-indicator__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(31, 77, 67, 0.2);
    transition: background-color 0.25s ease, transform 0.25s ease;
  }
  .reasons-indicator__dot.is-active {
    background: var(--color-main, #1f4d43);
    transform: scale(1.2);
  }

  /* ---------- B-4 施術メニュー: カード再構成 ----------
     CSS Grid の「same cell」テクニックで .menu-card-photo と h3 を同じセル
     (row 1) に重ねる。h3 は align-self: end で写真下端に寄せ、写真側に
     ::after でグラデーションを敷いて白文字の可読性を確保する。
     ::before は CSS counter で 01-08 の番号バッジを生成する。 */
  .menu-grid {
    /* 子カード側で counter-increment を使うためここで reset */
    counter-reset: menu-card-num;
  }
  .menu-grid .menu-card {
    counter-increment: menu-card-num;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    /* HIN-176 の box-shadow / border-radius は親の SP ルールで既に適用済み */
    background: var(--color-white, #fff);
  }
  /* 写真は row 1, col 1 */
  .menu-grid .menu-card .menu-card-photo {
    grid-row: 1;
    grid-column: 1;
    position: relative;
    /* HIN-177: SP では正方形に近づけてカード全体の高さを抑える */
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }
  /* 写真下半分にグラデーションを敷く（白文字の可読性確保） */
  .menu-grid .menu-card .menu-card-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 35%,
      rgba(0, 0, 0, 0.15) 55%,
      rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
  }
  /* 01-08 の番号バッジ（CSS counter） */
  .menu-grid .menu-card .menu-card-photo::before {
    content: counter(menu-card-num, decimal-leading-zero);
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-en, 'Cormorant Garamond', 'Times New Roman', serif);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  /* h3 を写真の同じセルにオーバーレイ
     HIN-177 追記: font-size を +30% (16 → 21px)。番号バッジとの干渉を避けるため
     左パディングも 50 → 56px に微増。line-clamp: 2 は維持してカード高さの上限を守る。 */
  .menu-grid .menu-card h3 {
    grid-row: 1;
    grid-column: 1;
    align-self: end;
    justify-self: stretch;
    z-index: 2;
    color: #fff;
    margin: 0;
    /* 左側は番号バッジ分の余白を確保（左 56px） */
    padding: 0 16px 14px 56px;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    /* 長文 / <br> 入りでも 2 行で切る */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* 説明文は row 2, 2 行で省略 */
  .menu-grid .menu-card p {
    grid-row: 2;
    grid-column: 1;
    margin: 12px 16px 10px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-muted);
    /* 2 行省略 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* 詳しく見るボタンは row 3, 小さめに */
  .menu-grid .menu-card .btn {
    grid-row: 3;
    grid-column: 1;
    margin: 0 16px 16px;
    padding: 7px 14px;
    font-size: 12px;
    letter-spacing: 0.04em;
    justify-self: start;
    align-self: end;
  }

  /* ---------- B-4 施術メニュー: カウンター UI (← 01 / 08 →) ---------- */
  .menu-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 18px 0 4px;
  }
  .menu-counter__btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white, #fff);
    border: 1px solid rgba(31, 77, 67, 0.14);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-counter__btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--color-main-dark);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .menu-counter__btn:disabled {
    opacity: 0.35;
    cursor: default;
  }
  .menu-counter__btn:active:not(:disabled) {
    background: rgba(31, 77, 67, 0.06);
    border-color: rgba(31, 77, 67, 0.2);
  }
  .menu-counter__text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 64px;
    justify-content: center;
    font-family: var(--font-en, 'Cormorant Garamond', 'Times New Roman', serif);
    font-size: 17px;
    color: var(--color-main-dark);
    letter-spacing: 0.1em;
    line-height: 1;
  }
  .menu-counter__current,
  .menu-counter__total {
    font-variant-numeric: tabular-nums;
    min-width: 1.4em;
    text-align: center;
  }
  .menu-counter__sep {
    opacity: 0.45;
  }
}

/* HIN-177: PC・タブレット (>= 768px) では SP 専用 UI を非表示にする */
@media (min-width: 768px) {
  .scroll-hint-arrow,
  .reasons-indicator,
  .menu-counter {
    display: none !important;
  }
}

/* HIN-177: prefers-reduced-motion の場合は SP 専用の transition も抑制 */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .scroll-hint-arrow,
  .reasons-indicator__dot,
  .menu-counter__btn {
    transition: none;
  }
}

/* ============================================================
   HIN-180: B-7「院長より」抜粋の引用テキスト強調アニメーション
   ------------------------------------------------------------
   - サイト全体の落ち着いた雰囲気に合わせ、派手にしすぎない上品な演出。
   - .section-director-teaser.reveal が .is-visible になったタイミングで
     順に立ち上がる: 金縦線がじわっと上から下へ伸びる → クォートが浮かび上がる
     → 本文が translateY + opacity で立ち上がる。
   - 既存の .fv-message__pull の `border-left: 1px solid var(--fv-gold)` を
     ::before の `scaleY(0→1)` 縦線で置き換えるため、TOP 文脈のみ border-left を解除する
     （/first-visit/ ページの同セレクタには影響しない）。
   - prefers-reduced-motion: reduce では transition を無効化し最終状態に直接出す。
   ============================================================ */
.section-director-teaser .fv-message__pull {
  position: relative;
  border-left: none;
}
.section-director-teaser .fv-message__pull::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--fv-gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}
.section-director-teaser.is-visible .fv-message__pull::before {
  transform: scaleY(1);
}
.section-director-teaser .fv-message__quote {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s,
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}
.section-director-teaser.is-visible .fv-message__quote {
  opacity: 1;
  transform: translateY(0);
}
.section-director-teaser .fv-message__pull-text {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.65s,
              transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.65s;
}
.section-director-teaser.is-visible .fv-message__pull-text {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .section-director-teaser .fv-message__pull::before {
    transition: none;
    transform: scaleY(1);
  }
  .section-director-teaser .fv-message__quote,
  .section-director-teaser .fv-message__pull-text {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* ==========================================================================
   HIN-193: SP 版で B-2 About ウォーターマークがコンテンツの下に埋もれて
   見えづらいため、SP のみ配置位置を上に寄せる。透明度は据え置き（PC と同じ
   0.07 のまま）で「装飾として柔らかく見える」レベルを維持する。
   - bottom: -6% → bottom: 35%（セクション下端から 35% 上 = 中段やや上寄り）
   - font-size を SP 用に控えめにしてはみ出し量も抑える
   - PC レイアウト (≥768px) には一切影響しない
   ========================================================================== */
@media (max-width: 767px) {
  .section-about-teaser__watermark {
    bottom: 35%;
    font-size: clamp(140px, 36vw, 200px);
  }
}
