/* ============================================================
   CLARA クリニック — 架空の歯科・皮膚科（Web Design Lab showcase）
   high-key / 清潔・誠実・信頼 ・ 左サイドバー固定 + 右カラム縦スクロール
   呼吸するSVGパルス / soft blob(feGaussianBlur) / 予約ミニカレンダー
   ============================================================ */
:root {
  --paper:    #f3f8fa;   /* 明るいスカイ寄りの地 */
  --white:    #ffffff;
  --mist:     #e9f2f4;   /* セクション交互地 */
  --mist-2:   #dfeef0;

  --ink:      #26404c;   /* 深いスレート（本文・黒の代替） */
  --ink-2:    #5f7683;   /* 薄インク */
  --ink-3:    rgba(38,64,76,.55);
  --line:     rgba(38,64,76,.11);
  --line-2:   rgba(38,64,76,.20);

  --sky:      #d7ecf2;   /* soft sky */
  --sky-2:    #c2e2e4;
  --teal:     #7fc8c0;   /* soft teal */
  --teal-d:   #4aa79d;
  --teal-dd:  #33887f;
  --coral:    #ff7d67;   /* 温かいコーラル（CTAのみ） */
  --coral-d:  #f0604a;

  --sans: 'Figtree', 'Zen Maru Gothic', system-ui, sans-serif; /* 英字ディスプレイ・見出し */
  --body: 'Zen Maru Gothic', 'Figtree', system-ui, sans-serif;  /* 和文丸ゴ本文 */
  --mono: 'DM Mono', ui-monospace, monospace;                   /* 数値・ラベル */

  --side-w: 264px;
  --maxw: 1000px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --soft: cubic-bezier(.4, 0, .2, 1);
  --r: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.85;
  letter-spacing: .01em;
}
a { color: inherit; text-decoration: none; }
svg { max-width: 100%; display: block; }
::selection { background: rgba(127,200,192,.35); color: var(--ink); }
.defs { position: absolute; width: 0; height: 0; }

/* ===== scroll progress ===== */
.scroll-progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 500;
  background: linear-gradient(90deg, var(--teal), var(--coral));
}

/* ===== shell layout ===== */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }

/* ============================================================
   左サイドバー（固定）
   ============================================================ */
.side {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--side-w); z-index: 300;
  display: flex; flex-direction: column;
  padding: 30px 26px;
  background: var(--white);
  border-right: 1px solid var(--line);
  box-shadow: 24px 0 60px -50px rgba(38,64,76,.5);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 13px;
  background: linear-gradient(150deg, var(--sky), var(--white)); box-shadow: 0 6px 16px -10px rgba(74,167,157,.9), 0 0 0 1px var(--line) inset; }
.brand-mark svg { width: 28px; height: 28px; }
.bm-ring { fill: none; stroke: var(--teal-d); stroke-width: 2; opacity: .55; }
.bm-pulse { fill: none; stroke: var(--teal-dd); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; animation: bm-draw 3.6s var(--ease) infinite; }
@keyframes bm-draw {
  0% { stroke-dashoffset: 100; } 45% { stroke-dashoffset: 0; }
  70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: .35; }
}
.brand-name { display: grid; line-height: 1.05; }
.brand-name b { font-family: var(--sans); font-weight: 800; font-size: 23px; letter-spacing: .12em; color: var(--ink); }
.brand-name i { font-family: var(--mono); font-style: normal; font-size: 9px; letter-spacing: .22em; color: var(--ink-3); margin-top: 3px; }

/* nav */
.side-nav { position: relative; display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  position: relative; z-index: 2; display: flex; align-items: baseline; gap: 12px;
  padding: 11px 14px; border-radius: 11px; color: var(--ink-2);
  transition: color .3s var(--soft), background .3s var(--soft);
}
.sn-no { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: var(--ink-3); transition: color .3s; }
.sn-tx { font-family: var(--body); font-weight: 500; font-size: 15px; }
.side-nav a:hover { color: var(--ink); }
.side-nav a.on { color: var(--teal-dd); }
.side-nav a.on .sn-no { color: var(--teal-d); }
.sn-marker {
  position: absolute; left: 0; z-index: 1; width: 100%; height: 44px;
  background: var(--mist); border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(127,200,192,.35) inset;
  transform: translateY(0); opacity: 0;
  transition: transform .4s var(--ease), opacity .3s;
}
.sn-marker.show { opacity: 1; }
.sn-marker::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px;
  background: var(--teal-d);
}

/* foot */
.side-foot { margin-top: auto; padding-top: 26px; }
.side-hours { display: flex; align-items: center; gap: 9px; margin-bottom: 16px;
  font-size: 12px; color: var(--ink-2); }
.side-hours b { font-family: var(--body); font-weight: 700; color: var(--teal-dd); margin-right: 6px; }
.sh-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(127,200,192,.6);
  animation: sh-beat 2.4s ease-in-out infinite; }
@keyframes sh-beat { 0%,100% { box-shadow: 0 0 0 0 rgba(127,200,192,.55); } 55% { box-shadow: 0 0 0 7px rgba(127,200,192,0); } }
.side-cta {
  display: block; text-align: center; font-family: var(--body); font-weight: 700; font-size: 15px; color: var(--white);
  padding: 13px 18px; border-radius: 40px; background: var(--coral);
  box-shadow: 0 10px 22px -12px rgba(240,96,74,.95); transition: transform .28s var(--ease), box-shadow .28s;
}
.side-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(240,96,74,1); }
.side-tel { margin-top: 12px; text-align: center; font-size: 11.5px; color: var(--ink-3); }
.side-tel b { font-family: var(--mono); color: var(--ink-2); letter-spacing: .02em; }
.side-burger { display: none; }

/* ============================================================
   右カラム
   ============================================================ */
.col { grid-column: 2; min-width: 0; }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--soft), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  padding: 14px 26px; border-radius: 40px; cursor: pointer; border: 0;
  transition: transform .28s var(--ease), box-shadow .28s, background .28s, color .28s;
}
.btn-primary { color: var(--white); background: var(--coral); box-shadow: 0 12px 26px -14px rgba(240,96,74,.95); }
.btn-primary:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 18px 32px -14px rgba(240,96,74,1); }
.btn-primary:disabled { background: var(--mist-2); color: var(--ink-3); cursor: not-allowed; box-shadow: none; }
.btn-ghost { color: var(--ink); background: var(--white); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--teal-d); color: var(--teal-dd); }

.paper { background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 24px 50px -40px rgba(38,64,76,.7); }

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(74px, 12vh, 128px) clamp(28px, 6vw, 88px) clamp(48px, 7vh, 84px);
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(215,236,242,.9), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(127,200,192,.14), transparent 60%),
    linear-gradient(180deg, var(--white), var(--paper));
}
.blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; width: 42vw; max-width: 560px; height: 42vw; max-height: 560px; opacity: .55; filter: url(#soften); }
.blob path { fill: var(--sky); }
.blob-1 { top: -12%; right: -6%; }
.blob-1 path { fill: var(--sky-2); }
.blob-2 { bottom: -18%; left: -10%; opacity: .5; }
.blob-2 path { fill: rgba(127,200,192,.4); }
.blob-3 { top: 24%; right: 24%; width: 26vw; height: 26vw; opacity: .45; }
.blob-3 path { fill: rgba(215,236,242,.9); }
.blob.float { animation: blob-float var(--bd, 20s) ease-in-out infinite; }
@keyframes blob-float {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(var(--bx, 3%), var(--by, -3%)) scale(1.06); }
}

.hero-inner { position: relative; z-index: 3; max-width: 720px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--ink-2);
  background: var(--white); border: 1px solid var(--line); padding: 7px 16px; border-radius: 40px; margin-bottom: 22px;
  box-shadow: 0 10px 24px -20px rgba(38,64,76,.8);
}
.hk-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(127,200,192,.6);
  animation: sh-beat 2.4s ease-in-out infinite; }
.hero-title {
  font-family: var(--body); font-weight: 900; font-size: clamp(38px, 6.4vw, 74px);
  line-height: 1.16; letter-spacing: .005em; color: var(--ink); margin-bottom: 16px;
}
.hero-roman { font-family: var(--sans); font-style: italic; font-weight: 500; font-size: clamp(14px, 2vw, 19px);
  color: var(--teal-dd); letter-spacing: .02em; margin-bottom: 20px; }
.hero-lead { max-width: 520px; font-size: 16px; color: var(--ink-2); margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-pulse { position: relative; max-width: 640px; }
.hero-pulse svg { width: 100%; height: 84px; }
.pulse-track { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 5; }
.pulse-line { fill: none; stroke: var(--teal-d); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pulse-cap { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-3); }
.pc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

.hero-stats { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 60px); margin-top: 40px;
  padding-top: 30px; border-top: 1px solid var(--line); }
.hstat b { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(28px, 4vw, 40px); color: var(--teal-dd); line-height: 1; }
.hstat small { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }

/* ============================================================
   section 共通
   ============================================================ */
.section { position: relative; padding: clamp(64px, 9vh, 116px) clamp(28px, 6vw, 88px); }
.services { background: var(--mist); }
.facility { background: var(--mist); }
.sec-head { max-width: var(--maxw); margin: 0 0 40px; }
.sec-en { font-family: var(--sans); font-weight: 600; font-style: italic; font-size: 14px; letter-spacing: .08em; color: var(--teal-d); margin-bottom: 6px; }
.sec-jp { font-family: var(--body); font-weight: 900; font-size: clamp(26px, 4vw, 44px); line-height: 1.25; color: var(--ink); letter-spacing: .01em; }
.sec-note { font-size: 15px; color: var(--ink-2); margin-top: 12px; max-width: 560px; }

/* ===== 2. 診療案内 tabs ===== */
.svc-tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 30px;
  background: var(--white); border: 1px solid var(--line); border-radius: 40px; box-shadow: 0 10px 24px -20px rgba(38,64,76,.8); }
.svc-tab { position: relative; z-index: 2; font-family: var(--body); font-weight: 700; font-size: 14.5px; color: var(--ink-2);
  background: none; border: 0; padding: 9px 26px; border-radius: 40px; cursor: pointer; transition: color .3s; }
.svc-tab.active { color: var(--white); }
.svc-tab-ink { position: absolute; z-index: 1; top: 5px; height: calc(100% - 10px); border-radius: 40px;
  background: var(--teal-d); transition: transform .4s var(--ease), width .4s var(--ease); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); max-width: var(--maxw); }
.svc-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; box-shadow: 0 24px 44px -40px rgba(38,64,76,.7);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -34px rgba(38,64,76,.55); border-color: rgba(127,200,192,.55); }
.svc-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(150deg, var(--sky), var(--white)); margin-bottom: 16px; color: var(--teal-dd); }
.svc-ico svg { width: 30px; height: 30px; }
.svc-title { font-family: var(--body); font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.svc-en { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.svc-desc { font-size: 13.8px; color: var(--ink-2); line-height: 1.85; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.svc-tags span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; color: var(--teal-dd);
  background: var(--mist); border-radius: 20px; padding: 3px 10px; }
.svc-note { max-width: var(--maxw); margin-top: 24px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }

/* ===== 3. ドクター ===== */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 26px); max-width: var(--maxw); }
.doc-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px;
  box-shadow: 0 24px 44px -40px rgba(38,64,76,.7); }
.doc-avatar { width: 88px; height: 88px; flex: 0 0 88px; border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 25%, var(--white), var(--sky)); display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--line) inset; color: var(--teal-dd); }
.doc-avatar svg { width: 54px; height: 54px; }
.doc-dept { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--teal-d); }
.doc-name { font-family: var(--body); font-weight: 700; font-size: 20px; color: var(--ink); margin: 2px 0; }
.doc-name small { font-family: var(--sans); font-style: italic; font-weight: 500; font-size: 12px; color: var(--ink-3); margin-left: 8px; }
.doc-role { font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }
.doc-quote { font-size: 14px; color: var(--ink); line-height: 1.85; padding-left: 14px; border-left: 3px solid var(--teal); }

/* ===== 4. 設備・院内 ===== */
.fac-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.8vw, 20px); max-width: var(--maxw); }
.fac-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px;
  box-shadow: 0 24px 44px -40px rgba(38,64,76,.7); transition: transform .35s var(--ease); }
.fac-card:hover { transform: translateY(-5px); }
.fac-ico { width: 44px; height: 44px; display: grid; place-items: center; color: var(--teal-dd); margin-bottom: 14px; }
.fac-ico svg { width: 40px; height: 40px; }
.fac-title { font-family: var(--body); font-weight: 700; font-size: 15.5px; color: var(--ink); margin-bottom: 6px; }
.fac-desc { font-size: 12.8px; color: var(--ink-2); line-height: 1.8; }

/* ===== 5. アクセス ===== */
.acc-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(16px, 2.6vw, 28px); max-width: var(--maxw); align-items: start; }
.acc-hours { padding: 26px 26px 22px; }
.acc-h3 { font-family: var(--body); font-weight: 700; font-size: 17px; margin-bottom: 14px; color: var(--ink); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hours-table th, .hours-table td { padding: 9px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.hours-table th { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .04em; }
.hours-table td.tl { text-align: left; font-family: var(--mono); font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.hours-table .yes { color: var(--teal-dd); font-weight: 700; }
.hours-table .no { color: var(--ink-3); }
.hours-table tr.sun td, .hours-table th.sun { color: var(--coral-d); }
.acc-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 11px; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 9px; height: 9px; border-radius: 3px; }
.lg-am::before { background: var(--teal); }
.lg-pm::before { background: var(--sky-2); }
.lg-no::before { background: var(--line-2); }

.acc-map { padding: 18px; }
.acc-map-canvas { border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.mini-map { width: 100%; height: auto; }
.mm-bg { fill: var(--mist); }
.mm-road { stroke: var(--white); stroke-width: 10; fill: none; }
.mm-road2 { stroke: var(--white); stroke-width: 6; fill: none; }
.mm-park { fill: rgba(127,200,192,.28); }
.mm-station { fill: var(--teal-d); }
.mm-label { font-family: var(--mono); font-size: 10px; fill: var(--ink-2); }
.mm-pin-shadow { fill: rgba(38,64,76,.14); }
.mm-pin { fill: var(--coral); }
.mm-pin-dot { fill: var(--white); }
.mm-pin { animation: pin-drop 2.6s var(--ease) infinite; transform-origin: 165px 160px; }
@keyframes pin-drop { 0%,72%,100% { transform: translateY(0); } 82% { transform: translateY(-6px); } 92% { transform: translateY(0); } }
.acc-lines { list-style: none; display: grid; gap: 12px; padding: 4px 6px; }
.acc-lines li { display: grid; grid-template-columns: 72px 1fr; gap: 10px; font-size: 13.5px; color: var(--ink); }
.acc-lines b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--teal-dd); letter-spacing: .04em; padding-top: 2px; }

/* ============================================================
   6. ご予約（ミニカレンダー）
   ============================================================ */
.book-card { max-width: var(--maxw); padding: clamp(24px, 3.4vw, 40px); }
.book-steps { list-style: none; display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.bstep { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-3);
  transition: color .3s; }
.bstep b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-family: var(--mono); font-size: 12px;
  background: var(--mist); color: var(--ink-3); transition: background .3s, color .3s; }
.bstep:not(:last-child)::after { content: "→"; margin-left: 4px; color: var(--line-2); }
.bstep.active { color: var(--ink); }
.bstep.active b { background: var(--teal-d); color: var(--white); }
.bstep.done b { background: var(--teal); color: var(--white); }

.book-body { display: grid; gap: 26px; }
.bf-label { font-family: var(--body); font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
.bf-week { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-3); letter-spacing: .02em; }

.dept-pick { display: flex; gap: 12px; flex-wrap: wrap; }
.dept { display: inline-flex; align-items: center; gap: 10px; font-family: var(--body); font-weight: 700; font-size: 15px; color: var(--ink-2);
  background: var(--white); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px 22px; cursor: pointer;
  transition: border-color .28s, color .28s, background .28s, transform .2s; }
.dept:hover { transform: translateY(-2px); }
.dept.active { color: var(--teal-dd); border-color: var(--teal-d); background: var(--mist); }
.dep-ico { width: 22px; height: 22px; color: currentColor; }
.dep-ico svg { width: 100%; height: 100%; }

.day-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day { display: grid; gap: 3px; place-items: center; padding: 12px 4px; border-radius: 12px; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line); transition: border-color .25s, background .25s, transform .2s; }
.day:hover:not(.off) { transform: translateY(-2px); border-color: var(--teal); }
.day-dow { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.day-num { font-family: var(--mono); font-size: 17px; font-weight: 500; color: var(--ink); }
.day-sub { font-size: 9.5px; color: var(--teal-dd); }
.day.sun .day-dow, .day.sun .day-num { color: var(--coral-d); }
.day.off { cursor: not-allowed; opacity: .5; background: var(--mist); }
.day.off .day-sub { color: var(--ink-3); }
.day.active { border-color: var(--teal-d); background: var(--mist); box-shadow: 0 0 0 1px var(--teal-d) inset; }
.day.active .day-num { color: var(--teal-dd); }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slot { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 8px; border-radius: 11px; cursor: pointer;
  font-family: var(--mono); font-size: 14px; color: var(--ink); background: var(--white); border: 1.5px solid var(--line);
  transition: border-color .25s, background .25s, transform .2s; }
.slot:hover:not(.full) { transform: translateY(-2px); border-color: var(--teal); }
.slot .mk { font-size: 12px; color: var(--teal-d); }
.slot.full { cursor: not-allowed; color: var(--ink-3); background: var(--mist); }
.slot.full .mk { color: var(--ink-3); }
.slot.active { border-color: var(--teal-d); background: var(--teal-d); color: var(--white); box-shadow: 0 8px 18px -10px rgba(74,167,157,.9); }
.slot.active .mk { color: rgba(255,255,255,.85); }
.slot-empty { font-size: 13px; color: var(--ink-3); padding: 6px 2px; }
.slot-empty.hide { display: none; }

.book-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.bs-text { font-size: 15px; color: var(--ink-2); }
.bs-text b { font-family: var(--body); font-weight: 700; color: var(--ink); }
.bs-text.ok { color: var(--ink); }
.bs-done { color: var(--teal-dd); font-weight: 700; }

/* ============================================================
   footer
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,255,255,.82); padding: 56px clamp(28px, 6vw, 88px) 40px; }
.footer-inner { max-width: var(--maxw); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand .brand-mark { background: rgba(255,255,255,.08); box-shadow: none; }
.footer-brand .bm-ring { stroke: var(--teal); }
.footer-brand .bm-pulse { stroke: #a9e4dc; }
.footer-brand b { font-family: var(--sans); font-weight: 800; font-size: 22px; letter-spacing: .12em; color: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 22px; }
.footer-nav a { font-size: 14px; color: rgba(255,255,255,.72); transition: color .25s; }
.footer-nav a:hover { color: var(--teal); }
.footer-note { font-size: 12px; color: rgba(255,255,255,.5); max-width: 640px; line-height: 1.8; margin-bottom: 10px; }
.footer-note b { color: rgba(255,255,255,.72); }
.footer-copy { font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; color: rgba(255,255,255,.4); }

/* ============================================================
   レスポンシブ — サイドバーを上部バーへ
   ============================================================ */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; bottom: auto; left: 0; width: 100%; height: auto; flex-direction: row; align-items: center;
    padding: 12px clamp(16px, 4vw, 28px); border-right: 0; border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px -26px rgba(38,64,76,.8); }
  .brand { margin-bottom: 0; }
  .side-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 16px 16px;
    box-shadow: 0 24px 40px -30px rgba(38,64,76,.8); transform-origin: top; display: none; }
  .side.open .side-nav { display: flex; }
  .sn-marker { display: none; }
  .side-nav a.on { background: var(--mist); }
  .side-foot { margin: 0 0 0 auto; padding: 0; display: flex; align-items: center; gap: 14px; }
  .side-hours, .side-tel { display: none; }
  .side-cta { padding: 10px 18px; font-size: 14px; }
  .side-burger { display: grid; place-items: center; gap: 5px; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; margin-left: 6px; }
  .side-burger i { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
  .side.open .side-burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .side.open .side-burger i:nth-child(2) { opacity: 0; }
  .side.open .side-burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .col { grid-column: 1; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .fac-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .brand-name i { display: none; }
  .hero-stats { gap: 22px; }
  .svc-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .acc-grid { grid-template-columns: 1fr; }
  .day-strip { grid-template-columns: repeat(4, 1fr); }
  .doc-card { grid-template-columns: 1fr; }
  .doc-avatar { margin-bottom: 4px; }
  .book-summary { flex-direction: column; align-items: stretch; }
  .book-confirm { width: 100%; }
}

/* pointer:coarse — 重い浮遊アニメを止める */
@media (pointer: coarse) {
  .blob.float { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .bm-pulse { stroke-dashoffset: 0; }
  .blob.float { animation: none; }
}
