/* ── fraction_number_line_refinement2_5（二等分する数直線のだんと分数を結びつけよう、単元仕様書 v1.2）── */
/* 画面：前置きの文と問い、A群・B群は1だん目から6だん目までの数直線の図、数を入れる欄（A群は分数の形の2つ、B群は2つ、C群は1つ）、共通のテンキー（§5-3・§7）。 */
#question-text .fnr-lead{display:block;font-size:.88em;font-weight:600;margin-bottom:4px}
#question-text .fnr-q{display:block}
.fnr-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:4px}
.fnr-figwrap{width:100%;max-width:460px}
.fnr-fig{display:block;width:100%;height:auto}
.fnr-fig .fnr-line{fill:none;stroke:#111827;stroke-width:1.4}
.fnr-fig .fnr-old{stroke:#64748b;stroke-width:.9}
.fnr-fig .fnr-new{stroke:#111827;stroke-width:2}
.fnr-fig .fnr-dot{fill:#111827}
.fnr-fig .fnr-mark{fill:#b91c1c;font-weight:700}
.fnr-fig .fnr-lbl{font-weight:700;fill:#111827;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.fnr-row-input{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:2px}
.fnr-frac-input{gap:8px}
.fnr-frac-labels{display:flex;flex-direction:column;justify-content:space-around;gap:14px;font-weight:700;font-size:14px;text-align:right}
.fnr-frac-boxes{display:flex;flex-direction:column;align-items:center;gap:3px}
.fnr-frac-bar{display:block;width:5em;height:0;border-top:3px solid #111827}
.fnr-lab{font-weight:800}
.fnr-group{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
/* 画面の分数：分子・横線・分母の3段（§2-3） */
.fnr-sf{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1.1;margin:0 .15em;font-size:.95em}
.fnr-sf-n{padding:0 .15em}
.fnr-sf-d{padding:0 .15em;border-top:2px solid currentColor;align-self:stretch;text-align:center}
.fnr-input{width:4.2em;min-height:44px;font-size:1.3rem;padding:2px 6px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:8px;text-align:center;font-family:inherit;box-sizing:border-box}
.fnr-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.fnr-input.fnr-ok,.fnr-input.fnr-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.fnr-input.fnr-ng,.fnr-input.fnr-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.fnr-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.fnr-guide[hidden]{display:none}
.fnr-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4}
.fnr-msg:empty{min-height:0;margin:0}
.fnr-main .ufk-keypad{margin-top:4px}
.feedback.has-text.fnr-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.fnr-correct{margin:2px 0 4px;font-weight:800;color:#14532d}
.fnr-expl-text{margin:4px 0 6px;overflow-wrap:anywhere}
.fnr-ex-q{font-weight:700;margin:6px 0 2px}.fnr-ex-a{margin:2px 0 8px}
#page-quiz.active:has(.fnr-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.fnr-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.fnr-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.fnr-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.fnr-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="fraction_number_line_refinement2_5"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="fraction_number_line_refinement2_5"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}

/* 印刷：A4縦・1ページ（§7）。題名と記入らん、説明3行、2列×5段（1問91×41.6mm：1行目11.8mm、すき間1mm、図23.6mm）、破線と答え2行。 */
.fnr-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}
.fnr-pr-headblock{display:block;flex:none}
/* 題名は共通仕様 CP-08a の枠・うすい黄色・中央ぞろえ。記入らんと実線は共通の .pp-fields（CP-08b。書く高さ6mm・下線は月日年組15mm・名前は行ののこり・線の間1mm以上）。 */
.fnr-pr-headblock .pp-fields.pp-fields-compact{height:7.5mm;margin-top:1mm}
.fnr-pr-headblock hr.pp-fields-solid{box-sizing:content-box;height:0;margin:1mm 0 1mm!important;padding:0;border:0!important;border-top:1.5pt solid #333!important}
.fnr-pr-title{box-sizing:border-box;margin:0;height:7.5mm;font-size:14pt;font-weight:700;line-height:calc(7.5mm - 3pt);white-space:nowrap;text-align:center;border:1.5pt solid #666;background:#ffffcc;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.fnr-pr-inst{flex:none;width:187mm;margin:0;font-size:12.5pt;line-height:5.4mm;word-break:normal;overflow-wrap:anywhere;line-break:strict}
.fnr-pr-problems{flex:none;display:grid;grid-template-columns:91mm 91mm;column-gap:4mm;margin-top:1mm}
.fnr-pr-col{display:grid;grid-template-rows:repeat(5,41.4mm)}
.fnr-pr-cell{box-sizing:border-box;width:91mm;height:41.4mm;overflow:hidden}
.fnr-pr-line{display:flex;align-items:center;flex-wrap:nowrap;gap:0;height:11.8mm;font-size:12.5pt;line-height:5mm;white-space:pre}
.fnr-pr-figbox{width:91mm;height:23.6mm;margin-top:1mm}
.fnr-pr-fig{display:block;width:91mm;height:23.6mm}
.fnr-pr-fig .fnr-line{stroke:#000;stroke-width:1.3}
.fnr-pr-fig .fnr-old{stroke:#444;stroke-width:.8}
.fnr-pr-fig .fnr-new{stroke:#000;stroke-width:1.8}
.fnr-pr-fig .fnr-mark{fill:#000}
.fnr-pr-fig .fnr-lbl{fill:#000}
.fnr-pr-box{flex:none;display:inline-block;margin:0 1mm;height:7.5mm;border:2px solid #333;box-sizing:border-box;vertical-align:middle}
.fnr-pr-box9{width:9mm}
.fnr-pr-box16{width:16mm}
.fnr-pr-fracbox{display:inline-flex;flex-direction:column;align-items:center;margin-left:2mm;gap:.3mm}
.fnr-pr-fracbox .fnr-pr-box{height:5.2mm;margin:0}
.fnr-pr-fracbox .fnr-pr-fbar{width:11mm}
.fnr-pr-frac{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1;font-size:12.5pt;margin:0 .6mm}
.fnr-pr-frac.fnr-pr-fsmall{font-size:10pt;margin-left:1.2mm}
.fnr-pr-fbar{display:block;align-self:stretch;height:0;border-top:1.2px solid #000;margin:.2mm 0}
.fnr-pr-answers{flex:none;margin-top:auto;padding-bottom:3.6mm}
.fnr-pr-dashed{display:block;height:0;margin:0 0 0.8mm;padding:0;border:0;border-top:1.5pt dashed #aaa}
.fnr-pr-anshead{font-size:12.5pt;font-weight:700;height:6mm;line-height:6mm}
.fnr-pr-ansrow{display:flex;align-items:center;height:7.6mm;font-size:10pt;white-space:nowrap}
.fnr-pr-ans{width:38mm;flex:none;display:inline-flex;align-items:center}
.fnr-app-pdf-page .fnr-pr-page{box-shadow:none;margin:0}

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