/* ============================================================
   リーベクリニック デザインシステム v1.0 — トークン
   ============================================================ */
:root {
  color-scheme: light;

  /* ブランド（ロゴ由来） */
  --brand-blue: #7aaacb;
  --brand-blue-600: #4a84ac;
  --brand-blue-700: #2f7397;
  --brand-pink: #d9a0a8;
  --brand-pink-700: #a94967;
  --brand-green: #9dba7a;
  --brand-green-700: #4e6b37;
  --accent: var(--brand-pink-700);
  --phone-bg: #ffd6e1;
  --phone-bg-hover: #ffc4d5;
  --phone-line: #e88fab;
  --phone-ink: var(--ink);
  --primary-bg: var(--brand-blue);
  --primary-bg-hover: #9bc6dc;
  --primary-line: var(--brand-blue-600);
  --primary-ink: var(--ink);

  /* 背景（ロゴの水色とピンクを基調にした明るい面） */
  --bg-cream: #f8fcff;
  --bg-beige: #eef7fb;
  --bg-sand: #fdf1f4;
  --surface: #ffffff;
  --line: #d7e5ee;
  --line-strong: #abc9da;
  --footer-bg: #244b63;

  /* パステルタイル */
  --tile-blue: #e8f4fb;
  --tile-green: #eef6e9;
  --tile-pink: #fbecef;
  --tile-cream: #fdf2f5;
  --tile-lavender: #f2f5fb;
  --tile-mint: #ecf6f1;
  --tile-sand: #eef7fb;
  --tile-sky: #f3fafe;

  /* テキスト・状態 */
  --ink: #26343e;
  --ink-muted: #556775;
  --ink-invert: #f8fcff;
  --alert-bg: #fdf2ef;
  --alert-ink: #8e2f2f;
  --alert-line: #d9a08d;
  --focus: #1f4f6e;

  /* タイポ */
  --font-body: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Noto Sans JP", Meiryo, sans-serif;
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", system-ui, -apple-system, "Hiragino Sans", "BIZ UDPGothic", Meiryo, sans-serif;

  /* スペーシング */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 40px; --sp-8: 56px;
  --sp-9: 72px; --sp-10: 96px; --sp-11: 120px;

  /* 角丸 */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px; --r-full: 999px;

  /* 影 */
  --sh-1: 0 2px 6px rgba(37, 82, 110, .06);
  --sh-2: 0 6px 18px rgba(37, 82, 110, .08);
  --sh-3: 0 12px 32px rgba(37, 82, 110, .12);

  --header-h: 64px;
  --container: 1120px;
}

@media (min-width: 1200px) { :root { --header-h: 84px; } }

/* ============================================================
   ベース
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.9;
  font-weight: 400;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; margin: 0 0 var(--sp-4); }
h1 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.75rem); line-height: 1.45; letter-spacing: .01em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem); line-height: 1.5; }
h3 { font-size: clamp(1.1875rem, 1.13rem + .28vw, 1.3125rem); line-height: 1.6; }
h4 { font-size: clamp(1.0625rem, 1.03rem + .16vw, 1.125rem); line-height: 1.6; margin-bottom: var(--sp-2); }
p  { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-blue-700); }
/* 本文中のリンクは下線を維持し（色だけに頼らない）、タップ領域44pxを確保する */
:where(p, li, td) a {
  text-decoration: underline; text-underline-offset: .22em;
  display: inline-block; padding-block: 10px;
}

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.3em; }
li { margin-bottom: var(--sp-2); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.nb { display: inline-block; }
.tnum { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; z-index: 200; top: 8px; left: 8px;
  padding: 12px 18px; background: var(--ink); color: var(--ink-invert);
  border-radius: var(--r-sm); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   レイアウトユーティリティ
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section {
  padding-block: var(--sp-8);
  position: relative;
}
@media (min-width: 900px) { .section { padding-block: var(--sp-10); } }

.section--surface { background: var(--surface); }
.section--beige   { background: var(--bg-beige); }
.section--sand    { background: var(--bg-sand); }

.narrow { max-width: 720px; }

/* 見出しブロック */
.head { margin-bottom: var(--sp-6); max-width: 720px; }
.head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  font-size: clamp(.75rem, .72rem + .1vw, .8125rem);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-blue-700); margin: 0 0 var(--sp-2);
}
.head h2 {
  position: relative; padding-left: 16px; margin-bottom: var(--sp-3);
}
.head h2::before {
  content: ""; position: absolute; left: 0; top: .22em; bottom: .22em;
  width: 5px; border-radius: var(--r-full); background: var(--brand-blue);
}
.head--center h2 { padding-left: 0; }
.head--center h2::before { display: none; }
.head--pink h2::before { background: var(--brand-pink); }
.head--pink .eyebrow { color: var(--brand-pink-700); }
.head--green h2::before { background: var(--brand-green); }
.head--green .eyebrow { color: var(--brand-green-700); }
.lead { color: var(--ink-muted); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }

/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; min-width: 200px; padding: 14px 28px;
  border: 2px solid transparent; border-radius: 12px;
  font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem;
  line-height: 1.3; text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn:hover { box-shadow: var(--sh-2); }
.btn .ico { flex: none; }

.btn--phone {
  background: var(--phone-bg); color: var(--phone-ink);
  border-color: var(--phone-line); box-shadow: var(--sh-2);
}
.btn--phone:hover { background: var(--phone-bg-hover); box-shadow: var(--sh-3); }
.btn--primary {
  background: var(--primary-bg); color: var(--primary-ink);
  border-color: var(--primary-line); box-shadow: var(--sh-2);
}
.btn--primary:hover { background: var(--primary-bg-hover); box-shadow: var(--sh-3); }
.btn--outline { background: var(--surface); color: var(--brand-blue-700); border-color: var(--primary-line); }
.btn--outline:hover { background: var(--tile-blue); }
.btn--quiet { background: transparent; color: var(--brand-blue-700); border-color: var(--line-strong); }
.btn--quiet:hover { background: var(--surface); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
@media (max-width: 640px) {
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}
@media (min-width: 1200px) { .btn { min-height: 52px; } }

/* ============================================================
   アイコン
   ============================================================ */
/* アイコンは assets/icons/*.svg 由来のスプライト（viewBox 0 0 48 48）を <use> で参照 */
.ico, .icon {
  width: 28px; height: 28px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico--sm, .icon--sm { width: 20px; height: 20px; stroke-width: 3; }
.ico--lg, .icon--lg { width: 44px; height: 44px; stroke-width: 2; }
.icon--xl { width: 56px; height: 56px; stroke-width: 1.9; }

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 252, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: var(--sh-1); }
.site-header .container { max-width: 1280px; }
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: var(--sp-4);
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 46px; height: auto; }
.brand-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; line-height: 1.25; white-space: nowrap; }
.brand-sub { display: block; font-size: .6875rem; letter-spacing: .1em; color: var(--ink-muted); line-height: 1.3; white-space: nowrap; }
@media (min-width: 1200px) {
  .brand img { width: 60px; }
  .brand-name { font-size: 1.25rem; }
  .brand-sub { font-size: .75rem; }
}

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-2);
  display: none; flex-direction: column; padding: var(--sp-3) clamp(16px, 4vw, 32px) var(--sp-5);
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  display: flex; align-items: center; min-height: 52px;
  padding: 4px 8px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.site-nav a:last-child { border-bottom: 0; }
.site-nav a[aria-current="page"] { color: var(--brand-blue-700); box-shadow: inset 0 -3px 0 var(--brand-blue); }

.header-tel { display: none; }
.header-tel .num { font-size: 1.0625rem; }

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; flex-direction: row; align-items: center;
    gap: var(--sp-1); background: none; border: 0; box-shadow: none; padding: 0;
    margin-right: var(--sp-3);
  }
  .site-nav a {
    min-height: 44px; border: 0; padding: 8px 9px; font-size: .8125rem;
    border-radius: var(--r-sm); white-space: nowrap;
  }
  .site-nav a:hover { background: var(--tile-blue); }
  .header-tel {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 48px; padding: 8px 18px; border-radius: 12px;
    background: var(--phone-bg); color: var(--phone-ink);
    border: 1px solid var(--phone-line); font-weight: 700; text-decoration: none;
    white-space: nowrap; font-size: .9375rem;
  }
  .header-tel:hover { background: var(--phone-bg-hover); }
}
@media (min-width: 1400px) {
  .site-nav { gap: var(--sp-2); }
  .site-nav a { padding-inline: 10px; font-size: .875rem; }
  .header-tel { padding-inline: 20px; }
}

/* ============================================================
   写真枠（フォールバック付き）
   ============================================================ */
.photo {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--tile-blue), var(--tile-pink));
  isolation: isolate;
}
.photo::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, rgba(122, 170, 203, .12), rgba(217, 160, 168, .12));
}
.photo img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.photo.is-missing img { display: none; }
.photo-fallback {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; gap: var(--sp-2);
  align-items: center; justify-content: center;
  color: var(--brand-blue-700); opacity: .6; text-align: center;
}
.photo-fallback .fb-text { font-size: .8125rem; font-weight: 700; color: var(--ink-muted); }
.photo-fallback .ico, .photo-fallback .icon { width: 34%; max-width: 130px; height: auto; stroke-width: 1.6; }
.photo:not(.is-missing) .photo-fallback { display: none; }

.ar-16-9 { aspect-ratio: 16 / 9; }
.ar-4-3  { aspect-ratio: 4 / 3; }
.ar-3-4  { aspect-ratio: 3 / 4; }
.ar-1-1  { aspect-ratio: 1 / 1; }

/* ============================================================
   ヒーロー
   ============================================================ */
.hero {
  position: relative; padding-block: 0 var(--sp-6); overflow: hidden;
  background: var(--bg-cream);
}
.hero-media {
  position: relative;
  width: 100%;
  border-radius: 0;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  max-height: 400px;
}
.hero-media::after {
  z-index: 2;
  background: linear-gradient(100deg, rgba(122, 170, 203, .14), rgba(255, 255, 255, .02) 48%, rgba(217, 160, 168, .18));
  pointer-events: none;
}
.hero-media img { filter: saturate(.84) brightness(1.06); }
.hero-media--brand {
  aspect-ratio: 16 / 6; min-height: 220px; max-height: 320px;
}
.hero-media--brand::after { background: none; }
.hero-media--brand img { filter: none; }
.hero-inner { position: relative; }
.hero-panel {
  position: relative;
  margin-top: 0;
  max-width: 780px;
  background: transparent;
  border: 0;
  border-left: 5px solid var(--brand-blue);
  border-radius: 0;
  box-shadow: none;
  padding: var(--sp-6) 0 var(--sp-5) clamp(18px, 3vw, 32px);
}
.hero-panel .eyebrow { color: var(--brand-pink-700); }
.hero-panel h1 { margin-bottom: var(--sp-3); overflow-wrap: normal; }
.h1-sub {
  display: block; margin-top: .3em;
  font-size: .68em; line-height: 1.4; color: var(--brand-blue-700);
}
.hero-creed {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem);
  color: var(--brand-blue-700); line-height: 1.8; margin-bottom: var(--sp-3);
}
.hero-copy { color: var(--ink-muted); margin-bottom: var(--sp-5); }
.hero-note {
  margin-top: var(--sp-4); font-size: .875rem; color: var(--ink-muted); line-height: 1.8;
}

@media (min-width: 900px) {
  .hero { padding-bottom: var(--sp-8); }
  .hero-media {
    aspect-ratio: 21 / 9; min-height: 420px; max-height: 560px;
    border-radius: 0;
  }
  .hero-media--brand {
    aspect-ratio: 21 / 6; min-height: 320px; max-height: 380px;
  }
  .hero-panel {
    margin-top: 0; margin-right: auto; max-width: 820px;
    padding: var(--sp-7) 0 var(--sp-6) var(--sp-7);
  }
}
@media (min-width: 1280px) {
  .hero-media { min-height: 480px; }
  .hero-media--brand { min-height: 320px; max-height: 360px; }
  .hero-panel { max-width: 860px; }
}

/* 即答バー */
.quickbar {
  position: relative; z-index: 2;
  margin-top: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-blue);
  border-radius: var(--r-md);
  box-shadow: none;
  display: grid; grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
}
.quickbar > * {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--sp-4) var(--sp-3);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); min-height: 96px;
}
.quickbar > *:nth-child(2n) { border-right: 0; }
.quickbar > *:nth-last-child(-n+2) { border-bottom: 0; }
.quickbar a:first-child { background: var(--tile-pink); }
.quickbar a:hover { background: var(--tile-blue); }
.qb-label {
  display: flex; align-items: center; gap: 6px;
  font-size: .8125rem; font-weight: 700; color: var(--ink-muted);
}
.qb-label .ico { width: 18px; height: 18px; color: var(--brand-blue-600); }
.qb-value { font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; line-height: 1.45; }
.qb-value.num { font-size: 1.25rem; letter-spacing: .01em; color: var(--accent); }
.qb-sub { font-size: .8125rem; color: var(--ink-muted); line-height: 1.6; }

@media (min-width: 768px) {
  .quickbar { grid-template-columns: repeat(4, 1fr); }
  .quickbar > * { border-bottom: 0; border-right: 1px solid var(--line); padding: var(--sp-5) var(--sp-4); }
  .quickbar > *:last-child { border-right: 0; }
  .quickbar > *:nth-child(2n) { border-right: 1px solid var(--line); }
  .qb-value.num { font-size: 1.5rem; }
}

/* ============================================================
   パステルタイル（目的別ナビ）
   ============================================================ */
.tiles {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px)  { .tiles { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); } }
@media (min-width: 1200px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: var(--sp-3); text-align: center; text-decoration: none; color: var(--ink);
  padding: var(--sp-5) var(--sp-3);
  border: 1px solid var(--line); border-top: 3px solid var(--brand-blue);
  border-radius: var(--r-md); background: rgba(255, 255, 255, .9);
  min-height: 148px;
  transition: background-color .16s ease, border-color .16s ease;
}
.tile:hover { border-color: var(--brand-blue); background: var(--tile-blue); }
.tile .ico, .tile .icon {
  width: 44px; height: 44px; padding: 0;
  border-radius: 0; background: transparent; color: var(--brand-blue-700);
}
.tile-label { font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.55; }
.tile-sub { font-size: .8125rem; color: var(--ink-muted); line-height: 1.7; }
@media (min-width: 900px) { .tile { padding: var(--sp-6) var(--sp-4); min-height: 176px; } .tile-label { font-size: 1.0625rem; } }

.tile--blue, .tile--lavender, .tile--sky { border-top-color: var(--brand-blue); }
.tile--pink, .tile--cream, .tile--sand { border-top-color: var(--brand-pink); }
.tile--pink .ico, .tile--pink .icon,
.tile--cream .ico, .tile--cream .icon,
.tile--sand .ico, .tile--sand .icon {
  background: transparent; color: var(--brand-pink-700);
}
.tile--green, .tile--mint { border-top-color: var(--brand-blue); }
.tile--green .ico, .tile--green .icon,
.tile--mint .ico, .tile--mint .icon { background: transparent; color: var(--brand-blue-700); }

/* ============================================================
   カード / グリッド
   ============================================================ */
.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: var(--sp-5); }
}

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-5);
}
.card > :last-child { margin-bottom: 0; }
.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--r-full);
  background: var(--tile-blue); color: var(--brand-blue-700);
  margin-bottom: var(--sp-3);
}
.card-ico--pink { background: var(--tile-pink); color: var(--brand-pink-700); }
.card-ico--green { background: var(--tile-green); color: var(--brand-green-700); }
.card-ico--sand { background: var(--tile-sand); color: var(--accent); }
.card p { color: var(--ink-muted); font-size: .9375rem; }
.card--tinted { background: var(--bg-cream); }

/* ============================================================
   訪問診療とは（写真＋特徴）
   ============================================================ */
.split { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .split--reverse > :first-child { order: 2; }
}
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.feature-list li { display: flex; gap: var(--sp-4); margin: 0; }
.feature-list .ico { color: var(--brand-blue-700); margin-top: 4px; }
.feature-list h3 { margin-bottom: 2px; font-size: 1.0625rem; }
.feature-list p { font-size: .9375rem; color: var(--ink-muted); margin: 0; }

/* できることリスト */
.can-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--sp-3); grid-template-columns: 1fr;
}
@media (min-width: 640px) { .can-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .can-list { grid-template-columns: repeat(4, 1fr); } }
.can-list li {
  display: flex; gap: var(--sp-3); align-items: flex-start; margin: 0;
  background: transparent; border: 0; border-top: 1px solid var(--line-strong);
  border-radius: 0; padding: var(--sp-4) 0;
}
.can-list .ico { color: var(--brand-green-700); margin-top: 2px; }
.can-list strong { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.5; }
.can-list span { display: block; font-size: .8125rem; color: var(--ink-muted); line-height: 1.7; }

/* ============================================================
   対応エリア
   ============================================================ */
.area-wrap { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .area-wrap { grid-template-columns: minmax(0, 420px) 1fr; align-items: center; gap: var(--sp-8); } }
.area-map {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-4); box-shadow: var(--sh-1);
}
.area-map svg { width: 100%; height: auto; display: block; }
.map-caption { margin: var(--sp-3) 0 0; font-size: .75rem; color: var(--ink-muted); line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
.chips li { margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 18px;
  border-radius: var(--r-full); background: var(--surface);
  border: 1px solid var(--line-strong); font-weight: 700; font-size: .9375rem;
  color: var(--ink); text-decoration: none;
}
.chip--primary { background: var(--tile-blue); border-color: var(--brand-blue); }
.chip .ico { width: 16px; height: 16px; color: var(--brand-blue-700); }
.area-note {
  background: var(--bg-cream); border: 1px solid var(--line);
  border-left: 5px solid var(--brand-green);
  border-radius: var(--r-md); padding: var(--sp-4); font-size: .9375rem; color: var(--ink-muted);
}

/* ============================================================
   アラート（119番）
   ============================================================ */
.alert {
  background: var(--alert-bg); border: 2px solid var(--alert-line);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.alert h3 {
  display: flex; align-items: center; gap: 10px;
  color: var(--alert-ink); margin-bottom: var(--sp-3);
}
.alert h3 .ico { color: var(--alert-ink); }
.alert ul { margin-bottom: var(--sp-3); }
.alert li { font-weight: 500; }
.alert p { font-size: .9375rem; color: var(--ink); margin: 0; }
.alert-tel {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--sp-3); padding: 10px 20px; min-height: 48px;
  background: var(--alert-ink); color: #fff; border-radius: var(--r-full);
  font-weight: 700; text-decoration: none;
}

/* ============================================================
   院長紹介
   ============================================================ */
.doctor { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .doctor { grid-template-columns: minmax(0, 300px) 1fr; gap: var(--sp-8); align-items: start; } }
.doctor.no-photo { grid-template-columns: 1fr; max-width: 820px; }
.logo-figure { max-width: 180px; margin: var(--sp-4) 0; }
.logo-inline { display: block; width: 100%; height: auto; }
.doctor-photo { box-shadow: var(--sh-2); }
.doctor-name { font-family: var(--font-head); font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); font-weight: 700; margin: 0; }
.doctor-kana { font-size: .875rem; color: var(--ink-muted); margin: 0 0 var(--sp-4); }
.doctor-quote {
  margin: 0 0 var(--sp-5); padding: var(--sp-4) var(--sp-5);
  background: var(--bg-cream); border-left: 5px solid var(--brand-pink);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-head); font-size: 1.0625rem; line-height: 1.85;
}
.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--sp-5); border-left: 2px solid var(--line-strong); }
.timeline li { position: relative; margin-bottom: var(--sp-4); }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1 * var(--sp-5) - 7px); top: .6em;
  width: 12px; height: 12px; border-radius: var(--r-full);
  background: var(--brand-blue); border: 2px solid var(--surface);
}
.timeline b { display: block; font-family: var(--font-head); font-size: .9375rem; color: var(--brand-blue-700); }
.timeline span { font-size: .9375rem; color: var(--ink-muted); line-height: 1.8; }

/* ============================================================
   フロー（4ステップ）
   ============================================================ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); } }
.steps li {
  position: relative; margin: 0;
  background: transparent; border: 0; border-top: 2px solid var(--line-strong);
  border-radius: 0; padding: var(--sp-5) 0 0;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-full);
  background: var(--primary-bg); color: var(--primary-ink);
  border: 1px solid var(--primary-line);
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  margin-bottom: var(--sp-3);
}
.steps h3 { font-size: 1.0625rem; margin-bottom: var(--sp-2); }
.steps p { font-size: .9375rem; color: var(--ink-muted); margin: 0; }
@media (min-width: 900px) {
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; right: -18px; top: 50%;
    width: 12px; height: 12px; transform: translateY(-50%) rotate(45deg);
    border-top: 3px solid var(--brand-blue); border-right: 3px solid var(--brand-blue);
  }
}

/* ============================================================
   費用
   ============================================================ */
.cost-note {
  margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-5);
  background: var(--surface); border: 1px dashed var(--line-strong);
  border-radius: var(--r-md); font-size: .9375rem; color: var(--ink-muted);
}

/* ============================================================
   グループ（ベン図）
   ============================================================ */
.venn-wrap { display: grid; gap: var(--sp-6); justify-items: center; }
.venn { width: 100%; max-width: 420px; height: auto; display: block; }
.group-cards { width: 100%; }
.group-cards { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .group-cards { grid-template-columns: repeat(3, 1fr); } }
.group-card { border-radius: var(--r-lg); padding: var(--sp-4); border: 1px solid var(--line); background: var(--surface); }
.group-card h3 { font-size: 1.0625rem; margin-bottom: var(--sp-2); display: flex; align-items: center; gap: 8px; }
.group-card h3::before { content: ""; width: 14px; height: 14px; border-radius: var(--r-full); flex: none; }
.group-card--med h3::before { background: var(--brand-blue); }
.group-card--care h3::before { background: var(--brand-green); }
.group-card--welfare h3::before { background: var(--brand-pink); }
.group-card ul { margin: 0; padding-left: 1.2em; font-size: .875rem; color: var(--ink-muted); }
.group-card li { margin-bottom: 4px; }

/* ============================================================
   お問い合わせ
   ============================================================ */
.contact-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.contact-card:first-child { border-color: var(--brand-pink); box-shadow: var(--sh-1); }
.contact-card .card-ico { margin-bottom: 0; }
.contact-card .label { font-size: .875rem; font-weight: 700; color: var(--ink-muted); }
.contact-card .value {
  display: inline-flex; align-items: center; min-height: 48px;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  line-height: 1.3; color: var(--accent); text-decoration: none;
  font-variant-numeric: tabular-nums; letter-spacing: .01em; word-break: break-all;
}
.contact-card .value--plain { color: var(--ink); }
.contact-card .value--mail { font-size: clamp(1rem, .9rem + .5vw, 1.25rem); color: var(--brand-blue-700); }
.contact-card small { font-size: .8125rem; color: var(--ink-muted); line-height: 1.7; }

.access { display: grid; gap: var(--sp-5); margin-top: var(--sp-6); }
@media (min-width: 900px) { .access { grid-template-columns: 1fr 1fr; align-items: start; } }
.map-frame {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--line); background: var(--bg-beige);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.access-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.access-table th, .access-table td { text-align: left; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.access-table th { width: 7.5em; font-weight: 700; color: var(--ink-muted); }

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: var(--footer-bg); color: var(--ink-invert);
  border-top: 4px solid var(--brand-pink); padding-block: var(--sp-8) var(--sp-6);
}
.footer-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: minmax(0, 320px) 1fr; gap: var(--sp-8); } }
.footer-brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.footer-brand img { width: 56px; background: #fff; border-radius: var(--r-md); padding: 4px; }
.footer-brand strong { font-family: var(--font-head); font-size: 1.125rem; display: block; }
.footer-brand span { font-size: .75rem; letter-spacing: .1em; opacity: .8; }
.site-footer p { font-size: .875rem; margin-bottom: var(--sp-2); line-height: 1.8; }
.site-footer a { color: var(--ink-invert); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
.footer-nav li { margin: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 700; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { border-top: 1px solid rgba(248, 252, 255, .24); margin-top: var(--sp-5); padding-top: var(--sp-4); font-size: .8125rem; opacity: .85; }

/* ============================================================
   モバイル固定電話バー
   ============================================================ */
.mobile-bar {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1.2fr 1fr;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(37, 82, 110, .12);
  padding: 8px; gap: 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; border-radius: 12px;
  font-weight: 700; font-size: .9375rem; text-decoration: none;
}
.mobile-bar .tel {
  background: var(--phone-bg); color: var(--phone-ink);
  border: 1px solid var(--phone-line);
}
.mobile-bar .sub { background: var(--tile-blue); color: var(--brand-blue-700); }
@media (min-width: 1200px) { .mobile-bar { display: none; } }
@media (max-width: 1199px) { body { padding-bottom: 84px; } }

/* ============================================================
   モーション配慮
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .tile:hover { transform: none; }
}

/* ============================================================
   印刷
   ============================================================ */
@media print {
  .site-header, .mobile-bar, .map-frame, .skip-link { display: none !important; }
  body { background: #fff; padding-bottom: 0; font-size: 11pt; }
  .section { padding-block: 12pt; }
  a[href^="tel:"]::after { content: " (" attr(href) ")"; }
}

/* ============================================================================
   下層ページ用コンポーネント
   ============================================================================ */

/* ---------- パンくず .breadcrumb ---------- */
.breadcrumb { background: var(--bg-beige); border-bottom: 1px solid var(--line); }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--sp-2);
  list-style: none; margin: 0; padding-block: var(--sp-2);
  font-size: .8125rem; color: var(--ink-muted);
}
.breadcrumb li { display: flex; align-items: center; gap: var(--sp-2); margin: 0; }
.breadcrumb li + li::before { content: "›"; color: var(--line-strong); font-size: 1.1em; }
.breadcrumb a {
  color: var(--brand-blue-700); text-decoration: underline; text-underline-offset: .2em;
  display: inline-block; padding-block: 8px;
}
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------- 下層ページ見出し帯 .page-hero ---------- */
.page-hero {
  background: var(--bg-beige);
  border-bottom: 1px solid var(--line); padding-block: var(--sp-7) var(--sp-6);
}
.page-hero .container { display: grid; gap: var(--sp-5); }
.page-hero h1 {
  margin: 0 0 var(--sp-3);
  font-size: clamp(1.625rem, 1.15rem + 2vw, 2.5rem); line-height: 1.45;
  overflow-wrap: normal;
}
.page-hero .lead { margin: 0; max-width: 40em; }
.page-hero .eyebrow { color: var(--brand-blue-700); }

.page-hero--photo .container { align-items: center; }
@media (min-width: 900px) {
  .page-hero--photo .container { grid-template-columns: 1.15fr .85fr; gap: var(--sp-8); }
}
.page-hero--photo .photo { width: 100%; }

.page-hero--pink .eyebrow { color: var(--brand-pink-700); }
.page-hero--green .eyebrow { color: var(--brand-green-700); }

/* ---------- 結論ブロック .summary ---------- */
.summary {
  background: var(--tile-blue);
  border-left: 6px solid var(--brand-blue);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: var(--sp-5); margin: 0 0 var(--sp-6);
}
.summary > :last-child { margin-bottom: 0; }
.summary p { font-size: clamp(1rem, .96rem + .25vw, 1.0625rem); }
.summary p:first-child { font-weight: 700; }
.summary ul { list-style: none; margin: var(--sp-4) 0 0; padding: 0; }
.summary li {
  position: relative; padding-left: 1.7em; margin-bottom: var(--sp-2);
  font-size: .9375rem; line-height: 1.85;
}
.summary li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 12px; height: 7px; border-left: 3px solid var(--brand-blue-700);
  border-bottom: 3px solid var(--brand-blue-700); transform: rotate(-45deg);
}
.summary--green { background: var(--tile-blue); border-left-color: var(--brand-blue); }
.summary--green li::before { border-color: var(--brand-blue-700); }
.summary--pink { background: var(--tile-pink); border-left-color: var(--brand-pink); }
.summary--pink li::before { border-color: var(--brand-pink-700); }
@media (min-width: 768px) { .summary { padding: var(--sp-6) var(--sp-7); } }

/* ---------- 記事本文 .prose ---------- */
.prose { max-width: 46em; }
.prose > h2 {
  position: relative; margin: var(--sp-8) 0 var(--sp-4); padding-bottom: var(--sp-3);
  border-bottom: 3px solid var(--bg-sand);
}
.prose > h2::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 3.5em; height: 3px; background: var(--brand-blue);
}
.prose > h2:first-child { margin-top: 0; }
.prose > h3 {
  margin: var(--sp-6) 0 var(--sp-3); padding-left: 14px;
  border-left: 5px solid var(--brand-green); line-height: 1.55;
}
.prose > h4 { margin: var(--sp-5) 0 var(--sp-2); }
.prose p { margin-bottom: var(--sp-4); }
.prose ul, .prose ol { margin: 0 0 var(--sp-5); padding-left: 1.5em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li {
  position: relative; padding-left: 1.6em; margin-bottom: var(--sp-2);
}
.prose ul > li::before {
  content: ""; position: absolute; left: .35em; top: .72em;
  width: 8px; height: 8px; border-radius: var(--r-full); background: var(--brand-green);
}
.prose ol > li { margin-bottom: var(--sp-2); padding-left: .25em; }
.prose ol { counter-reset: none; }
.prose strong { font-weight: 700; color: var(--brand-green-700); }
.prose blockquote {
  margin: 0 0 var(--sp-5); padding: var(--sp-4) var(--sp-5);
  background: var(--bg-cream); border-left: 5px solid var(--brand-pink);
  border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink);
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose small, .prose .note {
  display: block; font-size: .8125rem; color: var(--ink-muted); line-height: 1.8;
  margin-bottom: var(--sp-4);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }
.prose > :last-child { margin-bottom: 0; }
.prose--wide { max-width: none; }

/* ---------- 表 .table-wrap / table ---------- */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 0 0 var(--sp-5); border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface);
}
.table-wrap table { margin: 0; border-radius: 0; border: 0; }
table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  font-size: 1rem; line-height: 1.8;
}
table caption {
  caption-side: top; text-align: left; padding: var(--sp-3) var(--sp-4);
  font-weight: 700; font-family: var(--font-head); font-size: 1rem;
  background: var(--bg-beige); color: var(--ink); border-bottom: 1px solid var(--line);
}
th, td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--bg-sand); font-weight: 700; white-space: normal; }
tbody th[scope="row"] { background: var(--bg-cream); font-weight: 700; min-width: 7em; }
table td:nth-child(n+2), table th:nth-child(n+2) { min-width: 7em; }
table td, table th { overflow-wrap: anywhere; }
tbody tr:nth-child(even) td { background: rgba(232, 244, 251, .5); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  table { font-size: .9375rem; }
  th, td { padding: var(--sp-2) var(--sp-3); }
  table td:nth-child(n+2), table th:nth-child(n+2) { min-width: 5em; }
  thead th { white-space: normal; }
}
.table-note { font-size: .8125rem; color: var(--ink-muted); margin: calc(-1 * var(--sp-3)) 0 var(--sp-5); }

/* ---------- FAQ（汎用） .faq ---------- */
.faq { display: grid; gap: var(--sp-3); margin: 0 0 var(--sp-5); }
.faq > details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.faq > details > summary {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 60px; padding: var(--sp-3) 48px var(--sp-3) var(--sp-4);
  font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; line-height: 1.6;
  cursor: pointer; list-style: none; position: relative;
}
.faq > details > summary::-webkit-details-marker { display: none; }
.faq > details > summary::before {
  content: "Q"; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--r-full);
  background: var(--tile-blue); color: var(--brand-blue-700); font-size: .9375rem;
}
.faq > details > summary::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 11px; height: 11px; transform: translateY(-70%) rotate(135deg);
  border-top: 2px solid var(--brand-blue-700); border-right: 2px solid var(--brand-blue-700);
  transition: transform .18s ease;
}
.faq > details[open] > summary::after { transform: translateY(-30%) rotate(-45deg); }
.faq > details[open] { border-left: 5px solid var(--brand-blue); }
.faq-a { padding: 0 var(--sp-5) var(--sp-5) calc(var(--sp-4) + 32px + var(--sp-3)); }
.faq-a > :last-child { margin-bottom: 0; }
.faq-a p { font-size: 1rem; color: var(--ink); }
@media (max-width: 520px) { .faq-a { padding-left: var(--sp-4); } }

/* ---------- 縦ステップ .steps--vertical ---------- */
.steps--vertical { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.steps--vertical li { position: relative; padding-left: 72px; }
.steps--vertical .step-num {
  position: absolute; left: var(--sp-5); top: var(--sp-5); margin: 0;
  width: 40px; height: 40px; font-size: 1.125rem;
}
.steps--vertical li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(var(--sp-5) + 19px); bottom: -18px;
  width: 2px; height: 18px; background: var(--brand-blue); border: 0; transform: none;
}
@media (min-width: 900px) {
  .steps--vertical { grid-template-columns: 1fr; }
  .steps--vertical li:not(:last-child)::after {
    left: calc(var(--sp-5) + 19px); right: auto; top: auto; bottom: -18px;
    width: 2px; height: 18px; border: 0; transform: none;
  }
}

/* ---------- コールアウト .callout ---------- */
.callout {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  padding: var(--sp-4) var(--sp-5); margin: 0 0 var(--sp-5);
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--bg-cream);
}
.callout > .icon { margin-top: 3px; }
.callout-body { flex: 1 1 auto; min-width: 0; }
.callout-body > :last-child { margin-bottom: 0; }
.callout h3, .callout .callout-title {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 1.0625rem; margin: 0 0 var(--sp-2);
}
.callout p, .callout li { font-size: .9375rem; }

.callout--info { background: var(--tile-blue); border-color: var(--brand-blue); }
.callout--info > .icon, .callout--info .callout-title, .callout--info h3 { color: var(--brand-blue-700); }

.callout--warn { background: var(--tile-pink); border-color: var(--brand-pink-700); }
.callout--warn > .icon, .callout--warn .callout-title, .callout--warn h3 { color: var(--accent); }

.callout--emergency {
  background: var(--alert-bg); border: 2px solid var(--alert-line);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.callout--emergency > .icon, .callout--emergency .callout-title, .callout--emergency h3 { color: var(--alert-ink); }
.callout--emergency .btn-tel119 {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--sp-3); padding: 10px 20px; min-height: 48px;
  background: var(--alert-ink); color: #fff; border-radius: var(--r-full);
  font-weight: 700; text-decoration: none;
}

/* ---------- ページ末尾CTA帯 .cta-band ---------- */
.cta-band {
  background: var(--bg-sand);
  border-top: 1px solid var(--line);
  padding-block: var(--sp-8);
}
.cta-band .cta-inner { display: grid; gap: var(--sp-5); }
@media (min-width: 900px) { .cta-band .cta-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--sp-8); } }
.cta-band h2 { margin-bottom: var(--sp-2); }
.cta-band p { color: var(--ink-muted); font-size: .9375rem; }
.cta-tel {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--sh-1);
}
.cta-tel .label { font-size: .875rem; font-weight: 700; color: var(--ink-muted); }
.cta-tel .num {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); line-height: 1.2;
  color: var(--accent); text-decoration: none;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.cta-tel .num .icon { width: 30px; height: 30px; }
.cta-sub {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--line-strong);
  font-size: .9375rem; width: 100%;
}
.cta-sub a { text-decoration: underline; text-underline-offset: .2em; display: inline-block; padding-block: 8px; }
.cta-note { font-size: .8125rem; color: var(--ink-muted); margin: var(--sp-3) 0 0; }

/* ---------- 監修ブロック .byline ---------- */
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-5);
  padding: var(--sp-4) var(--sp-5); margin: var(--sp-7) 0 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: .875rem; color: var(--ink-muted);
}
.byline .icon { color: var(--brand-blue-700); }
.byline strong { color: var(--ink); }
.byline a { text-decoration: underline; text-underline-offset: .2em; }
.byline time { font-variant-numeric: tabular-nums; }

/* ---------- 目次 .toc ---------- */
.toc {
  background: var(--bg-cream); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); margin: 0 0 var(--sp-6);
}
.toc > .toc-title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 var(--sp-2);
  font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem;
}
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.toc li { counter-increment: toc; margin: 0; }
.toc li::before { content: none; }
.toc a {
  display: flex; gap: 10px; align-items: baseline; min-height: 44px;
  padding: 8px 0; text-decoration: none; color: var(--brand-blue-700); font-weight: 700;
  font-size: .9375rem; border-bottom: 1px dashed var(--line);
}
.toc a::before { content: counter(toc) "."; flex: none; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.toc a:hover { text-decoration: underline; }
.toc li:last-child a { border-bottom: 0; }
.toc ol ol { padding-left: 1.4em; }
.toc ol ol a { font-weight: 400; font-size: .875rem; }

/* ---------- 関連ページ .related ---------- */
.related { margin-top: var(--sp-8); }
.related > h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); margin-bottom: var(--sp-4); }
.related-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  display: flex; flex-direction: column; gap: var(--sp-2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-5);
  text-decoration: none; color: var(--ink);
  transition: background-color .16s ease, border-color .16s ease;
}
.related-card:hover { background: var(--bg-cream); border-color: var(--brand-blue); }
.related-card .icon { color: var(--brand-blue-700); }
.related-card b { font-family: var(--font-head); font-size: 1.0625rem; line-height: 1.5; }
.related-card span { font-size: .875rem; color: var(--ink-muted); line-height: 1.75; }
.related-card::after {
  content: "詳しく見る ›"; font-size: .875rem; font-weight: 700;
  color: var(--brand-blue-700); margin-top: auto; padding-top: var(--sp-2);
}

/* ---------- コラム一覧カード .card-grid ---------- */
.card-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } }
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--ink);
  transition: background-color .16s ease, border-color .16s ease;
}
.post-card:hover { background: var(--bg-cream); border-color: var(--brand-blue); }
.post-card .photo { border-radius: 0; }
.post-card .post-body { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.post-card h3 { font-size: 1.0625rem; line-height: 1.55; margin: 0; }
.post-card p { font-size: .875rem; color: var(--ink-muted); margin: 0; line-height: 1.75; }
.post-cat {
  align-self: flex-start; display: inline-block;
  padding: 4px 12px; border-radius: var(--r-full);
  background: var(--tile-green); color: var(--brand-green-700);
  font-size: .75rem; font-weight: 700;
}
.post-cat--care { background: var(--tile-blue); color: var(--brand-blue-700); }
.post-cat--family { background: var(--tile-pink); color: var(--brand-pink-700); }
.post-cat--area { background: var(--tile-sand); color: var(--accent); }

/* ---------- 記事メタ .article-meta ---------- */
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4);
  margin: 0 0 var(--sp-5); font-size: .875rem; color: var(--ink-muted);
}
.article-meta time { font-variant-numeric: tabular-nums; }
.article-meta .icon { width: 18px; height: 18px; }
.article-meta > span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 図版 .figure ---------- */
.figure { margin: 0 0 var(--sp-5); }
.figure .photo { margin-bottom: var(--sp-2); }
.figure figcaption {
  font-size: .8125rem; color: var(--ink-muted); line-height: 1.7;
  display: flex; flex-wrap: wrap; gap: 4px var(--sp-3);
}
.figure figcaption .img-note { color: var(--ink-muted); }
.image-disclaimer {
  margin: var(--sp-3) 0 0;
  color: var(--ink-muted);
  font-size: .8125rem;
}
.figure--right { max-width: 420px; }
@media (min-width: 900px) { .figure--right { float: right; margin: 0 0 var(--sp-5) var(--sp-6); } }

/* ---------- エリア表 .area-table ---------- */
.area-table td .zone, .area-table th .zone {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 12px; border-radius: var(--r-full);
  font-size: .8125rem; font-weight: 700; white-space: nowrap;
}
.zone--center { background: var(--tile-blue); color: var(--brand-blue-700); }
.zone--covered { background: var(--tile-green); color: var(--brand-green-700); }
.zone--consult { background: var(--tile-pink); color: var(--brand-pink-700); }
.area-table .zone::before {
  content: ""; width: 9px; height: 9px; border-radius: var(--r-full);
  background: currentColor; flex: none;
}

/* ---------- 書類表 .doc-table ---------- */
.doc-table td:first-child, .doc-table th:first-child { min-width: 0; }
.doc-table td:last-child { white-space: normal; }

/* ---------- 施設導入フェーズ .phase-grid ---------- */
.phase-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; margin: 0 0 var(--sp-5); }
@media (min-width: 900px) { .phase-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } .container.narrow .phase-grid, .narrow .phase-grid { grid-template-columns: 1fr; } }
.phase-grid > article {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--brand-blue); border-radius: var(--r-md);
  padding: var(--sp-5);
}
.phase-grid > article:nth-child(2) { border-top-color: var(--brand-green); }
.phase-grid > article:nth-child(3) { border-top-color: var(--brand-pink); }
.phase-grid .phase-label {
  display: inline-block; margin: 0 0 var(--sp-2);
  font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  color: var(--brand-blue-700);
}
.phase-grid > article:nth-child(2) .phase-label { color: var(--brand-green-700); }
.phase-grid > article:nth-child(3) .phase-label { color: var(--brand-pink-700); }
.phase-grid h3 { font-size: 1.125rem; margin-bottom: var(--sp-2); }
.phase-grid p, .phase-grid li { font-size: .9375rem; color: var(--ink-muted); }
.phase-grid > article > :last-child { margin-bottom: 0; }

/* ---------- フッター上の固定注記 .notice-oncall ---------- */
.notice-oncall {
  background: var(--bg-beige); border-top: 1px solid var(--line);
  padding-block: var(--sp-4);
}
.notice-oncall p {
  display: flex; gap: var(--sp-3); align-items: flex-start; margin: 0;
  font-size: .8125rem; line-height: 1.8; color: var(--ink);
}
.notice-oncall .icon { color: var(--alert-ink); margin-top: 2px; width: 22px; height: 22px; }
.notice-oncall a { padding-block: 0; }

/* ---------- 補助 ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.stack > * + * { margin-top: var(--sp-4); }
.content-offset { margin-top: var(--sp-6); }
.section-link { margin-top: var(--sp-5); }
.section-subhead { margin-top: var(--sp-5); }
.grid--compact { gap: var(--sp-4); }
.post-meta { font-size: .8125rem; }
.footer-legal { font-size: .8125rem; opacity: .9; }

/* ---------- 印刷（下層ページ分を追記） ---------- */
@media print {
  .breadcrumb, .cta-band, .notice-oncall, .toc, .related { display: none !important; }
  .summary, .callout, .table-wrap { break-inside: avoid; }
  .prose > h2, .prose > h3 { break-after: avoid; }
}
