/* ── fraction_decimal_number_line3_4（数直線の点を分数と小数で表そう、単元仕様書 v1.4）── */
/* 画面：問題文、数直線の図と代替の文、分数と小数の組①〜④、回答案内（§5-3・§7）。 */
#question-text .fdnl-q{display:block;line-height:1.9}
.fdnl-nb{white-space:nowrap}
.fdnl-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.fdnl-figwrap{width:100%;max-width:440px}
.fdnl-line{display:block;width:100%;height:auto}
.fdnl-alt{margin:0;font-size:15px;color:#334155;text-align:center;max-width:560px;line-height:1.5}
.fdnl-choices{display:grid;gap:8px;width:100%;max-width:560px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:420px){.fdnl-choices{grid-template-columns:1fr}}
.fdnl-choice{position:relative;min-height:52px;padding:8px 26px 8px 10px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:10px;font-size:1.2rem;font-weight:700;color:#111827;cursor:pointer;text-align:left;font-family:inherit;line-height:1.4}
.fdnl-choice.fdnl-sel{border:5px double #b45309;background:#fff7ed}
.fdnl-choice:disabled{cursor:default;opacity:1;color:#111827;border-color:#94a3b8;background:#f8fafc}
.fdnl-choice.fdnl-sel:disabled{border:5px double #b45309;background:#fff7ed}
.fdnl-choice.fdnl-right:disabled{border:3px solid #15803d;background:#dcfce7}
.fdnl-choice.fdnl-wrong:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.fdnl-check{position:absolute;top:2px;right:6px;font-size:.9rem;font-weight:900;color:#b45309}
.fdnl-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center;max-width:560px;line-height:1.45}
.fdnl-guide[hidden]{display:none}
.fdnl-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.45;max-width:560px}
.fdnl-msg:empty{min-height:0;margin:0}
.feedback.has-text.fdnl-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.fdnl-correct{margin:4px 0;font-weight:800}
.fdnl-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;line-height:1.8}
.fdnl-ex{margin:6px 0 8px;line-height:1.7}
#page-quiz.active:has(.fdnl-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.fdnl-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.fdnl-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.fdnl-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.fdnl-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}

/* 印刷：A4縦・2列×5段・1ページ（§7、v1.4）。題名の枠と記入らん（共通仕様 CP-08a・CP-08b）18mm、共通の案内（12.5pt・3行）、
   問題の2列×5段（1問91×43mm：番号と答えを書くところ6mm、数直線76×15mm（C群は内部の点の数の行の分だけ高く17.5mm）、選択肢2こずつ2行）、下に答えの行。 */
.fdnl-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:'BIZ UDPGothic','Atkinson Hyperlegible','Yu Gothic','Meiryo',sans-serif}
.fdnl-pr-headblock{display:block;flex:none}
.fdnl-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;overflow:hidden}
.fdnl-pr-headblock .pp-fields.pp-fields-compact{height:7.5mm;margin-top:1mm}
.fdnl-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}
.fdnl-pr-inst{flex:none;margin:0 0 5mm;width:186mm;font-size:12.5pt;line-height:5.3mm;word-break:normal;overflow-wrap:anywhere;line-break:strict}
.fdnl-pr-body{flex:none;display:grid;grid-template-columns:91mm 91mm;column-gap:4mm;margin-top:2mm}
.fdnl-pr-col{display:grid;grid-template-rows:repeat(5,43mm)}
.fdnl-pr-cell{box-sizing:border-box;width:91mm;height:43mm;overflow:hidden;display:flex;flex-direction:column}
.fdnl-pr-head{margin:0;height:6mm;display:flex;align-items:center;justify-content:space-between;padding-right:5mm;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.fdnl-pr-num{font-weight:700}
.fdnl-pr-ab{display:inline-flex;align-items:center}
.fdnl-pr-blank{display:inline-block;width:9mm;height:6mm}
.fdnl-pr-fig{margin-top:1mm;height:15mm}
.fdnl-pr-cell-C .fdnl-pr-fig{height:17.5mm}
.fdnl-pr-page .fdnl-line.fdnl-pr-line{display:block;width:91mm;height:auto}
/* 選択肢は左3mm・1こ41mm・間4mm（§7）。英語の「and」をふくむ式も41mmに収まるよう、数字の幅のせまい字体を先に使う。 */
.fdnl-pr-opts{margin-top:1mm;padding-left:3mm;display:grid;grid-template-columns:41mm 41mm;column-gap:4mm;row-gap:0;font-size:12.5pt;line-height:6.25mm;font-family:Arial,'Helvetica Neue','Liberation Sans','BIZ UDPGothic',sans-serif}
.fdnl-pr-opt{white-space:nowrap;overflow:hidden}
.fdnl-pr-answers{flex:none;display:flex;align-items:center;flex-wrap:nowrap;gap:4mm;margin-top:2mm;margin-bottom:5mm;font-size:10pt;line-height:6mm;white-space:nowrap;border-top:2pt dashed #aaa;padding-top:1mm}
.fdnl-pr-anshead{font-size:12.5pt;font-weight:700}
.fdnl-app-pdf-page .fdnl-pr-page{box-shadow:none;margin:0}

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