/* 値は今の問診の画面（src/client/CustomIntakeForm.html・CustomIntakeConfirmation.html・CustomIntakeError.html）と同じ。
   変えたのは本文の行間だけ（1.65 → 1.7。CustomIntakeError.html と同じ値。AGENTS.md §9.1-6 の 1.7 以上）。
   外のフォントは読み込まない（端末の日本語フォントだけ）。斜体は使わない。 */
:root{color-scheme:light;--blue:#2757a6;--ink:#273142;--muted:#687386;--line:#dce4ef;--bg:#f5f8fc;--accent:#f2a23a}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{min-height:100%;background:var(--bg)}
body{min-height:100vh;min-height:100dvh;margin:0;overflow-x:hidden;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Yu Gothic",sans-serif;font-style:normal;line-height:1.7;-webkit-text-size-adjust:100%}
.page{min-height:100vh;min-height:100dvh;max-width:720px;margin:0 auto;padding:18px 14px calc(48px + env(safe-area-inset-bottom))}
.hero{background:var(--blue);color:#fff;border-radius:16px 16px 0 0;padding:22px}
.clinic{font-size:14px;opacity:.9}
h1{margin:7px 0 0;font-size:25px}
.card{background:#fff;border:1px solid var(--line);border-radius:0 0 16px 16px;padding:22px 18px;box-shadow:0 5px 18px rgba(39,87,166,.07)}
form{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
.notice{border-left:4px solid var(--accent);background:#fffaf1;padding:12px 14px;margin-bottom:18px;font-size:14px}
.summary{background:#f4f8ff;border:1px solid #d7e2f4;border-radius:12px;padding:13px 14px;margin-bottom:22px;font-size:14px}
.summary strong{color:var(--blue)}
fieldset{border:0;padding:0;margin:0 0 24px}
legend{color:var(--blue);font-weight:700;font-size:19px;margin-bottom:5px}
.help{color:var(--muted);font-size:13px;margin:0 0 12px}
.question{border-top:1px solid #edf1f6;padding:15px 0 4px}
.question:first-of-type{border-top:0;padding-top:4px}
.question-label{display:block;font-weight:700;font-size:15px;margin-bottom:8px}
.required{color:#c43e4b;font-size:12px;margin-left:5px}
.choices{display:grid;gap:8px}
label.choice{display:flex;gap:9px;align-items:flex-start;padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:14px}
input[type=radio],input[type=checkbox]{width:18px;height:18px;margin:2px 0 0;accent-color:var(--blue)}
/* 代理の問い（M6b）。色・角丸・余白は textarea・label.choice・.summary と同じ値。入力の文字 16px は iPhone で入力時に拡大されないため */
input[type=text],select{width:100%;min-height:44px;padding:10px 11px;border:1px solid #cbd6e5;border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-size:16px}
.field{display:block;font-size:14px}
.field>span{display:block;color:var(--muted);font-size:13px;margin-bottom:4px}
.proxy-other,.proxy-family{margin-top:12px}
.proxy-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 8px;margin-bottom:10px}
.proxy-date{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:8px}
.proxy-lead{font-weight:700;margin:0 0 18px;padding:10px 12px;background:#f4f8ff;border:1px solid #d7e2f4;border-radius:10px}
textarea{width:100%;min-height:92px;resize:vertical;padding:10px 11px;border:1px solid #cbd6e5;border-radius:9px;font:inherit;font-size:14px}
.consent{border:1px solid #d7e2f4;background:#f8fbff;border-radius:12px;padding:14px}
.submit{width:100%;min-height:52px;border:0;border-radius:999px;background:var(--blue);color:#fff;padding:14px;font-size:17px;font-weight:700}
.submit:disabled{opacity:.6}
.footnote{color:var(--muted);font-size:12px;margin-top:14px}
/* 受付完了（CustomIntakeConfirmation.html）とエラー（CustomIntakeError.html）の値 */
.done-summary{white-space:pre-line;background:#f4f8ff;border:1px solid #d7e2f4;border-radius:12px;padding:14px;margin:18px 0}
.note{border-left:4px solid #f2a23a;background:#fffaf1;padding:12px 14px}
.error-title{color:#2757a6;font-size:23px}
