/* ── fraction_midpoint_distance2_5（分数の差と中点を数直線で求めよう、単元仕様書 v1.2）── */
/* 画面：問題文、模式の数直線の図、答えのらんと見出し、入力の案内、共通のテンキー（§5-3・§7）。 */
#question-text .fmd-q{display:block;line-height:1.9}
.fmd-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:4px}
.fmd-figwrap{width:100%;max-width:420px}
.fmd-fig{display:block;width:100%;height:auto}
.fmd-fig .fmd-line{fill:none;stroke:#111827;stroke-width:2.2}
.fmd-fig .fmd-tick{stroke:#64748b;stroke-width:1.4}
.fmd-fig .fmd-eq{stroke:#1d4ed8;stroke-width:2.2}
.fmd-fig .fmd-midmark{stroke:#111827;stroke-width:3}
.fmd-fig .fmd-pt{fill:#111827}
.fmd-fig .fmd-bar{stroke:#111827;stroke-width:2.2}
.fmd-fig .fmd-brk{fill:none;stroke:#b91c1c;stroke-width:2.2}
.fmd-fig .fmd-val,.fmd-fig .fmd-q{font-weight:700;fill:#111827;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.fmd-fig .fmd-q{fill:#b91c1c}
.fmd-fig .fmd-sym{font-weight:700;fill:#334155;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.fmd-row-input{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:2px}
.fmd-lab{font-weight:800}
.fmd-input{width:7em;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}
.fmd-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.fmd-input.fmd-ok,.fmd-input.fmd-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.fmd-input.fmd-ng,.fmd-input.fmd-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
/* 画面の分数：分子・分数の線・分母の3段 */
.fmd-sf{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1.1;margin:0 .15em;font-size:.95em}
.fmd-sf-n{padding:0 .15em}
.fmd-sf-d{padding:0 .15em;border-top:2px solid currentColor;align-self:stretch;text-align:center}
.fmd-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.fmd-guide[hidden]{display:none}
.fmd-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4}
.fmd-msg:empty{min-height:0;margin:0}
.fmd-main .ufk-keypad{margin-top:4px}
.feedback.has-text.fmd-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.fmd-correct{margin:2px 0 4px;font-weight:800;color:#14532d}
.fmd-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;line-height:1.9}
.fmd-ex-q{font-weight:700;margin:6px 0 2px;line-height:1.9}.fmd-ex-a{margin:2px 0 8px;line-height:1.9}
#page-quiz.active:has(.fmd-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.fmd-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.fmd-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.fmd-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.fmd-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="fraction_midpoint_distance2_5"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="fraction_midpoint_distance2_5"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}

/* 印刷：A4縦・1ページ（§7）。題名と記入らん、共通の案内2行、2列×5段（1問91×43mm：1行目6.2mm、間1.5mm、図56×26.5mmと答えの欄27mm）、破線と答えの1行。 */
.fmd-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}
.fmd-pr-headblock{display:block;flex:none}
/* 題名は共通仕様 CP-08a の枠・うすい黄色・中央ぞろえ。記入らんと実線は共通の .pp-fields（CP-08b。書く高さ6mm・下線は月日年組15mm・名前は行ののこり・線の間1mm以上）。 */
.fmd-pr-headblock .pp-fields.pp-fields-compact{height:7.5mm;margin-top:1mm}
.fmd-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}
.fmd-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}
.fmd-pr-inst{flex:none;width:180mm;margin:1mm 0 0;font-size:12.5pt;line-height:6.2mm;word-break:normal;overflow-wrap:anywhere;line-break:strict}
.fmd-pr-problems{flex:none;display:grid;grid-template-columns:91mm 91mm;column-gap:4mm;margin-top:4mm}
.fmd-pr-col{display:grid;grid-template-rows:repeat(5,42.3mm)}
.fmd-pr-cell{box-sizing:border-box;width:91mm;height:42.3mm;overflow:hidden}
.fmd-pr-line{display:flex;align-items:center;height:6.2mm;font-size:12.5pt;line-height:6.2mm;white-space:nowrap}
.fmd-pr-num{flex:none;width:8mm}
.fmd-pr-row{display:flex;align-items:flex-start;margin-top:1.5mm;gap:3mm}
.fmd-pr-figbox{flex:none;width:56mm;height:26.5mm}
.fmd-pr-fig{display:block;width:56mm;height:26.5mm}
.fmd-pr-fig .fmd-line,.fmd-pr-fig .fmd-bar,.fmd-pr-fig .fmd-brk,.fmd-pr-fig .fmd-eq{stroke:#000;stroke-width:2.2}
.fmd-pr-fig .fmd-tick{stroke:#333;stroke-width:2}
.fmd-pr-fig .fmd-midmark{stroke:#000;stroke-width:3}
.fmd-pr-fig .fmd-val,.fmd-pr-fig .fmd-q,.fmd-pr-fig .fmd-sym,.fmd-pr-fig .fmd-pt{fill:#000}
.fmd-pr-boxcol{flex:none;width:27mm}
.fmd-pr-boxhead{height:6.2mm;line-height:6.2mm;font-size:12.5pt}
.fmd-pr-box{margin-top:1mm;width:26mm;height:14mm;border:2px solid #333;box-sizing:border-box}
.fmd-pr-answers{flex:none;margin-top:auto;padding-bottom:5mm}
.fmd-pr-dashed{display:block;height:0;margin:0 0 1mm;padding:0;border:0;border-top:1.5pt dashed #aaa}
.fmd-pr-ansline{display:flex;align-items:center;height:9mm;font-size:10pt;white-space:nowrap}
.fmd-pr-anshead{flex:none;margin-right:3mm;font-size:12.5pt;font-weight:700}
.fmd-pr-ans{flex:none;width:15.5mm;display:inline-flex;align-items:center}
.fmd-pr-frac{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1;font-size:10pt;margin-left:1mm}
.fmd-pr-fbar{display:block;align-self:stretch;height:0;border-top:1.2px solid #000;margin:.2mm 0}
.fmd-app-pdf-page .fmd-pr-page{box-shadow:none;margin:0}

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