/* ── fraction_form_conversion2_3（真分数・かり分数・おび分数を行き来しよう、単元仕様書 v1.5）── */
/* 画面：A群は問題文と5まいのカード、B・C群は問題文・読み方・答えの欄・案内・共通のテンキー。回答後は正誤・正しい答え・解説・数直線（§5-3・§7）。 */
#question-text .ffc-q{display:block;overflow-wrap:normal}
.ffc-nb{white-space:nowrap}
.ffc-phrase-group{display:inline;min-width:0}
.ffc-frac{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;margin:0 .1em;line-height:1.08}
.ffc-frac .ffc-num{display:block;padding:0 .18em;border-bottom:.09em solid currentColor;text-align:center}
.ffc-frac .ffc-den{display:block;padding:0 .18em;text-align:center}
.ffc-mixed{display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle}
.ffc-whole{margin-right:.04em}
.ffc-qfrac{display:inline-flex;align-items:center;font-weight:800;font-size:1.35em;margin:0 .12em;vertical-align:middle}
.ffc-read{display:block;margin-top:4px;font-size:15px;font-weight:700;color:#334155}
.ffc-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.ffc-cards{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:100%}
.ffc-card{position:relative;box-sizing:border-box;min-width:64px;min-height:72px;padding:8px 10px 6px;border:2px solid #64748b;border-radius:12px;background:#fff;color:#111827;font-family:inherit;font-size:1.4rem;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.ffc-card .ffc-check{position:absolute;top:1px;right:5px;font-size:15px;line-height:1;color:#1d4ed8;visibility:hidden}
.ffc-card.ffc-sel{border:4px solid #1d4ed8;background:#dbeafe;padding:6px 8px 4px}
.ffc-card.ffc-sel .ffc-check{visibility:visible}
.ffc-card:disabled{cursor:default;opacity:1;color:#111827}
.ffc-card .ffc-ring{position:absolute;inset:3px;border:3px solid #15803d;border-radius:50%;pointer-events:none}
.ffc-card.ffc-miss{border:4px dashed #b91c1c;background:#fff1f2}
.ffc-card.ffc-miss .ffc-check{color:#b91c1c;font-size:18px;font-weight:900;top:0;right:4px}
.ffc-field-row{display:flex;align-items:center;gap:8px}
.ffc-input{width:7em;min-height:48px;font-size:1.35rem;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;white-space:pre}
.ffc-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.ffc-input.ffc-ok,.ffc-input.ffc-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.ffc-input.ffc-ng,.ffc-input.ffc-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.ffc-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center;max-width:560px;line-height:1.7}
.ffc-guide[hidden]{display:none}
.ffc-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.6;max-width:560px}
.ffc-msg:empty{min-height:0;margin:0}
.ffc-main .ufk-keypad{margin-top:4px}
.feedback.has-text.ffc-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.ffc-correct{margin:2px 0 6px;font-weight:800;font-size:17px;line-height:2.2}
.ffc-expl-text{margin:4px 0 6px;overflow-wrap:normal;word-break:normal;line-break:strict}
.ffc-expl-text .ffc-expl-s{margin:0 0 4px;line-height:2.2}
.ffc-expl-s{line-height:2.2}
.ffc-expl-row{display:block;margin:0 0 4px}
/* 結果画面の単元名：狭い幅でも省略せず、文節で折り返す */
.result-unit-badge.ffc-badge{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;height:auto;border-radius:14px;line-height:1.5}
.result-unit-badge.ffc-badge .rub-name{white-space:normal;overflow:visible;text-overflow:clip}
.ffc-line{margin:8px auto 4px;max-width:420px;padding:6px 6px 2px;border:1.5px solid #cbd5e1;border-radius:10px;background:#fff}
.ffc-line-cap{font-size:15px;font-weight:700;text-align:center;line-height:2.1;color:#111827}
.ffc-line-svg{display:block;width:100%;height:auto}
.ffc-bar{margin:4px auto 8px;max-width:300px;padding:6px 6px 4px;border:1.5px solid #cbd5e1;border-radius:10px;background:#fff}
.ffc-bar-cap{font-size:15px;font-weight:700;text-align:center;line-height:2.1;color:#111827}
.ffc-bar-svg{display:block;width:100%;height:auto}
.ffc-example .ffc-ex-q{margin:6px 0 4px;font-weight:700;line-height:2.2}
.ffc-example .ffc-ex-a{margin:4px 0 14px;line-height:2.2}
.ffc-learning-focus{word-break:normal;line-break:strict}
#page-quiz.active:has(.ffc-main) #question-text{word-break:normal;overflow-wrap:normal;line-break:strict;font-size:17px;line-height:2.1}
#page-quiz.active:has(.ffc-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.ffc-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.ffc-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.ffc-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="fraction_form_conversion2_3"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="fraction_form_conversion2_3"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
/* 結果画面の解説の一覧：分数の行の高さを確保する */
.result-expl .ffc-frac,.result-item .ffc-frac{font-size:.95em}
@media (max-width:400px){
  #page-lesson:has(.ffc-example) .lesson-point,#page-lesson:has(.ffc-example) .lesson-point *{font-size:15px}
  #page-lesson .lesson-example:has(.ffc-example){padding-left:12px;padding-right:12px}
  #page-lesson .lesson-example div:has(>.ffc-example){padding-left:8px;padding-right:8px}
  .ffc-example .ffc-ex-q,.ffc-example .ffc-ex-a{font-size:15px}
  .ffc-cards{gap:8px;max-width:260px}
  .ffc-card{min-width:72px}
  .ffc-guide,.ffc-msg{font-size:15px}
  #page-lesson:has(.ffc-example) .lesson-point{padding-left:10px;padding-right:10px;gap:6px}
  #page-lesson:has(.ffc-example) .lesson-point .pt-icon{display:none}
}

/* 印刷（プリント共通仕様書のひな型P・P-標準：A4縦・2列×5行・1ページ。§7・確定表 FFK-10） */
.ffc-pr-page{width:190mm;box-sizing:border-box;color:#000;background:#fff;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif;display:flex;flex-direction:column}
.ffc-pr-headrow{display:flex;flex-direction:column;gap:0}
/* 題名は共通仕様 CP-08a の枠・うすい黄色・中央ぞろえ。記入欄と実線は共通の .pp-fields（CP-08b）。 */
.ffc-pr-title{box-sizing:border-box;width:100%;height:9mm;margin:0;padding:0 2mm;border:1.5pt solid #666;background:#ffffcc;font-size:13pt;line-height:calc(9mm - 3pt);text-align:center;font-weight:700;white-space:nowrap;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.ffc-pr-headrow .pp-fields{margin:1mm 0 0}
.ffc-pr-headrow .pp-field-name .pp-field-line{min-width:40mm}
.ffc-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:1.5mm 0 1.5mm!important}
.ffc-pr-inst{font-size:12.5pt;line-height:6mm;height:6mm;margin:0 0 2mm;padding:0 1mm;white-space:nowrap}
.ffc-pr-problems{display:flex;gap:4mm;justify-content:center}
.ffc-pr-col{width:93mm;display:flex;flex-direction:column;gap:3mm}
.ffc-pr-cell{box-sizing:border-box;width:93mm;height:39mm;padding:0 1mm;overflow:hidden;break-inside:avoid;display:flex;flex-direction:column}
.ffc-pr-head{display:flex;align-items:flex-start;gap:2.5mm;font-size:12.5pt;line-height:5.6mm;flex:none;min-height:5.6mm}
.ffc-pr-num{font-weight:700;flex:none;white-space:nowrap}
.ffc-pr-task{flex:1;min-width:0}
.ffc-pr-cards{flex:none;height:20mm;margin-top:3mm;display:flex;align-items:center;justify-content:space-between;padding:0 4mm;font-size:16pt;font-weight:700}
.ffc-pr-card{display:inline-flex;align-items:center;justify-content:center;min-width:9mm;white-space:nowrap}
.ffc-pr-cards .ffc-frac{line-height:5.8mm;margin:0 .4mm}
.ffc-pr-cards .ffc-frac .ffc-num{border-bottom:0.6mm solid #000}
.ffc-pr-q{font-size:14pt;font-weight:700;height:13mm;margin-top:1mm;flex:none;display:flex;align-items:center;white-space:nowrap;padding-left:3mm}
.ffc-pr-q .ffc-frac{line-height:5.2mm}
.ffc-pr-q .ffc-frac .ffc-num{border-bottom:0.6mm solid #000}
.ffc-pr-eqsign{margin:0 1mm;font-weight:700}
.ffc-pr-blank{display:inline-block;height:12mm;vertical-align:middle;white-space:pre;overflow:hidden}
.ffc-pr-blank-B{width:30mm}
.ffc-pr-blank-C{width:24mm}
.ffc-pr-paren{font-size:20pt;font-weight:400;line-height:12mm}
.ffc-pr-work{box-sizing:border-box;width:100%;flex:none;height:13mm;margin-top:1mm;border:2px solid #999;border-radius:1mm;padding:0.4mm 1mm}
.ffc-pr-worklabel{font-size:9pt;color:#333}
.ffc-pr-answers{margin-top:3mm}
.ffc-pr-fold{width:100%;height:0;border-top:2px dotted #333;margin:0 0 1.5mm}
.ffc-pr-anshead{font-size:12.5pt;font-weight:700;line-height:6mm}
.ffc-pr-acols{display:flex;gap:4mm}
.ffc-pr-acol{width:93mm}
.ffc-pr-answer{margin:0 0 0.8mm;font-size:10pt;line-height:4.6mm}
#pr-sheet[data-unit="fraction_form_conversion2_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="fraction_form_conversion2_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="fraction_form_conversion2_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="fraction_form_conversion2_3"] .ffc-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_form_conversion2_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_form_conversion2_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="fraction_form_conversion2_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="fraction_form_conversion2_3"] .ffc-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.ffc-app-pdf-page .ffc-pr-page{box-shadow:none;margin:0}
