* { box-sizing: border-box; }
body { margin: 0; background: #fbf6e8; color: #2e2e36; font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif; font-size: 17px; line-height: 1.8; }
main { max-width: 640px; margin: 0 auto; padding: 48px 20px; }
h1 { font-size: 28px; line-height: 1.4; margin: 0 0 16px; }
h2 { font-size: 20px; margin: 0; }
a { color: #2b3478; }
button { font: inherit; font-weight: 700; color: #2b3478; background: #fff; border: 2px solid #2b3478; border-radius: 999px; padding: 12px 34px; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid #2b3478; outline-offset: 3px; }
article { background: #fff; border: 3px solid #2e2e36; border-radius: 28px; padding: 24px; margin: 24px 0; }
pre { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
main > h2 { margin: 48px 0 0; }
form { display: grid; gap: 12px; justify-items: start; }
label { font-weight: 700; }
input { font: inherit; color: inherit; background: #fff; border: 2px solid #2e2e36; border-radius: 8px; width: 100%; padding: 12px 16px; }
input:focus-visible { outline: 3px solid #2b3478; outline-offset: 3px; }
.note { font-size: 16px; }
[hidden] { display: none; }
/* 結果の文は、読み上げのためにフォーカスを移すだけ。黒い枠は出さない（2026-12-03 オーナーの指摘） */
[tabindex="-1"]:focus { outline: none; }
