/* ============================================================
   style_v2_polish.css (2026-06-07 ③ — デザイン磨き込み)
   ユーザー指摘の7課題 (Hero 1a/1b/1c・情報バンド 2a/2b/2c・お悩み 3a/3b)
   への対応 + 全体タイポグラフィ刷新。
   既存 style_v2_revised.css と style_v2_lpv2.css の後に読み込み、
   競合する宣言だけ上書きする方針。
   ============================================================ */

/* ===== ① タイポグラフィ刷新 ===== */
/* Shippori Mincho（癒し系LP定番・字面が大きい） + Noto Sans JP */
:root {
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic Medium", sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-eyebrow: "Cormorant Garamond", "Times New Roman", serif;
  --gap-section: 112px;   /* セクション間の呼吸を広く */
}
body {
  font-family: var(--font-sans);
  font-feature-settings: "palt" 1, "kern" 1;
}
.section-title, .hero-title, .reason-row-title, .doctor-name, .menu-card h3,
.welcome-intro p, .ai-summary-label, .voice-row-name {
  font-family: var(--font-serif);
}
.section-head { margin-bottom: var(--gap-5); }   /* 64px → 編集的余白 */
section { padding: var(--gap-section) 0; }

/* ===== Hero v3：画面上部 全幅 黒スクリムバンド + 左寄せ1行メッセージ ===== */
.hero {
  padding: 0;            /* バンド自体が余白を持つ */
  min-height: 560px;
  position: relative;
  overflow: hidden;
}

/* SS のスクリムは全廃 → 上部バンドだけが文字可読性を担う */
.hero:has(.hero-bg-slides)::after {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 60%,
    rgba(250,247,242,0.25) 90%,
    rgba(250,247,242,0.75) 100%   /* 情報バンドへの自然な導線のみ残す */
  );
}

/* 上部 全幅 黒バンド：ヘッダー直下に来る・横一杯・ロゴと左端整列 */
.hero-top-band {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 36px 0 52px;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.62) 0%,
    rgba(0,0,0,0.50) 60%,
    rgba(0,0,0,0.00) 100%
  );
}
.hero-top-band .container {
  /* ヘッダーロゴと同じコンテナ幅・左右パディングで左端整列 */
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap-3);
}
.hero-title--single {
  /* 1行強制・コンテナ幅に応じて自動縮小 */
  display: inline-block;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(20px, 3.6vw, 34px);
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.55),
    0 2px 14px rgba(0,0,0,0.40);
  white-space: nowrap;       /* 1行強制 */
  text-align: left;
  max-width: 100%;
}

/* SP：1行を保つため細かい段階で縮小・必要なら横スクロール禁止のため overflow-hidden */
@media (max-width: 720px) {
  .hero { min-height: 460px; }
  .hero-top-band { padding: 26px 0 40px; }
  .hero-title--single {
    font-size: clamp(15px, 4.4vw, 22px);
    letter-spacing: 0.03em;
  }
}
@media (max-width: 380px) {
  /* 極小端末では 1行内に収まる最低サイズに調整 */
  .hero-title--single {
    font-size: 14px;
    letter-spacing: 0.02em;
  }
}

/* 旧テキストエリアの中央カード残骸を非表示（互換のため） */
.hero-top-msg { display: none !important; }
.hero-sub--center { display: none !important; }

/* ===== 情報バンド (2a / 2b / 2c) ===== */
/* 旧 .info-band-pills（3 pill）を維持しつつ、★pill を信頼アンカー(リンク)化 */
.info-band {
  padding: 18px 0;
}
.info-band-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

/* 1) 信頼アンカー = ★pill（左・クリックで Google マップ） */
.info-anchor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFF8EC, #fff);
  border: 1px solid #F2DDB3;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  box-shadow: var(--shadow-s);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.info-anchor:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-m);
  text-decoration: none;
}
.info-anchor-stars {
  color: var(--color-star);
  font-size: 16px;
  letter-spacing: 1px;
}
.info-anchor strong {
  font-weight: 700;
  font-size: 15px;
}
.info-anchor-sep { color: var(--color-muted); margin: 0 2px; }

/* 2) 営業情報を1行ミニサマリで常時可視（details 廃止） */
.info-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-soft);
}
.info-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.info-summary-sep {
  color: var(--color-line);
  font-weight: 100;
}

/* 3) CTA actions：3つ並びを抑制してミニ化 */
.info-band-v2 .info-band-actions { gap: 8px; }
.info-band-v2 .info-band-actions .btn {
  font-size: 13px;
  padding: 10px 16px;
}

/* 旧 info-band-pills/info-band-hours は v2 では非表示 */
.info-band-v2 .info-band-pills,
.info-band-v2 .info-band-hours { display: none; }
/* PoA バッジは情報バンド内では非表示（重複防止） */
.info-band-v2 .poa-badge { display: none; }

@media (max-width: 900px) {
  .info-band-inner { grid-template-columns: 1fr; text-align: center; }
  .info-summary { justify-content: center; }
  .info-band-actions { justify-content: center; }
}

/* ===== お悩みセクション Ruffree式（3a / 3b） ===== */
/* 旧 .trouble-list (絵文字+1行) を上書き */
.trouble-list { display: none !important; }
.trouble-cta {
  text-align: center;
  font-size: 15px;
  color: var(--color-text-soft);
  margin: var(--gap-3) auto 0;
  max-width: 720px;
}

.trouble-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto var(--gap-3);
}
.trouble-card {
  background: #fff;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  border: 1px solid var(--color-line);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.trouble-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
}
.trouble-card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-primary-l);
}
.trouble-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.trouble-card:hover .trouble-card-media img {
  transform: scale(1.05);
}
.trouble-card-media::after {
  /* 写真とタイトルの境目を柔らかく */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.6));
  pointer-events: none;
}
.trouble-card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin: 18px 20px 8px;
  letter-spacing: 0.02em;
  line-height: 1.55;
}
.trouble-card-body {
  font-size: 13px;
  color: var(--color-text-soft);
  margin: 0 20px 20px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .trouble-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 480px) {
  .trouble-grid { grid-template-columns: 1fr; }
}

/* ===== 全体微調整 ===== */
/* セクションタイトルの呼吸 */
.section-title {
  font-size: clamp(24px, 3.0vw, 34px);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.55;
}
.section-lead {
  font-size: 15px;
  line-height: 2;
  max-width: 720px;
  margin: 16px auto var(--gap-4);
}

/* PoA バッジは「お問い合わせCTA直前」のみ生かす（重複の最終整理） */
.contact-poa { margin-bottom: 28px; }

/* ============================================================
   A. お悩みカード→A要約 内部リンク化
   ============================================================ */
.trouble-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease;
}
.trouble-card-link:hover {
  text-decoration: none;
  transform: translateY(-4px);
}
.trouble-card-link:hover .trouble-card {
  box-shadow: var(--shadow-l);
  border-color: var(--color-primary);
}
.trouble-card-link:hover .trouble-card-media img {
  transform: scale(1.06);
}
.trouble-card-link:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: var(--radius-m);
}

/* カード末尾の小さな CTA リンク */
.trouble-card-cta {
  display: block;
  margin: 0 20px 18px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-line);
  font-family: var(--font-eyebrow);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-primary-d);
  font-weight: 500;
  transition: color .15s ease, gap .2s ease;
}
.trouble-card-link:hover .trouble-card-cta {
  color: var(--color-cta-d);
}

/* スムーズスクロール（ブラウザ既定 + アクセスビリティ尊重） */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trouble-card-link, .trouble-card-link:hover .trouble-card-media img {
    transition: none; transform: none;
  }
}

/* ============================================================
   C. 3段階セクショントーン化
   L1（基本）: #FAF7F2  ← class なし or 旧 alt の置換対象外
   L2（重要）: #F2EDE3  ← .tone-2
   L3（ゴール）: 濃セージ ← .tone-3
   旧 .alt は L2 と同等に扱う（互換）
   ============================================================ */

/* L1: 既定ベース（明示なし＝白っぽいアイボリー） */
section:not(.alt):not(.tone-2):not(.tone-3):not(.hero):not(.contact-section):not(.doctor-section) {
  background: var(--color-bg);
}

/* L2: 重要セクション（少し濃いベージュ） */
section.tone-2,
section.alt.tone-2 {
  background:
    radial-gradient(ellipse at top, rgba(124,140,106,0.06), transparent 60%),
    #F2EDE3;
}
/* 院長セクションは独自背景を持っていたので tone-2 で上書き */
.doctor-section.tone-2 {
  background:
    radial-gradient(ellipse at top, rgba(124,140,106,0.06), transparent 60%),
    #F2EDE3;
}

/* L3: ゴール（お問い合わせ）= 濃セージ */
section.contact-section.tone-3 {
  background:
    radial-gradient(ellipse at bottom, rgba(255,255,255,0.05), transparent 60%),
    var(--color-primary-d);
  position: relative;
}
/* L3 と L2 の境目に細い区切り（編集デザイン感） */
section.tone-3::before {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.5;
  margin: 0 auto var(--gap-4);
}

/* セクション間の微かな上下グラデで「章のつなぎ目」を柔らかく */
section.tone-2 + section:not(.tone-2):not(.tone-3) {
  background-image: linear-gradient(180deg, #F6F2E8 0%, var(--color-bg) 14%);
}
section:not(.tone-2):not(.tone-3):not(.hero) + section.tone-2 {
  border-top: none;
}

