/* ── fraction_decimal_reexpression3_5（分数と小数を計算して表し直そう、単元仕様書 v1.3）── */
/* 画面：問題文（分数は分子・分数の線・分母の3段）、回答案内、答えの形（SURF-FDR-KIND。答えの欄の直前）、答えの欄と共通のテンキー（§5-3・§7）。 */
#question-text .fdr-q{display:block;line-height:2.4}
.fdr-frac{display:inline-block;text-align:center;vertical-align:middle;margin:0 .12em;line-height:1.05;font-size:.92em}
.fdr-frac .fdr-num{display:block;padding:0 .18em;border-bottom:.09em solid currentColor}
.fdr-frac .fdr-den{display:block;padding:0 .18em}
/* 記号はその前の数・分数とひとまとまりにし、記号の前で行を分けない（§5-3の値の書き方）。 */
.fdr-nb{white-space:nowrap}
.fdr-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:4px}
.fdr-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.fdr-guide[hidden]{display:none}
.fdr-row-input{display:flex;flex-direction:column;align-items:center;gap:4px;margin-top:2px}
.fdr-kind{font-size:1.05rem;font-weight:800;color:#1d4ed8}
.fdr-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.fdr-input{width:8em;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}
.fdr-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.fdr-input.fdr-ok,.fdr-input.fdr-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.fdr-input.fdr-ng,.fdr-input.fdr-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.fdr-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4;max-width:520px}
.fdr-msg:empty{min-height:0;margin:0}
.fdr-main .ufk-keypad{margin-top:4px}
.feedback.has-text.fdr-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.fdr-correct{margin:4px 0;font-weight:800;line-height:2.2}
.fdr-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;line-height:2.3}
.fdr-example .fdr-ex-q,.fdr-example .fdr-ex-a{margin:6px 0 8px;line-height:2.3}
#page-quiz.active:has(.fdr-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.fdr-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.fdr-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.fdr-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.fdr-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="fraction_decimal_reexpression3_5"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="fraction_decimal_reexpression3_5"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
#result-list .fdr-frac,.result-item .fdr-frac{font-size:.9em}

/* 印刷：A4縦・2列・1ページ（§7、v1.3）。題名の枠と記入らん（共通仕様 CP-08a・CP-08b）、共通の問い（12.5pt）、
   問題の2列×5段（1問91×44mm：番号と問題の行12.5pt・3段の分数が入る行の高さ10mmで2行まで、計算らん86×7mm、答えの行（見出し12.5ptと答えのわく30×12mm））、
   下に答えの行（10pt、3段の分数が入る行の高さ8mmで2行）。 */
.fdr-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}
.fdr-pr-headblock{display:block;flex:none}
/* 題名は共通仕様 CP-08a の枠・うすい黄色・中央ぞろえ。記入らんと実線は共通の .pp-fields（CP-08b）。 */
.fdr-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}
.fdr-pr-headblock .pp-fields.pp-fields-compact{height:7.5mm;margin-top:1mm}
.fdr-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}
.fdr-pr-inst{flex:none;margin:0 0 3mm;font-size:12.5pt;line-height:6mm;word-break:normal;overflow-wrap:anywhere;line-break:strict}
.fdr-pr-body{flex:none;display:grid;grid-template-columns:91mm 91mm;column-gap:4mm}
.fdr-pr-col{display:grid;grid-template-rows:repeat(5,44mm)}
.fdr-pr-cell{box-sizing:border-box;width:91mm;height:44mm;overflow:hidden;display:flex;flex-direction:column}
.fdr-pr-q{box-sizing:border-box;margin:0;padding-right:6mm;height:20mm;font-size:12.5pt;line-height:10mm;word-break:normal;overflow-wrap:anywhere;line-break:strict;overflow:hidden}
.fdr-pr-num{font-weight:700}
.fdr-pr-q .fdr-frac{font-size:1em;line-height:4.3mm;margin:0 .08em}
.fdr-pr-work{box-sizing:border-box;width:86mm;height:7mm;border:0.6mm solid #555;padding:0 1mm}
.fdr-pr-worklabel{font-size:10pt;line-height:5mm;color:#333}
.fdr-pr-ansrow{display:flex;align-items:center;gap:1mm;height:12mm}
/* 英語の長い見出し（Answer (whole number)）は、答えのわくの左で2行まで折り返す（行の高さ12mmの中）。 */
.fdr-pr-anslabel{font-size:12.5pt;line-height:5.5mm;max-width:52mm;word-break:normal;overflow-wrap:normal}
.fdr-pr-box{box-sizing:border-box;flex:none;width:30mm;height:12mm;border:0.6mm solid #333}
.fdr-pr-answers{flex:none;margin-top:3mm;border-top:2pt dashed #aaa;padding-top:1mm}
.fdr-pr-anshead{margin:0;font-size:10pt;font-weight:700;line-height:5mm}
.fdr-pr-ansline{margin:0;height:8mm;font-size:10pt;line-height:8mm;white-space:pre;overflow:hidden}
.fdr-pr-ansline .fdr-frac{font-size:1em;line-height:3.6mm}
/* 印刷の分数の線は完成PDFで0.3mm以上（ブラウザは線の太さを整数のpxに切り下げるため、0.6mm＝2.27pxを指定して2px＝0.53mmにする）。 */
.fdr-pr-page .fdr-frac .fdr-num{border-bottom:0.6mm solid #000}
.fdr-app-pdf-page .fdr-pr-page{box-shadow:none;margin:0}

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