/* ── fraction_condition_all_choice2_4（じょうけんに合う分数をすべて選ぼう、単元仕様書 v1.3）── */
/* 画面：問題文、分数カード6枚（押すたびに選ぶ・選ばないが切りかわる）、案内（§5-3・§7）。 */
#question-text .fca-q{display:block;overflow-wrap:anywhere}
.fca-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.fca-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(100%,420px)}
.fca-card{position:relative;box-sizing:border-box;min-height:64px;padding:8px 6px 8px 26px;border:3px solid #64748b;border-radius:12px;background:#fff;color:#1e293b;font-size:1.5rem;font-weight:800;cursor:pointer;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.fca-mark{position:absolute;top:6px;left:8px;font-size:18px;font-weight:900;color:#1d4ed8}
.fca-card.fca-on{background:#dbeafe;border-color:#1d4ed8;border-style:double;border-width:5px;color:#1e3a8a}
.fca-card:focus-visible{outline:3px solid #f59e0b;outline-offset:1px}
.fca-card:disabled{cursor:default;opacity:1}
.fca-card.fca-ok,.fca-card.fca-ok:disabled{border:4px solid #15803d;background:#dcfce7;color:#14532d}
.fca-card.fca-ng,.fca-card.fca-ng:disabled{border:4px dashed #b91c1c;background:#fff1f2;color:#7f1d1d}
.fca-card.fca-right,.fca-card.fca-right:disabled{border:4px dashed #15803d;background:#fff;color:#14532d}
.fca-ok .fca-mark,.fca-right .fca-mark{color:#15803d}
.fca-ng .fca-mark{color:#b91c1c}
.fca-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.fca-guide[hidden]{display:none}
.fca-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4;max-width:560px}
.fca-msg:empty{min-height:0;margin:0}
.feedback.has-text.fca-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.fca-answer{margin:2px 0 6px;font-weight:800;font-size:17px;overflow-wrap:anywhere}
.fca-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.fca-score{margin:6px 0 2px;font-weight:800;color:#1e3a8a}
.fca-example .fca-ex{margin:6px 0;font-weight:700}
#page-quiz.active:has(.fca-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.fca-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.fca-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.fca-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.fca-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz.active:has(.fca-main) #tts-btn{min-width:44px;min-height:44px}

/* 印刷：A4縦・2列・1ページ（§7）。題名の枠と記入欄、記入のしかた、2列×5段（番号と問題文、カード6枚と□）、破線、答え（2列）。 */
.fca-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}
.fca-pr-headrow{display:flex;flex-direction:column;gap:0;flex:none}
.fca-pr-headrow .pp-fields{height:7mm;margin:1mm 0 0}
.fca-pr-headrow .pp-field-line{height:6mm}
.fca-pr-headrow hr.pp-fields-solid{margin:1mm 0 0!important;border:0;border-top:1.5pt solid #333}
.fca-pr-title{box-sizing:border-box;margin:0;height:8mm;width:100%;padding:0 2mm;font-size:14pt;font-weight:700;line-height:7.4mm;white-space:nowrap;text-align:center;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact;flex:none}
.fca-pr-inst{flex:none;box-sizing:border-box;margin:1.2mm 0 1.2mm;font-size:12.5pt;line-height:5.6mm}
.fca-pr-problems{flex:none;display:grid;grid-template-columns:93mm 93mm;column-gap:4mm}
.fca-pr-col{display:flex;flex-direction:column}
.fca-pr-cell{box-sizing:border-box;height:41mm;border-top:2px solid transparent;padding:1mm 3mm 0 0;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}
.fca-pr-col .fca-pr-cell:last-child{border-bottom:2px solid transparent}
.fca-pr-head{font-size:12.5pt;line-height:5.2mm;overflow-wrap:anywhere}
.fca-pr-num{font-weight:700;margin-right:1.5mm}
.fca-pr-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0.6mm;margin-bottom:5mm}
.fca-pr-card{display:flex;flex-direction:column;align-items:center;gap:1mm}
.fca-pr-frac{font-size:12.5pt;font-weight:700;line-height:5.4mm;border:1.5px solid #000;border-radius:1.5mm;padding:0 0.5mm;min-width:11mm;letter-spacing:-0.2px;text-align:center;white-space:nowrap;box-sizing:border-box}
.fca-pbox{display:block;box-sizing:border-box;width:6mm;height:6mm;border:2px solid #000}
.fca-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:5mm}
.fca-pr-dashed{box-sizing:content-box;display:block;height:0;margin:1.5mm 0 0.8mm;padding:0;border:0;border-top:2pt dashed #aaa}
.fca-pr-ansgrid{display:grid;grid-template-columns:93mm 93mm;column-gap:4mm}
.fca-pr-anscol{display:flex;flex-direction:column}
.fca-pr-ans{font-size:10pt;line-height:4.8mm;white-space:nowrap}
.fca-app-pdf-page .fca-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="fraction_condition_all_choice2_4"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="fraction_condition_all_choice2_4"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="fraction_condition_all_choice2_4"]>#pr-problems{display:block}
#pr-sheet[data-unit="fraction_condition_all_choice2_4"] .fca-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_condition_all_choice2_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_condition_all_choice2_4"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="fraction_condition_all_choice2_4"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="fraction_condition_all_choice2_4"] .fca-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
@media (max-width:400px){.fca-cards{gap:8px}.fca-card{padding:16px 2px 6px;font-size:1.25rem;min-height:60px}.fca-mark{top:2px;left:6px;font-size:15px}}
