/* ── fraction_decimal_compare3_4（分数と小数を同じ形にしてくらべよう、単元仕様書 v1.3）── */
/* 画面：問題文、A群は2数と□、選択肢（A群は＜・＝・＞、B群・C群は①〜④）、回答案内（§5-3・§7）。分数は分子・分数の線・分母の3段。 */
#question-text .fdc-q{display:block;line-height:2.4}
.fdc-frac{display:inline-block;text-align:center;vertical-align:middle;margin:0 .1em;line-height:1.05;font-size:.92em}
.fdc-frac .fdc-num{display:block;padding:0 .18em;border-bottom:.09em solid currentColor}
.fdc-frac .fdc-den{display:block;padding:0 .18em}
.fdc-nb{white-space:nowrap}
.fdc-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.fdc-fig{margin:2px 0;font-size:1.9rem;font-weight:800;line-height:1.2;text-align:center}
.fdc-box{display:inline-block;vertical-align:middle;min-width:1.4em;height:1.4em;line-height:1.4em;margin:0 .35em;border:3px solid #111827;border-radius:4px;text-align:center;background:#fff;color:#1d4ed8}
.fdc-choices{display:grid;gap:8px;width:100%;max-width:560px}
.fdc-choices-A{grid-template-columns:repeat(3,minmax(0,1fr));max-width:360px}
.fdc-choices-B,.fdc-choices-C{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:420px){.fdc-choices-B,.fdc-choices-C{grid-template-columns:1fr}}
.fdc-choice{position:relative;min-height:48px;padding:8px 26px 8px 10px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:10px;font-size:1.15rem;font-weight:700;color:#111827;cursor:pointer;text-align:left;font-family:inherit;line-height:1.5}
.fdc-choice-sign{text-align:center;font-size:1.7rem;padding:6px 10px}
.fdc-choice.fdc-sel{border:5px double #b45309;background:#fff7ed}
.fdc-choice:disabled{cursor:default;opacity:1;color:#111827;border-color:#94a3b8;background:#f8fafc}
.fdc-choice.fdc-sel:disabled{border:5px double #b45309;background:#fff7ed}
.fdc-choice.fdc-right:disabled{border:3px solid #15803d;background:#dcfce7}
.fdc-choice.fdc-wrong:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.fdc-check{position:absolute;top:2px;right:6px;font-size:.9rem;font-weight:900;color:#b45309}
.fdc-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.fdc-guide[hidden]{display:none}
.fdc-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4}
.fdc-msg:empty{min-height:0;margin:0}
.feedback.has-text.fdc-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.fdc-correct{margin:4px 0;font-weight:800;line-height:2.2}
.fdc-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;line-height:2.3}
.fdc-ex-q,.fdc-ex-fig,.fdc-ex-a,.fdc-ex-c{margin:6px 0 8px;line-height:2.3}
.fdc-ex-fig{font-size:1.3em;font-weight:700}
#result-list .fdc-frac,.result-item .fdc-frac{font-size:.9em}
#page-quiz.active:has(.fdc-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.fdc-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.fdc-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.fdc-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.fdc-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}

/* 印刷：A4横・2列・1ページ（§7、v1.3）。題名の枠と記入らん（共通仕様 CP-08a・CP-08b）18mm、共通の問い（12.5pt・2行）、
   問題の2列×5段（1問134×26.5mm：左に番号の欄［A群・B群26mm、C群40mm。問題番号と選んだ番号を書く□8×7mm、C群は下に2数］、右に内容の欄［A群・B群108mm、C群94mm。A群は2数と□、B群・C群は①〜④を2つずつ2行］）、下に答えの行。 */
.fdc-pr-page{width:277mm;height:190mm;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}
.fdc-pr-headblock{display:block;flex:none}
/* 題名は共通仕様 CP-08a の枠・うすい黄色・中央ぞろえ。記入らんと実線は共通の .pp-fields（CP-08b）。 */
.fdc-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}
.fdc-pr-headblock .pp-fields.pp-fields-compact{height:7.5mm;margin-top:1mm}
.fdc-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}
.fdc-pr-inst{flex:none;margin:0 0 3mm;width:272mm;font-size:12.5pt;line-height:6mm;word-break:normal;overflow-wrap:anywhere;line-break:strict}
.fdc-pr-body{flex:1 1 auto;min-height:132.5mm;display:grid;grid-template-columns:134mm 134mm;column-gap:4mm}
.fdc-pr-col{display:grid;grid-template-rows:repeat(5,minmax(26.5mm,1fr))}
.fdc-pr-cell{box-sizing:border-box;width:134mm;overflow:hidden;display:grid;grid-template-columns:26mm 108mm;align-items:center}
.fdc-pr-cell.fdc-pr-cell-C{grid-template-columns:40mm 94mm}
.fdc-pr-left{display:flex;flex-direction:column;gap:1mm}
.fdc-pr-head{margin:0;display:flex;align-items:center;gap:2mm;font-size:12.5pt;line-height:7mm}
.fdc-pr-num{font-weight:700}
.fdc-pr-cbox{box-sizing:border-box;display:inline-block;width:8mm;height:7mm;border:0.6mm solid #333}
.fdc-pr-pair{margin:0;font-size:12.5pt;line-height:9mm;white-space:nowrap}
.fdc-pr-fig{margin:0;font-size:12.5pt;line-height:10mm}
.fdc-pr-sbox{display:inline-block;vertical-align:middle;box-sizing:border-box;width:9mm;height:8mm;margin:0 2mm;border:0.6mm solid #333}
.fdc-pr-opts{display:grid;grid-template-columns:54mm 54mm;row-gap:0.5mm;font-size:12.5pt}
.fdc-pr-cell-C .fdc-pr-opts{grid-template-columns:47mm 47mm}
.fdc-pr-opt{line-height:9.5mm;white-space:nowrap;overflow:hidden}
.fdc-pr-page .fdc-frac{font-size:1em;line-height:4.2mm}
/* 印刷の分数の線は完成PDFで0.3mm以上（ブラウザは線の太さを整数のpxに切り下げるため、0.6mm＝2.27pxを指定して2px＝0.53mmにする）。 */
.fdc-pr-page .fdc-frac .fdc-num{border-bottom:0.6mm solid #000}
.fdc-pr-answers{flex:none;display:flex;align-items:center;flex-wrap:nowrap;gap:5mm;margin-top:3mm;margin-bottom:5mm;font-size:10pt;line-height:6mm;white-space:nowrap;border-top:2pt dashed #aaa;padding-top:1mm}
.fdc-pr-anshead{font-size:12.5pt;font-weight:700}
.fdc-app-pdf-page .fdc-pr-page{box-shadow:none;margin:0}

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