/*
  ============================================================
  クリニックテンプレート「クール（ブルー系）」
  ------------------------------------------------------------
  WordPress移植メモ：
  - :root の変数（--accent 等）だけ差し替えれば型を量産できる設計
  - font-heading / font-body も変数化。フォント再検討後はここだけ変更
  - class名は "clinic-" 系の汎用名。テーマ標準クラスと衝突しにくいよう命名
  ============================================================
*/

:root {
  --accent: #2C4A6E;
  --accent-dark: #1B3350;
  --accent-tint: #E8EEF4;
  --bg: #FFFFFF;
  --bg-alt: #FAFBFC;
  --text-primary: #24303D;
  --text-secondary: #5C6B7A;
  --border: #E1E6EB;

  --muted: #8496A5;
  --bg-soft: #F4F7F9;
  --footer-text: #C3CDD6;

  --font-heading: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-voice: "Noto Serif JP", serif;

  --header-height: 84px; /* JSで実測値に上書きされるフォールバック値 */
}

* { box-sizing: border-box; }

html { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background:
    radial-gradient(circle at 100% 0%, rgba(83, 160, 232, 0.20), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(83, 160, 232, 0.14), transparent 42%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.8;
  /* 幅の広い要素（診療時間表など）が原因でページ全体が横スクロール可能に
     なってしまうのを防ぐ保険。個別の原因は極力その要素側でも修正する。
     overflow-x: hidden だと overflow-y が暗黙的に auto 扱いになり、
     子要素の position: sticky（.site-header 等）が効かなくなるため、
     スクロールコンテナを作らない overflow-x: clip を使う */
  overflow-x: clip;
}

h1, h2, h3 { font-family: var(--font-heading); margin: 0; }

a { color: inherit; text-decoration: none; }

.card-photo { width: 100%; background: var(--accent-tint); }

.photo-placeholder-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--accent-tint);
  text-align: center;
  padding: 8px;
}

/* ---------- HEADER ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 60;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent-dark);
}
.logo-sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.global-nav {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
}
.global-nav a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.global-nav a[aria-current="page"] {
  color: var(--accent-dark);
  font-weight: 500;
  border-bottom-color: var(--accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}
.header-icon-btn--tel {
  flex-direction: row;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  gap: 8px;
}
.header-icon-btn--tel:hover { background: var(--accent-dark); }
.tel-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.tel-caption { font-size: 9px; letter-spacing: 0.08em; opacity: 0.85; }
.tel-number { font-family: var(--font-heading); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.header-icon-btn--contact {
  color: var(--accent-dark);
  padding: 4px 6px;
}

/* ---------- HERO（非対称・全幅） ---------- */
.hero {
  margin: 56px 0 0;
  position: relative;
  display: block;
}
.hero-photo {
  width: 100%;
  height: clamp(520px, 82vh, 780px);
  background: var(--accent-tint);
  background-size: cover;
  background-position: center;
}
.hero-card {
  width: min(440px, calc(100% - 48px));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 40px;
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - 1120px) / 2 + 24px));
  transform: translateY(-50%);
  box-shadow: 0 4px 24px rgba(44, 74, 110, 0.08);
}
.hero-eyebrow {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 12px;
}
.hero-heading {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--accent-dark);
}
.hero-lead {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 20px 0 28px;
}
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  border: 1px solid var(--accent);
  color: var(--accent-dark);
}

/* ---------- 実績ライン ---------- */
.trust-line {
  max-width: 1120px;
  margin: 100px auto 0;
  padding: 24px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---------- サービス（強弱グリッド） ---------- */
.services {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 16px;
}
.service-card--large {
  grid-row: span 3;
  border: 1px solid var(--border);
  overflow: hidden;
}
.service-card--large .service-photo { aspect-ratio: 4 / 3; }
.service-card--large .service-body { padding: 24px; }
.service-card--large h2 { font-size: 20px; color: var(--accent-dark); margin-bottom: 12px; }
.service-card--large p { font-size: 14px; color: var(--text-secondary); }

.service-card:not(.service-card--large) {
  border: 1px solid var(--border);
  padding: 24px;
  background: var(--bg-alt);
}
.service-card:not(.service-card--large) h3 { font-size: 16px; color: var(--accent-dark); margin-bottom: 8px; }
.service-card:not(.service-card--large) p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* ---------- 院長メッセージ ---------- */
.doctor-message {
  max-width: 900px;
  margin: 64px auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.doctor-photo {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-tint);
}
.doctor-photo .photo-placeholder-label { font-size: 10px; }
.quote-mark {
  font-family: var(--font-voice);
  font-size: 48px;
  color: var(--accent-tint);
  line-height: 0.5;
  margin: 0 0 8px;
}
blockquote {
  font-family: var(--font-voice);
  font-size: 19px;
  line-height: 1.9;
  color: var(--text-primary);
  margin: 0;
}
.doctor-name { margin-top: 16px; font-size: 13px; color: var(--text-secondary); }

/* ---------- ギャラリー（高さ違い） ---------- */
.gallery {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 140px;
  gap: 12px;
}
.gallery-item { background: var(--accent-tint); }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--short { grid-row: span 1; }

/* ---------- アクセス ---------- */
.access {
  background: var(--bg-alt);
  padding: 64px 24px;
}
.access-info, .access-map { max-width: 1120px; margin: 0 auto; }
.access h2 { font-size: 22px; color: var(--accent-dark); margin-bottom: 24px; }
.access dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 16px;
  font-size: 14px;
  margin-bottom: 28px;
}
.access dt { color: var(--text-secondary); }
.access-hours-link { margin-bottom: 20px; }
.access-hours-link a { color: var(--accent); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.access-map {
  aspect-ratio: 16 / 6;
  margin-top: 32px;
}

/* ---------- 診療時間表 ---------- */
.hours {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px 0;
}
.hours > h2 {
  font-size: 22px;
  color: var(--accent-dark);
  margin-bottom: 32px;
}
.hours-block {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.hours-block:last-child { border-bottom: none; }
.hours-block-title {
  font-size: 16px;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.hours-table-wrap { overflow-x: auto; }
.hours-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 13px;
}
.hours-table th, .hours-table td {
  border: 1px solid var(--border);
  padding: 10px 6px;
  text-align: center;
}
.hours-table thead th {
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-weight: 500;
}
.hours-table tbody th {
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-weight: 500;
  text-align: left;
  padding-left: 12px;
  white-space: nowrap;
}
.hours-time {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
}
.hours-table tbody td { color: var(--accent-dark); font-weight: 500; }
.hours-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---------- パンくず ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text-secondary); }

/* ---------- ページヘッダー帯（下層ページ） ---------- */
.page-header {
  position: relative;
  height: 200px;
  background: var(--accent-dark);
}
.page-header-content {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
}
.page-header-eyebrow {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #BFD3E6;
  margin: 0 0 12px;
}
.page-header h1 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ---------- セクション見出し（eyebrow） ---------- */
.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-eyebrow .line { width: 30px; height: 1px; background: var(--accent); }
.section-eyebrow span {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 { font-size: 26px; color: var(--accent-dark); margin-bottom: 14px; }
.section-head p { max-width: 640px; font-size: 14px; color: var(--text-secondary); margin: 0; }

/* WP: 本文中の単独見出し（h2）専用クラス。インラインstyleで固定pxを書くと
   モバイル幅でh1（.hero-heading）より大きく表示され階層が崩れるため、
   font-size/line-height/colorは必ずこのクラス経由にする（下部@mediaで縮小） */
.block-title { font-size: 26px; color: var(--accent-dark); line-height: 1.5; margin: 0; }

/* ---------- CTA帯 ----------
   直下のFOOTERと同系の暗色にすると背景が地続きになり境目が消えるため、
   フッターとは配色を分ける（明るいアクセント地＋濃紺の文字・ボタン） */
.cta-band { position: relative; height: 200px; background: var(--accent-tint); }
.cta-band-inner {
  position: relative;
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--accent-dark); font-size: 21px; margin: 0 0 8px; }
.cta-band p { color: var(--text-secondary); font-size: 13px; margin: 0; }
.cta-actions { margin-left: auto; display: flex; gap: 14px; }
.cta-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 30px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.cta-btn-primary:hover { background: var(--accent); }
.cta-tel-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 24px;
  height: 56px;
  border: 1px solid var(--accent-dark);
  color: var(--accent-dark);
}
.cta-tel-caption { font-size: 10px; color: var(--text-secondary); letter-spacing: 0.12em; }
.cta-tel-number { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }

/* ---------- 即席グリッド（.mobile-stack）が幅の広い子要素（診療時間表など）に
   押し広げられてページが横スクロールしてしまうのを防ぐ。grid item の既定
   min-width:auto を 0 にして、子要素側の overflow-x:auto が正しく効くようにする ---------- */
.mobile-stack > * { min-width: 0; }

/* ---------- スクロールイン・アニメーション（全テイスト共通仕様） ----------
   .anim-fade-up    : 基本形。通常のコンテンツ（テキストブロック・カード・リスト）用。下から短くフェードイン
   .anim-fade-left  : 2カラム構成で左側に配置された要素用。左から短くフェードイン
   .anim-fade-right : 2カラム構成で右側に配置された要素用。右から短くフェードイン
   .anim-fade-scale : 写真専用。わずかに縮小した状態からフェードイン
   .anim-stagger    : 直下の対象要素に時間差（スタッガー）をつけて順に表示する親コンテナ
   左右版は「配置されている側から入ってくる」用途に限定し、多用しない
   （でないと単なる方向違いの繰り返しになり、下からのフェードインと同じく単調になるため）。
   JS（script.js）が IntersectionObserver でビューポート内に入ったタイミングで is-visible を付与する。
   JS未実行時（読み込み失敗等）でもコンテンツが非表示のままにならないよう、
   ページ側で <noscript> による opacity:1 上書きを必ず併記する ---------- */
.anim-fade-up,
.anim-fade-left,
.anim-fade-right,
.anim-fade-scale {
  opacity: 0;
  /* ビューポートに入った瞬間に動き出すと性急な印象になるため、少し間を置いてから開始する。
     スタッガー時はJS（script.js）側でこの基準値に時間差を積み増す */
  transition: opacity 0.7s ease 0.12s, transform 0.7s ease 0.12s;
}
.anim-fade-up { transform: translateY(18px); }
.anim-fade-left { transform: translateX(-28px); }
.anim-fade-right { transform: translateX(28px); }
.anim-fade-scale { transform: scale(0.96); }
.anim-fade-up.is-visible,
.anim-fade-left.is-visible,
.anim-fade-right.is-visible,
.anim-fade-scale.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up,
  .anim-fade-left,
  .anim-fade-right,
  .anim-fade-scale {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- カード（強弱グリッド／こだわり・診療案内・院内設備で共用） ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-grid--3col { grid-template-columns: repeat(3, 1fr); }
.feature-card--wide { grid-column: span 2; }
/* 院内のご案内グリッドの写真は、検査・治療機器スライドと同じ高さに揃える */
.feature-grid--3col .card-photo { height: 320px; }
.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
}
.feature-card .card-photo { height: 160px; }
.feature-card .card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feature-card h3 { font-size: 17px; color: var(--accent-dark); }
.feature-card p { font-size: 13.5px; line-height: 1.9; color: var(--text-secondary); margin: 0; }

.dept-grid { display: flex; flex-direction: column; gap: 24px; }
.dept-card-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border: 1px solid var(--border);
}
.dept-card-large .card-photo { min-height: 260px; }
.dept-card-large .card-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 40px 44px; }
.dept-card-large h3 { font-size: 22px; color: var(--accent-dark); letter-spacing: 0.03em; }
.dept-card-large p { font-size: 14.5px; line-height: 2; color: var(--text-secondary); margin: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 12px; background: var(--bg-soft); font-size: 12px; color: var(--text-secondary); }
.dept-grid-small { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---------- 汎用：ラベル+値の情報リスト（医院概要・アクセス・経歴で共用） ---------- */
.info-dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; }
.info-dl dt { padding: 16px 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.info-dl dd { margin: 0; padding: 16px 0; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--text-primary); }
.info-dl dt:last-of-type, .info-dl dd:last-of-type { border-bottom: 1px solid var(--border); }

/* ---------- 汎用：ドット付きリスト（診療案内・院内設備で共用） ---------- */
.dot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dot-list li {
  position: relative;
  padding: 16px 0 16px 22px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text-primary);
}
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.dot-list li:last-child { border-bottom: 1px solid var(--border); }

/* ---------- 汎用：装飾なしテキストリスト ---------- */
.text-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.text-list li { font-size: 13px; line-height: 1.8; color: var(--text-secondary); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.faq-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px; }
.faq-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-soft);
  font-size: 13.5px;
  color: var(--accent);
}
.faq-category { margin-bottom: 40px; }
.faq-category:last-child { margin-bottom: 0; }
.faq-category-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.faq-category-title h3 { font-size: 19px; color: var(--accent-dark); }
.faq-category-title span { font-family: var(--font-heading); font-size: 10px; color: var(--muted); letter-spacing: 0.16em; }
.faq-item { padding: 22px 0; border-top: 1px solid var(--border); }
.faq-item h4 { margin: 0 0 10px; font-size: 15.5px; color: var(--accent-dark); font-weight: 500; }
.faq-item p { margin: 0; font-size: 14px; line-height: 1.95; color: var(--text-secondary); }

/* ---------- 料金テーブル ---------- */
.price-group { margin-bottom: 40px; }
.price-group:last-child { margin-bottom: 0; }
.price-group-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.price-group-title h3 { font-size: 19px; color: var(--accent-dark); }
.price-group-title span { font-family: var(--font-heading); font-size: 10px; color: var(--muted); letter-spacing: 0.16em; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 16px 18px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
.price-table thead { display: none; }
.price-table tbody th { background: var(--bg-soft); font-weight: 500; font-size: 14.5px; color: var(--accent-dark); width: 30%; }
.price-table td.price-desc { font-size: 13px; color: var(--text-secondary); }
.price-table td.price-yen { text-align: right; font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--accent); white-space: nowrap; }
.price-note-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 12px; }
.price-note-card { padding: 24px 26px; background: var(--bg-soft); }
.price-note-card h3 { font-size: 15px; margin: 0 0 12px; color: var(--accent-dark); }
.price-note-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.price-note-card li { font-size: 13px; line-height: 1.9; color: var(--text-secondary); }

/* ---------- お越しの方法（アクセス） ---------- */
.howto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.howto-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); }
.howto-card .card-photo { height: 160px; }
.howto-card .card-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.howto-card h3 { font-size: 16px; color: var(--accent-dark); }
.howto-card p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--text-secondary); }

/* ---------- カルーセル ---------- */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel-slide { flex: 0 0 100%; }
.carousel-slide .card-photo { height: 320px; }
.carousel-caption { display: flex; align-items: baseline; gap: 14px; padding: 18px 2px 0; }
.carousel-caption .title { font-size: 17px; color: var(--accent-dark); font-weight: 700; }
.carousel-caption .body { font-size: 13.5px; color: var(--text-secondary); }
.carousel-nav { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.carousel-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--accent);
  font-size: 18px;
  cursor: pointer;
}
.carousel-dots { margin-left: auto; display: flex; gap: 8px; }
.carousel-dots button {
  width: 26px;
  height: 3px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--border);
}
.carousel-dots button.is-active { background: var(--accent); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--accent-dark);
  padding: 64px 24px 30px;
}
.footer-top {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-sub { margin-bottom: 20px; }
.footer-brand address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.95;
  color: var(--footer-text);
  margin: 0 0 8px;
}
.footer-brand .tel-number { font-size: 18px; color: #fff; }
.footer-nav-col { display: flex; flex-direction: column; gap: 12px; }
.footer-nav-col a { font-size: 13.5px; color: var(--footer-text); }
.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
}
.footer-bottom .copyright { font-size: 11px; color: #6E7E8C; }
.footer-bottom a { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ---------- ハンバーガーメニュー（スマートフォン幅のみ） ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 52px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle-icon {
  position: relative;
  width: 22px;
  height: 16px;
}
.menu-toggle-icon .bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-dark);
  transition: top 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}
.bar-1 { top: 0; }
.bar-2 { top: 7px; }
.bar-3 { top: 14px; }
.menu-toggle[aria-expanded="true"] .bar-1 { top: 7px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar-2 { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar-3 { top: 7px; transform: rotate(-45deg); }

.menu-toggle-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
}
.menu-toggle-label .label-close { display: none; }
.menu-toggle[aria-expanded="true"] .label-open { display: none; }
.menu-toggle[aria-expanded="true"] .label-close { display: inline; }

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 28, 38, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 40;
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(78%, 320px);
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 50;
  overflow-y: auto;
}
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: calc(var(--header-height) + 24px) 28px 32px;
}
.mobile-nav-inner a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-primary);
}
.mobile-nav-tel {
  margin-top: 20px;
  border-bottom: none !important;
  border-radius: 2px;
  text-align: center;
  background: var(--accent);
  color: #fff !important;
}
.mobile-nav-contact {
  margin-top: 8px;
  border: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent) !important;
  border-radius: 2px;
  text-align: center;
  color: var(--accent-dark) !important;
}

body.menu-open { overflow: hidden; }
body.menu-open .mobile-nav-overlay { opacity: 1; pointer-events: auto; }
body.menu-open .mobile-nav { transform: translateX(0); }

/* ---------- SP専用：画面下固定CTA ---------- */
.mobile-fixed-cta { display: none; }
.mobile-fixed-cta .tel-link { color: var(--accent); }
.mobile-fixed-cta .tel-link .label { font-size: 10px; color: var(--muted); letter-spacing: 0.12em; }
.mobile-fixed-cta .tel-link .num { font-family: var(--font-heading); font-size: 17px; font-weight: 700; }
.mobile-fixed-cta .reserve-link { background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .global-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-icon-btn--contact { display: none; }
  .header-icon-btn--tel { padding: 8px 10px; }
  .tel-number { display: none; }

  .hero-photo { height: clamp(220px, 38vh, 340px); }
  .hero-card {
    position: static;
    transform: none;
    width: 100%;
    margin-top: -48px;
    padding: 28px;
  }
  .hero-heading { font-size: 24px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card--large { grid-row: auto; }

  .doctor-message { flex-direction: column; align-items: center; text-align: center; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .access dl { grid-template-columns: 100px 1fr; font-size: 13px; }

  .page-header { height: 150px; }
  .page-header h1 { font-size: 22px; }
  .breadcrumb { padding: 12px 16px; }

  .cta-band { height: auto; }
  .cta-band-inner { padding: 32px 16px 34px; flex-direction: column; align-items: stretch; gap: 16px; }
  .cta-actions { margin-left: 0; flex-direction: column; }
  .cta-tel-block { align-items: center; }

  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 21px; }
  .block-title { font-size: 21px; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; }
  .dept-card-large { grid-template-columns: 1fr; }
  .dept-grid-small { grid-template-columns: 1fr; }
  .howto-grid { grid-template-columns: 1fr; }
  .mobile-stack { grid-template-columns: 1fr !important; }

  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .faq-sidebar { position: static; flex-direction: row; overflow-x: auto; gap: 8px; }
  .faq-sidebar a { flex: none; white-space: nowrap; }

  .price-note-grid { grid-template-columns: 1fr; }
  .price-table th, .price-table td { padding: 12px; font-size: 13px; }
  .price-table td.price-yen { font-size: 14px; }

  .carousel-slide .card-photo { height: 220px; }
  .feature-grid--3col .card-photo { height: 220px; }
  .carousel-btn { width: 40px; height: 40px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; }

  body { padding-bottom: 64px; }
  .mobile-fixed-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    z-index: 30;
  }
  .mobile-fixed-cta a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
  }
  /* WEB予約ボタン非表示時：電話ボタンのみになるため2カラム分に幅を広げる */
  .mobile-fixed-cta a:only-child {
    grid-column: 1 / -1;
  }
}
