/* ── fraction_of_quantity2_3（全体の分数分の大きさを調べよう、単元仕様書 v1.4）── */
/* 画面：問題文、等分テープ図、図の下の説明、答えの欄（1つ）と単位、案内と共通のテンキー。回答後は正誤・正しい答え・解説（§5-3・§7）。 */
#question-text .foq-q{display:block;overflow-wrap:anywhere}
.foq-nb{white-space:nowrap}
.foq-frac{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;margin:0 .12em;line-height:1.05;font-variant-numeric:tabular-nums}
.foq-frac .foq-num{display:block;padding:0 .2em;border-bottom:.09em solid currentColor;text-align:center;min-width:1em}
.foq-frac .foq-den{display:block;padding:0 .2em;text-align:center;min-width:1em}
.foq-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.foq-figure{width:100%;max-width:460px}
.foq-tape{display:block;width:100%;height:auto}
.foq-svg-text{font-weight:800;fill:#111;font-family:inherit}
.foq-alt{margin:0;font-size:14px;line-height:1.9;color:#334155;text-align:center;max-width:520px;overflow-wrap:anywhere}
.foq-field{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:1.15rem}
.foq-input{width:6em;min-height:48px;font-size:1.4rem;padding:0 6px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:8px;text-align:center;font-family:inherit;font-weight:800;box-sizing:border-box}
.foq-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.foq-input.foq-ok,.foq-input.foq-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.foq-input.foq-ng,.foq-input.foq-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.foq-unit{font-size:18px;font-weight:800}
.foq-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.foq-guide[hidden]{display:none}
.foq-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.5;max-width:560px}
.foq-msg:empty{min-height:0;margin:0}
.foq-main .ufk-keypad{margin-top:4px}
.feedback.has-text.foq-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.foq-correct{margin:2px 0 6px;font-weight:800;font-size:17px;overflow-wrap:anywhere}
.foq-expl-text{margin:4px 0 6px;line-height:2.1;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.foq-example .foq-ex-q{margin:6px 0 2px;font-weight:700;line-height:2}
.foq-example .foq-ex-a{margin:0 0 10px;line-height:2.1}
#page-quiz.active:has(.foq-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict;font-size:17px;line-height:2}
#page-quiz.active:has(.foq-main) #tts-btn{display:none!important}
#page-quiz.active:has(.foq-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.foq-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.foq-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.foq-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="fraction_of_quantity2_3"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="fraction_of_quantity2_3"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}

/* 印刷（A4縦・2列・1ページ。§7） */
.foq-pr-page{width:190mm;box-sizing:border-box;color:#000;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif;display:flex;flex-direction:column}
.foq-pr-headrow{display:flex;flex-direction:column;gap:0}
.foq-pr-title{box-sizing:border-box;font-size:14pt;margin:0;height:7mm;line-height:6mm;text-align:center;font-weight:700;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.foq-pr-headrow .pp-fields{height:6mm;margin:0.5mm 0 0}
.foq-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:0.8mm 0 1.5mm!important;border:0;border-top:1.2pt solid #333}
.foq-pr-problems{display:flex;gap:6mm;justify-content:center}
.foq-pr-col{width:92mm;display:flex;flex-direction:column;gap:0}
.foq-pr-cell{box-sizing:border-box;width:92mm;height:40mm;border:0.3mm solid transparent;border-radius:1.5mm;padding:0.8mm 1.6mm;overflow:hidden;break-inside:avoid;display:flex;flex-direction:column}
.foq-pr-q{flex:none;font-size:12.5pt;line-height:6.2mm;max-height:24.5mm;padding-bottom:0.8mm;overflow:hidden}
.foq-pr-col .foq-pr-cell:last-child{height:42mm}
.foq-pr-q .foq-frac{line-height:3.9mm}
.foq-pr-row{flex:none;display:flex;align-items:flex-end;gap:2mm;margin-top:auto;margin-bottom:0.8mm;height:15mm}
.foq-pr-fig{width:46mm;flex:none}
.foq-pr-fig .foq-tape{width:46mm;height:auto}
.foq-pr-ans{display:flex;align-items:flex-end;gap:1.5mm;font-size:12.5pt;white-space:nowrap}
.foq-pr-boxcol{display:flex;flex-direction:column;align-items:flex-start;gap:0.3mm}
.foq-pr-anslab{font-size:9pt;font-weight:700;line-height:3.6mm}
.foq-pr-box{display:inline-block;width:20mm;height:10mm;border:2px solid #000;box-sizing:border-box}
.foq-pr-unit{font-size:12.5pt}
.foq-pr-answers{margin-top:2mm;border-top:0.3mm dashed #666;padding-top:1mm}
.foq-pr-anshead{font-size:12.5pt;font-weight:700;line-height:5.3mm}
.foq-pr-acols{display:flex;gap:6mm}
.foq-pr-acol{width:92mm}
.foq-pr-answer{margin:0;font-size:10pt;line-height:4.4mm;min-height:8.8mm}
.foq-pr-answer .foq-frac{line-height:3.3mm}
#pr-sheet[data-unit="fraction_of_quantity2_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="fraction_of_quantity2_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="fraction_of_quantity2_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="fraction_of_quantity2_3"] .foq-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_of_quantity2_3"]{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_of_quantity2_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="fraction_of_quantity2_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="fraction_of_quantity2_3"] .foq-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.foq-app-pdf-page .foq-pr-page{box-shadow:none;margin:0}
