/* DEMO内科クリニック（見本）
   考え：受付の横に貼る「診療時間の掲示」を、最初の画面の主役にする。ほかは静かに、余白と罫線で整える。
   色：主 #1F5673（深い藍青）・面 #EEF3F5・罫 #C3D3DA・文字 #1C2B33・補足 #4A5E68・休診 #A3402D
   字体：見出しは明朝（掲示・表札の品）、本文は読みやすい角ゴシック。どちらも端末の字体（外から読み込まない）。 */

:root {
  --paper: #FFFFFF;
  --wash: #EEF3F5;
  --line: #C3D3DA;
  --ink: #1C2B33;
  --sub: #4A5E68;
  --main: #1F5673;
  --main-d: #163F55;
  --rest: #A3402D;
  --rest-bg: #FBF1EE;
  --mute: #6F8089;
  --serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "BIZ UDPMincho", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; }
a { color: var(--main); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--main); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--paper); color: var(--main); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 8px; }

.demo-band {
  margin: 0;
  padding: 6px 16px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .wrap { padding-left: 32px; padding-right: 32px; } }
.narrow { max-width: 820px; }

/* ---------------------------------------------------------------- ヘッダー */
.hd { position: relative; border-bottom: 1px solid var(--line); background: var(--paper); }
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.hd-name { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 48px; }
.hd-kind {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1;
  letter-spacing: .2em;
  color: var(--main);
  border: 1.5px solid var(--main);
  padding: 7px 5px 4px;
}
.hd-txt { font-family: var(--serif); font-size: 18px; white-space: nowrap; font-weight: 600; letter-spacing: .06em; line-height: 1.3; }
.hd-tel { display: none; margin: 0; text-align: right; line-height: 1.25; }
.hd-tel-l { display: block; font-size: 13px; color: var(--sub); }
.hd-tel-n { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--main); letter-spacing: .04em; font-variant-numeric: tabular-nums; }

.menu summary {
  list-style: none;
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0 12px;
  border: 1.5px solid var(--main); border-radius: 6px;
  color: var(--main); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--main); color: #FFFFFF; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px rgba(28, 43, 51, .12); }
.menu ul { list-style: none; margin: 0; padding: 4px 16px 12px; }
.menu li + li { border-top: 1px solid var(--line); }
.menu a { display: flex; align-items: center; min-height: 52px; color: var(--ink); text-decoration: none; font-weight: 700; }
.menu a[aria-current="page"] { color: var(--main); }
.menu a[aria-current="page"]::after { content: "（今のページ）"; font-weight: 400; font-size: 14px; color: var(--sub); }

.gnav { display: none; border-top: 1px solid var(--line); }
.gnav ul { list-style: none; margin: 0 auto; display: flex; gap: 4px; }
.gnav a { display: flex; align-items: center; min-height: 52px; padding: 0 18px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; }
.gnav a:hover { color: var(--main); }
.gnav a[aria-current="page"] { color: var(--main); box-shadow: inset 0 -3px 0 var(--main); }

@media (min-width: 960px) {
  .hd-tel { display: block; }
  .menu { display: none; }
  .gnav { display: block; }
  .hd-txt { font-size: 24px; }
}

/* ---------------------------------------------------------------- ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px;
  min-height: 54px; padding: 8px 22px;
  border-radius: 6px; border: 2px solid var(--main);
  font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
}
.btn-main { background: var(--main); color: #FFFFFF; }
.btn-main:hover { background: var(--main-d); border-color: var(--main-d); }
.btn-line { background: var(--paper); color: var(--main); }
.btn-line:hover { background: var(--wash); }
.btn-s { font-weight: 400; font-size: 15px; font-variant-numeric: tabular-nums; }
.btn-wide { width: 100%; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }

/* ---------------------------------------------------------------- 最初の画面 */
.hero { padding: 32px 0 56px; background: linear-gradient(var(--paper) 0 62%, var(--wash) 62% 100%); }
.hero-in { display: grid; gap: 32px; }
.nb { display: inline-block; white-space: nowrap; }
.hero-h { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.35; letter-spacing: .06em; margin: 8px 0 16px; }
.hero-lead { font-size: 18px; margin: 0 0 12px; }
.hero-note { font-size: 16px; color: var(--sub); margin: 0; }
.hero-addr { font-size: 15px; color: var(--sub); margin: 0; }
@media (min-width: 960px) {
  .hero { padding: 56px 0 72px; background: linear-gradient(90deg, var(--paper) 0 44%, var(--wash) 44% 100%); }
  .hero-in { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
  .hero-h { font-size: 42px; margin-top: 24px; }
}

/* 診療時間の掲示 */
.board { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--main); border-radius: 0 0 6px 6px; padding: 18px 16px 16px; }
.board-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.board-h { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .08em; margin: 0; }
.board-key { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--sub); }
.board-key .mk + .mk, .board-key .mk:nth-of-type(2) { margin-left: 10px; }
.hours { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 12px; }
.hours th, .hours td { text-align: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours thead th { background: var(--wash); font-family: var(--serif); font-size: 17px; font-weight: 600; padding: 8px 0; line-height: 1.25; }
.hours thead th:first-child { width: 24%; }
.hours tbody th { font-size: 15px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.hours .tm, .hours .tm-s { display: block; }
.hours .tm-s { font-size: 12px; font-weight: 400; color: var(--sub); line-height: 1; }
.hours .dot { display: block; height: 0; overflow: hidden; }
@media (min-width: 600px) {
  .board { padding: 22px 24px 18px; }
  .hours .tm, .hours .tm-s { display: inline; }
  .hours .tm-s { font-size: 15px; color: var(--ink); }
  .hours .dot { display: inline; height: auto; }
  .hours thead th:first-child { width: 30%; }
  .hours thead th { font-size: 17px; letter-spacing: 0; white-space: nowrap; }
  .hours tbody th { font-size: 17px; }
  .hours th, .hours td { padding: 16px 0; }
}
.mk { display: inline-block; vertical-align: middle; }
.mk-on { width: 20px; height: 20px; border-radius: 50%; border: 4px solid var(--main); }
.mk-off { width: 16px; height: 3px; border-radius: 2px; background: var(--mute); }
.board-rest { margin: 14px 0 0; font-size: 16px; }
.board-rest b { color: var(--rest); }
.board-note { margin: 2px 0 0; font-size: 15px; color: var(--sub); }

@media (prefers-reduced-motion: no-preference) {
  .hours tbody .mk { animation: mk-in .5s ease-out both; }
  .hours tbody td:nth-of-type(2) .mk { animation-delay: .06s; }
  .hours tbody td:nth-of-type(3) .mk { animation-delay: .12s; }
  .hours tbody td:nth-of-type(4) .mk { animation-delay: .18s; }
  .hours tbody td:nth-of-type(5) .mk { animation-delay: .24s; }
  .hours tbody td:nth-of-type(6) .mk { animation-delay: .30s; }
  .hours tbody td:nth-of-type(7) .mk { animation-delay: .36s; }
  @keyframes mk-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
}

/* 休診のお知らせ */
.notice { margin-top: 16px; background: var(--rest-bg); border-left: 4px solid var(--rest); padding: 14px 16px; }
.notice-h { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.notice-l { list-style: none; margin: 0; padding: 0; }
.notice-l li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 6px 0; font-size: 15px; }
.notice-l li + li { border-top: 1px solid #E8D3CD; }
.notice-l time { font-weight: 700; font-variant-numeric: tabular-nums; }
.notice-k { background: var(--rest); color: #FFFFFF; font-size: 13px; font-weight: 700; padding: 0 8px; border-radius: 3px; line-height: 1.7; }
.notice-r { color: var(--sub); }
.notice-c { flex-basis: 100%; }

/* ---------------------------------------------------------------- 段 */
.sec { padding: 56px 0; }
.sec-wash { background: var(--wash); }
.h2 { font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: .06em; line-height: 1.4; margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.prose p { margin: 0 0 24px; }
.sec-more { margin: 20px 0 0; }
.sec-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.small { font-size: 14px; color: var(--sub); }
@media (min-width: 768px) { .sec { padding: 72px 0; } .h2 { font-size: 28px; } }

.two { display: grid; gap: 40px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* 順番（受診の流れ・道順）。本当に順番のあるものだけに番号を付ける */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { position: relative; padding-left: 60px; }
.steps-n { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--main); color: #FFFFFF; display: grid; place-items: center; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.steps h3 { font-size: 18px; margin: 6px 0 4px; line-height: 1.5; }
.steps p { margin: 0; font-size: 16px; color: var(--sub); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps-3 { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding-left: 0; padding-top: 60px; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 56px; right: -12px; height: 1px; background: var(--line); }
}

/* 診療の内容 */
.care { margin: 0; }
.care > div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.care > div:first-child { padding-top: 0; }
.care dt { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--main); }
.care dd { margin: 0; }
@media (min-width: 768px) { .care > div { grid-template-columns: 15em 1fr; gap: 24px; padding: 22px 0; } }

/* 事実の一覧 */
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; font-size: 15px; color: var(--sub); padding-top: 2px; }
.facts dd { margin: 0; }
@media (min-width: 768px) { .facts-wide > div { grid-template-columns: 11em 1fr; } }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 26px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 9px; height: 9px; background: var(--main); }
@media (min-width: 768px) { .ticks-2 { columns: 2; column-gap: 48px; } .ticks-2 li { break-inside: avoid; } }

.fee { width: 100%; border-collapse: collapse; }
.fee th, .fee td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee th { text-align: left; font-weight: 400; padding-right: 16px; }
.fee td { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 代表者が自分で書く枠（見本では空ける） */
.slot { border: 2px dashed #8FA6B0; border-radius: 6px; padding: 24px; min-height: 180px; display: grid; align-content: center; gap: 8px; }
.slot p { margin: 0; }
.slot-s { font-size: 14px; color: var(--sub); }

/* アクセス */
.acc { display: grid; gap: 32px; }
@media (min-width: 900px) { .acc { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; } .acc-big { grid-template-columns: 7fr 5fr; align-items: start; } }
.map { margin: 0 0 16px; }
.map svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.map figcaption { font-size: 14px; color: var(--sub); margin-top: 6px; }
.m-bg { fill: #F4F7F8; }
.m-blk { fill: #E1E8EB; }
.m-park { fill: #DDEBDF; }
.m-road { stroke: #C3D3DA; stroke-width: 28; fill: none; }
.m-road-c { stroke: #FFFFFF; stroke-width: 24; fill: none; }
.m-rail { stroke: #4A5E68; stroke-width: 9; fill: none; }
.m-rail-d { stroke: #FFFFFF; stroke-width: 4; stroke-dasharray: 16 12; fill: none; }
.m-sta { fill: var(--ink); }
.m-route { stroke: var(--main); stroke-width: 4; stroke-dasharray: 1 9; stroke-linecap: round; fill: none; }
.m-sig { fill: #FFFFFF; stroke: #4A5E68; stroke-width: 3; }
.m-me { fill: var(--main); }
.m-n { fill: var(--ink); }
.m-t { font-family: var(--sans); font-size: 22px; font-weight: 700; fill: var(--ink); }
.m-t-w { fill: #FFFFFF; }
.m-t-s { font-size: 19px; fill: var(--sub); }

/* よくある質問 */
.faq { margin: 0; }
.qa { padding: 22px 0; border-bottom: 1px solid var(--line); }
.qa:first-child { padding-top: 0; }
.qa dt, .qa dd { display: flex; gap: 14px; align-items: flex-start; }
.qa dt { font-weight: 700; font-size: 18px; line-height: 1.6; }
.qa dd { margin: 10px 0 0; }
.qa-k { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1; border: 1.5px solid var(--main); color: var(--main); margin-top: -1px; }
.qa-k-a { background: var(--main); color: #FFFFFF; }

/* ページの見出し */
.ph { background: var(--wash); border-bottom: 1px solid var(--line); padding: 20px 0 32px; }
.crumb { margin: 0; font-size: 14px; color: var(--sub); }
.crumb a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 2px; }
.ph-h { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: .08em; margin: 0; line-height: 1.4; }
.ph-lead { margin: 10px 0 0; }
@media (min-width: 768px) { .ph-h { font-size: 36px; } }

/* お問合せ（選択式） */
.callout { display: grid; gap: 14px; background: var(--wash); border: 1px solid var(--line); border-radius: 6px; padding: 20px; margin-bottom: 40px; }
.callout p { margin: 0; }
.form { display: grid; gap: 4px; }
.field { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.field input[type="text"] { width: 100%; min-height: 54px; padding: 0 14px; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--mute); border-radius: 6px; }
.choices { display: grid; gap: 8px; }
@media (min-width: 600px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper); cursor: pointer; line-height: 1.5; }
.choice input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--main); }
.choice:has(input:checked) { border-color: var(--main); background: var(--wash); }
.choice:has(input:focus-visible) { outline: 3px solid var(--main); outline-offset: 2px; }

/* フッター */
.ft { background: var(--ink); color: #FFFFFF; padding-top: 48px; }
.ft-in { display: grid; gap: 32px; padding-bottom: 32px; }
@media (min-width: 900px) { .ft-in { grid-template-columns: 2fr 1fr; gap: 64px; } }
.ft-name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .06em; margin: 0 0 12px; }
.ft-dl { margin: 0; font-size: 15px; }
.ft-dl > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; padding: 6px 0; }
.ft-dl dt { color: #BCCBD2; }
.ft-dl dd { margin: 0; }
.ft-nav ul { list-style: none; margin: 0; padding: 0; }
.ft-nav a { display: flex; align-items: center; min-height: 44px; color: #FFFFFF; text-decoration: none; border-bottom: 1px solid #3A4B54; }
.ft-nav a:hover { text-decoration: underline; }
.ft :focus-visible { outline-color: #FFFFFF; }
.ft-small { margin: 0 auto; padding-top: 16px; padding-bottom: 20px; border-top: 1px solid #3A4B54; font-size: 13px; color: #BCCBD2; }

/* スマホの下の電話の帯 */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 2fr 1fr; box-shadow: 0 -1px 0 var(--line); }
.callbar-tel { min-height: 58px; border: 0; background: var(--main); color: #FFFFFF; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.callbar-h { display: flex; align-items: center; justify-content: center; min-height: 58px; background: var(--paper); color: var(--main); font-weight: 700; text-decoration: none; }
.callbar :focus-visible { outline-offset: -5px; }
.callbar-tel:focus-visible { outline-color: #FFFFFF; }
body { padding-bottom: 58px; }
@media (min-width: 960px) { .callbar { display: none; } body { padding-bottom: 0; } }

/* 「見本のため〜」の小窓 */
.pop { border: 0; border-radius: 8px; padding: 24px; width: min(92vw, 400px); background: var(--paper); color: var(--ink); box-shadow: 0 16px 48px rgba(28, 43, 51, .28); }
.pop::backdrop { background: rgba(28, 43, 51, .5); }
.pop-t { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 8px; line-height: 1.5; }
.pop-s { margin: 0; font-size: 15px; color: var(--sub); }
.pop-close { margin-top: 18px; width: 100%; min-height: 50px; border: 0; border-radius: 6px; background: var(--main); color: #FFFFFF; font: inherit; font-weight: 700; cursor: pointer; }
.pop-close:focus-visible { outline-color: var(--ink); }
