.wrap{max-width:1080px}
.top .back{margin-left:auto;color:#536075;font-size:13px;font-weight:800;text-decoration:none}
article.card{padding:24px}
article.card h1{font-size:clamp(28px,6vw,42px);line-height:1.2;margin:8px 0 10px}
.number-pairs-card{background:#fff;border-radius:22px;box-shadow:0 8px 28px #0000000d;padding:18px}
.number-pairs-card h3{font-size:24px;line-height:1.35;margin:10px 0 8px}
.number-pairs-card h3 a{color:#1c2635;text-decoration:none}
.card-lead{min-height:82px;font-size:14px;margin:10px 0}
.number-pairs-mini{padding:10px}
.number-pairs-board{display:block;width:min(100%,560px);height:auto;aspect-ratio:1;margin:auto}
.number-pairs-background{fill:#fff;stroke:#1c2635;stroke-width:8}
.number-pairs-grid{stroke:#aeb8c6;stroke-width:2;fill:none}
.number-pairs-answer-lines{fill:none;stroke:#ee982c;stroke-width:17;stroke-linecap:round;stroke-linejoin:round}
.number-pair-endpoint circle{fill:#fff;stroke:#2f6fed;stroke-width:5}
.number-pair-endpoint text{fill:#1c2635;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;font-weight:800;text-anchor:middle;dominant-baseline:central}
.number-pairs-preview{max-width:600px;margin:18px auto;padding:10px}
.number-pairs-actions{max-width:600px;margin:12px auto}
.number-pairs-card .number-pairs-actions{max-width:none;margin:12px 0 0}
.number-pairs-card .ans{margin-top:14px}
.number-pairs-card .ans h4{margin:0 0 10px;font-size:18px}
.links{display:flex;justify-content:space-between;gap:10px;margin-top:24px}
.links a{color:#2f6fed;font-weight:800;text-decoration:none}
.number-pairs-print-preview{width:160mm;height:160mm;margin:7mm auto 0}
.number-pairs-print-preview .number-pairs-board{width:100%;height:100%}
.print-note{font-size:13px;color:#667085;margin-top:5mm;text-align:center}
@media(max-width:600px){article.card,.number-pairs-card{padding:18px}.number-pairs-card h3{font-size:23px}.card-lead{min-height:0}}
@media print{.print-page{padding:6mm 8mm}.print-title{margin-bottom:2mm}.print-meta{margin-bottom:2mm}.number-pairs-print-preview{width:160mm;height:160mm}@page{size:A4;margin:10mm}}
