:root { color-scheme:light; --green:#1d4940; --ink:#263c34; --muted:#58685f; --line:#c8d7cd; --cream:#faf8f0; font-family:'Noto Sans JP','Hiragino Sans',system-ui,sans-serif; color:var(--ink); background:var(--cream); line-height:1.75; }
* { box-sizing:border-box; }
body { margin:0; }
a { color:var(--green); text-underline-offset:.2em; }
button,select,input { font:inherit; }
button,a.button { cursor:pointer; }
button,.button,select { min-height:48px; }
button,.button { display:inline-flex; align-items:center; justify-content:center; padding:.75em 1.25em; border-radius:10px; border:1px solid var(--line); font-weight:650; text-decoration:none; text-align:center; line-height:1.5; }
.primary { background:var(--green); color:white; border-color:var(--green); }
.secondary { background:white; color:var(--green); }
button:disabled { cursor:default; opacity:.45; }
:focus-visible { outline:3px solid #a76b13; outline-offset:4px; }
header,footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; max-width:1120px; margin:auto; padding:22px clamp(18px,4vw,40px); }
header { border-bottom:1px solid var(--line); }
.brand { display:inline-flex; align-items:center; gap:10px; font-size:1.3rem; font-weight:750; text-decoration:none; }
.brand img { border-radius:8px; }
.languages { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:.8rem; }
select { background:white; color:var(--ink); padding:8px; border:1px solid var(--line); border-radius:8px; max-width:100%; }
main { max-width:1040px; margin:36px auto 64px; padding:0 clamp(18px,4vw,40px); }
h1,h2,p { margin:0; }
h1 { font-size:clamp(1.65rem,4vw,2.7rem); line-height:1.5; letter-spacing:-.025em; overflow-wrap:anywhere; }
h2 { font-size:1.15rem; line-height:1.65; margin-bottom:12px; }
.eyebrow { color:var(--green); font-size:.85rem; letter-spacing:.03em; margin-bottom:16px; }
.lead { color:var(--muted); margin:18px 0 26px; }
.quiet { font-size:.8rem; color:var(--muted); margin:18px 0 0; overflow-wrap:anywhere; }
.intro { display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:48px; align-items:center; padding:40px 0; }
.intro h1 { white-space:pre-line; }
.intro .primary { margin-top:18px; }
.duration { font-weight:650; color:var(--green); }
.mascot { max-width:100%; height:auto; }
.card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.card-head h1 { flex:1; min-width:0; }
.question-mascot,.result-mascot { flex-shrink:0; object-fit:contain; transform-origin:50% 100%; }
.question-mascot { width:88px; height:88px; margin-top:-8px; }
.result-mascot { width:120px; height:120px; margin-top:-12px; }
.mascot[data-mood=normal] { scale:1.3; }
@media(prefers-reduced-motion:no-preference) { .mascot.react { animation:hop .45s ease-out; } }
@keyframes hop { 0%{transform:translateY(0) scale(1)} 35%{transform:translateY(-10px) scale(1.04)} 70%{transform:translateY(2px) scale(.98)} 100%{transform:none} }
.question,.result { max-width:720px; margin:auto; background:white; padding:clamp(20px,4vw,44px); border:1px solid var(--line); border-radius:18px; }
progress { display:block; width:100%; height:7px; margin:0 0 28px; accent-color:var(--green); border:0; }
progress::-webkit-progress-bar { background:#e9efe8; border-radius:4px; }
progress::-webkit-progress-value { background:var(--green); border-radius:4px; }
fieldset { border:0; padding:0; margin:0; display:grid; gap:12px; min-width:0; }
.option { display:flex; align-items:center; gap:14px; padding:16px; min-height:60px; border:1px solid var(--line); border-radius:10px; cursor:pointer; overflow-wrap:anywhere; }
.option input { width:20px; height:20px; flex-shrink:0; accent-color:var(--green); }
.option:has(input:checked) { border-color:var(--green); background:#edf5ee; }
.option:has(input:focus-visible) { outline:3px solid #a76b13; outline-offset:3px; }
.navigation { display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-top:28px; }
.result-section { border-top:1px solid var(--line); padding-top:24px; margin-top:28px; }
ul,ol { padding-left:1.5em; margin:8px 0; }
li+li { margin-top:10px; }
.plan-card { background:#f0f5ed; border-left:3px solid var(--green); padding:24px; margin-top:26px; }
.plan-card h2 { font-size:1.5rem; }
.plan-card>p+p { margin-top:10px; }
.notice { padding:16px; border-left:3px solid #ad7a25; background:#fff8e8; margin-top:20px; }
.actions,.result-tools { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:26px; }
.text-link { display:inline-block; padding:12px 0; }
.text-button { color:var(--green); background:transparent; border:0; text-decoration:underline; font-weight:400; }
dl { margin:0; }
dt { color:var(--muted); font-size:.85rem; margin-top:16px; }
dd { margin:2px 0 0; font-weight:600; }
footer { border-top:1px solid var(--line); font-size:.8rem; color:var(--muted); }
.no-script { padding:24px; max-width:720px; margin:auto; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.print-only { display:none; }
@media(max-width:740px) { .intro { grid-template-columns:1fr; gap:24px; padding:12px 0; } .intro .mascot { width:120px; grid-row:1; justify-self:end; } .question-mascot { width:64px; height:64px; } .result-mascot { width:80px; height:80px; } header { align-items:flex-start; } .question,.result { border-radius:12px; } }
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; } }
@media print { @page { size:A4; margin:15mm; } :root { background:white; color:#111; font-size:10pt; } header,footer,.screen-only { display:none!important; } main { padding:0; margin:0; max-width:none; } .result { border:0; padding:0; margin:0; max-width:none; } h1 { font-size:22pt; } h2 { font-size:13pt; } .result-section,.plan-card { break-inside:avoid; padding-top:12px; margin-top:16px; } .plan-card { border:1px solid #aaa; background:white; padding:14px; } .quiet { font-size:8pt; } .print-only { display:block; font-size:8pt; margin-top:20px; } }

.preview-banner { max-width:1040px; margin:18px auto 0; padding:0 clamp(18px,4vw,40px); font-size:.8rem; color:var(--muted); }
