/* ── fraction_comparison_tree3_5（分数の比かく木で勝ち進む数を求めよう、単元仕様書 v1.3）── */
/* 画面：問題文、カードを選ぶ見出し、木の図（節の箱と交わらない線）、分数カード（選べる）、回答案内（§5-3・§7）。 */
#question-text .fct-q{display:block}
.fct-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:4px}
.fct-group-head{margin:0;font-weight:800;font-size:15px}
.fct-treewrap{width:100%;max-width:640px;display:flex;flex-direction:column;align-items:stretch}
.fct-treewrap:not(.fct-wide8){max-width:380px}
.fct-tree{display:block;width:100%;height:auto}
.fct-tree .fct-node{font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.fct-half{margin-top:10px;padding-top:6px;border-top:2px dashed #cbd5e1}
.fct-cards{display:grid;gap:6px;margin-top:2px}
.fct-card{position:relative;min-width:44px;min-height:64px;padding:6px 2px 4px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:10px;font-size:1.25rem;font-weight:700;color:#111827;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.fct-card.fct-sel{border:5px double #b45309;background:#fff7ed}
.fct-card:disabled{cursor:default;opacity:1;color:#111827;border-color:#94a3b8;background:#f8fafc}
.fct-card.fct-sel:disabled{border:5px double #b45309;background:#fff7ed}
.fct-check{position:absolute;top:1px;right:4px;font-size:.85rem;font-weight:900;color:#b45309}
/* 分数：分子・分数の線・分母の3段 */
.fct-sf{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1.1;margin:0 .15em}
.fct-sf-n{padding:0 .15em}
.fct-sf-d{padding:0 .15em;border-top:2px solid currentColor;align-self:stretch;text-align:center}
.fct-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.fct-guide[hidden]{display:none}
.fct-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4}
.fct-msg:empty{min-height:0;margin:0}
.feedback.has-text.fct-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.fct-correct{margin:2px 0 4px;font-weight:800;color:#14532d}
.fct-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;line-height:1.9}
.fct-ex-q{font-weight:700;margin:6px 0 2px;line-height:1.9}.fct-ex-a{margin:2px 0 8px;line-height:1.9}
#page-quiz.active:has(.fct-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.fct-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.fct-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.fct-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.fct-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}

/* 印刷：A4縦・1ページ（§7）。題名と記入らん、共通の案内2行、2列×5段（1問91×44.5mm（共通の記入らんの高さのため45.5mmから1mmずつ詰めた。余りは5mm以上）：1行目6.2mm、間1.5mm、木の図66×31.5mmと答えの欄15mm）、破線と答えの1行。 */
.fct-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}
.fct-pr-headblock{display:block;flex:none}
.fct-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}
/* 題名は共通仕様 CP-08a の枠・うすい黄色・中央ぞろえ。記入らんと実線は共通の .pp-fields（CP-08b）。 */
.fct-pr-title{box-sizing:border-box;margin:0;height:8.5mm;font-size:14pt;font-weight:700;line-height:calc(8.5mm - 3pt);white-space:nowrap;text-align:center;border:1.5pt solid #666;background:#ffffcc;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.fct-pr-inst{flex:none;width:180mm;margin:0;font-size:12.5pt;line-height:6.2mm;word-break:normal;overflow-wrap:anywhere;line-break:strict}
.fct-pr-problems{flex:none;display:grid;grid-template-columns:91mm 91mm;column-gap:4mm;margin-top:1.5mm}
.fct-pr-col{display:grid;grid-template-rows:repeat(5,44.5mm)}
.fct-pr-cell{box-sizing:border-box;width:91mm;height:44.5mm;overflow:hidden}
.fct-pr-line{display:flex;align-items:center;height:6.2mm;font-size:12.5pt;line-height:6.2mm;white-space:nowrap}
.fct-pr-num{flex:none;width:8mm}
.fct-pr-row{display:flex;align-items:flex-start;margin-top:1.5mm;gap:3mm}
.fct-pr-figbox{flex:none;width:66mm;height:31.5mm;display:flex;align-items:flex-end}
.fct-pr-tree{display:block;width:66mm;height:auto}
.fct-pr-boxcol{flex:none;width:15mm}
.fct-pr-boxhead{height:6.2mm;line-height:6.2mm;font-size:12.5pt}
.fct-pr-box{margin-top:1mm;width:12mm;height:14mm;border:2px solid #333;box-sizing:border-box}
.fct-pr-answers{flex:none;margin-top:auto;padding-bottom:4.5mm}
.fct-pr-dashed{display:block;height:0;margin:0 0 1mm;padding:0;border:0;border-top:1.5pt dashed #aaa}
.fct-pr-ansline{display:flex;align-items:center;height:9mm;font-size:10pt;white-space:nowrap}
.fct-pr-anshead{flex:none;margin-right:3mm;font-size:12.5pt;font-weight:700}
.fct-pr-ans{flex:none;width:15.5mm;display:inline-flex;align-items:center}
.fct-pr-frac{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1;font-size:10pt;margin-left:1mm}
.fct-pr-fbar{display:block;align-self:stretch;height:0;border-top:1.2px solid #000;margin:.2mm 0}
.fct-app-pdf-page .fct-pr-page{box-shadow:none;margin:0}

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