/* 078 澄音耳鼻咽喉科 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f4f6fa;
  --c-night: #070b14;
  --c-navy: #0b1a33;
  --c-blue: #1d46b8;
  --c-accent-text: #1d46b8;
  --c-ice: #9fb8ff;
  --c-light: #c9d3e6;
  --c-text: #374151;
  --c-sub: #4b5563;
  --font: "Noto Sans JP", sans-serif;
  --font-en: "Unbounded", sans-serif;
  --col: 720px;
  --ease: cubic-bezier(.7, 0, .2, 1);
}
/* D02：昼（白）と夜（黒）。文字の色も変数で一緒に入れ替える */
:root, .day-vars { --bg: var(--c-bg); --head: var(--c-navy); --body: var(--c-text); --sub: var(--c-sub); --label: var(--c-accent-text); --line: #cdd5e4; --btn: var(--c-blue); --btn-text: #fff; }
html:not(.is-motion) .night, body.is-night { --bg: var(--c-night); --head: #fff; --body: var(--c-light); --sub: #aab6cc; --label: var(--c-ice); --line: rgba(159, 184, 255, .22); --btn: var(--c-ice); --btn-text: var(--c-night); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.95; letter-spacing: .03em; color: var(--body); background: var(--bg); transition: background-color .5s var(--ease), color .5s var(--ease); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }
main > section { background: var(--bg); color: var(--body); }
.is-motion main > section.night { background: transparent; }

/* スマホのまま横に延長：文字の列だけ読みやすい幅。帯・写真・図形は端まで */
.col { width: 100%; max-width: calc(var(--col) + 40px); margin: 0 auto; padding: 0 20px; }
.en { font-family: var(--font-en); font-size: 15px; font-weight: 500; letter-spacing: .14em; color: var(--label); margin-bottom: 16px; }
.h2 { font-weight: 900; font-size: clamp(36px, 5vw, 60px); line-height: 1.3; letter-spacing: .01em; color: var(--head); margin-bottom: 28px; }
.big { font-size: clamp(18px, 2vw, 21px); line-height: 2; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; font-weight: 700; text-decoration: none; letter-spacing: .06em; white-space: nowrap; flex: none; transition: background-color .25s, color .25s; }
.btn--blue { background: var(--c-blue); color: #fff; }
.btn--blue:hover, .btn--blue:focus-visible { background: var(--c-navy); }
.btn--line { border: 2px solid var(--head); color: var(--head); }
.btn--ice { background: var(--btn); color: var(--btn-text); }
.btn--lg { min-height: 64px; font-size: 18px; padding: 0 32px; }
.btn--full { display: flex; width: 100%; margin-top: 32px; }

/* ===== A06：読み込み ===== */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--c-navy); color: #fff; display: grid; place-content: center; justify-items: center; gap: 20px; }
.loader[hidden] { display: none; }
.loader__mascot { width: 120px; height: 120px; stroke: #fff; fill: #fff; }
.loader__mascot path { fill: none; }
.loader__wave { stroke: var(--c-ice); }
.loader__num { font-family: var(--font-en); font-weight: 700; font-size: 64px; line-height: 1; letter-spacing: .02em; }
.loader__bar { width: 220px; height: 3px; background: rgba(255, 255, 255, .2); }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--c-ice); }

/* ===== ヘッダー（PCでも最小。メニューはどの幅でも三本線） ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--bg); color: var(--head); border-bottom: 1px solid var(--line); transition: background-color .5s var(--ease), color .5s; }
.header__inner { display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 20px; }
.logo { display: flex; flex-direction: column; justify-content: center; min-height: 48px; text-decoration: none; white-space: nowrap; flex: none; line-height: 1.2; }
.logo__ja { font-weight: 900; font-size: 19px; letter-spacing: .06em; }
.logo__en { font-family: var(--font-en); font-size: 15px; letter-spacing: .14em; color: var(--label); }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 18px; font-size: 15px; background: var(--btn); color: var(--btn-text); }
@media (min-width: 1080px) { .header__inner { height: 80px; padding: 0 40px; } }
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 26px; height: 3px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -8px; } .spmenu__bar::after { top: 8px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-navy); padding: 8px max(20px, calc(50% - var(--col) / 2)) 28px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 56px; color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .15); }

/* ===== メインビジュアル：図形 ===== */
.hero { padding: 116px 0 72px; overflow: hidden; }
.hero__en { font-family: var(--font-en); font-weight: 500; font-size: 15px; letter-spacing: .16em; color: var(--label); }
.hero__title { font-weight: 900; font-size: clamp(52px, 9vw, 120px); line-height: 1.12; letter-spacing: -.01em; color: var(--head); margin-top: 12px; }
.hero__art { position: relative; margin: 32px 0; background: var(--c-navy); }
.hero__svg { display: block; width: 100%; height: clamp(240px, 36vw, 520px); }
.hero__arcs { stroke: rgba(159, 184, 255, .4); }
.hero__wave { stroke: var(--c-ice); }
.hero__core { fill: var(--c-blue); }
.hero__icon { stroke: #fff; }
.hero__tags { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 1px; }
.hero__tags li { flex: 1; max-width: 240px; background: rgba(11, 26, 51, .9); color: #fff; font-weight: 900; font-size: 20px; text-align: center; padding: 10px 0; border-top: 2px solid var(--c-ice); }
.hero__tags span { font-family: var(--font-en); font-size: 15px; color: var(--c-ice); margin-right: 10px; }
.hero__lead { font-size: clamp(18px, 2vw, 21px); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 1080px) { .hero { padding-top: 150px; } }

/* ===== ごあいさつ ===== */
.about { padding: 96px 0; border-top: 1px solid var(--line); }
.sign { margin-top: 32px; font-weight: 700; color: var(--head); }
.sign small { display: block; font-weight: 400; font-size: 15px; color: var(--sub); }

/* ===== B05：カードが積み重なる（CSSだけ） ===== */
.care { padding: 96px 0 0; }
.stack { margin-top: 24px; }
.card { position: sticky; top: calc(68px + var(--i) * 14px); min-height: 72vh; display: flex; align-items: center; color: #fff; padding: 56px 0; border-top: 1px solid rgba(255, 255, 255, .2); transform-origin: 50% 0; }
.card--1 { --i: 0; background: #0b1a33; }
.card--2 { --i: 1; background: #12306e; }
.card--3 { --i: 2; background: #1d46b8; }
.card--4 { --i: 3; background: #15367f; }
.card--5 { --i: 4; background: #0e2350; }
.card__no { font-family: var(--font-en); font-weight: 700; font-size: 72px; line-height: 1; color: rgba(255, 255, 255, .9); }
.card h3 { font-weight: 900; font-size: clamp(40px, 6vw, 72px); line-height: 1.2; margin-top: 16px; }
.card__en { font-family: var(--font-en); font-size: 15px; letter-spacing: .2em; color: var(--c-ice); margin: 4px 0 20px; }
.card p:last-child { font-size: clamp(17px, 1.8vw, 20px); color: #e6ecf7; }
.card--3 .card__en { color: #dfe7ff; }
@media (min-width: 1080px) { .card { top: calc(80px + var(--i) * 16px); } }

/* ===== D02：検査と設備・診療時間（夜） ===== */
.equip { padding: 120px 0 72px; }
.wide { margin: 40px 0; overflow: hidden; }
.wide img { width: 100%; height: clamp(260px, 52vw, 680px); object-fit: cover; }
.wide--short img { height: clamp(220px, 36vw, 480px); }
.specs { margin: 0; border-top: 2px solid var(--head); }
.specs div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 900; font-size: 20px; color: var(--head); }
.specs dd { margin: 4px 0 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 56px; }
.duo > * { min-width: 0; }
.duo figure { margin: 0; overflow: hidden; }
.duo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hours { padding: 96px 0 120px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: center; font-size: 17px; }
.table th, .table td { padding: 16px 4px; border-bottom: 1px solid var(--line); }
.table thead th { font-weight: 700; color: var(--head); border-bottom: 2px solid var(--head); }
.table tbody th { font-family: var(--font-en); font-weight: 500; font-size: 15px; text-align: left; color: var(--head); white-space: nowrap; }
.table td { color: var(--label); font-weight: 700; }
.note { margin-top: 16px; font-size: 15px; color: var(--sub); }
.tel { margin-top: 16px; text-align: center; font-family: var(--font-en); font-size: 20px; color: var(--head); }
.tel a { text-decoration: none; }

/* ===== アクセス ===== */
.access { padding: 32px 0 40px; }

.footer { background: var(--c-navy); color: var(--c-light); padding: 64px 0 32px; font-size: 15px; }
.footer__logo { font-weight: 900; font-size: 26px; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 20px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__fiction { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
