/* かすみ野内科クリニック（デモ）
   白・緑 #2E8B57・薄い灰 #F2F4F3。文字は #222。書体は BIZ UDPGothic だけ（700／400）。
   あしらいは区画の頭の緑の短い線（4px）だけ。表の枠は灰の線。角は 2px。
   字の大きさはすべて rem。［文字を大きく］で html の 18px → 22px を切り替えると、ページ全体が大きくなる。 */

:root {
  --g: #2E8B57;
  --g-d: #23704A;        /* 白の上で小さな字にするときの緑 */
  --g-l: #EAF4EE;        /* 緑のごく薄い地 */
  --g-m: #CFE6D8;
  --gray: #F2F4F3;
  --gray-2: #E3E7E5;
  --line: #C4CBC8;
  --line-d: #9AA39F;
  --ink: #222;
  --ink-2: #4E5552;
  --ink-3: #8A918E;
  --font: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --r: 2px;
  --wrap: 1160px;
  --ease: cubic-bezier(.25, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 7rem; }
html.is-big { font-size: 22px; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--font); font-weight: 400; font-size: 1rem; line-height: 1.85; letter-spacing: .02em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--g-d); text-underline-offset: .2em; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.45; letter-spacing: .03em; text-wrap: balance; word-break: auto-phrase; }
p { text-wrap: pretty; }
table { border-collapse: collapse; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--g); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 56px); margin-inline: auto; }
.wrap--n { width: min(880px, 100% - 56px); margin-inline: auto; }
@media (max-width: 599px) { .wrap, .wrap--n { width: calc(100% - 36px); } }
.nw { white-space: nowrap; }
.pc { display: none; }
@media (min-width: 900px) { .pc { display: inline; } }

/* ---------- ヘッダー ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.hd__in { display: flex; align-items: center; gap: 18px; min-height: 83px; padding-block: 10px; }
.hd__brand { display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.logo { display: block; height: 46px; width: auto; }
.logo__name { font-family: var(--font); font-weight: 700; font-size: 24px; fill: var(--ink); letter-spacing: .02em; }
.logo__sub { font-family: var(--font); font-weight: 400; font-size: 11.5px; fill: var(--ink-2); letter-spacing: .04em; }
.logo__l1 { stroke: #9CCBB0; } .logo__l2 { stroke: #5FAE82; } .logo__l3 { stroke: var(--g); }
.demo { align-self: center; margin-left: .2rem; font-size: 10px; letter-spacing: .12em; color: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r); padding: 0 .35em; line-height: 1.6; }
.hd__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.hd__tel { display: inline-flex; align-items: center; gap: .35em; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 26px; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.hd__tel svg { width: 1.05em; height: 1.05em; color: var(--g); }
.big {
  display: inline-flex; align-items: center; gap: .4em; min-height: 47px; padding: .3em .9em;
  border: 2px solid var(--line-d); border-radius: var(--r); background: #fff; cursor: pointer;
  font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.big__a { font-size: 1.25em; line-height: 1; }
.big:hover { border-color: var(--g); }
.big[aria-pressed="true"] { background: var(--g); border-color: var(--g); color: #fff; }
.menu { display: none; }

.gn { border-top: 1px solid var(--gray-2); background: #fff; }
.gn ul { display: flex; }
.gn li { flex: 1; }
.gn li + li { border-left: 1px solid var(--gray-2); }
.gn a {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 7px 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16.5px; text-align: center; line-height: 1.35;
}
.gn a::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 2.4rem; height: 4px; margin-left: -1.2rem; background: var(--g); transform: scaleX(0); transition: transform .3s var(--ease); }
.gn a:hover::after, .gn a[aria-current="page"]::after { transform: scaleX(1); }
.gn a[aria-current="page"] { color: var(--g-d); }

/* 画面の右端の縦のタブ（実在の医院によくある形） */
.vtab {
  position: fixed; right: 0; top: 46%; z-index: 40; display: none;
  writing-mode: vertical-rl; text-decoration: none; color: #fff; background: var(--g);
  font-weight: 700; font-size: .9rem; letter-spacing: .3em; padding: 1.1rem .55rem; border-radius: var(--r) 0 0 var(--r);
}
.vtab:hover { background: var(--g-d); }
@media (min-width: 1200px) { .vtab { display: block; } }

/* スマホの下の電話 */
.callbar { display: none; }

@media (max-width: 959px) {
  .hd__in { min-height: 70px; gap: 9px; }
  .logo { height: 38px; }
  .hd__tel { display: none; }
  .big { font-size: 13px; min-height: 44px; padding: .25em .6em; }
  .menu {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
    width: 58px; height: 52px; border: 0; background: none; cursor: pointer; padding: 0; font-size: 11px; font-weight: 700;
  }
  .menu__bars, .menu__bars::before, .menu__bars::after { display: block; width: 1.4rem; height: 2px; background: var(--ink); transition: transform .25s; }
  .menu__bars { position: relative; }
  .menu__bars::before, .menu__bars::after { content: ""; position: absolute; left: 0; }
  .menu__bars::before { top: -7px; } .menu__bars::after { top: 7px; }
  .is-menu .menu__bars { background: transparent; }
  .is-menu .menu__bars::before { transform: translateY(7px) rotate(45deg); }
  .is-menu .menu__bars::after { transform: translateY(-7px) rotate(-45deg); }
  .gn { display: none; }
  .is-menu .gn { display: block; position: absolute; left: 0; right: 0; top: 100%; border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px rgba(0,0,0,.06); }
  .gn ul { flex-direction: column; width: 100%; }
  .gn li + li { border-left: 0; border-top: 1px solid var(--gray-2); }
  .gn a { justify-content: flex-start; padding-inline: 18px; min-height: 59px; font-size: 1rem; }
  .gn a::after { left: 0; top: 0; bottom: 0; width: 4px; height: auto; margin: 0; transform: scaleY(0); }
  .gn a[aria-current="page"]::after { transform: scaleY(1); }
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; align-items: center; justify-content: center; gap: .4em;
    min-height: 3.6rem; background: var(--g); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: .05em;
  }
  .callbar svg { width: 1.1em; height: 1.1em; }
  body { padding-bottom: 3.6rem; }
}
/* スマホのヘッダーは px で固定（［文字を大きく］で本文が大きくなっても横にあふれない） */
@media (max-width: 599px) {
  .hd__in { min-height: 60px; gap: 6px; padding-block: 8px; }
  .hd .logo { height: 26px; }
  .demo { font-size: 9px; margin-left: 3px; }
  .hd__right { gap: 6px; }
  .big { font-size: 12px; min-height: 42px; width: 52px; padding: 2px 4px; white-space: normal; text-align: center; justify-content: center; line-height: 1.25; }
  .big__a { display: none; }
  .menu { width: 48px; height: 44px; font-size: 10px; }
}

/* ---------- 共通の部品 ---------- */
.sec { padding-block: 4.4rem; }
.sec--gray { background: var(--gray); }
.sec--green { background: var(--g-l); }
.h2 { font-size: 1.65rem; margin-bottom: 1.6rem; }
.h2::before, .bar::before { content: ""; display: block; width: 2.2rem; height: 4px; background: var(--g); margin-bottom: .8rem; }
.h2--c { text-align: center; } .h2--c::before { margin-inline: auto; }
.h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.lead { font-size: 1.05rem; }
.stack > * + * { margin-top: .8em; }
.btns { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.btns--r { justify-content: flex-end; }
.btns--c { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: .6em; min-height: 3.2rem; padding: .5em 1.4em;
  border: 2px solid var(--g); border-radius: var(--r); background: #fff; color: var(--g-d);
  font-weight: 700; text-decoration: none; line-height: 1.35;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--g); color: #fff; }
.btn .arw { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }
.btn--fill { background: var(--g); color: #fff; }
.btn--fill:hover { background: var(--g-d); border-color: var(--g-d); }
.more { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; text-decoration: none; }
.more .arw { width: .9em; height: .9em; }
.more:hover { text-decoration: underline; }
.ico { width: 1em; height: 1em; flex: none; }
.note { font-size: .9rem; color: var(--ink-2); }

/* 表（灰の線） */
.tbl { width: 100%; border-top: 1px solid var(--line); }
.tbl th, .tbl td { border-bottom: 1px solid var(--line); padding: .85rem 1rem; text-align: left; vertical-align: top; }
.tbl th { background: var(--gray); font-weight: 700; white-space: nowrap; width: 9em; }
.tbl--head thead th { background: var(--gray); border-bottom: 2px solid var(--line-d); width: auto; white-space: normal; }
.tbl--stack tbody th { white-space: normal; }
.tbl--head tbody th { background: #fff; }
@media (max-width: 699px) {
  .tbl th { width: 6.5em; white-space: normal; padding: .75rem .7rem; }
  .tbl td { padding: .75rem .7rem; }
  /* 4列の表は、1行を1つの箱に組み替える */
  .tbl--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl--stack, .tbl--stack tbody, .tbl--stack tr, .tbl--stack th, .tbl--stack td { display: block; width: 100%; }
  .tbl--stack tr { border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
  .tbl--stack tbody th { background: var(--gray); border-bottom: 0; font-size: 1.05rem; }
  .tbl--stack td { border: 0; padding: .25rem .7rem; display: grid; grid-template-columns: 6.5em 1fr; gap: .6rem; }
  .tbl--stack td::before { content: attr(data-l); color: var(--ink-2); font-size: .88rem; padding-top: .1em; }
}

/* ---------- 最初の画面 ---------- */
.hero { display: grid; grid-template-columns: 6fr 4fr; border-bottom: 1px solid var(--line); }
.hero__main { padding: 3.6rem 3.4rem 3.8rem max(28px, calc((100vw - var(--wrap)) / 2)); }
.hero__place { color: var(--g-d); font-weight: 700; font-size: 1rem; letter-spacing: .1em; }
.hero__ka { font-size: min(7.6rem, 26vw); line-height: 1.05; letter-spacing: .06em; margin: .15rem 0 .9rem -.04em; }
.hero__list { font-weight: 700; font-size: 1.42rem; line-height: 1.6; }
.hero__list li { word-break: auto-phrase; display: flex; align-items: center; gap: .6em; }
.hero__list li::before { content: ""; flex: none; width: .55em; height: 4px; background: var(--g); }
.hero__text { margin-top: 1.4rem; font-size: 1.05rem; max-width: 34em; }
.fuda {
  margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem;
  border: 4px solid var(--g); border-radius: var(--r); padding: 1rem 1.3rem; color: var(--g-d); font-weight: 700; max-width: 40em;
}
.fuda p { flex: 1 1 16em; font-size: 1.08rem; line-height: 1.6; }
.fuda .more { white-space: nowrap; }
.hero__side { background: var(--gray); padding: 3.6rem max(28px, calc((100vw - var(--wrap)) / 2)) 3.6rem 2.6rem; }
.today { background: #fff; border-left: 4px solid var(--g); border-radius: var(--r); padding: 1rem 1.2rem; }
.today__h { font-size: .88rem; color: var(--g-d); font-weight: 700; letter-spacing: .1em; }
.today__t { font-weight: 700; font-size: 1.12rem; line-height: 1.6; margin-top: .2rem; }
.today__t .d { display: inline-block; margin-right: .7em; }
.today__t .s { display: inline-block; margin-right: .6em; }
.news { margin-top: 2.2rem; }
.news__h { font-size: 1.15rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); }
.news li { display: grid; grid-template-columns: 6.4em 1fr; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.6; }
.news time { color: var(--ink-2); font-size: .9rem; padding-top: .05em; }
.news__more { margin-top: .9rem; text-align: right; }
@media (max-width: 959px) {
  .hero { grid-template-columns: 1fr; }
  .hero__main { padding: 2.2rem 18px 2.4rem; }
  .hero__side { padding: 2rem 18px 2.4rem; }
  .hero__list { font-size: 1.25rem; }
}
@media (max-width: 420px) { .news li { grid-template-columns: 1fr; gap: .1rem; } }

/* ---------- NK-1 診療時間 ---------- */
.hours { width: 100%; }
.hours table { width: 100%; table-layout: fixed; border: 2px solid var(--line-d); }
.hours th, .hours td { border: 1px solid var(--line); text-align: center; vertical-align: middle; padding: .7rem .2rem; }
.hours thead th { background: var(--gray); font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
.hours thead th:first-child { font-size: 1rem; width: 24%; }
.hours .tm { width: 24%; font-size: 1.4rem; font-weight: 700; background: #fff; letter-spacing: .02em; }
.hours td { font-size: 2rem; font-weight: 700; line-height: 1.2; height: 5.2rem; }
.hours .o { color: var(--g); }
.hours .x { color: #C9CECC; font-weight: 400; }
.hours .is-today { background: var(--g-l); }
.hours thead .is-today { background: var(--g); color: #fff; }
.hours__mk { display: inline-block; }
.hours__foot { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .3rem 2rem; font-weight: 700; }
@media (max-width: 699px) {
  .hours .tm { width: 26%; font-size: 1rem; }
  .hours thead th { font-size: 1.1rem; padding: .5rem .1rem; }
  .hours thead th:first-child { font-size: .78rem; width: 26%; }
  .hours td { font-size: 1.45rem; height: 4rem; }
}
.hours__wrap { position: relative; }

/* ---------- 外観の写真 ---------- */
.photo-band img { width: 100%; height: clamp(240px, 38vw, 560px); object-fit: cover; }
.photo-band figcaption { width: min(var(--wrap), 100% - 56px); margin: .9rem auto 0; font-weight: 700; }
@media (max-width: 599px) { .photo-band figcaption { width: calc(100% - 36px); } }

/* ---------- NK-2 受診の流れ ---------- */
.fl { counter-reset: none; }
.fl__step { position: relative; display: grid; align-content: start; grid-template-columns: 3.4rem 1fr; gap: 0 1rem; align-items: start; }
.fl__no { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--g); color: #fff; font-weight: 700; font-size: 1.5rem; line-height: 1; position: relative; z-index: 1; }
.fl__name { font-weight: 700; font-size: 1.15rem; line-height: 1.5; padding-top: .55rem; }
.fl__sub { display: block; font-weight: 400; font-size: .95rem; color: var(--ink-2); margin-top: .15rem; line-height: 1.65; }
.fl__ic { width: 3rem; height: 3rem; color: var(--g); }
.fl__note { margin-top: 1.2rem; font-size: .9rem; color: var(--ink-2); }

/* トップの小さい版: 横に5つ */
.fl--s ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 2rem; background: #fff; border: 1px solid var(--g-m); border-radius: var(--r); }
.fl--s .fl__step { grid-template-columns: 1fr; padding: 1.3rem 1rem 1.4rem; border-left: 1px solid var(--g-m); }
.fl--s .fl__step:first-child { border-left: 0; }
.fl--s .fl__top { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.fl--s .fl__no { width: 2.3rem; height: 2.3rem; font-size: 1.05rem; }
.fl--s .fl__ic { width: 2.4rem; height: 2.4rem; }
.fl--s .fl__name { padding-top: 0; font-size: 1.02rem; }
.fl--s .fl__sub { font-size: .86rem; }
.fl--s .fl__step:not(:last-child)::after {
  content: ""; position: absolute; right: -.55rem; top: 2.15rem; z-index: 2; width: 1.1rem; height: 1.1rem;
  border-top: 2px solid var(--g); border-right: 2px solid var(--g); background: #fff; transform: rotate(45deg) scale(.7);
}
@media (max-width: 899px) {
  .fl--s ol { grid-template-columns: 1fr; }
  .fl--s .fl__step { border-left: 0; border-top: 1px solid var(--g-m); grid-template-columns: auto 1fr; gap: 0 .9rem; padding: 1rem 1rem 1.1rem; }
  .fl--s .fl__step:first-child { border-top: 0; }
  .fl--s .fl__top { margin: 0; flex-direction: column; }
  .fl--s .fl__step:not(:last-child)::after { right: auto; left: 1.75rem; top: auto; bottom: -.6rem; transform: rotate(135deg) scale(.7); }
}

/* 熱のページの大きい版: 縦に5つ、線でつなぐ */
.fl--l ol { margin-top: 1rem; }
.fl--l .fl__step { grid-template-columns: 3.6rem 1fr 4.5rem; padding-bottom: 2.2rem; }
.fl--l .fl__step:last-child { padding-bottom: 0; }
.fl--l .fl__no { width: 3.6rem; height: 3.6rem; }
.fl--l .fl__step:not(:last-child) .fl__line { position: absolute; left: calc(1.8rem - 2px); top: 3.6rem; bottom: 0; width: 4px; background: var(--g-m); transform-origin: top; }
.fl--l .fl__body { padding: .5rem 0 0; }
.fl--l .fl__name { font-size: 1.3rem; padding: 0; }
.fl--l .fl__body p { margin-top: .4rem; }
.fl--l .fl__ic { width: 3.6rem; height: 3.6rem; justify-self: end; margin-top: .2rem; }
.fl--l .fl__arw { position: absolute; left: calc(1.8rem - .45rem); bottom: .55rem; width: .9rem; height: .9rem; border-right: 3px solid var(--g); border-bottom: 3px solid var(--g); transform: rotate(45deg); }
@media (max-width: 599px) {
  .fl--l .fl__step { grid-template-columns: 3rem 1fr; gap: 0 .8rem; }
  .fl--l .fl__no { width: 3rem; height: 3rem; font-size: 1.3rem; }
  .fl--l .fl__step:not(:last-child) .fl__line { left: calc(1.5rem - 2px); top: 3rem; }
  .fl--l .fl__arw { left: calc(1.5rem - .45rem); }
  .fl--l .fl__no { grid-column: 1; grid-row: 1; }
  .fl--l .fl__body { grid-column: 2; grid-row: 1; }
  .fl--l .fl__ic { position: absolute; right: 0; top: .1rem; width: 2.6rem; height: 2.6rem; margin-top: 0; }
  .fl--l .fl__name { padding-right: 3rem; }
}

/* ---------- 熱・せき（トップ） ---------- */
.fever-top__in { display: grid; grid-template-columns: 1fr auto; gap: 1rem 3rem; align-items: end; }
.fever-top__in .btns { margin-top: 0; }
@media (max-width: 799px) { .fever-top__in { grid-template-columns: 1fr; } }

/* ---------- 診療内容（トップ） 2列×2段 ---------- */
.ka4 { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ka4 > div { padding: 1.5rem 1.6rem 1.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ka4 h3 { font-size: 1.25rem; display: flex; align-items: center; gap: .6rem; margin-bottom: .45rem; }
.ka4 h3 svg { width: 2rem; height: 2rem; color: var(--g); flex: none; }
.ka4 p { line-height: 1.75; }
.ka4__foot { margin-top: 1.4rem; }
@media (max-width: 699px) { .ka4 { grid-template-columns: 1fr; } .ka4 > div { padding: 1.2rem 1.1rem 1.3rem; } }

/* ---------- 健診・予防接種（トップ） ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.two a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .4rem 1rem;
  padding: 1.5rem 1.6rem; border: 1px solid var(--line); border-top: 4px solid var(--g); border-radius: var(--r);
  background: #fff; color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s;
}
.two a:hover { background: var(--g-l); }
.two b { font-size: 1.3rem; display: block; margin-bottom: .3rem; }
.two .arw { width: 1.4rem; height: 1.4rem; color: var(--g); transition: transform .25s var(--ease); }
.two a:hover .arw { transform: translateX(4px); }
.two__foot { margin-top: 1.1rem; font-weight: 700; }
@media (max-width: 699px) { .two { grid-template-columns: 1fr; } .two a { padding: 1.2rem 1.1rem; } }

/* ---------- 院長から ---------- */
.dr { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3.2rem; align-items: start; }
.dr__ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r); }
.dr__name { margin-top: 1.4rem; font-weight: 700; font-size: 1.1rem; }
.dr__name small { font-size: .85rem; color: var(--ink-2); margin-right: .8em; font-weight: 400; }
@media (max-width: 799px) { .dr { grid-template-columns: 1fr; gap: 1.6rem; } .dr__ph img { max-width: 380px; aspect-ratio: 1 / 1; } }

/* ---------- 駐車場・アクセス ---------- */
.acc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 899px) { .acc { grid-template-columns: 1fr; gap: 2rem; } }
.fig { margin: 0; }
.fig svg { display: block; width: 100%; height: auto; }
.fig__cap { margin-top: .8rem; font-size: .9rem; color: var(--ink-2); }
.map-legend { margin-top: .9rem; display: grid; gap: .35rem; font-size: .92rem; line-height: 1.55; }
.map-legend li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .5rem; align-items: start; }
.map-legend i { display: block; width: 1.1rem; height: 1.1rem; margin-top: .2em; border: 1px solid var(--line-d); border-radius: var(--r); background: #fff; }
.map-legend i.gr { background: var(--g); border-color: var(--g); }
.map-legend i.bl { background: var(--gray-2); }
.map-legend i.ln { border: 0; height: 4px; margin-top: .6em; background: var(--g); }

/* 図の中の字 */
.svgt { font-family: var(--font); fill: var(--ink); }
.svgt--b { font-weight: 700; }
.svgt--w { fill: #fff; }
.svgt--g { fill: var(--g-d); }
.svgt--m { fill: var(--ink-2); }

/* ---------- フッター ---------- */
.ft { background: var(--gray); border-top: 4px solid var(--g); padding: 3.2rem 0 2.2rem; margin-top: 0; }
.ft__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.4rem; }
.ft .logo { width: min(100%, 17.9rem); height: auto; }
.ft__info { margin-top: 1.2rem; display: grid; gap: .3rem; font-size: .95rem; }
.ft__info dt { color: var(--ink-2); }
.ft__info a { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.ft__nav { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.6rem; align-content: start; }
.ft__nav a { display: block; padding: .45rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .95rem; }
.ft__nav a:hover { color: var(--g-d); }
.ft__copy { margin-top: 2.6rem; font-size: .8rem; color: var(--ink-2); }
@media (max-width: 799px) { .ft__in { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .ft__nav { grid-template-columns: 1fr; } }

/* ---------- 下層ページの頭 ---------- */
.ph { padding: 3.2rem 0 2.8rem; border-bottom: 1px solid var(--line); }
.ph h1 { font-size: 2.2rem; }
.ph h1::before { content: ""; display: block; width: 2.6rem; height: 4px; background: var(--g); margin-bottom: 1rem; }
.ph p { margin-top: 1rem; font-size: 1.05rem; max-width: 38em; }
.ph--green { background: var(--g-l); border-bottom: 0; }
.ph--split .ph__in { display: grid; grid-template-columns: 1fr minmax(0, 1fr); gap: 2.6rem; align-items: center; }
.ph--split img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
@media (max-width: 799px) { .ph--split .ph__in { grid-template-columns: 1fr; gap: 1.6rem; } .ph h1 { font-size: 1.8rem; } }
.ph-photo img { width: 100%; height: clamp(200px, 30vw, 440px); object-fit: cover; }

/* 診療内容のページ: 左に見出し、右に本文 */
.rows > section { display: grid; grid-template-columns: 15em 1fr; gap: 1rem 3rem; padding-block: 2.6rem; border-bottom: 1px solid var(--line); }
.rows > section:first-child { padding-top: 0; }
.rows h2 { font-size: 1.4rem; }
.rows h2::before { content: ""; display: block; width: 2rem; height: 4px; background: var(--g); margin-bottom: .7rem; }
.rows .fig { margin-top: 1.6rem; max-width: 640px; }
@media (max-width: 799px) { .rows > section { grid-template-columns: 1fr; padding-block: 2rem; } }
.kensa td:first-child { font-weight: 700; width: 40%; }
.kensa th { width: auto; }

/* 熱のページの頭 */
.fv-head { display: grid; grid-template-columns: 1fr auto; gap: 1.4rem 3rem; align-items: end; }
.ph .fv-head__big { margin-top: 1.2rem; font-size: 1.7rem; font-weight: 700; line-height: 1.5; }
.fv-tel { display: inline-flex; align-items: center; gap: .4em; padding: .7rem 1.4rem; background: #fff; border: 4px solid var(--g); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 2.1rem; letter-spacing: .04em; line-height: 1.2; white-space: nowrap; }
.fv-tel svg { width: .9em; height: .9em; color: var(--g); }
@media (max-width: 799px) { .fv-head { grid-template-columns: minmax(0, 1fr); } .ph .fv-head__big { font-size: 1.4rem; } .fv-tel { font-size: min(1.6rem, 6.4vw); padding: .6rem 1rem; justify-self: start; } }

.side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.8rem; align-items: center; }
.side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
@media (max-width: 799px) { .side { grid-template-columns: 1fr; gap: 1.4rem; } }

.ticks li { position: relative; padding: .6rem 0 .6rem 2rem; border-bottom: 1px solid var(--line); }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: .3rem; top: 1.05rem; width: .8rem; height: .45rem; border-left: 3px solid var(--g); border-bottom: 3px solid var(--g); transform: rotate(-45deg); }

.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 799px) { .cols2 { grid-template-columns: 1fr; gap: 2.6rem; } }

/* よくある質問 */
.faq { border-top: 1px solid var(--line); }
.faq > div { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.faq dt, .faq dd { display: grid; grid-template-columns: 2rem 1fr; gap: .4rem; }
.faq dt { font-weight: 700; font-size: 1.08rem; }
.faq dd { margin-top: .5rem; }
.faq dt::before, .faq dd::before { font-weight: 700; font-size: 1.1rem; line-height: 1.65; }
.faq dt::before { content: "Q."; color: var(--g-d); }
.faq dd::before { content: "A."; color: var(--ink-3); }

/* 院内の写真 2×2 */
.in4 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.6rem; }
.in4 img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.in4 figcaption { margin-top: .6rem; font-size: .95rem; line-height: 1.6; }
@media (max-width: 599px) { .in4 { grid-template-columns: 1fr; gap: 1.4rem; } }
.bfree { margin-top: 2rem; padding: 1.1rem 1.3rem; background: var(--gray); border-radius: var(--r); font-weight: 700; }

/* 予約・LINE */
.line-box { margin-top: 1.6rem; padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--gray); }
.line-box p { font-weight: 700; }
.btn--gray { border-color: var(--line-d); color: var(--ink); background: #fff; margin-top: .9rem; }
.btn--gray:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.line-box small { display: block; margin-top: .8rem; font-size: .85rem; color: var(--ink-2); }

.maps { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
@media (max-width: 899px) { .maps { grid-template-columns: 1fr; } }
.park-ph { margin-top: 2.4rem; }
.park-ph img { width: 100%; height: clamp(200px, 28vw, 380px); object-fit: cover; object-position: 50% 82%; border-radius: var(--r); }

.page-foot { padding: 3rem 0 4rem; border-top: 1px solid var(--line); }

/* ---------- 動き（transform と opacity だけ） ---------- */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .hero .h-in { opacity: 0; transform: translateY(10px); animation: hin .8s var(--ease) forwards; }
.js .hero .h-in:nth-child(2) { animation-delay: .08s; } .js .hero .h-in:nth-child(3) { animation-delay: .16s; }
.js .hero .h-in:nth-child(4) { animation-delay: .24s; } .js .hero .h-in:nth-child(5) { animation-delay: .32s; }
.js .hero__side.h-in { animation-delay: .3s; }
.js .ph .h-in, .js .ph-photo.h-in { opacity: 0; transform: translateY(10px); animation: hin .8s var(--ease) forwards; }
.js .ph .h-in + .h-in { animation-delay: .12s; }
@keyframes hin { to { opacity: 1; transform: none; } }
/* 表の○が1つずつ灯る */
.js .hours .hours__mk { opacity: 0; transform: scale(.6); transition: opacity .35s, transform .45s var(--ease); }
.js .hours.is-in .hours__mk { opacity: 1; transform: none; }
/* 流れの段が上から順に */
.js .fl .fl__step { opacity: 0; transform: translateY(12px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .fl.is-in .fl__step { opacity: 1; transform: none; }
.js .fl--l .fl__line { transform: scaleY(0); transition: transform .7s var(--ease); }
.js .fl--l.is-in .fl__line { transform: scaleY(1); }
/* 図の部品 */
.js .fig .pop { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); transform-box: fill-box; transform-origin: center; }
.js .fig.is-in .pop { opacity: 1; transform: none; }
.js .fig .grow { transform: scaleX(0); transform-box: fill-box; transform-origin: left center; transition: transform 1.1s var(--ease); }
.js .fig.is-in .grow { transform: none; }
.js .fig .dot { opacity: 0; transition: opacity .3s; }
.js .fig.is-in .dot { opacity: 1; }
/* 熱のある方用の区画が、ゆっくり2回だけ明滅して場所を知らせる */
.fig.is-in .blink { animation: blink 1.6s ease-in-out .9s 2; }
@keyframes blink { 50% { opacity: .45; } }
/* ロゴの線が霞のように左右に少しだけ揺れる（最初の1回） */
.js .brand--head .logo__l1 { animation: haze 2.4s var(--ease) both; }
.js .brand--head .logo__l2 { animation: haze 2.4s var(--ease) .12s both; }
@keyframes haze { 0% { transform: translateX(-3px); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }

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

@media print {
  .hd, .callbar, .vtab { position: static; }
  .callbar, .vtab, .menu, .big { display: none !important; }
}
