/* ── equivalent_fraction_scaling3_4（同じ大きさの分数を何倍かして作ろう、単元仕様書 v1.3）── */
/* 画面：問題文、分数の式（上下に重ねた分数、等号、上下のやじるし、空らんの入力欄）又は①〜④の式、回答案内、共通のテンキー（§5-3・§7）。 */
#question-text .efs-q{display:block}
.efs-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:4px}
.efs-frac{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1.15;font-weight:800}
.efs-frac .efs-fn{padding:0 .2em 2px;border-bottom:2.5px solid currentColor;min-width:1.4em;text-align:center}
.efs-frac .efs-fd{padding:2px .2em 0;min-width:1.4em;text-align:center}
.efs-eqsign{display:inline-block;margin:0 .45em;font-weight:800;vertical-align:middle}
.efs-eq{position:relative;display:inline-grid;grid-template-rows:auto auto auto;justify-items:center;font-size:2rem;color:#1e293b}
.efs-eqrow{display:flex;align-items:center}
.efs-arrow{display:block;width:5.4em;height:.8em;overflow:visible}
.efs-arrow .efs-arc{fill:none;stroke:#334155;stroke-width:2.6;vector-effect:non-scaling-stroke;stroke-linecap:round}
.efs-input{width:2.6em;min-height:44px;font-size:1.6rem;padding:0 4px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:8px;text-align:center;font-family:inherit;font-weight:800;box-sizing:border-box;margin:2px 0}
.efs-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.efs-input.efs-ok,.efs-input.efs-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.efs-input.efs-ng,.efs-input.efs-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.efs-figwrap{display:flex;justify-content:center;padding:4px 0}
.efs-choices{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:min(100%,460px);margin:2px auto}
.efs-choice{position:relative;display:flex;align-items:center;gap:10px;box-sizing:border-box;min-height:64px;padding:6px 10px 6px 30px;border:3px solid #64748b;border-radius:10px;background:#fff;color:#1e293b;font-size:1.15rem;font-weight:800;text-align:left;cursor:pointer}
.efs-check{position:absolute;top:50%;left:8px;transform:translateY(-50%);font-size:18px;font-weight:900;color:#1d4ed8}
.efs-mark{font-size:1.25rem;font-weight:900;flex:none}
.efs-chain{display:inline-flex;align-items:center;flex-wrap:nowrap}
.efs-choice.efs-on{background:#dbeafe;border-color:#1d4ed8;color:#1e3a8a}
.efs-choice:focus-visible{outline:3px solid #f59e0b;outline-offset:1px}
.efs-choice:disabled{cursor:default;opacity:1}
.efs-choice.efs-ok,.efs-choice.efs-ok:disabled{border:3px solid #15803d;background:#dcfce7;color:#14532d}
.efs-choice.efs-ng,.efs-choice.efs-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2;color:#7f1d1d}
.efs-choice.efs-right,.efs-choice.efs-right:disabled{border:3px solid #15803d;background:#f0fdf4;color:#14532d}
.efs-ok .efs-check,.efs-right .efs-check{color:#15803d}
.efs-ng .efs-check{color:#b91c1c}
.efs-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.efs-guide[hidden]{display:none}
.efs-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4}
.efs-msg:empty{min-height:0;margin:0}
.efs-main .ufk-keypad{margin-top:4px}
.feedback.has-text.efs-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.efs-correct{margin:2px 0 6px;font-weight:800;font-size:17px;line-height:1.9}
.efs-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;word-break:normal;line-break:strict;line-height:2}
.efs-frac-inline{font-size:.95em;margin:0 .1em}
.efs-frac-inline .efs-fn{border-bottom-width:1.5px}
.efs-score{margin:6px 0 2px;font-weight:800;color:#1e3a8a}
.efs-example .efs-ex-q{font-weight:700;margin:6px 0 2px;overflow-wrap:anywhere}
.efs-example .efs-ex-fig{display:flex;justify-content:center;margin:4px 0}
.efs-example .efs-ex-fig .efs-eq{font-size:1.5rem}
.efs-example .efs-ex-a,.efs-example .efs-ex-c{margin:2px 0 6px;overflow-wrap:anywhere}
.efs-pbox{display:inline-block;box-sizing:border-box;width:1.6em;height:1.25em;border:2px solid currentColor;vertical-align:middle}
@media (max-width:360px){.efs-choice{font-size:1.02rem;padding-left:26px;gap:6px}.efs-eq{font-size:1.7rem}}
#page-quiz.active:has(.efs-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.efs-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.efs-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.efs-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.efs-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="equivalent_fraction_scaling3_4"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="equivalent_fraction_scaling3_4"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}

/* 印刷：A4横・5列2段・1ページ（§7）。題名の枠と記入欄、共通の問い、各問（番号、A群・B群は分数の式とやじるしと□、C群は①〜④の式とこたえ：□）、破線、答え（5列2段）。 */
.efs-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:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.efs-pr-headrow{display:flex;flex-direction:column;gap:0;flex:none}
.efs-pr-headrow .pp-fields{height:7mm;margin:1mm 0 0}
.efs-pr-headrow .pp-field-line{height:6mm}
.efs-pr-headrow hr.pp-fields-solid{margin:1mm 0 0!important;border:0;border-top:1.5pt solid #333}
.efs-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}
.efs-pr-inst{flex:none;box-sizing:border-box;width:272mm;margin:1.5mm 0 0;font-size:12.5pt;line-height:5.5mm;line-break:strict}
.efs-pr-problems{flex:none;display:flex;flex-direction:column;gap:3mm;margin-top:2mm}
.efs-pr-row{display:grid;grid-template-columns:repeat(5,52mm);column-gap:3mm}
.efs-pr-cell{box-sizing:border-box;width:52mm;height:60mm;overflow:hidden;display:flex;flex-direction:column;border-top:2px solid transparent}
.efs-pr-head{display:flex;justify-content:space-between;align-items:center;height:7mm;font-size:12.5pt;white-space:nowrap;box-sizing:border-box;padding-right:3.5mm}
.efs-pr-num{font-weight:700}
.efs-pr-cbox{display:inline-flex;align-items:center}
.efs-pbox-c{width:8mm;height:6.5mm;border-width:2px;margin-left:1mm}
.efs-pr-fig{flex:1;display:flex;align-items:center;justify-content:center;padding-bottom:6mm}
.efs-pr-eq{font-size:16pt}
.efs-pr-eq .efs-frac .efs-fn{border-bottom-width:2px}
.efs-pr-eq .efs-pbox{width:10mm;height:8mm;margin:0.5mm 0}
.efs-pr-eq .efs-arrow{width:30mm;height:4.5mm}
.efs-pr-eq .efs-arrow .efs-arc{stroke:#000;stroke-width:2}
.efs-pr-choices{display:flex;flex-direction:column;gap:1mm;margin-top:0.5mm}
.efs-pr-choice{display:flex;align-items:center;gap:1.5mm;font-size:12.5pt;height:10.5mm}
.efs-pr-choice .efs-frac{line-height:1.05}
.efs-pr-choice .efs-frac .efs-fn{border-bottom-width:2px;padding-bottom:0.5px}
.efs-pr-choice .efs-eqsign{margin:0 1mm}
.efs-pr-answers{flex:none;box-sizing:border-box;width:277mm;margin-top:auto;padding-bottom:5mm}
.efs-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 0.8mm;padding:0;border:0;border-top:2pt dashed #aaa}
.efs-pr-anshead{font-weight:700;font-size:12.5pt;line-height:6mm}
.efs-pr-ansrow{display:grid;grid-template-columns:repeat(5,52mm);column-gap:3mm}
.efs-pr-ans{font-size:10pt;line-height:5mm}
.efs-app-pdf-page .efs-pr-page{box-shadow:none;margin:0}

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