/* ── rounding_range_words3_4（以上以下未満で数のはんいを表そう、単元仕様書 v1.3）── */
/* 画面：問題文、A群は数直線の図、4択（A群・C群は文、B群は4つの図。狭い幅は1列）、回答案内。回答後は正しい答え・考え方・図の説明の文（§5-3・§7）。 */
#question-text .rrw-q{display:block}
.rrw-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center}
.rrw-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 18px;box-sizing:border-box;width:min(100%,520px);margin:0 auto 6px;padding:4px 10px;border:2px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:#1e293b;font-size:15px;font-weight:700;line-height:1.4}
.rrw-legend-item{display:inline-flex;align-items:center;gap:5px;max-width:100%;min-width:0}
.rrw-legend-text{min-width:0;overflow-wrap:anywhere;text-align:left}
.rrw-legend-dot{display:block;flex:none;width:18px;height:18px}
.rrw-qfig{width:min(100%,420px);margin:0 auto 8px}
.rrw-figbox{width:100%}
.rrw-fig{display:block;width:100%;height:auto;max-height:90px}
.rrw-axis{stroke:#475569;stroke-width:2}
.rrw-head{fill:#475569}
.rrw-band{stroke:#1e293b;stroke-width:6}
.rrw-in{fill:#1e293b;stroke:#1e293b;stroke-width:2}
.rrw-out{fill:#fff;stroke:#1e293b;stroke-width:3}
.rrw-fig-num{fill:#1e293b;font-weight:700;font-variant-numeric:tabular-nums}
.rrw-fig-alt{margin:2px 0 0;font-size:14px;line-height:1.4;overflow-wrap:anywhere;text-align:left}
.rrw-choices{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:min(100%,520px);margin:2px auto}
.rrw-choices-B{grid-template-columns:repeat(2,minmax(0,1fr))}
.rrw-choice{position:relative;box-sizing:border-box;min-height:52px;padding:6px 8px 6px 26px;border:3px solid #64748b;border-radius:10px;background:#fff;color:#1e293b;font-size:1.02rem;font-weight:800;font-variant-numeric:tabular-nums;cursor:pointer;touch-action:manipulation;text-align:left;overflow-wrap:anywhere}
.rrw-choice-B{display:flex;flex-direction:column;align-items:stretch;gap:2px;padding-top:4px}
.rrw-figname{font-size:15px;font-weight:800}
.rrw-check{position:absolute;top:1px;left:6px;font-size:18px;font-weight:900;color:#1d4ed8}
.rrw-choice.rrw-on{background:#dbeafe;border-color:#1d4ed8;color:#1e3a8a}
.rrw-choice:focus-visible{outline:3px solid #f59e0b;outline-offset:1px}
.rrw-choice:disabled{cursor:default;opacity:1}
.rrw-choice.rrw-ok,.rrw-choice.rrw-ok:disabled{border:3px solid #15803d;background:#dcfce7;color:#14532d}
.rrw-choice.rrw-ng,.rrw-choice.rrw-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2;color:#7f1d1d}
.rrw-choice.rrw-right,.rrw-choice.rrw-right:disabled{border:3px solid #15803d;background:#f0fdf4;color:#14532d}
.rrw-ok .rrw-check,.rrw-right .rrw-check{color:#15803d}
.rrw-ng .rrw-check{color:#b91c1c}
.rrw-guide{margin:6px 0 0;font-size:16px;font-weight:700;text-align:center;line-height:1.4}
.rrw-guide[hidden]{display:none}
.rrw-msg{min-height:1.4em;margin:4px 0 2px;color:#b45309;font-weight:700;text-align:center;line-height:1.4}
.rrw-msg:empty{min-height:0;margin:0}
.feedback.has-text.rrw-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.rrw-correct{margin:2px 0 6px;font-weight:800;font-size:17px;overflow-wrap:anywhere}
.rrw-expl-text{margin:4px 0 6px;overflow-wrap:anywhere}
.rrw-score{margin:6px 0 2px;font-weight:800;color:#1e3a8a}
@media (max-width:600px){.rrw-choices-B{grid-template-columns:minmax(0,1fr)}}
@media (max-width:400px){.rrw-legend{padding:4px 4px;font-size:13px;gap:2px 10px}.rrw-legend-item{gap:4px}.rrw-legend-dot{width:14px;height:14px}}

.rrw-example .rrw-ex-q{font-weight:700;margin:6px 0 2px}
.rrw-example .rrw-ex-fig{max-width:320px}
.rrw-ex-choices{margin:2px 0;font-weight:700;overflow-wrap:anywhere}
.rrw-example .rrw-ex-a{margin:2px 0 8px;overflow-wrap:anywhere}
#page-quiz.active:has(.rrw-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.rrw-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.rrw-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.rrw-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.rrw-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}

/* 印刷：A4縦・1列・1ページ（§7）。題名の枠と記入欄、共通の案内、黒丸・白丸の凡例（v1.8）、1問190×22.5mm（1行目6mm・中身11.5mm・余り5mm）、破線、答え1行。 */
.rrw-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}
.rrw-pr-headblock{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:190mm;height:19.5mm}
.rrw-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}
.rrw-pr-page[lang="en"] .rrw-pr-title{font-size:14pt}
.rrw-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}
.rrw-pr-hgroup{display:inline-flex;align-items:flex-end;gap:3mm;flex:none}
.rrw-pr-hfield{display:inline-flex;align-items:flex-end;gap:1.5mm;flex:none}
.rrw-pr-hfield-line{display:inline-block;box-sizing:border-box;width:14mm;height:6mm;border-bottom:2px solid #555}
.rrw-hfield-name{flex:1;min-width:0}
.rrw-hfield-name .rrw-pr-hfield-line{flex:1;width:auto;min-width:30mm}
.rrw-pr-solid{box-sizing:content-box;display:block;height:0;padding:0;border:0;border-top:1.5pt solid #333;margin:1mm 0 0}
.rrw-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}
.rrw-pr-legend{flex:none;box-sizing:border-box;width:190mm;height:6mm;margin:0;padding:0 2mm;display:flex;align-items:center;gap:8mm;font-size:11pt;line-height:6mm;white-space:nowrap}
.rrw-pr-legend .rrw-legend-item{display:inline-flex;align-items:center;gap:1.5mm}
.rrw-pr-legend .rrw-legend-dot{display:block;flex:none;width:3.6mm;height:3.6mm}
.rrw-pr-legend .rrw-in{stroke-width:2}
.rrw-pr-legend .rrw-out{stroke-width:2.6}
.rrw-pr-problems{flex:none;width:190mm;margin:0.5mm 0 0}
.rrw-pr-cell{box-sizing:border-box;width:190mm;height:22.5mm;overflow:hidden;padding:0;background:linear-gradient(#bbb,#bbb) top left/100% 2px no-repeat;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.rrw-pr-line{height:6mm;line-height:6mm;font-size:12.5pt;white-space:pre}
.rrw-pr-num{font-weight:700}
.rrw-pr-arow{display:flex;align-items:flex-start;gap:6mm;height:11.5mm}
.rrw-pr-page .rrw-fig.rrw-pr-fig{display:block;flex:none;width:auto;height:11.5mm;max-height:none}
.rrw-pr-fig .rrw-axis{stroke-width:3.5}
.rrw-pr-fig .rrw-band{stroke-width:12}
.rrw-pr-fig .rrw-in{stroke-width:3.5}
.rrw-pr-fig .rrw-out{stroke-width:4}
.rrw-pr-fig .rrw-fig-num{font-weight:400}
.rrw-pr-pairs{display:grid;grid-template-columns:repeat(2,max-content);column-gap:6mm;font-size:12.5pt;line-height:5.75mm;white-space:pre}
.rrw-pr-pair{height:5.75mm}
.rrw-pr-brow{display:flex;gap:3mm;height:11.5mm}
.rrw-pr-bfig{display:flex;align-items:flex-start;gap:1.6mm;width:44mm;flex:none;font-size:12.5pt;line-height:6mm}
.rrw-pr-bname{width:2.4mm;flex:none}
.rrw-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:5mm}
.rrw-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}
.rrw-pr-ansrow{display:flex;gap:3.5mm;align-items:baseline;height:6mm;line-height:6mm;white-space:nowrap}
.rrw-pr-answers-title{font-weight:700;font-size:12.5pt;margin-right:-1.6mm}
.rrw-pr-ans{font-size:10pt}
.rrw-app-pdf-page .rrw-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="rounding_range_words3_4"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="rounding_range_words3_4"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="rounding_range_words3_4"]>#pr-problems{display:block}
#pr-sheet[data-unit="rounding_range_words3_4"] .rrw-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_range_words3_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_range_words3_4"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="rounding_range_words3_4"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="rounding_range_words3_4"] .rrw-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
