/* 街クリニック（事業者）のご案内のページ（src/brand.js）。医院のホームページの style.css とは別
   色はロゴの青と緑。白地に濃い青の文字。読み手は60歳前後の院長なので、文字は大きく・濃く・行間を広く */
:root {
  --b-blue: #0061b0; --b-blue-deep: #0a3c6b; --b-green: #2caa3d; --b-green-deep: #1e7d2c;
  --b-ink: #14273b; --b-sub: #44566a; --b-sky: #eef5fb; --b-line: #d8e3ee; --b-white: #fff;
  --sign: #123c63;
  --b-wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.b {
  margin: 0; background: var(--b-white); color: var(--b-ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: 17px; line-height: 1.85; letter-spacing: 0.02em;
}
:where(.b) img { max-width: 100%; }
:where(.b) a { color: var(--b-blue); text-underline-offset: 3px; }
.b a:focus-visible, .b button:focus-visible, .b summary:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; border-radius: 6px; }
.b-u { display: inline-block; }
:where(.b) :is(h1, h2, h3, .b-steps b, .b-facts b) { word-break: auto-phrase; text-wrap: balance; }
/* 中央ぞろえの短い文は、文節で折り返す（対応していないブラウザではふつうに折り返す。大事な所は .b-u で区切ってある） */
:where(.b) :is(.b-center p, p.b-center, .b-sub, .b-final p) { word-break: auto-phrase; text-wrap: pretty; }
:where(.b) :is(h1, h2, h3) { font-feature-settings: "palt"; letter-spacing: 0.03em; line-height: 1.4; margin: 0; }
:where(.b) h2 { font-size: clamp(24px, 5.4vw, 34px); font-weight: 800; margin-bottom: 18px; }
:where(.b) h3 { font-size: 20px; font-weight: 800; }
:where(.b) p { margin: 0 0 1em; }
.b-wrap { max-width: var(--b-wrap); margin: 0 auto; padding: 0 20px; }
.b-narrow { max-width: 800px; }
.b-center { text-align: center; }
.b-sub { color: var(--b-sub); }
.b-note { color: var(--b-sub); font-size: 15px; line-height: 1.75; }
.b-small { font-size: 15px; }
.b-mt { margin-top: 56px; }
.b-sp { display: inline; }
@media (min-width: 700px) { .b-sp { display: none; } }

/* ヘッダー */
.b-head { border-bottom: 1px solid var(--b-line); background: var(--b-white); }
.b-head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.b-logo { display: block; line-height: 0; }
.b-logo img { height: 32px; width: auto; }
.b-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 700; }
.b-nav a:not(.b-btn) { color: var(--b-ink); text-decoration: none; display: none; }
.b-nav a:not(.b-btn):hover { color: var(--b-blue); }
@media (min-width: 860px) { .b-nav a:not(.b-btn) { display: inline; } .b-logo img { height: 38px; } .b-head-in { min-height: 76px; } }

/* ボタン */
.b-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px;
  background: var(--b-blue); color: #fff !important; border: 2px solid var(--b-blue); border-radius: 12px;
  font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: 0.04em;
}
.b-btn:hover { background: var(--b-blue-deep); border-color: var(--b-blue-deep); }
.b-btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.b-btn-line { background: transparent; color: var(--b-blue) !important; }
.b-btn-line:hover { background: var(--b-sky); border-color: var(--b-blue); }
.b-btn-white { background: #fff; color: var(--b-blue) !important; border-color: #fff; }
.b-btn-white:hover { background: var(--b-sky); border-color: var(--b-sky); }
.b-btn-ghost { background: transparent; border-color: rgba(255,255,255,0.7); }
.b-btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.b-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.b-cta-center { justify-content: center; }
@media (max-width: 480px) { .b-cta .b-btn { flex: 1 1 100%; } }

/* 最初の画面: 左に文、右にスマホ。下に町並みの線画 */
.b-hero { position: relative; overflow: hidden; padding: 40px 0 120px; }
.b-hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .b-hero { padding: 64px 0 150px; } .b-hero-in { grid-template-columns: 1.15fr 0.85fr; gap: 56px; } }
.b-kicker { color: var(--b-green-deep); font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.b-hero h1 { font-size: clamp(24px, 7.6vw, 48px); font-weight: 900; line-height: 1.3; color: var(--b-ink); }
.b-lead { font-size: 18px; color: var(--b-sub); margin: 24px 0 0; max-width: 34em; line-height: 1.8; }
.b-lead + .b-lead { margin-top: 12px; }
.b-hero-sub { font-size: clamp(19px, 4.8vw, 23px); font-weight: 800; color: var(--b-green-deep); line-height: 1.5; margin: 20px 0 0; }
.b-ib { display: inline-block; max-width: 100%; } /* 見出しを語の切れ目でだけ折り返す（入りきらない幅では中でも折り返す） */
.b-hero-text { min-width: 0; }
.b-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 26px 0 0; padding: 14px 0 0; border-top: 1px solid var(--b-line); }
.b-price-label { font-weight: 800; font-size: 18px; }
.b-price-num { font-weight: 900; font-size: 52px; line-height: 1; color: var(--b-blue); font-feature-settings: "tnum"; letter-spacing: 0; }
.b-price-num small { font-size: 24px; margin-left: 2px; }
.b-price-note { color: var(--b-sub); font-size: 15px; font-weight: 700; }
.b-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-weight: 700; }
.b-checks li { display: flex; align-items: center; gap: 10px; }
.b-checks svg { color: #fff; background: var(--b-green); border-radius: 50%; padding: 3px; width: 24px; height: 24px; flex: none; }
.b-hero-visual { display: flex; justify-content: center; }
.b-town {
  position: absolute; left: 0; right: 0; bottom: 0; height: 130px; pointer-events: none;
  background: var(--b-blue); opacity: 0.1;
  -webkit-mask: url(/img/deco/street.webp) bottom center / auto 100% repeat-x; mask: url(/img/deco/street.webp) bottom center / auto 100% repeat-x;
}
@media (min-width: 900px) { .b-town { height: 170px; } }

/* スマホの枠の中の見本（看板の色は data-theme の --sign） */
.phone {
  width: 290px; aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 11px; background: #1b2633;
  box-shadow: 0 30px 60px -20px rgba(10, 40, 80, 0.45), inset 0 0 0 2px #2c3a4a; flex: none;
}
@media (min-width: 900px) { .phone { width: 320px; } }
.phone-screen { height: 100%; border-radius: 32px; overflow: hidden; background: #f4f6f9; display: flex; flex-direction: column; }
.pm-sign {
  background: linear-gradient(180deg, color-mix(in srgb, var(--sign) 82%, #fff) 0%, var(--sign) 38%, color-mix(in srgb, var(--sign) 78%, #000) 100%);
  color: #fff; text-align: center; padding: 30px 14px 18px; transition: background 0.3s;
}
.pm-corp { font-size: 11px; opacity: 0.85; margin: 0; letter-spacing: 0.2em; }
.pm-name { font-size: 20px; font-weight: 900; margin: 2px 0 0; letter-spacing: 0.04em; }
.pm-dept { font-size: 11.5px; opacity: 0.9; margin: 2px 0 0; }
.pm-strings { display: flex; justify-content: space-between; width: 62%; margin: 4px auto 0; height: 16px; }
.pm-strings span { width: 2px; background: rgba(255,255,255,0.75); border-radius: 1px; }
.pm-today { background: #fff; color: var(--b-ink); border-radius: 12px; padding: 10px 10px 8px; border-top: 4px solid #1f8a4c; }
.pm-day { font-size: 11px; color: #5b6b7c; font-weight: 700; margin: 0; }
.pm-status { font-size: 16.5px; font-weight: 900; margin: 1px 0 2px; color: #1f8a4c; display: flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.35; }
.pm-status i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.pm-status.is-closed { color: #c0392b; }
.pm-today:has(.is-closed) { border-top-color: #c0392b; }
.pm-time { font-size: 11px; margin: 0; color: #2b3b4c; }
.pm-tel { background: #fff; color: var(--sign); border-radius: 12px; margin: 10px 8px 0; padding: 6px; font-weight: 900; font-size: 19px; line-height: 1.2; letter-spacing: 0.02em; }
.pm-tel small { display: block; font-size: 10px; color: #5b6b7c; font-weight: 700; }
.pm-body { padding: 14px 12px; }
.pm-h { font-size: 13px; font-weight: 900; margin: 0 0 8px; border-left: 4px solid var(--sign); padding-left: 8px; line-height: 1.3; }
.pm-news { background: #fff; border: 1px solid #dfe6ee; border-radius: 8px; font-size: 11.5px; font-weight: 700; padding: 7px 9px; margin: 0 0 12px; line-height: 1.45; }
.pm-news small { display: block; color: #5b6b7c; font-size: 10px; font-weight: 700; }
.pm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pm-tiles span { background: #fff; border: 1px solid #dfe6ee; border-radius: 8px; font-size: 11.5px; font-weight: 700; padding: 7px 4px; text-align: center; line-height: 1.3; }

/* 区切りの帯 */
.b-sec { padding: 72px 0; }
@media (min-width: 900px) { .b-sec { padding: 96px 0; } }
.b-tint { background: var(--b-sky); }
.b-voices { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; gap: 12px; }
.b-voices li { background: #fff; border-left: 5px solid var(--b-green); border-radius: 0 12px 12px 0; padding: 14px 18px; font-weight: 700; font-size: 18px; }

/* 3つの案内 */
.b-three { display: grid; gap: 22px; margin-top: 34px; }
@media (min-width: 900px) { .b-three { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.b-guide { border: 1px solid var(--b-line); border-radius: 18px; padding: 28px 24px 22px; background: #fff; }
.b-guide h3 { margin: 16px 0 12px; }
.b-guide p { font-size: 16px; color: var(--b-sub); }
.b-ic { display: inline-flex; width: 58px; height: 58px; border-radius: 16px; align-items: center; justify-content: center; background: var(--b-sky); color: var(--b-blue); }
.b-guide .b-benefit { color: var(--b-green-deep); font-weight: 800; margin-bottom: 0; }

/* 更新の3つ */
.b-facts { display: grid; gap: 16px; margin: 32px 0 24px; }
@media (min-width: 900px) { .b-facts { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.b-facts > div { background: #fff; border-radius: 18px; padding: 24px; }
.b-facts svg { color: var(--b-blue); }
.b-facts b { display: block; font-size: 19px; margin: 8px 0 6px; }
.b-facts p { font-size: 16px; color: var(--b-sub); margin: 0; }

/* 料金 */
.b-pricecard { border: 2px solid var(--b-blue); border-radius: 22px; overflow: hidden; margin-top: 30px; }
.b-pricemain { background: var(--b-blue); color: #fff; text-align: center; padding: 28px 20px 18px; }
.b-pricemain p { margin: 0; }
.b-pricemain .b-sub { color: rgba(255,255,255,0.88); font-size: 15px; margin-top: 6px; }
.b-big { font-size: clamp(40px, 11vw, 64px); font-weight: 900; line-height: 1.15; font-feature-settings: "tnum"; letter-spacing: 0.01em; }
.b-big small { font-size: 20px; margin-left: 4px; }
.b-big small.b-u { font-size: 17px; margin-left: 2px; } /* 「（税込）」はまとまりで（「（税／込）」と切れないように。2026-10-15） */
.b-rows { margin: 0; padding: 8px 24px; }
.b-rows div { display: grid; gap: 2px 20px; padding: 16px 0; border-bottom: 1px solid var(--b-line); }
.b-rows div:last-child { border-bottom: 0; }
@media (min-width: 700px) { .b-rows div { grid-template-columns: 15em 1fr; } }
.b-rows dt { font-weight: 800; }
.b-rows dd { margin: 0; }
.b-pricecard > .b-note { padding: 0 24px 22px; margin: 0; }

/* 色見本 */
.b-color { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .b-color { grid-template-columns: 1.15fr 0.85fr; gap: 56px; } }
.b-color-visual { display: flex; justify-content: center; }
.b-swg { font-weight: 800; font-size: 15px; margin: 18px 0 8px; }
.b-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .b-swatches { grid-template-columns: repeat(6, 1fr); } }
.b-sw {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--b-ink); background: #fff; border: 2px solid var(--b-line); border-radius: 12px; cursor: pointer; line-height: 1.3;
}
.b-sw i { width: 30px; height: 30px; border-radius: 50%; background: var(--sign); }
.b-sw[aria-pressed="true"] { border-color: var(--b-blue); box-shadow: 0 0 0 2px var(--b-blue) inset; }

/* 進み方（順番があるので番号） */
.b-steps { list-style: none; counter-reset: st; margin: 36px 0 24px; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .b-steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.b-steps li { counter-increment: st; position: relative; background: #fff; border: 1px solid var(--b-line); border-radius: 18px; padding: 22px 22px 18px; }
.b-steps li::before {
  content: counter(st); display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--b-blue); color: #fff; font-weight: 900; font-size: 18px; margin-bottom: 10px;
}
.b-steps b { display: block; font-size: 18px; line-height: 1.5; margin-bottom: 8px; }
.b-steps p { font-size: 15.5px; color: var(--b-sub); margin: 0; line-height: 1.8; }

/* 作っている人 */
.b-maker h2 { margin-bottom: 24px; }
.b-maker p { font-size: 18px; }

/* 決まりごと・よくある質問 */
.b-rules { margin: 20px 0 0; padding-left: 1.2em; }
.b-rules li { margin: 0 0 10px; }
.b-faq { margin-top: 24px; border-top: 1px solid var(--b-line); }
.b-faq details { border-bottom: 1px solid var(--b-line); }
.b-faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font-weight: 800; font-size: 17.5px; line-height: 1.6; }
.b-faq summary::-webkit-details-marker { display: none; }
.b-faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 3px solid var(--b-blue); border-bottom: 3px solid var(--b-blue); transform: rotate(45deg); transition: transform 0.2s; }
.b-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.b-faq details p { margin: 0 0 20px; color: var(--b-sub); }
@media (prefers-reduced-motion: reduce) { .b-faq summary::after, .pm-sign { transition: none; } }

/* 安全性（2026-10-23 植地さん「PHPのハッキングの件、あったから、安全性の高いというのはアピールしたい」）。紺の帯に白いカード */
.b-safe { background: var(--b-blue-deep); color: #fff; }
.b-safe h2 { color: #fff; }
.b-safe .b-sub, .b-safe .b-note { color: rgba(255,255,255,0.9); }
.b-safe .b-facts > div { color: var(--b-ink); }
.b-checklink { color: inherit; text-decoration: underline; text-decoration-color: var(--b-line); text-underline-offset: 4px; }

/* 最後の申し込み */
.b-final { background: var(--b-blue); color: #fff; padding: 72px 0; }
.b-final a:not(.b-btn) { color: #fff; }
.b-final p { color: rgba(255,255,255,0.92); }

/* フッター */
.b-foot { background: var(--b-ink); color: rgba(255,255,255,0.88); padding: 44px 0 56px; font-size: 14.5px; }
.b-foot-in { display: grid; gap: 24px; }
@media (min-width: 860px) { .b-foot-in { grid-template-columns: 1fr auto; align-items: end; } }
.b-foot-logo { height: 30px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; box-sizing: content-box; margin-bottom: 12px; }
.b-foot p { margin: 0; line-height: 1.8; }
.b-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.b-foot nav a { color: #fff; text-decoration: none; }
.b-foot nav a:hover { text-decoration: underline; }

/* ---- 事業者のページ（申し込み・質問・規約・個人情報・鍵なし など）。src/pages.js の bPage ---- */
.b-pagehead { background: var(--b-sky); border-bottom: 1px solid var(--b-line); padding: 40px 0 34px; }
.b-pagehead h1 { font-size: clamp(26px, 6.4vw, 38px); font-weight: 900; line-height: 1.35; }
.b-pagehead p { color: var(--b-sub); margin: 10px 0 0; font-weight: 700; font-size: 15.5px; }
.b-doc { padding: 40px 0 80px; }
.b-doc section { margin: 0 0 34px; }
.b-doc h2 { font-size: 21px; margin: 0 0 12px; }
.b-doc .note { color: var(--b-sub); font-size: 15px; line-height: 1.75; }
.b-doc .callout { padding: 14px 18px; background: #fff; border: 1px solid var(--b-line); border-left: 5px solid var(--b-blue); border-radius: 12px; margin: 0 0 20px; }
.b-doc .callout.draft { border-left-color: #b56a00; color: #6b4a00; background: #fff8ea; }
.b-doc .apply-error { border-left-color: #b3261e; color: #8c1d18; background: #fff4f3; font-weight: 700; }
.b-doc .article { border-top: 1px solid var(--b-line); padding-top: 26px; }
.b-doc .clauses { margin: 0; padding-left: 1.6em; }
.b-doc .clauses li { margin: 0 0 10px; padding-left: 4px; }
.b-doc .clauses li::marker { font-weight: 800; color: var(--b-blue); }
.b-doc .band { background: var(--b-sky); border-radius: 16px; padding: 22px 24px; }
.b-doc .band p { margin: 0; }
.b-back { margin-top: 28px; }
/* フォーム */
.b-doc form.apply { position: relative; margin: 26px 0 18px; display: grid; gap: 22px; }
.b-doc .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.b-doc .field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.b-doc .field > label, .b-doc .field > legend { font-weight: 800; font-size: 17px; padding: 0; }
.b-doc .req { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 6px; background: #b3261e; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.7; vertical-align: 2px; }
.b-doc .hint { margin: 0; color: var(--b-sub); font-size: 14.5px; line-height: 1.6; }
.b-doc input[type="text"], .b-doc input[type="email"], .b-doc input[type="tel"], .b-doc select, .b-doc textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--b-ink); background: #fff;
  border: 2px solid #b9c7d6; border-radius: 12px; padding: 12px 14px; min-height: 52px;
}
.b-doc textarea { min-height: 140px; line-height: 1.7; }
.b-doc input:focus, .b-doc select:focus, .b-doc textarea:focus { outline: none; border-color: var(--b-blue); box-shadow: 0 0 0 3px rgba(0, 97, 176, 0.18); }
.b-doc .choices { display: grid; gap: 8px; }
.b-doc .choices label { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--b-line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.b-doc .choices label:has(input:checked) { border-color: var(--b-blue); background: var(--b-sky); }
.b-doc .choices input { width: 20px; height: 20px; accent-color: var(--b-blue); flex: none; }
.b-doc .choices .choice-group { margin: 10px 0 0; font-size: 14px; font-weight: 800; color: var(--b-sub); }
.b-doc .choices .dom { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 700; letter-spacing: 0.01em; word-break: break-all; }
/* ロボット確認（Cloudflare Turnstile）: 読み込みの間も高さを取る（65px）。狭い画面でも枠からはみ出さない */
.b-doc .ts .cf-turnstile { min-height: 65px; max-width: 100%; overflow: hidden; }
.b-doc .ts .callout { margin: 4px 0 0; }
.b-doc .agree { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; background: var(--b-sky); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.b-doc .agree input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--b-blue); flex: none; }
.b-doc .btn-fill {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; padding: 0 26px;
  background: var(--b-blue); color: #fff; border: 0; border-radius: 12px; font: inherit; font-weight: 800; font-size: 18px; cursor: pointer; letter-spacing: 0.04em;
}
.b-doc .btn-fill:hover { background: var(--b-blue-deep); }
@media (min-width: 700px) { .b-doc .btn-fill { width: auto; min-width: 320px; } }
.b-nw { white-space: nowrap; } /* 「8月下旬」などの日付を途中で切らない */
/* 使い方（src/manual.js） */
.b-doc h3 { font-size: 17px; margin: 18px 0 8px; }
.b-doc ul { padding-left: 1.3em; }
.b-doc ul li { margin: 0 0 6px; }
/* 初期情報フォームの前にご用意いただくもの（/junbi）: 印刷して印を付けられるチェックの枠 */
/* 準備の一覧 /junbi（2026-10-15 植地さん「ステップバイステップであることをわかるように」） */
.m-flow li b { display: block; font-size: 17.5px; color: var(--b-blue-deep); line-height: 1.6; }
.m-flow li span { display: block; color: var(--b-ink); }
@media (min-width: 760px) {
  /* 広い画面では3つを横に並べ、番号を線でつなぐ */
  .m-steps.m-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 22px; padding: 22px 22px 20px; }
  .m-steps.m-flow li { padding: 44px 0 0; }
  .m-steps.m-flow li::after { left: 40px; right: -14px; top: 14px; bottom: auto; width: auto; height: 2px; }
}
.b-doc .prep-why { display: grid; gap: 12px; }
.b-doc .prep-why .callout { margin: 0; }
.b-doc .prep-appeal .callout h3 { margin: 0 0 6px; font-size: 1.05rem; }
.b-doc .prep-appeal .callout p { margin: 0 0 6px; }
.b-doc .prep-why details { margin: 4px 0 0; }
.b-doc .prep-why summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--b-blue); font-weight: 800; list-style: none; }
.b-doc .prep-why summary::-webkit-details-marker { display: none; }
.b-doc .prep-why summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.b-doc .prep-why details[open] summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .b-doc .prep-why summary::before { transition: none; } }
.b-doc .prep-why details[open] summary { margin-bottom: 4px; }
/* お聞きすることの見出し（フォームと同じ順）。押すとそのまとまりへ */
.prep-nav { scroll-margin-top: 16px; margin: 0 0 30px; }
.prep-nav-t { margin: 0 0 8px; font-weight: 800; font-size: 18px; }
.prep-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 640px) { .prep-nav ol { grid-template-columns: 1fr 1fr; } }
.prep-nav a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px 8px 10px; background: #fff; border: 1px solid var(--b-line); border-radius: 12px; text-decoration: none; color: var(--b-ink); font-weight: 700; line-height: 1.45; }
.prep-nav a:hover { border-color: var(--b-blue); }
.prep-nav-l { flex: 1; }
.prep-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--b-blue); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; line-height: 1; }
.prep-n-memo { background: var(--b-green-deep); }
.prep-cnt { flex: none; font-size: 13.5px; font-weight: 700; color: var(--b-sub); white-space: nowrap; }
.prep-cnt.done { color: var(--b-green-deep); }
.prep-cnt.done::before { content: "✓ "; }
/* まとまりのカード: 番号・見出し・そろった数 */
.b-doc section.prep { scroll-margin-top: 16px; background: #fff; border: 1px solid var(--b-line); border-radius: 16px; padding: 18px 18px 6px; margin: 0 0 18px; }
.prep-h { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.prep-h h2 { flex: 1; margin: 0 !important; font-size: 20px !important; }
.b-doc .prep-list { list-style: none; padding-left: 0; margin: 0 0 12px; }
.b-doc .prep-list li { margin: 0; border-top: 1px solid var(--b-line); }
.b-doc .prep-list label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; line-height: 1.75; cursor: pointer; }
.b-doc .prep-list input { flex: none; width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--b-green-deep); }
.b-doc .prep-list input:checked + span { color: var(--b-sub); }
.b-doc .prep-memo td { min-width: 6em; height: 2.4em; }
.b-doc .prep-memo tbody th { white-space: normal; }
@media print {
  .prep { break-inside: avoid; } .prep-memo tr { break-inside: avoid; }
  .b-doc section.prep { border: 0; padding: 0; }
  .b-doc .prep-why summary { display: none; }
  .b-doc .prep-list input { -webkit-appearance: none; appearance: none; border: 2px solid #44566a; border-radius: 3px; background: #fff; }
}
/* もくじ: やりたいことのまとまりごと。行ぜんたいを押せる（2026-10-15 植地さん「もう少し見やすく直感的に」） */
.m-toc { scroll-margin-top: 16px; background: var(--b-sky); border-radius: 16px; padding: 18px 18px 8px; margin: 0 0 40px; }
.m-toc-title { margin: 0 0 10px; font-weight: 800; font-size: 18px; color: var(--b-ink); }
.m-toc-groups { display: grid; gap: 4px 22px; }
@media (min-width: 720px) { .m-toc-groups { grid-template-columns: 1fr 1fr; } }
.m-toc-g { break-inside: avoid; margin: 0 0 10px; }
.m-toc-gl { margin: 0 0 4px; font-size: 14px; font-weight: 800; color: var(--b-sub); }
.m-toc ul { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--b-line); border-radius: 12px; overflow: hidden; }
.m-toc li { margin: 0; }
.m-toc li + li { border-top: 1px solid var(--b-line); }
.m-toc li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; min-height: 48px; text-decoration: none; color: var(--b-blue-deep); font-weight: 700; line-height: 1.5; }
.m-toc li a::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--b-blue); border-bottom: 2px solid var(--b-blue); transform: rotate(45deg) translate(-2px, -2px); }
.m-toc li a:hover { background: var(--b-sky); }
/* 手順: 番号を線でつなぎ、上から順に進むことが分かるように */
.m-steps { counter-reset: m; list-style: none; margin: 0 0 20px; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--b-line); border-radius: 14px; }
.m-steps li { counter-increment: m; position: relative; padding: 0 0 18px 46px; line-height: 1.75; min-height: 32px; }
.m-steps li:last-child { padding-bottom: 0; }
.m-steps li::before { content: counter(m); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--b-blue); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; line-height: 1; }
.m-steps li::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 4px; width: 2px; border-radius: 1px; background: #b9cfe4; }
.m-steps li:last-child::after { display: none; }
/* 使い方のページ: まとまりの区切りを線で */
.m-doc section + section { border-top: 1px solid var(--b-line); padding-top: 34px; }
.m-doc section { scroll-margin-top: 16px; }
/* もくじに戻るボタン（右下に固定） */
.m-fab { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 20; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--b-blue-deep); color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: 0 4px 14px rgba(10, 60, 107, 0.28); }
.m-fab::before { content: ""; width: 14px; height: 10px; background: linear-gradient(#fff 0 0) top / 100% 2px no-repeat, linear-gradient(#fff 0 0) center / 100% 2px no-repeat, linear-gradient(#fff 0 0) bottom / 100% 2px no-repeat; }
.m-fab:hover { background: var(--b-blue); }
:where(.b) a.m-fab { color: #fff; }
.m-scroll { overflow-x: auto; margin: 0 0 16px; }
.m-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--b-line); border-radius: 12px; overflow: hidden; font-size: 15.5px; line-height: 1.7; }
.m-table th, .m-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--b-line); }
.m-table thead th { background: var(--b-sky); font-size: 14px; color: var(--b-sub); }
.m-table tbody th { font-weight: 800; white-space: nowrap; }
@media (max-width: 560px) { .m-table tbody th { white-space: normal; min-width: 7em; } }
/* 使い方の表: スマホでは1行ずつのカードに（見出しを各欄の上に。外部監査5 A-7） */
@media (max-width: 640px) {
  .m-stack, .m-stack tbody, .m-stack tr, .m-stack th, .m-stack td { display: block; width: auto; }
  .m-stack thead { display: none; }
  .m-stack { border: 0; background: none; border-radius: 0; }
  .m-stack tr { background: #fff; border: 1px solid var(--b-line); border-radius: 12px; margin: 0 0 12px; overflow: hidden; }
  .m-stack tbody th { white-space: normal; min-width: 0; background: var(--b-sky); border-bottom: 1px solid var(--b-line); }
  .m-stack td { border-bottom: 0; padding-top: 8px; }
  .m-stack td + td { border-top: 1px dashed var(--b-line); }
  .m-stack td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; color: var(--b-sub); margin-bottom: 2px; }
}
.m-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0 0 20px; }
.m-card { display: grid; gap: 6px; padding: 20px 22px; background: #fff; border: 2px solid var(--b-line); border-radius: 16px; text-decoration: none; color: var(--b-ink); }
.m-card:hover, .m-card:focus-visible { border-color: var(--b-blue); }
.m-card b { font-size: 19px; color: var(--b-blue-deep); }
.m-card span { color: var(--b-sub); line-height: 1.7; }
/* 使い方の画面の写真（2026-10-14） */
.m-shot { margin: 0 0 20px; }
.m-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--b-line); border-radius: 10px; background: #fff; }
.m-shot.narrow img { max-width: 440px; }
.m-shot.wide .m-shot-img { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .m-shot.wide img { width: 620px; max-width: none; } }
.m-phones-row { display: grid; gap: 14px; max-width: 640px; }
@media (min-width: 640px) { .m-phones-row { grid-template-columns: 1fr 1fr; align-items: start; } }
.m-phones-row img { display: block; width: 100%; height: auto; border: 1px solid var(--b-line); border-radius: 14px; background: #fff; }
.m-shot figcaption { margin-top: 8px; color: var(--b-sub); font-size: 14.5px; line-height: 1.65; }
/* 使い方を印刷して受付に置くとき（2026-10-14） */
@media print {
  .b-head, .b-foot, .m-toc, .m-fab, .prep-nav { display: none !important; }
  .m-steps li, .m-shot, .m-table tr, .callout { break-inside: avoid; }
  .m-shot.wide img { width: 100% !important; max-width: 100% !important; }
  .m-shot.narrow img { max-width: 300px; }
  .m-phones-row { grid-template-columns: 1fr 1fr; max-width: 520px; }
  .m-scroll { overflow: visible !important; }
  section { break-before: auto; }
  h2 { break-after: avoid; }
}
