/* File: assets/styles.css */
/* =========================================================
   Clear Aqua Serif — 歯科医院テンプレート 共通スタイル
   爽やかなブルーグリーン × 明朝体 / 余白の広いミニマル
   ・モバイルファースト（768px / 1024px / 1280px）
   ・CSS Nesting / 色の混合関数は不使用（派生色は -rgb 変数から rgba で導出）
   ========================================================= */

/* ---------- Color Tokens ---------- */
:root {
  /* @color メインカラー */
  --c-primary: #1E9FB8;
  --c-primary-rgb: 30, 159, 184;

  /* @color 見出し・ボタン色（濃いメインカラー） */
  --c-ink: #0F6E84;
  --c-ink-rgb: 15, 110, 132;

  /* @color 本文テキスト */
  --c-text: #1F3440;
  --c-text-rgb: 31, 52, 64;

  /* @color 背景色 */
  --c-bg: #ffffff;
  --c-bg-rgb: 255, 255, 255;

  /* @color セクション背景（交互） */
  --c-bg-alt: #F5FAFB;
  --c-bg-alt-rgb: 245, 250, 251;

  /* @color アクセント（装飾線） */
  --c-accent: #C7B28A;
  --c-accent-rgb: 199, 178, 138;

  /* @color 罫線 */
  --c-border: #D7E6EA;

  /* @color フッター背景 */
  --c-footer-bg: #0F6E84;
  --c-footer-bg-rgb: 15, 110, 132;

  /* 派生色（ユーザーには露出しない） */
  --c-primary-soft: rgba(var(--c-primary-rgb), 0.11);
  --c-primary-line: rgba(var(--c-primary-rgb), 0.45);
  --c-ink-soft: rgba(var(--c-ink-rgb), 0.7);
  --c-text-muted: rgba(var(--c-text-rgb), 0.76);
  --c-line: rgba(var(--c-ink-rgb), 0.14);
  --c-shadow: rgba(var(--c-ink-rgb), 0.08);
  --c-shadow-strong: rgba(var(--c-ink-rgb), 0.14);
  --c-ph-bg: rgba(var(--c-text-rgb), 0.08);
  --c-error: #B3261E; /* エラー表示（WCAG AA を満たす赤。ブランド色とは独立） */

  /* ---------- Layout ---------- */
  --w-full: 1920px;
  --w-content: 1440px;
  --w-narrow: 1080px;
  --w-text: 760px;
  --pad-x-sm: 20px;
  --pad-x-md: 40px;

  /* ---------- Type ---------- */
  --ff-serif: "Zen Old Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --ff-sans: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ff-en: "Cormorant Garamond", "Zen Old Mincho", serif;

  /* ---------- Motion ---------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 12px 40px var(--c-shadow);
  --shadow-hover: 0 20px 56px var(--c-shadow-strong);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--ff-serif); font-weight: 500; color: var(--c-ink); line-height: 1.6; }
a { color: var(--c-ink); text-decoration: none; transition: color .4s var(--ease), opacity .4s var(--ease); }
a:hover { color: var(--c-primary); }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 300; padding: 10px 16px; background: var(--c-ink); color: #fff; border-radius: 4px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Container ---------- */
.container { width: 100%; max-width: calc(var(--w-content) + var(--pad-x-md) * 2); margin: 0 auto; padding: 0 var(--pad-x-sm); }
.container--narrow { max-width: calc(var(--w-narrow) + var(--pad-x-md) * 2); }

/* ---------- Section ---------- */
.section { position: relative; padding: 80px 0; background: var(--c-bg); }
.section.alt { background: var(--c-bg-alt); }

/* ---------- Heading（英字小見出し + 和文見出し） ---------- */
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.sec-head--center { align-items: center; text-align: center; }
.sec-head--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.sec-head__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--ff-en); font-size: 14px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-ink);
}
.eyebrow::before { content: ""; flex: none; width: 24px; height: 1px; background: var(--c-accent); }
.sec-head--center .eyebrow::after { content: ""; flex: none; width: 24px; height: 1px; background: var(--c-accent); }
.sec-title { font-size: 24px; line-height: 1.75; letter-spacing: 0.1em; text-wrap: pretty; }
.lead { max-width: 600px; color: var(--c-text-muted); text-wrap: pretty; }
.sec-head--center .lead { margin: 0 auto; }
.note { font-size: 13px; color: var(--c-text-muted); }
.prose { display: flex; flex-direction: column; gap: 20px; text-wrap: pretty; }

/* ---------- Buttons（角丸 4px に統一） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: 56px; padding: 0 28px; border: 1px solid var(--c-ink); border-radius: 4px;
  font-family: var(--ff-serif); font-size: 15px; letter-spacing: 0.1em; line-height: 1.4; color: #fff;
  background-image: linear-gradient(to right, var(--c-text) 50%, var(--c-ink) 50%);
  background-size: 201% 100%; background-position: 100% 0;
  transition: background-position .8s var(--ease), color .8s var(--ease), border-color .8s var(--ease);
  cursor: pointer;
}
.btn:hover { color: #fff; background-position: 0 0; border-color: var(--c-text); }
.btn::after {
  content: ""; flex: none; width: 18px; height: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .6s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }
.btn--ghost { color: var(--c-ink); background-image: linear-gradient(to right, var(--c-ink) 50%, var(--c-bg) 50%); }
.btn--ghost:hover { color: #fff; border-color: var(--c-ink); }
.btn--lg { min-height: 72px; padding: 0 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--noarrow { justify-content: center; }
.btn--noarrow::after { display: none; }
.btn__stack { display: flex; flex-direction: column; line-height: 1.5; text-align: left; }
.btn__sub { font-family: var(--ff-sans); font-size: 12px; letter-spacing: 0.1em; opacity: 0.88; }

.link-arrow {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding-right: 60px;
  font-size: 14px; letter-spacing: 0.1em; color: var(--c-ink);
}
.link-arrow::before {
  content: ""; position: absolute; right: 0; top: 50%; width: 44px; height: 44px; margin-top: -22px;
  border: 1px solid var(--c-border); border-radius: 50%; background: var(--c-bg);
  transition: border-color .6s var(--ease);
}
.link-arrow::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 16px; height: 10px; margin-top: -5px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .6s var(--ease);
}
.link-arrow:hover::before { border-color: var(--c-primary); }
.link-arrow:hover::after { transform: translateX(4px); }

.icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Image placeholder（.ph と .editable-img は常に対称に定義。.ph-sample は繰り返しの2件目以降のサンプル用） ---------- */
.ph, .editable-img, .ph-sample { display: block; width: 100%; aspect-ratio: 4 / 3; }
.ph[data-ratio="16/9"], .editable-img[data-ratio="16/9"], .ph-sample[data-ratio="16/9"] { aspect-ratio: 16 / 9; }
.ph[data-ratio="3/4"], .editable-img[data-ratio="3/4"], .ph-sample[data-ratio="3/4"] { aspect-ratio: 3 / 4; }
.ph[data-ratio="4/5"], .editable-img[data-ratio="4/5"], .ph-sample[data-ratio="4/5"] { aspect-ratio: 4 / 5; }
.ph[data-ratio="4/3"], .editable-img[data-ratio="4/3"], .ph-sample[data-ratio="4/3"] { aspect-ratio: 4 / 3; }
.ph[data-ratio="3/2"], .editable-img[data-ratio="3/2"], .ph-sample[data-ratio="3/2"] { aspect-ratio: 3 / 2; }
.ph[data-ratio="1/1"], .editable-img[data-ratio="1/1"], .ph-sample[data-ratio="1/1"] { aspect-ratio: 1 / 1; }
.ph[data-ratio="16/10"], .editable-img[data-ratio="16/10"], .ph-sample[data-ratio="16/10"] { aspect-ratio: 16 / 10; }
.ph[data-ratio="4/1"], .editable-img[data-ratio="4/1"], .ph-sample[data-ratio="4/1"] { aspect-ratio: 4 / 1; }
.ph[data-ratio="16/5"], .editable-img[data-ratio="16/5"], .ph-sample[data-ratio="16/5"] { aspect-ratio: 16 / 5; }
.ph, .ph-sample {
  display: grid; place-items: center; padding: 12px; text-align: center;
  background: var(--c-ph-bg); color: var(--c-text-muted); font-size: 12px; letter-spacing: 0.08em; line-height: 1.6;
}
.editable-img {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: var(--img-pos, center 30%); /* 人物写真は顔が切れないよう初期値 center 30%。枠ごとに style="--img-pos: …" で調整 */
}
.media { position: relative; overflow: hidden; border-radius: 4px; }
.media .ph, .media .editable-img, .media .ph-sample { transition: transform 1.2s var(--ease); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(var(--c-bg-rgb), 0.97); /* backdrop-filter は containing block 問題のため不使用 */
  border-bottom: 1px solid transparent;
  transition: border-color .6s var(--ease), box-shadow .6s var(--ease), background .6s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--c-border); box-shadow: 0 8px 24px var(--c-shadow); }
.is-menu-open .site-header { background: var(--c-bg); }
.header-inner { width: 100%; max-width: var(--w-full); margin: 0 auto; padding: 0 var(--pad-x-sm); }
.header-top { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 10px 0; transition: min-height .6s var(--ease); }
.site-logo { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--c-ink); }
.site-logo:hover { color: var(--c-ink); opacity: 0.8; }
.logo-mark {
  flex: none; width: 40px; height: 40px; border: 1px solid var(--c-primary); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--ff-en); font-size: 19px; font-weight: 500; letter-spacing: 0; line-height: 1;
}
.logo-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.logo-name { font-family: var(--ff-serif); font-size: 16px; font-weight: 600; letter-spacing: 0.08em; word-break: keep-all; overflow-wrap: anywhere; }
.logo-en { font-family: var(--ff-en); font-size: 11px; letter-spacing: 0.2em; color: var(--c-text-muted); word-break: keep-all; overflow-wrap: anywhere; }
.header-actions { flex: none; display: flex; align-items: center; gap: 20px; }
.header-tel { display: none; flex-direction: column; align-items: flex-end; line-height: 1.25; color: var(--c-ink); }
.header-tel__num { display: flex; align-items: center; gap: 8px; font-family: var(--ff-en); font-size: 26px; font-weight: 500; letter-spacing: 0.03em; word-break: keep-all; overflow-wrap: anywhere; }
.header-tel__hours { font-size: 11px; letter-spacing: 0.08em; color: var(--c-text-muted); }
.header-cta { display: none; min-height: 48px; padding: 0 22px; gap: 20px; font-size: 14px; }
.hamburger {
  flex: none; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--c-ink);
}
.hamburger__bar, .hamburger__bar::before { content: ""; display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform .6s var(--ease); }
.hamburger__bar { position: relative; }
.hamburger__bar::before { position: absolute; left: 0; top: 7px; }
.hamburger__label { font-family: var(--ff-en); font-size: 10px; letter-spacing: 0.2em; line-height: 1; margin-top: 6px; }
.is-menu-open .hamburger__bar { transform: translateY(3.5px) rotate(20deg); }
.is-menu-open .hamburger__bar::before { transform: translateY(-7px) rotate(-40deg); }

/* ヘッダーナビ：デスクトップは通常フローの横並び。ドロワー化は max-width メディアクエリ内のみ */
.global-nav { display: flex; align-items: center; justify-content: center; gap: 28px; }
.global-nav > a {
  position: relative; flex: none; white-space: nowrap;
  padding: 12px 0; font-family: var(--ff-serif); font-size: 15px; font-weight: 500; letter-spacing: 0.08em; color: var(--c-text);
}
.global-nav > a::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 16px; height: 1px; margin-left: -8px;
  background: var(--c-accent); transform: scaleX(0); transition: transform .6s var(--ease);
}
.global-nav > a:hover { color: var(--c-ink); }
.global-nav > a:hover::after,
.global-nav > a.is-active::after { transform: scaleX(1); }
.global-nav > a.is-active { color: var(--c-ink); }

@media (max-width: 1279px) {
  .global-nav {
    position: fixed; left: 0; right: 0; top: var(--hdr-h, 72px); bottom: 0; z-index: 99;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 16px 24px 120px; background: var(--c-bg); overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .5s var(--ease), visibility .5s var(--ease);
  }
  .is-menu-open .global-nav { visibility: visible; opacity: 1; }
  .global-nav > a { padding: 18px 4px; border-bottom: 1px solid var(--c-border); font-size: 17px; white-space: normal; }
  .global-nav > a::after { display: none; }
  .is-menu-open body { overflow: hidden; }
}

/* ---------- Floating reserve（SP：下部バー / PC：右端の縦型ボタン） ---------- */
.float-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 98; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); box-shadow: 0 -8px 24px var(--c-shadow); }
.float-cta__item { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; padding: 0 8px; font-family: var(--ff-serif); font-size: 15px; letter-spacing: 0.1em; }
.float-cta__item--tel { background: var(--c-bg); color: var(--c-ink); border-top: 1px solid var(--c-border); }
.float-cta__item--reserve { background: var(--c-ink); color: #fff; }
.float-cta__item--reserve:hover { color: #fff; background: var(--c-text); }
.float-cta__item--access { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-footer-bg); color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: rgba(var(--c-bg-rgb), 0.72); }
.footer-inner { max-width: calc(var(--w-content) + var(--pad-x-md) * 2); margin: 0 auto; padding: 72px var(--pad-x-sm) 0; display: flex; flex-direction: column; gap: 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px 64px; }
.footer-info { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-logo .logo-mark { width: 48px; height: 48px; border-color: rgba(var(--c-bg-rgb), 0.6); font-size: 22px; }
.footer-logo .logo-name { font-size: 19px; }
.footer-logo .logo-en { color: rgba(var(--c-bg-rgb), 0.8); }
.footer-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; font-size: 14px; line-height: 1.8; }
.footer-dl dt { color: rgba(var(--c-bg-rgb), 0.78); white-space: nowrap; }
.footer-tel { display: inline-flex; align-items: center; gap: 12px; font-family: var(--ff-en); font-size: 32px; font-weight: 500; line-height: 1.2; }
.footer-tel .icon { width: 24px; height: 24px; }
.footer-hours { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-label { font-family: var(--ff-en); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(var(--c-bg-rgb), 0.8); }
.footer-closed { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.footer-closed__label { color: rgba(var(--c-bg-rgb), 0.78); }
.footer-map { min-width: 0; border-radius: 4px; overflow: hidden; }
.site-footer .ph, .site-footer .ph-sample { background: rgba(var(--c-bg-rgb), 0.1); color: rgba(var(--c-bg-rgb), 0.85); }
.footer-sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px 40px; padding-top: 40px; border-top: 1px solid rgba(var(--c-bg-rgb), 0.18); }
.footer-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.footer-col__title { font-family: var(--ff-en); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(var(--c-bg-rgb), 0.78); }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 32px; border-top: 1px solid rgba(var(--c-bg-rgb), 0.18); font-size: 12px; }
.footer-bottom__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-sns { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(var(--c-bg-rgb), 0.35); border-radius: 50%; }
.copyright { font-family: var(--ff-en); font-size: 13px; letter-spacing: 0.08em; color: rgba(var(--c-bg-rgb), 0.85); }

/* ---------- Hours table（トップ・アクセス・フッター共通） ---------- */
.hours-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; }
.hours-table th, .hours-table td { padding: 14px 0; border-bottom: 1px solid var(--c-border); font-weight: 400; line-height: 1.3; }
.hours-table thead th { font-family: var(--ff-serif); font-size: 13px; font-weight: 500; border-bottom-color: var(--c-ink); }
.hours-table thead th:first-child { width: 88px; text-align: left; font-family: var(--ff-sans); font-size: 12px; color: var(--c-text-muted); }
.hours-table tbody th { text-align: left; }
.hours-table__label { display: block; font-size: 11px; letter-spacing: 0.1em; color: var(--c-text-muted); }
.hours-table__time { display: block; font-family: var(--ff-en); font-size: 15px; font-weight: 500; white-space: nowrap; }
.hours-table td { font-size: 14px; color: var(--c-text-muted); }
.hours-table td.is-open { color: var(--c-primary); }
.hours-table td.is-special { color: var(--c-accent); }
.hours-note { margin-top: 14px; font-size: 13px; line-height: 1.8; color: var(--c-text-muted); white-space: pre-line; }
.site-footer .hours-table th, .site-footer .hours-table td { border-bottom-color: rgba(var(--c-bg-rgb), 0.18); color: #fff; }
.site-footer .hours-table thead th { border-bottom-color: rgba(var(--c-bg-rgb), 0.45); }
.site-footer .hours-table thead th:first-child, .site-footer .hours-table__label { color: rgba(var(--c-bg-rgb), 0.78); }
.site-footer .hours-table td.is-open { color: #fff; }
.site-footer .hours-table td.is-closed { color: rgba(var(--c-bg-rgb), 0.55); }
.site-footer .hours-note { color: rgba(var(--c-bg-rgb), 0.8); margin-top: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; max-width: var(--w-full); margin: 0 auto; overflow: hidden; background: var(--c-bg-alt); }
.hero-slides { position: relative; aspect-ratio: 3 / 4; max-height: calc(100svh - var(--hdr-h, 72px) - 60px); min-height: 420px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); }
.hero-slide:first-child { opacity: 1; }
.hero.is-ready .hero-slide { opacity: 0; }
.hero.is-ready .hero-slide.is-active { opacity: 1; }
.hero-slide .ph, .hero-slide .editable-img, .hero-slide .ph-sample { height: 100%; aspect-ratio: auto; }
.hero-slide .ph[data-ratio="16/9"], .hero-slide .editable-img[data-ratio="16/9"], .hero-slide .ph-sample[data-ratio="16/9"] { height: 100%; aspect-ratio: auto; }
.hero-slide .ph, .hero-slide .ph-sample { place-items: start end; padding: 24px; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(var(--c-bg-rgb), 0.94) 0%, rgba(var(--c-bg-rgb), 0.6) 34%, rgba(var(--c-bg-rgb), 0) 60%);
}
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none; padding-bottom: 48px; }
.hero-copy .container { display: flex; flex-direction: column; gap: 20px; }
.hero-title { font-size: 30px; font-weight: 500; line-height: 1.7; letter-spacing: 0.12em; color: var(--c-ink); }
.hero-sub { max-width: 520px; font-size: 14px; line-height: 2.1; color: var(--c-text); text-wrap: pretty; }
.hero-dots { position: absolute; right: var(--pad-x-sm); top: 20px; z-index: 3; display: flex; gap: 10px; }
.hero-dot { width: 40px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; }
.hero-dot::before { content: ""; display: block; width: 100%; height: 1.5px; background: var(--c-line); transition: background .6s var(--ease); }
.hero-dot[aria-pressed="true"]::before { background: var(--c-ink); }

/* ---------- News list（トップ抜粋） ---------- */
.news-layout { display: grid; gap: 32px; }
.news-layout__side { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.news-layout__side .sec-head { margin-bottom: 0; }
.news-list { border-top: 1px solid var(--c-border); min-width: 0; }
.news-list li { border-bottom: 1px solid var(--c-border); }
.news-list a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding: 24px 4px; color: var(--c-text); }
.news-list a:hover { color: var(--c-ink); }
.news-list .date { font-family: var(--ff-en); font-size: 17px; font-weight: 500; letter-spacing: 0.06em; color: var(--c-text-muted); }
.tag { display: inline-block; padding: 2px 12px; border: 1px solid var(--c-border); border-radius: 999px; font-size: 12px; letter-spacing: 0.08em; color: var(--c-ink); }
.news-list .title { flex: 1 1 280px; min-width: 0; }

/* ---------- Concept（非対称レイアウト） ---------- */
.concept { overflow: hidden; }
.concept-grid { position: relative; display: grid; gap: 48px; }
.concept-body { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.concept-body .sec-head { margin-bottom: 0; }
.concept-sub { width: min(62%, 320px); align-self: flex-end; }

/* ---------- Features（番号付き） ---------- */
.feature-list { counter-reset: feat; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 0 32px; border-top: 1px solid var(--c-border); }
.feature-item { counter-increment: feat; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 24px; padding: 36px 0; border-bottom: 1px solid var(--c-border); }
.feature-item__num { grid-row: span 2; font-family: var(--ff-en); font-size: 44px; line-height: 1; color: var(--c-primary); }
.feature-item__num::before { content: counter(feat, decimal-leading-zero); }
.feature-item h3 { font-size: 18px; letter-spacing: 0.08em; line-height: 1.5; }
.feature-item p { font-size: 15px; color: var(--c-text-muted); text-wrap: pretty; }

/* ---------- Service cards（診療メニュー） ---------- */
.service-grid { counter-reset: svc; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 32px; }
.service-card { counter-increment: svc; min-width: 0; }
.service-card__link { height: 100%; display: flex; flex-direction: column; background: var(--c-bg); border-radius: 4px; overflow: hidden; color: var(--c-text); box-shadow: 0 0 0 1px var(--c-border); transition: box-shadow .8s var(--ease); }
.service-card__link:hover { color: var(--c-text); box-shadow: var(--shadow-hover); }
.service-card__link:hover .ph, .service-card__link:hover .editable-img, .service-card__link:hover .ph-sample { transform: scale(1.05); }
.service-card__media { overflow: hidden; }
.service-card__media .ph, .service-card__media .editable-img, .service-card__media .ph-sample { transition: transform 1.2s var(--ease); }
.service-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 28px; }
.service-card__meta { display: flex; align-items: baseline; gap: 12px; }
.service-card__num { font-family: var(--ff-en); font-size: 15px; color: var(--c-ink); }
.service-card__num::before { content: counter(svc, decimal-leading-zero); }
.service-card__en { font-family: var(--ff-en); font-size: 14px; letter-spacing: 0.08em; color: var(--c-text-muted); }
.service-card h3 { font-size: 19px; letter-spacing: 0.08em; line-height: 1.5; }
.service-card__desc { font-size: 15px; color: var(--c-text-muted); text-wrap: pretty; }
.service-card__more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--c-ink); }
.service-card__more::after {
  content: ""; width: 18px; height: 10px; background: currentColor; transition: transform .6s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4'/%3E%3C/svg%3E") no-repeat center / contain;
}
.service-card__link:hover .service-card__more::after { transform: translateX(4px); }

/* ---------- Doctor ---------- */
.doctor-block { position: relative; overflow: hidden; padding: 80px 0; background: var(--c-primary-soft); }
.doctor-grid { position: relative; display: grid; gap: 48px; align-items: center; }
.doctor-photo { width: 100%; max-width: 560px; }
.doctor-body { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.doctor-body .sec-head { margin-bottom: 0; }
.signature { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.signature__role { font-size: 14px; color: var(--c-text-muted); }
.signature__name { font-family: var(--ff-serif); font-size: 22px; font-weight: 500; letter-spacing: 0.16em; color: var(--c-ink); word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- Gallery（横に流れるスライド） ---------- */
.marquee { overflow-x: auto; }
.marquee-track { display: flex; gap: 16px; width: max-content; padding: 0 var(--pad-x-sm); }
.marquee-item { flex: none; width: 280px; border-radius: 4px; overflow: hidden; }
.js-motion .marquee { overflow: hidden; }
.js-motion .marquee-track.is-looping { padding: 0; animation: marquee 80s linear infinite; }
.js-motion .marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item.is-clone { margin: 0; }

/* ---------- Steps（初診の流れ） ---------- */
.step-list { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.step-card { counter-increment: step; display: flex; flex-direction: column; gap: 14px; padding: 36px 28px; background: var(--c-bg); border-radius: 4px; box-shadow: var(--shadow); }
.step-card__head { display: flex; align-items: baseline; gap: 10px; font-family: var(--ff-en); color: var(--c-ink); }
.step-card__label { font-size: 14px; letter-spacing: 0.2em; }
.step-card__num { font-size: 44px; line-height: 1; color: var(--c-primary); }
.step-card__num::before { content: counter(step, decimal-leading-zero); }
.step-card__line { width: 24px; height: 1px; background: var(--c-accent); }
.step-card h3 { font-size: 18px; letter-spacing: 0.08em; }
.step-card p { font-size: 15px; color: var(--c-text-muted); text-wrap: pretty; }

/* ---------- Hours & Access ---------- */
.access-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.access-col { min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.info-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 28px; }
.info-dl dt { font-size: 14px; color: var(--c-text-muted); white-space: nowrap; }
.info-dl dd { overflow-wrap: anywhere; }
.map { min-width: 0; border-radius: 4px; overflow: hidden; border: 1px solid var(--c-border); }

/* ---------- Reserve banner（予約の案内帯） ---------- */
.reserve-banner { position: relative; overflow: hidden; background: var(--c-primary-soft); padding: 80px 0; }
.reserve-banner__inner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px 64px; }
.reserve-banner__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.reserve-banner__actions { flex: 0 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.reserve-tel { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 72px; padding: 12px 28px; border: 1px solid var(--c-ink); border-radius: 4px; background: var(--c-bg); color: var(--c-ink); }
.reserve-tel__label { font-size: 12px; letter-spacing: 0.1em; color: var(--c-text-muted); }
.reserve-tel__num { display: flex; align-items: center; gap: 10px; font-family: var(--ff-en); font-size: 30px; font-weight: 500; line-height: 1.2; word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- Background decoration（スクロールでゆっくり動く） ---------- */
.deco { position: absolute; border-radius: 50%; pointer-events: none; aspect-ratio: 1; }
.deco--fill { background: var(--c-primary-soft); }
.deco--line { border: 1px solid var(--c-primary-line); }
.deco--white { background: rgba(var(--c-bg-rgb), 0.7); }
.deco--tr { right: -10%; top: 6%; width: 44%; max-width: 820px; }
.deco--bl { left: -12%; bottom: -20%; width: 40%; max-width: 760px; }
.deco--tl { left: -14%; top: 0; width: 42%; max-width: 760px; }
.deco--cta1 { right: -8%; top: -40%; width: 56%; max-width: 900px; }
.deco--cta2 { right: 4%; top: 10%; width: 34%; max-width: 560px; }
.deco-host { position: relative; overflow: hidden; isolation: isolate; }
.deco-host > .deco { z-index: -1; }

/* ---------- Motion（site.js が html に .js-motion を付与した時だけ初期状態を隠す＝フェイルオープン） ---------- */
.js-motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js-motion .reveal.is-in { opacity: 1; transform: none; }
.js-motion .reveal-head > * { opacity: 0; transform: translateX(-16px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js-motion .reveal-head > :nth-child(2) { transition-delay: .18s; }
.js-motion .reveal-head > :nth-child(3) { transition-delay: .36s; }
.js-motion .reveal-head.is-in > * { opacity: 1; transform: none; }
.reveal-img { position: relative; overflow: hidden; }
.js-motion .reveal-img::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--c-bg-alt); transform-origin: right center; transition: transform 1.1s var(--ease); }
.js-motion .reveal-img > .ph, .js-motion .reveal-img > .editable-img, .js-motion .reveal-img > .ph-sample { transform: scale(1.1); transition: transform 1.8s var(--ease); }
.js-motion .reveal-img.is-in::after { transform: scaleX(0); }
.js-motion .reveal-img.is-in > .ph, .js-motion .reveal-img.is-in > .editable-img, .js-motion .reveal-img.is-in > .ph-sample { transform: scale(1); }
.js-motion .hero-slide.is-active .ph, .js-motion .hero-slide.is-active .editable-img, .js-motion .hero-slide.is-active .ph-sample { animation: kenburns 8s linear forwards; }
.js-motion .hero-title, .js-motion .hero-sub { opacity: 0; transform: translateY(12px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js-motion .hero.is-ready .hero-title { opacity: 1; transform: none; transition-delay: .2s; }
.js-motion .hero.is-ready .hero-sub { opacity: 1; transform: none; transition-delay: .7s; }
.js-motion body::after { content: ""; position: fixed; inset: 0; z-index: 400; background: var(--c-bg); pointer-events: none; opacity: 1; transition: opacity .4s var(--ease); }
.js-motion.is-loaded body::after { opacity: 0; }
.js-motion.is-leaving body::after { opacity: 1; }

@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- ≤767px（SP 補正） ---------- */
@media (max-width: 767px) {
  .deco { display: none; }
  .hero-copy { position: absolute; padding-bottom: 32px; }
  .hero-dots { right: var(--pad-x-sm); top: 16px; }
  .hours-table thead th:first-child { width: 84px; }
  .hours-table th, .hours-table td { padding: 12px 0; }
  .hours-table__time { font-size: 14px; }
  .hours-table td { font-size: 13px; }
  .reserve-banner__actions { width: 100%; flex-direction: column; }
  .reserve-banner__actions > * { width: 100%; }
  .reserve-tel__num { font-size: 26px; }
  .footer-tel { font-size: 28px; }
}

/* ---------- 768px+ Tablet ---------- */
@media (min-width: 768px) {
  .container, .header-inner { padding: 0 var(--pad-x-md); }
  .footer-inner { padding: 96px var(--pad-x-md) 0; }
  .section { padding: 120px 0; }
  .sec-title { font-size: 32px; }
  .header-cta { display: inline-flex; }
  .hero-slides { aspect-ratio: auto; height: calc(100vh - var(--hdr-h, 72px) - 60px); min-height: 360px; max-height: none; }
  .hero::after { background: linear-gradient(90deg, rgba(var(--c-bg-rgb), 0.92) 0%, rgba(var(--c-bg-rgb), 0.55) 36%, rgba(var(--c-bg-rgb), 0) 64%); }
  .hero-copy { padding-bottom: 96px; }
  .hero-title { font-size: 40px; }
  .hero-sub { font-size: 15px; }
  .hero-dots { top: auto; bottom: 40px; right: var(--pad-x-md); }
  .feature-item h3 { font-size: 22px; }
  .feature-item__num { font-size: 56px; }
  .marquee-item { width: 380px; }
  .marquee-track { gap: 24px; padding: 0 var(--pad-x-md); }
  .reserve-banner { padding: 120px 0; }
  .doctor-block { padding: 120px 0; }
  .hours-table th, .hours-table td { padding: 18px 0; }
  .hours-table thead th { font-size: 15px; }
  .hours-table thead th:first-child { width: 150px; }
  .hours-table__time { font-size: 19px; }
  .hours-table td { font-size: 17px; }
  .site-footer .hours-table thead th:first-child { width: 120px; }
  .site-footer .hours-table__time { font-size: 16px; }
  .site-footer .hours-table td { font-size: 15px; }
}

/* ---------- 1024px+ Desktop ---------- */
@media (min-width: 1024px) {
  .news-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 32px 96px; }
  .concept-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 96px; align-items: start; }
  .concept-body { padding-top: 64px; }
  .doctor-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 120px; }
  .access-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
}

/* ---------- 1280px+ PC ---------- */
@media (min-width: 1280px) {
  body { padding-bottom: 0; }
  .section { padding: 160px 0; }
  .sec-head { margin-bottom: 80px; }
  .sec-title { font-size: 40px; }
  .header-top { min-height: 88px; }
  .site-header.is-scrolled .header-top { min-height: 64px; }
  .logo-name { font-size: 19px; }
  .header-tel { display: flex; }
  .hamburger { display: none; }
  .global-nav { min-height: 48px; border-top: 1px solid var(--c-border); }
  .hero-slides { height: calc(100vh - var(--hdr-h, 137px)); min-height: 640px; }
  .hero-title { font-size: 56px; }
  .hero-sub { font-size: 16px; }
  .hero-copy { padding-bottom: 140px; }
  .feature-item h3 { font-size: 26px; }
  .feature-item__num { font-size: 64px; }
  .service-card h3 { font-size: 21px; }
  .step-card h3 { font-size: 22px; }
  .marquee-item { width: 500px; }
  .reserve-banner { padding: 144px 0; }
  .doctor-block { padding: 160px 0; }
  .signature__name { font-size: 30px; }
  .float-cta {
    left: auto; right: 0; top: 50%; bottom: auto; transform: translateY(-50%);
    display: flex; flex-direction: column; border-radius: 4px 0 0 4px; overflow: hidden; box-shadow: var(--shadow);
  }
  .float-cta__item { flex-direction: column; width: 60px; min-height: 0; padding: 22px 0; font-size: 14px; letter-spacing: 0.24em; writing-mode: vertical-rl; }
  .float-cta__item .icon { writing-mode: horizontal-tb; }
  .float-cta__item--tel { order: 2; border-top: 0; border-bottom: 1px solid var(--c-border); }
  .float-cta__item--reserve { order: 1; }
  .float-cta__item--access { order: 3; display: flex; background: var(--c-bg); color: var(--c-ink); }
  .float-cta__item--tel:hover, .float-cta__item--access:hover { background: var(--c-primary-soft); color: var(--c-ink); }
}

@media (min-width: 1440px) {
  .global-nav { gap: 36px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-head > *, .reveal-img > .ph, .reveal-img > .editable-img, .reveal-img > .ph-sample { opacity: 1 !important; transform: none !important; }
  .reveal-img::after, body::after { display: none !important; }
}

/* File: assets/lower.css */
/* =========================================================
   下層ページ追加スタイル（styles.css の後に読み込む）
   ========================================================= */

/* ---------- Page hero（1920×480 固定の見出し帯 + パンくず） ---------- */
.page-hero { position: relative; background: var(--c-bg); }
.page-hero__media { position: relative; max-width: var(--w-full); margin: 0 auto; overflow: hidden; background: var(--c-bg-alt); }
.page-hero__media .ph, .page-hero__media .editable-img, .page-hero__media .ph-sample { aspect-ratio: 4 / 1; min-height: 240px; max-height: 480px; }
.page-hero__body {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--c-bg-rgb), 0.92) 0%, rgba(var(--c-bg-rgb), 0.72) 38%, rgba(var(--c-bg-rgb), 0) 72%);
}
.page-hero__body .container { display: flex; flex-direction: column; gap: 6px; }
.page-hero__en { font-family: var(--ff-en); font-size: 44px; font-weight: 400; line-height: 1; letter-spacing: 0.02em; color: var(--c-ink); }
.page-hero__title { display: flex; align-items: center; gap: 16px; font-size: 20px; letter-spacing: 0.12em; color: var(--c-text); }
.page-hero__title::before { content: ""; flex: none; width: 32px; height: 1px; background: var(--c-accent); }
.breadcrumb { padding-top: 20px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--c-text-muted); }
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-ink); }
.breadcrumb li + li::before { content: "／"; margin-right: 12px; color: var(--c-border); }
.breadcrumb [aria-current] { color: var(--c-text); }

/* ---------- Anchor nav（ページ内リンク） ---------- */
.anchor-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; padding-top: 48px; }
.anchor-nav a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 0 24px; border: 1px solid var(--c-border); border-radius: 4px; font-family: var(--ff-serif); font-size: 17px; color: var(--c-text); }
.anchor-nav a:hover { border-color: var(--c-primary); color: var(--c-ink); }
.anchor-nav a::after { content: ""; width: 10px; height: 10px; border-right: 1.5px solid var(--c-ink); border-bottom: 1.5px solid var(--c-ink); transform: rotate(45deg) translateY(-3px); }

/* ---------- Split（写真＋文章） ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.split__body { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.split__body .sec-head { margin-bottom: 0; }
.split__media { min-width: 0; }

/* ---------- Figures（数字） ---------- */
.figure-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--c-border); }
.figure-item { display: flex; flex-direction: column; gap: 4px; }
.figure-item dt { font-size: 14px; color: var(--c-text-muted); }
.figure-item dd { display: flex; align-items: baseline; gap: 8px; color: var(--c-ink); }
.figure-item__num { font-family: var(--ff-en); font-size: 56px; line-height: 1; }
.figure-item__unit { font-family: var(--ff-serif); font-size: 18px; }

/* ---------- Numbered cards（汎用：特徴・ポイント・支払い方法など） ---------- */
.num-list { counter-reset: num; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; }
.num-item { counter-increment: num; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.num-item--card { padding: 36px 32px; background: var(--c-bg); border-radius: 4px; box-shadow: var(--shadow); }
.num-item__num { font-family: var(--ff-en); font-size: 48px; line-height: 1; color: var(--c-primary); }
.num-item__num::before { content: counter(num, decimal-leading-zero); }
.num-item__en { font-family: var(--ff-en); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-ink); }
.num-item h3 { font-size: 18px; letter-spacing: 0.08em; line-height: 1.5; }
.num-item p { font-size: 15px; color: var(--c-text-muted); text-wrap: pretty; }

/* ---------- Equipment rows（写真と説明を交互） ---------- */
.equip-list { display: flex; flex-direction: column; gap: 64px; }
.equip-item { display: grid; gap: 32px; align-items: center; }
.equip-item__body { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.equip-item__en { font-family: var(--ff-en); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-ink); }
.equip-item h3 { font-size: 18px; letter-spacing: 0.08em; }
.equip-item p { color: var(--c-text-muted); text-wrap: pretty; }

/* ---------- Check list ---------- */
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.check-card { display: flex; gap: 16px; padding: 24px; background: var(--c-bg); border-radius: 4px; }
.check-card .icon { color: var(--c-ink); margin-top: 4px; }
.check-card__title { display: block; font-family: var(--ff-serif); font-size: 17px; font-weight: 500; color: var(--c-ink); }
.check-card__text { display: block; font-size: 14px; color: var(--c-text-muted); }
.check-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 0 48px; padding: 24px 28px; background: var(--c-bg-alt); border-radius: 4px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.check-list .icon { color: var(--c-ink); margin-top: 5px; }
.dot-list { display: flex; flex-direction: column; gap: 10px; }
.dot-list li { display: flex; gap: 12px; }
.dot-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 12px; border-radius: 50%; background: var(--c-accent); }

/* ---------- Photo grid ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.photo-grid figure { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.photo-grid figcaption { font-size: 14px; color: var(--c-text-muted); }

/* ---------- Career / timeline ---------- */
.sub-title { display: flex; align-items: center; gap: 14px; font-size: 18px; letter-spacing: 0.1em; }
.sub-title::before { content: ""; flex: none; width: 24px; height: 1px; background: var(--c-accent); }
.career-list { border-top: 1px solid var(--c-border); }
.career-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.career-item__year { font-family: var(--ff-en); font-size: 18px; font-weight: 500; color: var(--c-ink); word-break: keep-all; overflow-wrap: anywhere; }
.profile-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px 56px; }
.profile-col { display: flex; flex-direction: column; gap: 16px; }
.plain-list { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }

/* ---------- Staff cards ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 40px 32px; }
.staff-card { display: flex; flex-direction: column; background: var(--c-bg); border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--c-border); transition: box-shadow .8s var(--ease); }
.staff-card:hover { box-shadow: var(--shadow-hover); }
.staff-card .media { border-radius: 0; }
.staff-card:hover .ph, .staff-card:hover .editable-img, .staff-card:hover .ph-sample { transform: scale(1.05); }
.staff-card__body { display: flex; flex-direction: column; gap: 6px; padding: 24px; }
.staff-card__role { font-size: 13px; color: var(--c-ink); }
.staff-card__name { font-family: var(--ff-serif); font-size: 20px; font-weight: 500; letter-spacing: 0.12em; color: var(--c-text); }
.staff-card__text { font-size: 14px; color: var(--c-text-muted); text-wrap: pretty; }

/* ---------- Flow timeline（受診の流れ） ---------- */
.flow-layout { display: grid; gap: 48px; }
.flow-list { counter-reset: flow; min-width: 0; }
.flow-item { counter-increment: flow; position: relative; display: grid; gap: 20px; padding: 0 0 48px 72px; }
.flow-item::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border: 1px solid var(--c-primary); border-radius: 50%;
  display: grid; place-items: center; background: var(--c-bg); font-family: var(--ff-en); font-size: 20px; color: var(--c-ink);
}
.flow-item::after { content: ""; position: absolute; left: 23px; top: 56px; bottom: 8px; width: 1px; background: var(--c-border); }
.flow-item:last-child::after { display: none; }
.flow-item__body { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; min-width: 0; }
.flow-item h3 { font-size: 18px; letter-spacing: 0.08em; }
.flow-item p { color: var(--c-text-muted); text-wrap: pretty; }
.flow-item__media { max-width: 320px; }

/* ---------- Info cards（持ち物・問診票・保険証） ---------- */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; }
.info-card { display: flex; flex-direction: column; gap: 20px; padding: 36px 32px; background: var(--c-bg); border-radius: 4px; box-shadow: var(--shadow); min-width: 0; }
.info-card__title { font-size: 20px; letter-spacing: 0.1em; }
.info-card .btn { margin-top: auto; align-self: flex-start; }
.info-card__sub { padding-top: 16px; border-top: 1px solid var(--c-border); font-size: 14px; color: var(--c-text-muted); }

/* ---------- FAQ（開閉式・カテゴリ別） ---------- */
.faq-cats { display: flex; flex-direction: column; gap: 56px; }
.faq-cat { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 160px; }
.faq-cat__title { font-size: 20px; letter-spacing: 0.1em; }
.faq-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 48px; }
.faq-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px; border: 1px solid var(--c-border); border-radius: 999px; font-size: 14px; color: var(--c-text); }
.faq-jump a:hover { border-color: var(--c-primary); color: var(--c-ink); }
.faq-list { border-top: 1px solid var(--c-border); }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item summary { display: flex; align-items: flex-start; gap: 20px; padding: 24px 4px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 8px; background: linear-gradient(var(--c-ink), var(--c-ink)) center / 100% 1.5px no-repeat, linear-gradient(var(--c-ink), var(--c-ink)) center / 1.5px 100% no-repeat; transition: transform .6s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__q, .faq-item__a-mark { flex: none; font-family: var(--ff-en); font-size: 24px; line-height: 1.2; color: var(--c-primary); }
.faq-item__a-mark { color: var(--c-accent); }
.faq-item__question { flex: 1; min-width: 0; font-family: var(--ff-serif); font-size: 17px; font-weight: 500; color: var(--c-text); }
.faq-item__answer { display: flex; gap: 20px; padding: 0 4px 28px; }
.faq-item__answer p { flex: 1; min-width: 0; color: var(--c-text-muted); text-wrap: pretty; }

/* ---------- Tabs（料金表・募集要項。site.js が .tabs-bar を生成） ---------- */
.tabs-bar { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 32px; border-bottom: 1px solid var(--c-border); }
.tab-btn { position: relative; min-height: 52px; padding: 0 20px; border: 0; background: transparent; cursor: pointer; font-family: var(--ff-serif); font-size: 16px; color: var(--c-text-muted); }
.tab-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--c-ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.tab-btn[aria-selected="true"] { color: var(--c-ink); }
.tab-btn[aria-selected="true"]::after { transform: scaleX(1); }
.tab-group { display: flex; flex-direction: column; gap: 56px; }
.tabs-ready > .tab-panel { display: none; }
.tabs-ready > .tab-panel.is-active { display: flex; }
.tab-panel { flex-direction: column; gap: 28px; display: flex; }
.tab-panel__title { font-size: 20px; letter-spacing: 0.1em; }
.tabs-ready .tab-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 4px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 20px 12px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; font-weight: 400; }
.price-table thead th { font-size: 14px; font-weight: 500; color: var(--c-text-muted); border-bottom-color: var(--c-ink); }
.price-table .is-price { text-align: right; font-family: var(--ff-en); font-size: 22px; font-weight: 500; color: var(--c-ink); word-break: keep-all; overflow-wrap: anywhere; }
.price-table__note { display: block; font-size: 13px; color: var(--c-text-muted); }
.req-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--c-ink); }
.req-table th, .req-table td { padding: 20px 0; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.req-table th { width: 30%; padding-right: 16px; font-family: var(--ff-serif); font-weight: 500; color: var(--c-ink); }
.req-table td { white-space: pre-line; }

/* ---------- Spec boxes（自由診療の必須記載：費用・期間・回数・リスク） ---------- */
.spec-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.spec-dl > div { padding: 22px 24px; background: var(--c-bg-alt); border-radius: 4px; min-width: 0; }
.spec-dl dt { font-size: 13px; color: var(--c-text-muted); }
.spec-dl dd { margin-top: 6px; font-family: var(--ff-serif); font-size: 17px; }
.spec-dl .is-wide { grid-column: 1 / -1; }
.spec-dl .is-wide dd { font-family: var(--ff-sans); font-size: 15px; }
.section.alt .spec-dl > div { background: var(--c-bg); }

/* ---------- Case（治療前後の比較＋説明欄） ---------- */
.case-box { display: grid; gap: 32px; padding: 24px; border: 1px solid var(--c-border); border-radius: 4px; }
.case-photos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.case-photos figure { display: flex; flex-direction: column; gap: 8px; }
.case-photos figcaption { font-family: var(--ff-en); font-size: 14px; letter-spacing: 0.16em; color: var(--c-text-muted); }
.case-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 24px; font-size: 14px; align-content: start; }
.case-dl dt, .case-dl dd { padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.case-dl dt { color: var(--c-text-muted); white-space: nowrap; }

.case-list { display: flex; flex-direction: column; gap: 32px; }
.case-consent { margin-top: 20px; }
.risk-box { display: grid; gap: 24px; padding: 32px 28px; background: var(--c-bg-alt); border-radius: 4px; }

/* ---------- Route（駅からの道順） ---------- */
.route-list { counter-reset: route; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px 32px; }
.route-item { counter-increment: route; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.route-item .media::before { content: counter(route, decimal-leading-zero); position: absolute; left: 0; top: 0; z-index: 3; padding: 8px 16px; background: var(--c-ink); color: #fff; font-family: var(--ff-en); font-size: 18px; pointer-events: none; }

/* ---------- News page（お知らせ一覧） ---------- */
.news-filter { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.chip { min-height: 44px; padding: 0 24px; border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-bg); color: var(--c-text); font-size: 14px; cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.chip[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.news-page { border-top: 1px solid var(--c-border); }
.news-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 28px; padding: 28px 4px; border-bottom: 1px solid var(--c-border); }
.news-item.is-hidden { display: none; }
.news-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.news-item .date { font-family: var(--ff-en); font-size: 17px; font-weight: 500; color: var(--c-text-muted); }
.news-item h3 { font-size: 18px; letter-spacing: 0.06em; line-height: 1.7; color: var(--c-text); }
.news-item .more { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--c-ink); }
.news-item .more::after { content: "→"; margin-left: 10px; transition: transform .6s var(--ease); }
.news-item .more:hover::after { transform: translateX(4px); }
.news-empty { padding: 40px 0; text-align: center; color: var(--c-text-muted); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager button { width: 48px; height: 48px; border: 1px solid var(--c-border); border-radius: 50%; background: var(--c-bg); color: var(--c-ink); font-family: var(--ff-en); font-size: 17px; cursor: pointer; }
.pager button[aria-current="page"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.pager button:disabled { opacity: 0.4; cursor: default; }
.news-detail-view .news-detail__title { font-family: var(--ff-serif); font-weight: 500; color: var(--c-ink); letter-spacing: 0.08em; }
.news-detail-view .news-detail__date { font-family: var(--ff-en); }
.news-detail-view .news-detail__body { line-height: 2.1; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; }
.form-row { display: grid; gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--c-border); }
.form-row:first-child { border-top: 1px solid var(--c-border); }
.form-label { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.req, .opt { flex: none; padding: 1px 8px; border-radius: 2px; font-size: 11px; line-height: 1.6; }
.req { background: var(--c-ink); color: #fff; }
.opt { background: var(--c-border); color: var(--c-text); }
.form-control { width: 100%; min-height: 56px; padding: 0 16px; border: 1px solid var(--c-border); border-radius: 4px; background: var(--c-bg-alt); }
textarea.form-control { min-height: 200px; padding: 14px 16px; resize: vertical; }
.form-control[aria-invalid="true"] { border-color: var(--c-error); }
.form-error { margin-top: 6px; font-size: 13px; color: var(--c-error); }
.form-agree { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 40px; text-align: center; }
.form-agree label { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.form-agree input { width: 20px; height: 20px; accent-color: var(--c-ink); }
.form-agree a { text-decoration: underline; text-underline-offset: 4px; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding-top: 24px; }
.form-actions .btn { min-width: 280px; }
.form-steps { counter-reset: fstep; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 40px; border-bottom: 1px solid var(--c-border); }
.form-steps li { counter-increment: fstep; position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 4px; font-family: var(--ff-serif); font-size: 15px; color: var(--c-text-muted); }
.form-steps li::before { content: counter(fstep, decimal-leading-zero); font-family: var(--ff-en); font-size: 18px; }
.form-steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--c-ink); transform: scaleX(0); transition: transform .6s var(--ease); }
.form-steps li[aria-current="step"] { color: var(--c-ink); }
.form-steps li[aria-current="step"]::after { transform: scaleX(1); }
.form-confirm, .form-done { display: none; }
.form-confirm.is-active { display: flex; flex-direction: column; gap: 32px; }
.form-done.is-active { display: flex; }
.confirm-dl { display: grid; grid-template-columns: minmax(110px, 220px) minmax(0, 1fr); border-top: 1px solid var(--c-border); }
.confirm-dl dt, .confirm-dl dd { padding: 20px 0; border-bottom: 1px solid var(--c-border); }
.confirm-dl dt { padding-right: 16px; font-weight: 500; color: var(--c-ink); }
.confirm-dl dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.form-done { flex-direction: column; align-items: center; gap: 20px; padding: 64px 24px; background: var(--c-bg-alt); border-radius: 4px; text-align: center; }
.form-done .icon { width: 56px; height: 56px; stroke-width: 1; color: var(--c-primary); }
.form-done__title { font-family: var(--ff-serif); font-size: 22px; color: var(--c-ink); }
.is-form-hidden { display: none; }
.reserve-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.reserve-guide .btn, .reserve-guide .reserve-tel { min-height: 104px; }

.closed-days { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: 14px; }
.closed-days__label { color: var(--c-text-muted); }

/* ---------- Article（プライバシーポリシー等） ---------- */
.article { counter-reset: art; display: flex; flex-direction: column; gap: 40px; }
.article-item { counter-increment: art; display: flex; flex-direction: column; gap: 12px; }
.article-item h2 { display: flex; align-items: baseline; gap: 16px; font-size: 20px; letter-spacing: 0.08em; }
.article-item h2::before { content: counter(art, decimal-leading-zero); font-family: var(--ff-en); font-size: 20px; color: var(--c-primary); }
.article-item p { color: var(--c-text-muted); text-wrap: pretty; }
.article-sign { padding-top: 32px; border-top: 1px solid var(--c-border); font-size: 14px; color: var(--c-text-muted); white-space: pre-line; }

/* ---------- ≤767px ---------- */
@media (max-width: 767px) {
  .page-hero__body { position: absolute; background: linear-gradient(90deg, rgba(var(--c-bg-rgb), 0.94) 0%, rgba(var(--c-bg-rgb), 0.8) 60%, rgba(var(--c-bg-rgb), 0.4) 100%); }
  .route-item .media::before { padding: 6px 12px; font-size: 16px; }
  .flow-item { padding-left: 60px; }
  .flow-item::before { width: 40px; height: 40px; font-size: 17px; }
  .flow-item::after { left: 19px; top: 48px; }
  .form-actions .btn { min-width: 0; width: 100%; }
  .confirm-dl { grid-template-columns: minmax(0, 1fr); }
  .confirm-dl dt { padding-bottom: 4px; border-bottom: 0; }
  .req-table th, .req-table td { display: block; width: 100%; }
  .req-table th { padding-bottom: 4px; border-bottom: 0; }
  .career-item { grid-template-columns: 80px minmax(0, 1fr); }
  .tab-btn { padding: 0 14px; font-size: 15px; }
}

/* ---------- 768px+ ---------- */
@media (min-width: 768px) {
  .page-hero__en { font-size: 64px; }
  .page-hero__title { font-size: 24px; }
  .anchor-nav { padding-top: 64px; }
  .num-item h3, .equip-item h3, .flow-item h3 { font-size: 22px; }
  .flow-item { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .form-row { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .form-label { min-height: 56px; }
  .case-box { padding: 40px; }
  .case-list { display: flex; flex-direction: column; gap: 32px; }
.case-consent { margin-top: 20px; }
.risk-box { padding: 48px; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
  .faq-cat__title, .info-card__title, .tab-panel__title { font-size: 24px; }
}

/* ---------- 1024px+ ---------- */
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; }
  .split--reverse .split__media { order: 2; }
  .equip-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; }
  .equip-item:nth-child(even) .equip-item__media { order: 2; }
  .equip-list { gap: 112px; }
  .flow-layout { grid-template-columns: 340px minmax(0, 1fr); gap: 96px; }
  .flow-layout__side { position: sticky; top: 180px; align-self: start; }
  .case-box { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
}

/* ---------- 1280px+ ---------- */
@media (min-width: 1280px) {
  .page-hero__en { font-size: 104px; }
  .page-hero__title { font-size: 32px; }
  .num-item h3, .equip-item h3, .flow-item h3 { font-size: 26px; }
  .figure-item__num { font-size: 88px; }
}
