/* =========================================================
   Tokushige Women's Care Clinic — main.css
   既存サイトのデザイントークンを継承:
   primary #d95c5c / accent #4ba9a7 / bg #FBF7F5,#f4f1ef
   text #362a2a / sub #645f5f / line #e3dfdd
========================================================= */
:root {
  --primary: #d95c5c;
  --primary-dark: #c94a4a;
  --primary-pale: #fbeaea;
  --accent: #4ba9a7;
  --accent-pale: #d9e6e3;
  --bg: #fbf7f5;
  --bg-2: #f4f1ef;
  --text: #362a2a;
  --sub: #645f5f;
  --line: #e3dfdd;
  --important: #c13e3e;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 8px 30px rgba(54, 42, 42, .08);
  --shadow-hover: 0 14px 40px rgba(54, 42, 42, .14);
  --font-head: "Zen Maru Gothic", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: .04em;
  font-size: 15.5px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.sp { display: none; }
@media (max-width: 840px) { .sp { display: inline; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8em 2.2em; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer; border: none; line-height: 1.4; text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(217, 92, 92, .35); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: rgba(255, 255, 255, .92); color: var(--text); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-lg { padding: 1em 2.8em; font-size: 16.5px; }
.btn-tel { gap: .5em; }
.btn-tel .btn-tel-icon { width: 1.2em; height: 1.2em; flex-shrink: 0; color: var(--primary); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease, box-shadow .3s ease;
}
/* 下にスクロールし始めたら背景を表示 */
.site-header.is-scrolled,
/* 下層ページはFVに重ねないため、最初から背景を表示 */
body:not(.home) .site-header {
  background: rgba(251, 247, 245, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(227, 223, 221, .6);
  box-shadow: 0 4px 24px rgba(54, 42, 42, .08);
}
.header-inner {
  width: 90%; margin: 0 auto; padding: 0;
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; min-width: 0; flex-shrink: 1; }
.brand-logo { display: block; height: 44px; width: auto; max-width: 100%; }
@media (max-width: 840px) { .brand-logo { height: 38px; } }
@media (max-width: 540px) {
  .header-inner { gap: 10px; width: 92%; }
  .brand-logo { height: 26px; }
  .header-cta { flex-shrink: 0; }
  .btn-reserve { padding: .55em 1em; font-size: 12.5px; }
  .menu-toggle { flex-shrink: 0; }
}
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 4px; }
.gnav a {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  padding: 8px 12px; border-radius: 999px; transition: background .25s, color .25s;
  white-space: nowrap;
}
.gnav a:hover { background: var(--primary-pale); color: var(--primary); }
.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.tel { display: flex; flex-direction: column; line-height: 1.3; text-align: right; }
.tel-label { font-size: 10px; color: var(--sub); white-space: nowrap; }
.tel-number {
  font-family: var(--font-head); font-weight: 700; font-size: 19px;
  color: var(--primary); white-space: nowrap;
}
.btn-reserve { padding: .7em 1.8em; font-size: 14px; white-space: nowrap; }
/* ナビとCTAが窮屈になる中間幅では、余白と文字を少し詰めて折り返しを防ぐ */
@media (max-width: 1400px) {
  .header-inner { gap: 12px; }
  .gnav ul { gap: 0; }
  .gnav a { padding: 8px 9px; font-size: 13.5px; }
  .tel-number { font-size: 17px; }
  .btn-reserve { padding: .7em 1.3em; }
}
.menu-toggle { display: none; }

@media (max-width: 1100px) {
  /* backdrop-filter は固定配置の子(スライドメニュー)の基準枠を作ってしまうため、
     スライドメニューを使うモバイル幅では無効化し、背景を不透明にする */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .gnav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(320px, 84vw);
    z-index: 99;
    background: var(--bg); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .35s ease;
    padding: 28px 22px; margin-left: 0; overflow-y: auto;
  }
  .gnav.is-open { transform: translateX(0); box-shadow: -12px 0 40px rgba(54,42,42,.12); }
  .gnav ul { flex-direction: column; gap: 6px; }
  .gnav a { display: block; font-size: 16px; padding: 12px 16px; }
  .header-cta { margin-left: auto; }
  .tel { display: none; }
  .menu-toggle {
    display: block; position: relative;
    width: 46px; height: 46px; border: none; background: transparent; cursor: pointer;
  }
  .menu-toggle span {
    position: absolute; left: 11px; right: 11px; height: 2.5px;
    background: var(--primary); border-radius: 2px;
    transition: top .3s ease, transform .3s ease, opacity .3s ease;
  }
  .menu-toggle span:nth-child(1) { top: 16px; }
  .menu-toggle span:nth-child(2) { top: 22px; }
  .menu-toggle span:nth-child(3) { top: 28px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
}

/* ---------- hero ----------
   ブロブ(有機的な形)に切り抜いたビジュアル + 余白基調のレイアウト。
   左にコピー / 右にビジュアル、背景に淡いグラデーションを配置する。
--------------------------------- */
.hero {
  position: relative;
  /* 画面の高さちょうどに収める(下が切れないように) */
  height: 100svh;
  min-height: 620px;
  display: flex; align-items: center;
  overflow: hidden;
  /* 背景(.hero-bg)はヘッダー背後まで敷いたまま、中身だけヘッダー分下げて写真との重なりを防ぐ。
     中身は align-items:center なので、下パディングを上と近づけて上下の偏りをなくす */
  padding: calc(var(--header-h) + 24px) 0 64px;
}

/* 背景の淡いグラデーション玉(装飾) */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg span { position: absolute; display: block; border-radius: 50%; filter: blur(60px); }
/* ヒーロー下端で色が途切れて見えるのを防ぐため、
   ページ背景色へ徐々に溶け込ませるグラデーションを重ねる */
.hero-bg::after {
  content: ""; position: absolute; z-index: 2;
  left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(to bottom, rgba(251, 247, 245, 0) 0%, var(--bg) 92%);
}
.hero-bg .b1 { width: 52vw; height: 52vw; left: -16vw; top: -14vw; background: radial-gradient(circle at 35% 35%, rgba(217,92,92,.20), rgba(217,92,92,0) 70%); }
.hero-bg .b2 { width: 44vw; height: 44vw; right: -10vw; top: -8vw; background: radial-gradient(circle at 50% 50%, rgba(255,214,190,.55), rgba(255,214,190,0) 70%); }
.hero-bg .b3 { width: 40vw; height: 40vw; right: 2vw; bottom: -18vw; background: radial-gradient(circle at 50% 50%, rgba(75,169,167,.20), rgba(75,169,167,0) 70%); }
.hero-bg .b4 { width: 30vw; height: 30vw; left: 18vw; bottom: -14vw; background: radial-gradient(circle at 50% 50%, rgba(251,234,234,.9), rgba(251,234,234,0) 70%); }

/* ボタニカル手描き装飾(控えめ・上品に) */
.hero-deco { pointer-events: none; user-select: none; height: auto; }
/* ヒーロー左下コーナーに大きく配置するバラ束(テキストにはかからない位置) */
.hero-deco-rose {
  position: absolute; z-index: 1;
  /* 画面左下の内側に収めつつ、コピーやボタンにかからない位置まで下げる */
  left: clamp(24px, 3.4vw, 96px);
  bottom: clamp(-30px, -2.5vh, 0px);
  width: clamp(240px, 24vw, 400px);
  opacity: .96;
  /* ゆっくり揺れる(元の傾きを保ったまま上下させる) */
  animation: roseSway 9s ease-in-out infinite;
}
@keyframes roseSway {
  0%, 100% { transform: rotate(-22deg) translateY(0); }
  50%      { transform: rotate(-20deg) translateY(-12px); }
}

.hero-inner {
  position: relative; z-index: 2;
  width: 90%; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center; gap: clamp(20px, 4vw, 64px);
}

/* --- 左:コピー(バラ束の上に重ならないよう右へ寄せる) ---
   写真は上下ほぼ中央に収まるので、コピー側も持ち上げすぎず
   同じ視覚重心に揃える(上げすぎると下に大きな空白が残る) */
.hero-content {
  position: relative; z-index: 3;
  padding-left: clamp(56px, 5.4vw, 104px);
  /* コピー側は写真より少し高い位置に置き、左右の視覚重心を揃える
     (写真=.hero-visual は意図的に控えめな持ち上げにしている) */
  transform: translateY(clamp(-40px, -3.5vh, -16px));
}
/* コピー+ボタンのまとまり(背景なし) */
.hero-panel { position: relative; z-index: 3; }
.hero-catch {
  font-family: var(--font-head); font-weight: 800; color: var(--text);
  /* 画面幅に連動して滑らかに拡縮する(ブレークポイントでの段差なし)
     上限64px = 1980px 時に到達する設定 */
  font-size: clamp(21px, 3.23vw, 64px); line-height: 1.7; letter-spacing: .06em;
  /* 意図しない位置で3行に折り返さないよう、行内では折り返さない */
  white-space: nowrap;
}
/* 強調したい語を赤文字に(淡いマーカーも残す) */
.hero-catch .em {
  color: var(--primary);
  background: linear-gradient(transparent 68%, rgba(255,205,205,.75) 68%);
  padding: 0 .06em;
}
.hero-lead {
  /* 余白も文字と一緒に伸縮させ、行間のバランスを保つ */
  /* キャッチとの間隔。下のボタンとの間隔と 1:1.4 程度になるよう設定 */
  margin-top: clamp(16px, 2.1vw, 32px); color: var(--sub);
  /* キャッチの拡大に合わせて上限を引き上げ(1980px で 19px) */
  font-size: clamp(12.5px, 1.55vw, 19px); line-height: 2.1; font-weight: 500;
}
.hero-buttons {
  margin-top: clamp(24px, 4.2vw, 52px); margin-bottom: clamp(20px, 3.2vw, 40px);
  display: flex; gap: clamp(8px, 1.1vw, 14px);
  /* 幅が狭くなっても2段に折り返さず、横並びを維持する */
  flex-wrap: nowrap;
}
/* 明るい背景に載るため、電話ボタンは白ベースに */
.hero-buttons .btn-tel { background: #fff; color: var(--text); box-shadow: var(--shadow); }
/* 折り返さない代わりに、狭い幅では左右パディングと文字を詰める */
.hero-buttons .btn-lg {
  /* 文字・余白ともに画面幅へ連動(下限は可読性とタップ領域を確保できる値) */
  padding: clamp(.8em, 1.1vw, 1.05em) clamp(1em, 2vw, 3em);
  /* 同上。ボタンだけ取り残されないよう上限を引き上げ(1980px で 19.5px) */
  font-size: clamp(12.5px, 1.45vw, 19.5px);
  white-space: nowrap;
}

/* --- 右:ブロブ型ビジュアル --- */
.hero-visual {
  position: relative; padding-right: clamp(16px, 3.5vw, 60px);
  /* 写真を気持ち上へ(上げ幅は控えめにして、やや下がった位置で見せる) */
  transform: translateY(clamp(-16px, -1.2vh, -4px));
}
.hero-blob {
  position: relative;
  aspect-ratio: 1 / .95;
  /* 幅と「画面高から逆算した幅」の小さい方を採用し、下端が切れないよう画面内に収める。
     可用高 = 100svh - ヘッダー - 上下パディング - 下部担当表カード分の余裕。
     その可用高をアスペクト比(0.95)で割って幅に換算する。 */
  width: min(100%, calc((100svh - var(--header-h) - 96px) / 0.95));
  margin-inline: auto;
  border-radius: 64% 36% 54% 46% / 42% 58% 42% 58%;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(120, 80, 70, .16);
  animation: blobMorph 20s ease-in-out infinite;
}
/* 形をゆっくり変形させて有機的な印象を出す */
@keyframes blobMorph {
  0%, 100% { border-radius: 64% 36% 54% 46% / 42% 58% 42% 58%; }
  33%      { border-radius: 42% 58% 38% 62% / 56% 42% 58% 44%; }
  66%      { border-radius: 56% 44% 62% 38% / 38% 62% 38% 62%; }
}
.hero-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  /* 写真もごくゆっくり動かして、ブロブの変形と呼応させる */
  animation: breathe 24s ease-in-out infinite;
  /* 複数枚を重ねてフェード切替。表示中の1枚だけ不透明にする */
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-photo.is-active { opacity: 1; }

/* 吹き出しの組(スライド1枚につき1組)。
   写真と同じ座標系に重ね、表示中の組だけを「ぽわっ」と出す。
   非表示の組はクリック・読み上げの対象から外す。 */
.hero-bubble-set {
  position: absolute; inset: 0; z-index: 4;
  pointer-events: none; visibility: hidden;
}
.hero-bubble-set.is-active { visibility: visible; }

/* ぽわっと出る:わずかに下からふわりと浮き上がりつつ、
   ぷるんと弾む感じを出すため overshoot 付きのイージングを使う */
.hero-bubble-set .hero-bubble {
  opacity: 0;
  transform: scale(.72) translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.hero-bubble-set.is-active .hero-bubble {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity .55s ease, transform .62s cubic-bezier(.34, 1.56, .64, 1);
}
/* お母さん→お父さんの順に、少し間を置いて出す */
.hero-bubble-set.is-active .hero-bubble-mom { transition-delay: .18s; }
.hero-bubble-set.is-active .hero-bubble-dad { transition-delay: .42s; }

/* 吹き出しコピー(ビジュアルに重ねる)
   ::before / ::after を小さな丸にして「ドット式」のしっぽを作り、
   それぞれの人物から発言しているように見せる */
.hero-bubble {
  position: absolute; z-index: 4;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: clamp(14px, 1.4vw, 22px) clamp(18px, 1.9vw, 30px);
  border-radius: 50% 50% 50% 50% / 46% 46% 54% 54%;
  box-shadow: 0 14px 40px rgba(120, 80, 70, .14);
  font-family: var(--font-head); font-weight: 700; color: var(--text);
  font-size: clamp(11px, .95vw, 17px); line-height: 1.85; letter-spacing: .06em;
  white-space: nowrap;
}
/* ドットしっぽ(大小2つの円) */
.hero-bubble::before,
.hero-bubble::after {
  content: ""; position: absolute;
  background: rgba(255, 255, 255, .93);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(120, 80, 70, .10);
}
.hero-bubble::before { width: 14px; height: 14px; }
.hero-bubble::after  { width: 7px;  height: 7px;  }

/* 左上=お母さん側。しっぽは右下(お母さんの顔)へ向ける。
   幅が狭いとキャッチコピーに重なるため、写真の内側へ寄せる。
   ふわふわ浮遊は親(.hero-bubble-float)が担当する。
   登場アニメの transform と競合させないための役割分担。 */
.hero-bubble-mom { left: 2%; top: 12%; }
.hero-bubble-mom::before { right: 18%; bottom: -13px; }
.hero-bubble-mom::after  { right: 11%; bottom: -27px; }

/* 右上=お父さん側。しっぽは左下(お父さんの顔)へ向ける */
.hero-bubble-dad { right: 1%; top: 4%; }
.hero-bubble-dad::before { left: 20%; bottom: -13px; }
.hero-bubble-dad::after  { left: 12%; bottom: -27px; }

/* 浮遊レイヤー:位置は子の吹き出しが持つので、自身は全面に広げるだけ。
   2つが同時に動くと機械的なので、周期と開始をずらす */
.hero-bubble-float {
  position: absolute; inset: 0;
  animation: floatSoft 5.5s ease-in-out infinite;
}
.hero-bubble-float.is-dad {
  animation-duration: 6.8s;
  animation-delay: -2.2s;
}

.hero-wave { position: absolute; z-index: 3; left: 0; right: 0; bottom: -1px; }
.hero-wave svg { display: block; width: 100%; height: 64px; }
/* ブロブ型FVでは下部の波は使わない */
.hero > .hero-wave { display: none; }

/* ---------- 実績数バッジ ---------- */
/* バッジはビジュアル(ブロブ)の幅に対する比率で拡縮する。
   --badge-size を基準に中の文字も em で連動させるため、
   画面幅が変わってもバッジ内のバランスは一定に保たれる。 */
/* リース画像は 873x812(正方形ではない)で、中央に半透明の白い円が
   描き込まれている。バッジ枠を画像と同じ比率にして object-fit による
   余白を無くし、文字は白円の内側(横幅の約72%)に収める。 */
.hero-badge {
  position: absolute; z-index: 5;
  right: 2%; bottom: 0;
  width: 38%; aspect-ratio: 873 / 812;
  container-type: inline-size;
  display: grid; place-items: center;
}
/* 白丸の下地はリース画像自体に含まれるため不要 */
.hero-badge-circle { display: none; }
.hero-badge-wreath {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: fill; pointer-events: none;
}
.hero-badge-inner {
  position: relative; z-index: 3; text-align: center;
  /* リース内側の白円からはみ出さない幅に制限する */
  width: 74%;
}
/* 以下、フォントサイズは cqw(バッジ幅に対する%) で指定して完全に連動させる */
.hero-badge-heading {
  font-family: var(--font-head); font-weight: 700;
  font-size: 5.4cqw; color: var(--primary);
  letter-spacing: .02em; line-height: 1.5; white-space: nowrap;
}
.hero-badge-divider { width: 62%; height: auto; margin: 1.8cqw auto 2.2cqw; opacity: .9; }
.hero-badge-stats { display: grid; gap: 1.2cqw; }
.hero-badge-stat dt {
  font-size: 5cqw; color: var(--text); font-weight: 500;
  line-height: 1.4; letter-spacing: .02em; white-space: nowrap;
}
.hero-badge-stat dd { margin: 0; white-space: nowrap; }
.hero-badge-stat .num {
  font-family: var(--font-head); font-weight: 900; line-height: 1;
  color: var(--primary); font-size: 14.5cqw; letter-spacing: .01em;
}
.hero-badge-stat .unit {
  font-weight: 700; font-size: 5.8cqw;
  color: var(--primary); margin-left: .05em;
}

/* ---------- 診療時間・外来担当表(FV直下セクション) ---------- */
.schedule-section {
  /* FV直下に少し重ねて浮かせる(FVから自然につながるように) */
  padding-top: 0; padding-bottom: clamp(32px, 5vh, 64px);
  margin-top: clamp(-56px, -6vh, -32px);
  position: relative; z-index: 6;
}
/* 診療時間表は背景を敷かず、ページに溶け込ませる */
.hero-schedule {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: clamp(18px, 2vw, 28px) 0;
}
.hero-schedule-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.hero-schedule-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; color: var(--text);
  font-size: clamp(14px, 1.2vw, 17px);
}
.hero-schedule-icon { color: var(--primary); flex-shrink: 0; }
.hero-schedule-note { font-size: 11.5px; color: var(--sub); }
.hero-schedule-scroll { overflow-x: auto; }
.hero-schedule-table {
  width: 100%; border-collapse: collapse; table-layout: fixed;
  min-width: 640px;
}
.hero-schedule-table th,
.hero-schedule-table td {
  border: 1px solid var(--line);
  text-align: center; vertical-align: middle;
  padding: clamp(5px, .5vw, 9px) 4px;
  font-size: clamp(11px, .95vw, 13.5px);
}
.hero-schedule-table thead th {
  background: var(--bg-2); font-family: var(--font-head); font-weight: 700;
  color: var(--text);
}
.hero-schedule-table .th-time {
  background: var(--bg-2); font-weight: 700; white-space: nowrap;
  font-size: clamp(10.5px, .9vw, 12.5px); width: 15%;
}
/* 見出し行・時間列以外(担当医セル)は白地 */
.hero-schedule-table tbody td { background: #fff; }
.hero-schedule-table td span { display: block; line-height: 1.5; font-weight: 700; }
/* 男性=青 / 女性=赤 */
.doc-m { color: #3b7fc4; }
.doc-f { color: var(--primary); }
.doc-note { color: var(--sub); font-weight: 600 !important; font-size: 9.5px; line-height: 1.4 !important; }
.hero-schedule-table td.is-closed { color: #9a9a9a; font-weight: 500; }
.hero-schedule-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-top: 10px;
}
.hero-schedule-legend { display: flex; align-items: center; font-size: 11.5px; color: var(--text); }
.hero-schedule-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.hero-schedule-legend .dot-m { background: #3b7fc4; }
.hero-schedule-legend .dot-f { background: var(--primary); }
.hero-schedule-caution { font-size: 11px; color: var(--sub); }

/* ---------- hero レスポンシブ ----------
   641px〜1100px は「PCと同じ2カラムの構図」を保ったまま全体を等比縮小する。
   px指定を vw ベースに置き換えることで、レイアウトを崩さずに縮める。
   (1100px を基準に、各値を 1100px 時の実寸と一致する vw へ換算)          */
@media (min-width: 641px) and (max-width: 1100px) {
  .hero {
    /* 高さもコンテンツに追従させ、縮小時に間延びしないようにする */
    height: auto; min-height: 0;
    padding: calc(var(--header-h) + 5vw) 0 6vw;
  }
  /* 左カラムの内側余白のみ比率化。上方向のオフセットは
     ヘッダーに潜り込むため、この幅帯では解除する */
  .hero-content {
    padding-left: 4vw;
    transform: none;
  }
  /* 左カラムを少し広げてコピーの収まりを良くする */
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2vw; }
  /* 文字・ボタンのサイズは基本定義の clamp() に任せる
     (この幅帯だけ別式にすると 640px / 1100px で段差が出るため上書きしない) */
  /* 吹き出しも同じ比率で縮小。左に出しすぎるとコピーと重なるため写真側に寄せる */
  .hero-bubble {
    padding: 1.9vw 2.6vw;
    font-size: 1.45vw;
  }
  .hero-bubble-mom { left: 1%; top: 6%; }
  .hero-bubble-dad { right: -1%; top: 0; }
  .hero-bubble::before { width: 1.2vw; height: 1.2vw; bottom: -1vw; }
  .hero-bubble::after  { width: .62vw; height: .62vw; bottom: -2.2vw; }
  /* バラ束はボタンに重ならないよう、左下へ小さめに配置 */
  .hero-deco-rose { left: -2vw; bottom: 1vw; width: 19vw; }
  /* 写真が細くなる分バッジも小さくなるため、文字がリースに当たらないよう控えめに */
  .hero-badge { width: 44%; right: -4%; bottom: -2%; }
  .hero-badge-heading { font-size: 4.6cqw; }
  .hero-badge-stat dt { font-size: 4.2cqw; }
  .hero-badge-stat .num { font-size: 12cqw; }
  .hero-badge-stat .unit { font-size: 4.8cqw; }
  .hero-badge-divider { margin: 1.4cqw auto 1.8cqw; }
}
@media (max-width: 640px) {
  /* スマホは従来どおり縦積みに切り替える。
     縦積みは中身が高くなるため、中央揃え(.hero の align-items:center)のままだと
     はみ出した分が画面上へ抜けてコピーが隠れる。高さ固定を解いて上詰めにする */
  .hero {
    padding: calc(var(--header-h) + 24px) 0 56px;
    min-height: 0; height: auto; align-items: flex-start;
  }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-content { order: 1; padding-left: 0; transform: none; }
  .hero-visual { order: 2; width: 100%; max-width: 520px; margin: 0 auto; padding-right: 0; }
  .hero-buttons { justify-content: center; }
  /* 吹き出し・ボタニカル装飾は重なりが窮屈になるため非表示 */
  .hero-bubble { display: none; }
  .hero-deco { display: none; }
  /* バッジはビジュアルの下へ回して可読性を確保 */
  .hero-badge { position: relative; inset: auto; margin: 18px auto 0; width: min(76%, 340px); }
  /* 写真の外に出るので文字の白フチは不要 */
  .hero-badge-inner { text-shadow: none; }
  /* 画面が狭いときは1行に収まらないため、折り返しを許可する
     (サイズは 640px 地点で上の clamp() と連続するよう合わせている) */
  .hero-catch { font-size: clamp(20px, 3.4vw, 26px); line-height: 1.75; letter-spacing: .05em; white-space: normal; }
  .hero-lead { margin-top: clamp(12px, 3.4vw, 16px); font-size: clamp(12.5px, 1.95vw, 14.5px); line-height: 2; }
  /* スマホでは改行位置を固定せず画面幅に合わせて折り返す */
  .hero-lead br { display: none; }
  .hero-buttons { margin-top: clamp(18px, 5vw, 24px); gap: clamp(8px, 2.4vw, 10px); flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  /* 縦積みで幅は100%なので、文字だけ画面幅に連動させる */
  .hero-buttons .btn-lg { padding: .9em 1.4em; font-size: clamp(13px, 2.4vw, 15.5px); }
}

/* ---------- important news ---------- */
/* ---------- 重要なお知らせ(バナー型) ----------
   診療時間表の背景を外した分、こちらをカード化して目立たせる */
.important-news {
  /* 上はカレンダー側の下余白で足りているので詰め、下は次のセクションとの間隔を確保する */
  width: min(1100px, 92%); margin: -24px auto 72px;
  position: relative; z-index: 4;
}
.important-news a {
  display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px);
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(193, 62, 62, .18);
  border-left: 5px solid var(--important);
  border-radius: 14px;
  padding: clamp(14px, 1.5vw, 20px) clamp(16px, 1.8vw, 26px);
  box-shadow: 0 8px 26px rgba(120, 80, 70, .10);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.important-news a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(120, 80, 70, .16);
  border-color: rgba(193, 62, 62, .34);
}
.important-label {
  flex-shrink: 0;
  background: var(--important); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(11px, .95vw, 12.5px);
  padding: 5px 16px; border-radius: 999px;
  letter-spacing: .04em; white-space: nowrap;
}
.important-news time {
  color: var(--sub); font-size: clamp(12px, 1vw, 13px);
  flex-shrink: 0; white-space: nowrap;
}
.important-title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 600; transition: color .25s;
}
.important-news a:hover .important-title { color: var(--primary); }
/* 右端の矢印で「読める」ことを示す */
.important-news a::after {
  content: ""; flex-shrink: 0; margin-left: auto;
  width: 8px; height: 8px;
  border-top: 2px solid var(--important);
  border-right: 2px solid var(--important);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.important-news a:hover::after { transform: rotate(45deg) translate(2px, -2px); }
@media (max-width: 600px) {
  .important-news a { flex-wrap: wrap; gap: 8px 12px; }
  .important-title { white-space: normal; width: 100%; line-height: 1.7; }
  .important-news a::after { display: none; }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section-en {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: var(--primary); letter-spacing: .22em; text-transform: uppercase;
}
.section-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.6; letter-spacing: .06em;
  margin: 6px 0 96px;
}
.center { text-align: center; }
/* リード文がある場合はタイトル下の余白を詰めてリード側で受ける */
.section-title:has(+ .section-lead),
.section-title:has(+ .access-message) { margin-bottom: 20px; }
.section-lead {
  max-width: 720px; margin: 0 auto 72px;
  font-size: 15px; line-height: 2; color: var(--sub);
}
.section-foot { text-align: center; margin-top: 40px; }

/* reveal animation
   ふわりと下から出す。カーブを少し弾ませて柔らかい印象にする。 */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22, .9, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* グリッド内の子要素を少しずつ遅らせて、順に現れるようにする */
.service-grid .reveal.is-visible,
.event-grid .reveal.is-visible,
.doctor-grid .reveal.is-visible { transition-delay: var(--reveal-delay, 0s); }

/* ---------- 共通アニメーション ---------- */
/* ふわふわ上下に漂う(装飾向け) */
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
/* ゆっくり呼吸するような拡大縮小 */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* 動きを減らす設定の環境では、装飾的な動きを止める */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-blob, .hero-photo, .hero-bubble, .hero-deco-rose,
  .hero-bubble-float,
  .event-badge, .about-deco { animation: none !important; }
  /* スライド切替も止まるため、最初の組をそのまま表示しておく */
  .hero-bubble-set .hero-bubble { transition: none; opacity: 1; transform: none; }
}

/* ---------- about ---------- */
.about { background: var(--white); }
/* 左揃え見出しは本文と続けて読ませるため、下余白を詰める */
.about .section-title { margin-bottom: 28px; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.about-deco {
  position: absolute; z-index: -1; top: -22px; left: -22px;
  width: 46%; height: 46%;
  background: radial-gradient(circle, var(--accent-pale) 20%, transparent 21%) 0 0 / 18px 18px;
  border-radius: var(--radius);
  /* ドット装飾をゆっくり漂わせる */
  animation: floatSoft 7.5s ease-in-out infinite;
}
.about-text { color: var(--text); margin-bottom: 26px; }
.about-points { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.about-points li {
  flex: 1 1 130px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 10px; text-align: center;
}
.point-num {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 19px; color: var(--primary);
}
.point-label { font-size: 12px; color: var(--sub); }
@media (max-width: 840px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- services ----------
   写真を大きく取り、テキストを白いパネルとして写真に重ねるレイアウト。
   カード自体は透明で、写真ブロックと本文パネルの2層で構成する。
--------------------------------- */
.services { background: var(--bg-2); position: relative; overflow: hidden; }
/* 背景の淡い装飾玉(ヒーローと同じ色調で連続性を持たせる) */
.services::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 46vw; height: 46vw; right: -14vw; top: -10vw; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(217,92,92,.10), rgba(217,92,92,0) 70%);
}
.services::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 40vw; height: 40vw; left: -14vw; bottom: -16vw; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(75,169,167,.10), rgba(75,169,167,0) 70%);
}
.services .section-inner { position: relative; z-index: 1; }

.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(20px, 2.4vw, 32px);
  row-gap: clamp(36px, 4vw, 56px);
}
.service-card {
  position: relative;
  /* グリッド行の高さいっぱいに伸ばし、説明文の行数が違っても下端を揃える */
  display: flex; flex-direction: column; height: 100%;
  /* 重なったパネルが下にはみ出す分の余白を確保 */
  padding-bottom: 34px;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.service-card:hover { transform: translateY(-8px); }

/* --- 写真(大きめ 4:3・角丸強め) --- */
.service-photo {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: 24px; flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(54, 42, 42, .10);
  /* 読み込み前でも高さが崩れないよう下地を敷く */
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.service-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.service-card:hover .service-photo img { transform: scale(1.07); }
/* 写真下端をわずかに沈めて、白パネルとの境界をなじませる */
.service-photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(to top, rgba(54,42,42,.24), rgba(54,42,42,0));
  opacity: .9; transition: opacity .4s ease;
}
.service-card:hover .service-photo::after { opacity: .5; }

/* --- 本文パネル(写真に重ねる) --- */
.service-body {
  position: relative; z-index: 2;
  /* 写真の上に食い込ませ、左右も少し内側に寄せる */
  margin: -56px 14px -34px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 20px 20px 18px;
  /* 余った高さをパネルが受けて、カード下端と「詳しく見る」の位置を揃える */
  flex: 1;
  display: flex; flex-direction: column; gap: 7px;
  box-shadow: 0 10px 28px rgba(54, 42, 42, .10);
  transition: box-shadow .4s ease, transform .45s cubic-bezier(.22,.61,.36,1);
}
.service-card:hover .service-body {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(54, 42, 42, .16);
}
.service-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: 17.5px; line-height: 1.5; letter-spacing: .02em;
}
/* タイトル下の短いアクセント罫 */
.service-title::after {
  content: ""; display: block; width: 26px; height: 2px; border-radius: 2px;
  margin-top: 9px; background: var(--primary); opacity: .85;
  transition: width .45s cubic-bezier(.22,.61,.36,1);
}
.service-card:hover .service-title::after { width: 46px; }
.service-desc { font-size: 13px; line-height: 1.85; color: var(--sub); flex: 1; }
.service-more {
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
  color: var(--primary); align-self: flex-start;
  display: inline-flex; align-items: center; gap: .35em;
  margin-top: 2px;
}
.service-arrow { display: inline-block; transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.service-card:hover .service-arrow { transform: translateX(5px); }

@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr; row-gap: 30px; }
  /* 1列時は重なりを浅くして、写真の見える面積を確保する */
  .service-body { margin: -44px 16px -30px; }
}
/* 動きを控えたい設定の環境では変形アニメーションを無効化 */
@media (prefers-reduced-motion: reduce) {
  .service-card, .service-body, .service-photo img,
  .service-title::after, .service-arrow { transition: none; }
  .service-card:hover, .service-card:hover .service-body,
  .service-card:hover .service-arrow { transform: none; }
}

/* ---------- events ---------- */
.events { background: var(--bg); }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
/* カード枠は持たず、円形のイラスト+その下のテキストで見せる */
.event-card {
  position: relative;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
/* 円と「開催中」の帯をまとめるラッパー(バッジの位置基準) */
.event-media {
  position: relative;
  display: block; width: 100%; max-width: 330px; margin-inline: auto;
}
/* イラストを丸型に切り抜く */
.event-illust {
  position: relative;
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 50%; overflow: hidden;
  background: #fff;
  border: 2px solid var(--primary-pale);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.event-illust img {
  width: 88%; height: 88%; object-fit: contain;
  transition: transform .3s;
}
.event-card:hover .event-illust {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.event-card:hover .event-illust img { transform: scale(1.05); }
.event-title {
  font-family: var(--font-head); font-weight: 700; font-size: 15.5px;
  line-height: 1.7; transition: color .25s;
}
.event-card:hover .event-title { color: var(--primary); }
/* 開催中バッジ:円の縁のライン上に中心が来るよう重ねる。
   帯の高さの半分だけ上へずらすことで、ライン=帯の中心線になる。 */
.event-badge {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: var(--primary); color: #fff;
  font-family: var(--font-head); font-weight: 700;
  font-size: 13px; letter-spacing: .08em;
  padding: 6px 22px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(217, 92, 92, .3);
}
/* 開催中のカードは「円+帯」をまるごとふわふわ拡大縮小させる。
   .event-media を包んでいるので、中の円と帯が一体で動く。 */
.event-card.is-ongoing .event-media {
  animation: eventFloat 2.8s ease-in-out infinite;
  transform-origin: center center;
}
@keyframes eventFloat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}
/* 動きを減らす設定の環境ではアニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  .event-card.is-ongoing .event-media { animation: none; }
}
@media (max-width: 840px) {
  .event-grid { grid-template-columns: 1fr; gap: 34px; }
  .event-media { max-width: 260px; }
}

/* ---------- news ---------- */
.news { background: var(--bg-2); }
.news-grid { display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: start; }
.news-head { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.news-head .btn { margin-top: 18px; }
.news-list { border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a {
  display: flex; gap: 24px; align-items: baseline;
  padding: 18px 8px; transition: background .25s;
  border-radius: 8px;
}
.news-list a:hover { background: rgba(217, 92, 92, .05); }
.news-list time { flex-shrink: 0; font-size: 13.5px; color: var(--sub); font-weight: 500; }
.news-list span { font-weight: 500; }
.news-list a:hover span { color: var(--primary); }
.news-empty { padding: 18px 8px; color: var(--sub); }
@media (max-width: 840px) { .news-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- column banner ---------- */
.column-banner { background: var(--bg); }
.column-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: linear-gradient(120deg, var(--accent-pale), #fff 70%);
  border-radius: calc(var(--radius) * 1.4); overflow: hidden; box-shadow: var(--shadow);
}
.column-photo img { width: 100%; height: 100%; object-fit: cover; }
.column-body { padding: 54px 48px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.column-body .section-title { font-size: clamp(20px, 2.2vw, 26px); }
@media (max-width: 840px) {
  .column-grid { grid-template-columns: 1fr; }
  .column-body { padding: 32px 26px 40px; }
}

/* ---------- sns(Instagram) ----------
   チェキ(インスタントカメラ)風のフレーム。
   下側の余白を広めに取り、少しずつ角度を変えて手で並べた雰囲気を出す。
--------------------------------- */
.sns { background: var(--bg-2); }
.sns-photos {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 26px; align-items: start;
  max-width: 940px; margin: 0 auto;
}
.sns-photo a { display: block; }
/* チェキ本体:白フチ + 下だけ広い余白 */
.sns-photo-frame {
  display: block; background: #fff;
  padding: 12px 12px 0;
  border-radius: 3px;
  box-shadow: var(--shadow);
  transition: box-shadow .3s ease;
}
.sns-photo-frame img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 1px; background: var(--bg-2);
}
.sns-photo-caption {
  display: block; background: #fff;
  padding: 12px 12px 18px;
  border-radius: 0 0 3px 3px;
  font-family: var(--font-head); font-size: 12.5px; line-height: 1.5;
  color: var(--sub); text-align: center;
}
/* 手で並べたようなランダムな傾き */
.sns-photo { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.sns-photo-1 { transform: rotate(-2.2deg); }
.sns-photo-2 { transform: rotate(1.6deg)  translateY(10px); }
.sns-photo-3 { transform: rotate(-1.1deg) translateY(-4px); }
.sns-photo-4 { transform: rotate(2.4deg)  translateY(8px); }
/* ホバーでまっすぐに立ち上がる */
.sns-photo:hover { transform: rotate(0deg) translateY(-8px); z-index: 2; position: relative; }
.sns-photo:hover .sns-photo-frame { box-shadow: var(--shadow-hover); }
.sns-btn { gap: .6em; }
.sns-btn-icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }

@media (max-width: 840px) {
  .sns-photos { grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 460px; }
}
/* 幅の狭い端末では傾きを浅くして、はみ出しと窮屈さを避ける */
@media (max-width: 480px) {
  .sns-photos { gap: 14px; max-width: 340px; }
  .sns-photo-1 { transform: rotate(-1.2deg); }
  .sns-photo-2 { transform: rotate(.9deg)  translateY(6px); }
  .sns-photo-3 { transform: rotate(-.7deg) translateY(-2px); }
  .sns-photo-4 { transform: rotate(1.3deg) translateY(5px); }
  .sns-photo-caption { padding: 10px 8px 14px; font-size: 11.5px; }
  .sns-photo-frame { padding: 8px 8px 0; }
}

/* ---------- access ---------- */
.access { background: var(--white); }
.access-message { margin-bottom: 48px; }
/* ページ内リンク(#reserve)の着地点。表示上は何も持たない */
.anchor-target { display: block; }
/* アクセス内に置く診療時間表。
   FV直下用の幅指定(.hero-schedule)を打ち消し、セクション幅に合わせる */
.access-schedule { margin-bottom: 64px; }
.access-schedule .hero-schedule { width: 100%; margin: 0; padding: 0; }

/* 上の診療時間表と左右の端を揃える。地図は小さめ、住所は残り幅 */
.access-grid {
  display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 48px; align-items: center;
}
.access-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.access-map iframe { width: 100%; height: 100%; border: 0; }
.access-address { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.access-route { color: var(--sub); font-size: 14px; margin-bottom: 0; }
@media (max-width: 840px) {
  .access-grid { grid-template-columns: 1fr; gap: 28px; }
  .access-map { aspect-ratio: 16 / 11; }
}

/* ---------- footer ---------- */
.site-footer { background: #f0e9e5; padding: 64px 0 0; margin-bottom: 0; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px 48px;
  display: grid; grid-template-columns: 1.3fr 1.4fr .9fr; gap: 44px;
}
.footer-logo { display: block; margin-bottom: 18px; }
.footer-logo img { display: block; height: 46px; width: auto; max-width: 100%; }
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.footer-address { font-size: 13.5px; color: var(--sub); margin-bottom: 10px; }
.footer-tel { font-family: var(--font-head); font-weight: 700; }
.footer-tel a { color: var(--primary); }
.footer-nav { display: flex; gap: 44px; }
.footer-nav a { font-size: 14px; color: var(--sub); display: inline-block; padding: 5px 0; transition: color .25s; }
.footer-nav a:hover { color: var(--primary); }
.footer-cta { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.footer-cta .btn-ghost { color: var(--primary); border-color: var(--primary); }
.copyright {
  border-top: 1px solid var(--line);
  text-align: center; font-size: 12px; color: var(--sub);
  padding: 20px;
}
@media (max-width: 840px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-logo img { height: 38px; }
  .site-footer { padding-bottom: 72px; }
}

/* ---------- mobile fixed CTA ---------- */
.mobile-cta {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
  display: none; grid-template-columns: 1fr 1fr;
  box-shadow: 0 -6px 24px rgba(54, 42, 42, .16);
}
.mobile-cta a {
  padding: 15px; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: #fff;
}
.mobile-cta-tel { background: var(--accent); }
.mobile-cta-web { background: var(--primary); }
@media (max-width: 840px) { .mobile-cta { display: grid; } }
@media (max-width: 840px) { .btn-reserve { display: none; } }

/* ---------- 右下の追従CTA(PCのみ) ----------
   スクロールでヒーローを抜けたら現れる。
   文言は常時表示。ホバーで軽く浮かせるだけにとどめる。
--------------------------------- */
.float-cta {
  position: fixed; z-index: 91; right: 22px; bottom: 26px;
  width: 132px; height: 132px; box-sizing: border-box;
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  background: var(--primary); color: #fff;
  padding: 0 18px; border-radius: 50%; text-align: center;
  box-shadow: 0 8px 24px rgba(217, 92, 92, .35);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease, background .25s ease;
}
.float-cta.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.float-cta:hover,
.float-cta:focus-visible { background: var(--primary-dark); transform: translateY(-3px); }
/* SVGはインライン既定だとベースラインに乗って下寄りになるためblock化する */
.float-cta-icon {
  flex-shrink: 0; display: block;
  transform-origin: 50% 100%;
  animation: float-cta-hop 1.8s ease-in-out infinite;
}
/* ぴょんぴょん跳ねる。着地時に軽く潰して弾む感じを出す */
@keyframes float-cta-hop {
  0%, 45%, 100% { transform: translateY(0) scale(1, 1); }
  10%           { transform: translateY(0) scale(1.12, .88); }
  25%           { transform: translateY(-9px) scale(.94, 1.06); }
  38%           { transform: translateY(0) scale(1.1, .9); }
}
/* ホバー中はテンポを上げる */
.float-cta:hover .float-cta-icon,
.float-cta:focus-visible .float-cta-icon { animation-duration: 1s; }
.float-cta-body { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.float-cta-sub  { font-size: 10px; opacity: .9; letter-spacing: .02em; white-space: nowrap; }
/* 円内に収めるため2行に折り返す(nowrapにしない) */
.float-cta-main { font-family: var(--font-head); font-weight: 700; font-size: 13.5px; }
/* スマホは下部のCTA帯を使うため非表示 */
@media (max-width: 840px) { .float-cta { display: none; } }
/* 動きを抑える設定の場合は浮き上がりと跳ねを止める */
@media (prefers-reduced-motion: reduce) {
  .float-cta { transition: opacity .2s ease; }
  .float-cta:hover, .float-cta:focus-visible { transform: none; }
  .float-cta-icon { animation: none; }
}

/* ---------- page hero (下層ページ共通) ---------- */
.page-hero {
  position: relative; height: 480px; overflow: hidden;
  background-size: cover; background-position: center;
  display: grid; place-items: center;
}
.page-hero-overlay { position: absolute; inset: 0; background: rgba(54, 42, 42, .38); }
.page-hero-body { position: relative; z-index: 2; text-align: center; color: #fff; }
.page-hero-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(28px, 4vw, 42px); letter-spacing: .1em;
  text-shadow: 0 3px 20px rgba(54, 42, 42, .5);
}
.page-hero-en {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  letter-spacing: .24em; text-transform: uppercase; opacity: .9; margin-top: 6px;
}
.page-hero .hero-wave svg { height: 44px; }
@media (max-width: 840px) { .page-hero { height: 320px; } }

/* ---------- breadcrumb ---------- */
.breadcrumb { padding: 18px 0 0; font-size: 12.5px; color: var(--sub); }
.breadcrumb .section-inner { display: flex; gap: 10px; align-items: center; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- treatment page ---------- */
.treatment-intro { padding-bottom: 40px; }
.treatment-lead { max-width: 720px; margin: 0 auto; color: var(--sub); text-align: left; }

.treatment-anchors { padding-bottom: 20px; }
.anchor-box {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.anchor-box a {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
  padding: 10px 14px; border-radius: 10px;
  transition: background .25s, color .25s;
}
.anchor-box a::before {
  content: "▾"; color: var(--primary); font-size: 12px;
}
.anchor-box a:hover { background: var(--primary-pale); color: var(--primary); }
@media (max-width: 840px) { .anchor-box { grid-template-columns: repeat(2, 1fr); padding: 18px; } }
@media (max-width: 540px) { .anchor-box { grid-template-columns: 1fr; } }

.treatment-list { padding-top: 40px; }
.treatment-cat { margin-bottom: 56px; scroll-margin-top: calc(var(--header-h) + 20px); }
.treatment-cat-title {
  font-family: var(--font-head); font-weight: 700; font-size: 24px;
  padding-left: 18px; border-left: 6px solid var(--primary);
  margin-bottom: 22px; line-height: 1.5;
}
.treatment-items {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.treatment-items a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.treatment-items a:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.treatment-arrow { color: var(--primary); flex-shrink: 0; transition: transform .25s; }
.treatment-items a:hover .treatment-arrow { transform: translateX(4px); }
@media (max-width: 1000px) { .treatment-items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .treatment-items { grid-template-columns: 1fr; } }

/* ---------- TOP: 治療一覧ダイジェスト ---------- */
.top-treatments { margin-top: 56px; }
.top-treatments-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 38px;
}
.top-treatments-title {
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  margin-bottom: 22px; text-align: center;
}
.top-treatment-group { padding: 14px 0; border-top: 1px dashed var(--line); display: flex; gap: 20px; }
.top-treatment-group:last-child { border-bottom: 1px dashed var(--line); }
.top-treatment-cat {
  flex-shrink: 0; width: 190px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--primary);
  padding-top: 5px;
}
.top-treatment-links { display: flex; flex-wrap: wrap; gap: 8px; }
.top-treatment-links a {
  font-size: 13px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 14px;
  transition: background .25s, color .25s, border-color .25s;
}
.top-treatment-links a:hover {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
@media (max-width: 840px) {
  .top-treatments-box { padding: 24px 20px; }
  .top-treatment-group { flex-direction: column; gap: 8px; }
  .top-treatment-cat { width: auto; }
}

/* ---------- about: 受診の流れ ---------- */
.flow { padding-bottom: 30px; }
.flow-steps { max-width: 820px; margin: 0 auto; position: relative; }
.flow-steps::before {
  content: ""; position: absolute; left: 33px; top: 20px; bottom: 20px;
  width: 3px; background: var(--primary-pale); border-radius: 2px;
}
.flow-step {
  position: relative;
  display: flex; gap: 26px; align-items: flex-start;
  padding: 20px 0;
}
.flow-num {
  flex-shrink: 0; position: relative; z-index: 1;
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 21px;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(217, 92, 92, .35);
}
.flow-body {
  flex: 1;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 30px; box-shadow: var(--shadow);
}
.flow-title { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.flow-body p { font-size: 14.5px; }
.flow-body small { color: var(--important); font-size: 12.5px; }
@media (max-width: 600px) {
  .flow-steps::before { left: 24px; }
  .flow-step { gap: 16px; }
  .flow-num { width: 48px; height: 48px; font-size: 16px; }
  .flow-body { padding: 18px 20px; }
}

/* ---------- about: お願い ---------- */
.notices { padding-top: 0; padding-bottom: 40px; }
.notice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 980px; margin: 0 auto; }
.notice-card {
  background: var(--white); border: 2px solid var(--primary); border-radius: var(--radius);
  padding: 28px 30px;
}
.notice-title {
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  color: var(--primary); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.notice-title::before { content: "！"; font-size: 14px; background: var(--primary); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.notice-card p { font-size: 14px; }
@media (max-width: 840px) { .notice-grid { grid-template-columns: 1fr; } }

/* ---------- about: 院内紹介 ---------- */
.facility { background: var(--bg-2); }
.facility-block { margin-bottom: 56px; }
.facility-block:last-child { margin-bottom: 0; }
.facility-text { max-width: 820px; margin: 0 auto 26px; text-align: center; }
.facility-title {
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
  margin-bottom: 12px; position: relative; display: inline-block;
  padding-bottom: 8px;
}
.facility-title::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 44px; height: 3px; border-radius: 2px; background: var(--primary);
}
.facility-text p { font-size: 14.5px; color: var(--sub); }
.facility-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.facility-photos img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.facility-photos img:hover { transform: scale(1.02); }
@media (max-width: 600px) { .facility-photos { grid-template-columns: 1fr; } }

/* ---------- staff: 院長 ---------- */
.director-grid {
  display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: center;
  margin-bottom: 48px;
}
.director-photo img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
}
.director-message { font-size: 16px; line-height: 2.1; margin-bottom: 26px; }
.doctor-name { display: flex; align-items: baseline; gap: 14px; }
.doctor-name-main { font-family: var(--font-head); font-weight: 700; font-size: 24px; }
.doctor-role {
  font-family: var(--font-head); font-weight: 700; font-size: 13px; color: #fff;
  background: var(--primary); border-radius: 999px; padding: 3px 16px;
}
.director-detail {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 40px; box-shadow: var(--shadow);
}
.detail-title {
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  color: var(--primary); margin-bottom: 16px;
}
.career-list div {
  display: flex; gap: 18px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.career-list div:last-child { border-bottom: none; }
.career-list dt {
  flex-shrink: 0; width: 84px;
  font-family: var(--font-head); font-weight: 700; color: var(--sub);
}
.license-list li {
  position: relative; padding: 6px 0 6px 18px; font-size: 14px;
}
.license-list li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
@media (max-width: 1000px) {
  .director-grid { grid-template-columns: 1fr; gap: 28px; }
  .director-photo { max-width: 420px; margin: 0 auto; }
  .director-detail { grid-template-columns: 1fr; gap: 26px; padding: 26px 24px; }
}

/* ---------- staff: 医師カード ---------- */
.doctors { background: var(--bg-2); }
.doctor-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px; margin-bottom: 32px;
}
.doctor-card:last-child { margin-bottom: 0; }
.doctor-photo img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius);
}
.doctor-message { font-size: 14.5px; margin-bottom: 20px; }
.doctor-card .doctor-name { margin-bottom: 20px; }
.doctor-card .doctor-name-main { font-size: 21px; }
.doctor-licenses {
  background: var(--bg); border-radius: 14px; padding: 20px 24px;
}
.doctor-field {
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
  color: var(--primary); margin-bottom: 8px;
}
.detail-title-sm {
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  color: var(--sub); margin-bottom: 4px;
}
.doctor-licenses .license-list li { font-size: 13px; padding: 4px 0 4px 16px; }
.doctor-licenses .license-list li::before { top: 12px; width: 6px; height: 6px; }
@media (max-width: 840px) {
  .doctor-card { grid-template-columns: 1fr; gap: 22px; padding: 24px 22px; }
  .doctor-photo { max-width: 280px; margin: 0 auto; }
}

/* ---------- recruit ---------- */
.recruit-intro { padding-bottom: 30px; }
.job-chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.job-chip {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  border-radius: 999px; padding: 10px 24px;
}
.job-chip small { font-size: 11.5px; font-weight: 500; }
.job-chip.is-closed { background: var(--bg-2); color: var(--sub); border: 1px solid var(--line); }
.job-chip.is-open {
  background: var(--primary); color: #fff;
  box-shadow: 0 6px 18px rgba(217, 92, 92, .35);
  transition: transform .25s, background .25s;
}
.job-chip.is-open:hover { transform: translateY(-2px); background: var(--primary-dark); }

.job-section { padding: 64px 0; }
.job-section.alt { background: var(--bg-2); }
.job-title {
  font-family: var(--font-head); font-weight: 700; font-size: 24px;
  padding-left: 18px; border-left: 6px solid var(--primary);
  margin-bottom: 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.job-status {
  font-size: 12.5px; font-weight: 700; color: var(--sub);
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 16px;
}
.job-section.alt .job-status { background: #fff; }
.job-status.is-open { background: var(--primary); border-color: var(--primary); color: #fff; }
.job-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.job-table div {
  display: flex; gap: 24px;
  padding: 18px 0; border-bottom: 1px dashed var(--line);
}
.job-table div:first-child { padding-top: 0; }
.job-table dt {
  flex-shrink: 0; width: 150px;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--primary);
}
.job-table dd { font-size: 14px; }
.job-table small { color: var(--important); }
.job-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 840px) {
  .job-grid { grid-template-columns: 1fr; gap: 24px; }
  .job-table div { flex-direction: column; gap: 4px; }
  .job-table dt { width: auto; }
}

/* ---------- recruit: contact form ---------- */
.recruit-contact { background: var(--white); }
.contact-form {
  max-width: 640px; margin: 0 auto;
  background: #fff; border-radius: var(--radius);
  border: 4px double var(--important);
  box-shadow: var(--shadow);
  padding: 40px 44px;
}
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.req { color: var(--important); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-family: var(--font-body); font-size: 15px;
  background: var(--bg); transition: border-color .25s, background .25s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.form-agree label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; cursor: pointer; }
.form-agree input { width: 18px; height: 18px; accent-color: var(--primary); }
.form-submit { text-align: center; margin-top: 26px; }
@media (max-width: 600px) { .contact-form { padding: 26px 22px; } }

/* ---------- news 一覧 ---------- */
.page-hero-sm { height: 480px; }
@media (max-width: 840px) { .page-hero-sm { height: 320px; } }
.news-list-lg { border-top: 1px solid var(--line); }
.news-list-lg a { padding: 24px 12px; }
.news-list-lg .news-more {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--primary);
  transition: transform .25s;
}
.news-list-lg a:hover .news-more { transform: translateX(4px); }
.no-content {
  text-align: center; color: var(--sub);
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  padding: 70px 0;
}
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination .page-numbers {
  display: inline-grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 8px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  background: #fff; border: 1px solid var(--line);
  transition: background .25s, color .25s;
}
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination a.page-numbers:hover { background: var(--primary-pale); color: var(--primary); }

/* ---------- news 詳細 ---------- */
.news-single-inner { max-width: 880px; }
.news-single-head {
  border-bottom: 2px solid var(--line); padding-bottom: 22px; margin-bottom: 30px;
}
.news-single-head time { color: var(--sub); font-size: 14px; font-weight: 500; }
.news-single-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(21px, 2.6vw, 28px); line-height: 1.7; margin-top: 8px;
}
.news-single-body { font-size: 15px; line-height: 2.1; }
.news-single-body p { margin-bottom: 1.2em; }
.news-single-body strong { font-weight: 700; }
.news-single-body u { text-underline-offset: 3px; }
.news-single-body img { border-radius: var(--radius); margin: 1em 0; }

/* ---------- column 一覧 ---------- */
.column-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.column-tab {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  padding: 8px 22px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line);
  transition: background .25s, color .25s, border-color .25s;
}
.column-tab.is-active, .column-tab:hover {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.column-grid-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.column-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.column-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.column-card-photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.column-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.column-card:hover .column-card-photo img { transform: scale(1.05); }
.column-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.column-card-body time { font-size: 12.5px; color: var(--sub); }
.column-card-title { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; line-height: 1.7; }
@media (max-width: 1000px) { .column-grid-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .column-grid-list { grid-template-columns: 1fr; } }

/* ---------- 治療詳細 (td-) ---------- */
.td-inner { max-width: 920px; }
.td-lead-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px); line-height: 1.8;
  text-align: center; margin-bottom: 18px; color: var(--primary);
}
.td-intro { text-align: center; color: var(--sub); margin-bottom: 30px; }
.td-portrait { margin: 8px auto 26px; text-align: center; }
.td-portrait img { width: min(360px, 78vw); height: auto; margin: 0 auto; }
.td-h {
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
  padding-left: 16px; border-left: 6px solid var(--primary);
  margin: 52px 0 18px; line-height: 1.5;
}
.td-content .td-h:first-of-type { margin-top: 36px; }
.td-content p { margin-bottom: 1em; }
.td-list { margin: 14px 0; }
.td-list li {
  position: relative; padding: 8px 0 8px 26px;
  border-bottom: 1px dashed var(--line); font-size: 14.5px;
}
.td-list li::before {
  content: "✓"; position: absolute; left: 4px; top: 8px;
  color: var(--accent); font-weight: 700;
}
.td-flow { margin: 14px 0; counter-reset: tdflow; list-style: none; }
.td-flow li {
  position: relative; counter-increment: tdflow;
  padding: 14px 0 14px 52px; border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.td-flow li::before {
  content: counter(tdflow);
  position: absolute; left: 4px; top: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
}
.td-flow li strong { font-family: var(--font-head); }
.td-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin: 20px 0;
}
.td-feature {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px 22px; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.8;
}
.td-feature .num {
  display: block; font-size: 26px; font-weight: 700; color: var(--primary);
  margin-bottom: 8px;
}
.td-faq { margin: 16px 0 28px; }
.td-faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 12px; overflow: hidden;
}
.td-faq summary {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  transition: background .25s;
}
.td-faq summary::-webkit-details-marker { display: none; }
.td-faq summary::after {
  content: "▾"; margin-left: auto; color: var(--primary);
  transition: transform .25s;
}
.td-faq details[open] summary::after { transform: rotate(180deg); }
.td-faq summary:hover { background: var(--primary-pale); }
.faq-q {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 700;
  display: inline-grid; place-items: center;
}
.td-faq details p {
  padding: 4px 20px 18px 68px; font-size: 14px; color: var(--sub); margin: 0;
}
.td-cta {
  background: var(--white); border-radius: var(--radius);
  border: 4px double var(--important);
  padding: 40px 36px; text-align: center; margin-top: 52px;
}
.td-cta .td-cta-title {
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
  margin-bottom: 14px; color: var(--primary);
}
.td-cta p { color: var(--text); font-size: 14.5px; margin-bottom: 22px; }
.td-common-faq { padding-top: 0; }
.td-common-faq .td-h { margin-top: 20px; }
.td-h3 {
  font-family: var(--font-head); font-weight: 700; font-size: 16.5px;
  color: var(--primary); margin: 26px 0 6px;
}
.td-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0;
}
.td-gallery img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 14px; box-shadow: var(--shadow);
  transition: transform .3s;
}
.td-gallery img:hover { transform: scale(1.03); }
.td-gallery.is-landscape img { aspect-ratio: 4 / 3; }
@media (max-width: 600px) { .td-gallery { grid-template-columns: repeat(2, 1fr); } }
.td-carousel {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 22px 0; padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.td-carousel img {
  flex: 0 0 auto; width: min(320px, 72vw); aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 14px; box-shadow: var(--shadow); scroll-snap-align: start;
}
.td-figure { margin: 22px auto; max-width: 560px; }
.td-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 600px) {
  .td-faq details p { padding-left: 20px; }
  .td-cta { padding: 28px 20px; }
}

/* ヒーローはヘッダー背後まで全面表示にして境目をなくす(ヘッダーは透明→スクロールで背景表示)。
   各テンプレは先頭が .hero / .page-hero なので本文をずらさない。 */
body { padding-top: 0; }
/* ヒーロー(.hero / .page-hero)を持たないページだけ、ヘッダー背後に本文が隠れないよう余白を確保 */
main:not(:has(.hero)):not(:has(.page-hero)) { padding-top: var(--header-h); }
