:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif; color: #233b33; background: #f3f5ef; line-height: 1.7; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 32px, 720px); margin: 38px auto; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; margin: 0 0 28px 8px; }
.brand-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #245d4a; color: white; font-size: 23px; }
.card { background: #fff; border: 1px solid #e0e6dd; border-radius: 24px; padding: 38px; box-shadow: 0 8px 32px #203b3110; }
h1 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.5; margin: 8px 0 12px; overflow-wrap: anywhere; }
h2 { font-size: 1.1rem; }
p { margin: 10px 0; }
.eyebrow { color: #39705a; font-size: .85rem; font-weight: 700; letter-spacing: .05em; }
.intro, .muted { color: #66736b; }
.intro { margin-bottom: 28px; }
label { display: block; font-weight: 600; margin: 18px 0 8px; }
input, select, button { font: inherit; }
input:not([type="range"]), select { width: 100%; border: 1px solid #b8c5bb; border-radius: 10px; padding: 12px; background: white; color: inherit; }
input[type="range"] { width: 100%; accent-color: #245d4a; margin: 20px 0 0; }
button { cursor: pointer; border: 1px solid transparent; border-radius: 10px; padding: 12px 18px; font-weight: 600; transition: background .15s; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #ce9b30; outline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips button { padding: 6px 12px; border-color: #dde4da; background: #f7f8f4; color: #4c5d52; font-size: .85rem; }
.chips button[aria-pressed="true"] { color: #245d4a; background: #e7f0e7; border-color: #245d4a; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.muted { font-size: .8rem; font-weight: 400; }
.primary { background: #245d4a; color: white; width: 100%; }
.primary:hover:not(:disabled) { background: #174735; }
.primary:disabled { opacity: .65; }
.secondary { background: #eff3ec; color: #245d4a; border-color: #c8d4c5; }
.best { color: #5c715e; font-size: .9rem; margin: 18px 0; }
#error { color: #a33232; }
#error-area { margin-top: 18px; }
.topline { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
progress { width: 100%; height: 8px; accent-color: #245d4a; border: 0; border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
progress::-webkit-progress-bar { background: #e9eee5; }
progress::-webkit-progress-value { background: #245d4a; }
.choices { display: grid; gap: 12px; margin: 26px 0; }
.choice { width: 100%; display: flex; align-items: baseline; gap: 14px; text-align: left; border-color: #d4ddd0; background: #fff; color: #233b33; overflow-wrap: anywhere; }
.choice:hover:not(:disabled) { background: #f2f6ef; }
.choice.correct { border-color: #367653; background: #eaf4e9; color: #205537; }
.choice.incorrect { border-color: #b44949; background: #fff0ef; color: #963434; }
.choice-letter { font-weight: 700; flex-shrink: 0; }
.feedback { background: #f4f6f0; padding: 18px; border-radius: 12px; margin-bottom: 20px; overflow-wrap: anywhere; }
.feedback h2 { margin: 0; }
.text-button { display: block; margin: 16px auto 0; background: transparent; color: #5b6c61; }
.result-score { font-size: 3rem; font-weight: 750; color: #245d4a; margin-bottom: 0; }
.actions { display: flex; gap: 12px; margin: 24px 0 32px; }
.actions button { flex: 1; }
.review-title { border-top: 1px solid #e1e7dd; padding-top: 25px; }
.review-item { padding: 14px 0; border-bottom: 1px solid #e1e7dd; overflow-wrap: anywhere; }
.review-item h3 { font-size: 1rem; }
.review-item p { font-size: .95rem; }
footer { text-align: center; color: #6f796f; font-size: .75rem; margin: 24px 10px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 480px) { main { margin: 20px auto; } .card { padding: 24px 20px; border-radius: 18px; } .settings-grid { gap: 12px; } .actions { flex-direction: column; } .brand { margin-bottom: 20px; } }
