/* ── rounding_number_line_points3_4（同じがい数になる点を数直線で選ぼう、単元仕様書 v1.3）── */
/* 画面：問題文、数直線の図、点の組の4択（2×2。400px以下は1列）、回答案内。回答後は図に帯とはしの数、図の下に数直線のまとめ（§5-3・§7）。 */
#question-text .rnp-q{display:block}
.rnp-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center}
.rnp-figbox{width:min(100%,520px);margin:0 auto 6px}
.rnp-fig{display:block;width:100%;height:auto}
.rnp-axis{stroke:#475569;stroke-width:2}
.rnp-head{fill:#475569}
.rnp-tick{stroke:#475569;stroke-width:2}
.rnp-lab{fill:#1e293b;font-weight:700;font-variant-numeric:tabular-nums}
.rnp-pt{fill:#1d4ed8;stroke:#1e3a8a;stroke-width:1.5}
.rnp-ptname{fill:#1e3a8a;font-weight:800}
.rnp-band{stroke:#1e293b;stroke-width:6}
.rnp-in{fill:#1e293b;stroke:#1e293b;stroke-width:2}
.rnp-out{fill:#fff;stroke:#1e293b;stroke-width:3}
.rnp-bandcap{width:min(100%,520px);margin:0 auto 2px;display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
.rnp-bandtext{overflow-wrap:anywhere}
.rnp-cap-in,.rnp-cap-out{display:inline-block;width:12px;height:12px;border-radius:50%;box-sizing:border-box;border:2px solid #1e293b;background:#1e293b}
.rnp-cap-out{background:#fff}
.rnp-cap-bar{display:inline-block;width:22px;height:5px;background:#1e293b;margin:0 -2px}
.rnp-summary{width:min(100%,520px);margin:0 auto 6px;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.rnp-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(100%,460px);margin:2px auto}
.rnp-choice{position:relative;box-sizing:border-box;min-height:52px;padding:6px 8px 6px 24px;border:3px solid #64748b;border-radius:10px;background:#fff;color:#1e293b;font-size:1.1rem;font-weight:800;cursor:pointer;touch-action:manipulation}
.rnp-check{position:absolute;top:1px;left:6px;font-size:18px;font-weight:900;color:#1d4ed8}
.rnp-choice.rnp-on{background:#dbeafe;border-color:#1d4ed8;color:#1e3a8a}
.rnp-choice:focus-visible{outline:3px solid #f59e0b;outline-offset:1px}
.rnp-choice:disabled{cursor:default;opacity:1}
.rnp-choice.rnp-ok,.rnp-choice.rnp-ok:disabled{border:3px solid #15803d;background:#dcfce7;color:#14532d}
.rnp-choice.rnp-ng,.rnp-choice.rnp-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2;color:#7f1d1d}
.rnp-choice.rnp-right,.rnp-choice.rnp-right:disabled{border:3px solid #15803d;background:#f0fdf4;color:#14532d}
.rnp-ok .rnp-check,.rnp-right .rnp-check{color:#15803d}
.rnp-ng .rnp-check{color:#b91c1c}
.rnp-guide{margin:6px 0 0;font-size:16px;font-weight:700;text-align:center;line-height:1.4}
.rnp-guide[hidden]{display:none}
.rnp-msg{min-height:1.4em;margin:4px 0 2px;color:#b45309;font-weight:700;text-align:center;line-height:1.4}
.rnp-msg:empty{min-height:0;margin:0}
.feedback.has-text.rnp-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.rnp-correct{margin:2px 0 6px;font-weight:800;font-size:17px}
.rnp-expl-text{margin:4px 0 6px;overflow-wrap:anywhere}
.rnp-score{margin:6px 0 2px;font-weight:800;color:#1e3a8a}
@media (max-width:400px){.rnp-choices{grid-template-columns:minmax(0,1fr)}}

.rnp-example .rnp-ex-q{font-weight:700;margin:6px 0 2px}
.rnp-ex-choices{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0}
.rnp-ex-choice{border:2px solid #64748b;border-radius:8px;padding:2px 10px;font-weight:700}
.rnp-example .rnp-ex-fig{width:min(100%,380px);min-width:240px}
.rnp-example .rnp-ex-a{margin:2px 0 8px;overflow-wrap:anywhere}
#page-quiz.active:has(.rnp-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.rnp-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.rnp-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.rnp-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.rnp-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}

/* 印刷：A4縦・2列・1ページ（§7）。1問91×44.8mm（1行目6mm・2行目6mm・図13.8mm・選択肢7mm×2・余り）。 */
.rnp-pr-page{width:190mm;height:277mm;box-sizing:border-box;display:flex;flex-direction:column;padding:0;margin:0 auto 8mm;overflow:hidden;background:#fff;color:#000;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.rnp-pr-headblock{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:190mm;height:19.5mm}
.rnp-pr-title{box-sizing:border-box;margin:0;height:9mm;font-size:15pt;font-weight:700;line-height:8mm;text-align:center;white-space:nowrap;padding:0;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.rnp-pr-page[lang="en"] .rnp-pr-title{font-size:14pt}
.rnp-pr-hfields{display:flex;gap:5mm;align-items:flex-end;height:7mm;margin-top:1mm;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.rnp-pr-hgroup{display:inline-flex;align-items:flex-end;gap:3mm;flex:none}
.rnp-pr-hfield{display:inline-flex;align-items:flex-end;gap:1.5mm;flex:none}
.rnp-pr-hfield-line{display:inline-block;box-sizing:border-box;width:14mm;height:6mm;border-bottom:2px solid #555}
.rnp-hfield-name{flex:1;min-width:0}
.rnp-hfield-name .rnp-pr-hfield-line{flex:1;width:auto;min-width:30mm}
.rnp-pr-solid{box-sizing:content-box;display:block;height:0;padding:0;border:0;border-top:1.5pt solid #333;margin:1mm 0 0}
.rnp-pr-inst{flex:none;box-sizing:border-box;width:190mm;height:6.5mm;margin:1.2mm 0 0;padding:0 2mm;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.rnp-pr-problems{flex:none;display:grid;grid-template-columns:91mm 91mm;column-gap:4mm;width:190mm;margin:0.5mm 0 0}
.rnp-pr-col{display:grid;grid-template-rows:repeat(5,44.8mm)}
.rnp-pr-cell{box-sizing:border-box;width:91mm;height:44.8mm;overflow:hidden;padding:0;background:linear-gradient(#bbb,#bbb) top left/100% 2px no-repeat;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.rnp-pr-row{height:6mm;line-height:6mm;font-size:12.5pt;white-space:pre}
.rnp-pr-l1{font-weight:700}
.rnp-pr-page .rnp-fig.rnp-pr-fig{display:block;width:auto;height:13.8mm}
.rnp-pr-fig .rnp-axis,.rnp-pr-fig .rnp-tick{stroke-width:3.5}
.rnp-pr-fig .rnp-pt{fill:#000;stroke:#000;stroke-width:2}
.rnp-pr-fig .rnp-ptname,.rnp-pr-fig .rnp-lab{fill:#000}
.rnp-pr-choices{display:grid;grid-template-columns:repeat(2,max-content);column-gap:10mm;font-size:12.5pt;line-height:7mm;white-space:pre}
.rnp-pr-choice{height:7mm}
.rnp-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:5mm}
.rnp-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0.8mm 0 0.6mm;padding:0;border:0;border-top:2pt dashed #aaa}
.rnp-pr-answers-title{font-weight:700;font-size:12.5pt;line-height:5.5mm;height:5.5mm}
.rnp-pr-ansrow{display:grid;grid-template-columns:repeat(5,36mm);column-gap:1mm}
.rnp-pr-ans{height:4.5mm;line-height:4.5mm;font-size:10pt;white-space:nowrap;overflow:hidden}
.rnp-app-pdf-page .rnp-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="rounding_number_line_points3_4"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="rounding_number_line_points3_4"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="rounding_number_line_points3_4"]>#pr-problems{display:block}
#pr-sheet[data-unit="rounding_number_line_points3_4"] .rnp-pr-page{box-shadow:0 0 0 10mm #fff,0 0 4px 10mm rgba(0,0,0,.12);margin-bottom:calc(8mm + 10mm)}
@media print{
  #page-print #pr-sheet[data-unit="rounding_number_line_points3_4"]{width:auto!important;max-width:none!important;margin:0!important;padding:0!important;transform:none!important;box-shadow:none!important}
  #page-print #pr-sheet[data-unit="rounding_number_line_points3_4"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="rounding_number_line_points3_4"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="rounding_number_line_points3_4"] .rnp-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
/* 幅360px以下の単元の説明：例題の数の線は、最小の幅をはずして枠の幅に合わせる（右はしが画面の外へ出ないように。再検査_252） */
@media (max-width:360px){#page-lesson .rnp-example .rnp-ex-fig{min-width:0;width:100%}#page-lesson .lesson-example:has(.rnp-example){padding-left:8px;padding-right:8px}}
