:root{font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN",sans-serif;color:#17231e;background:#f3f0e8;line-height:1.65}*{box-sizing:border-box}body{margin:0}header,.site-footer{display:flex;justify-content:space-between;gap:1rem;padding:1rem clamp(1rem,4vw,3rem);background:#173f35;color:#fff}header a,.site-footer a{color:#fff;font-weight:700}main{width:min(1120px,calc(100% - 2rem));margin:auto}.intro{padding:3rem 0 2rem}.eyebrow{color:#8a4b24;font-weight:800;letter-spacing:.08em}.intro h1{font-size:clamp(2rem,6vw,3.8rem);line-height:1.1;margin:.4rem 0}.facts{display:flex;flex-wrap:wrap;gap:.5rem}.facts span{border:1px solid #a8b8b1;border-radius:2rem;padding:.3rem .8rem;background:#fff}.workspace{display:grid;grid-template-columns:minmax(260px,360px) 1fr;gap:1.2rem;align-items:start}.editor,.preview-pane,.notes{background:#fff;border:1px solid #cbd3cf;border-radius:16px;padding:1.25rem}.editor{position:sticky;top:1rem}.editor label{display:block;font-weight:700;margin-top:1rem}.editor label span{font-size:.8rem;font-weight:400}.editor input,.editor select,.editor button,.buttons button{width:100%;font:inherit;padding:.75rem;border:1px solid #74877e;border-radius:8px;background:#fff}.editor button,.buttons button:last-child{margin-top:1.2rem;background:#176452;color:#fff;font-weight:800;border:0;cursor:pointer}.privacy,.preview-controls p{font-size:.88rem;color:#52615b}#error{color:#a12b20;min-height:1.5em}.buttons{display:flex;gap:.6rem}.buttons button{margin-top:0}.buttons .secondary{background:#fff;color:#173f35;border:1px solid #74877e}#sheet{width:210mm;min-height:297mm;max-width:100%;margin:1rem auto;background:#fff;border:1px solid #a8b0ac;padding:14mm 15mm;color:#111}.sheet-heading{border-bottom:2px solid #173f35}.sheet-heading h2{text-align:center;font-size:28pt;margin:.2rem}.sheet-heading p{margin:.25rem 0}#problem-list{display:grid;grid-template-columns:1fr 1fr;gap:6mm 12mm;padding:8mm 4mm 0;list-style-position:inside}#problem-list li{font-size:20pt;display:flex;align-items:center;justify-content:space-between;gap:3mm}.answer-box{width:18mm;height:12mm;border:1.5px solid #222;display:inline-block}#sheet footer{text-align:right;margin-top:10mm;font-size:9pt}.answers{margin-top:1rem}.answers summary{cursor:pointer;font-weight:800}.answers ol{columns:2}.notes{margin:2rem 0}.ad-space{border:1px dashed #999;padding:1rem;text-align:center;color:#666;margin-top:1.5rem}@media(max-width:760px){.workspace{grid-template-columns:1fr}.editor{position:static}#sheet{width:100%;min-height:auto;padding:7vw}#problem-list{grid-template-columns:1fr;gap:1rem}#problem-list li{font-size:clamp(1.2rem,6vw,1.7rem)}.buttons{flex-direction:column}header{flex-direction:column}}@page{size:A4 portrait;margin:0}@media print{body{background:#fff}.no-print,.intro,body>header,.site-footer{display:none!important}main{width:auto}.workspace{display:block}#result{display:block!important;border:0;padding:0}#sheet{border:0;margin:0;width:210mm;min-height:290mm;padding:12mm 15mm;box-shadow:none}#problem-list{grid-template-columns:1fr 1fr;gap:6mm 12mm}#problem-list li{font-size:20pt}}

.question-number{font-size:.55em;color:#444;display:inline-block;min-width:1.7em}
