/* ── fraction_denominator_sequence2_5（分母ごとの分数列で分数と位置を求めよう、単元仕様書 v1.9）── *
/* 画面：列の説明の文、全問で同じ群の表（v1.2 確定表 FDQ-01）、問題文、B群の示す分数、答えの欄（A群は分子・分母の2つの欄）と共通のテンキー、案内。回答後は正しい答えと解説（§5-3・§7）。 */
#question-text .fdq-q{display:block;overflow-wrap:anywhere}
.fdq-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}
.fdq-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}
.fdq-frac .fdq-num{display:block;padding:0 .2em;border-bottom:.09em solid currentColor;text-align:center;min-width:1em}
.fdq-frac .fdq-den{display:block;padding:0 .2em;text-align:center;min-width:1em}
.fdq-tablewrap{max-width:100%;overflow:visible;display:flex;justify-content:center;width:100%}
.fdq-table{border-collapse:collapse;font-size:15px;font-variant-numeric:tabular-nums}
.fdq-table th,.fdq-table td{border:1px solid #94a3b8;padding:4px 6px;text-align:center;white-space:nowrap}
.fdq-table th[scope="col"]{background:#f1f5f9;font-weight:800;font-size:13px}
.fdq-table th[scope="row"]{background:#f8fafc;font-weight:800;font-size:13px}
.fdq-table .fdq-gs{border-left:3px solid #111}
.fdq-table .fdq-more{font-weight:800;border-left:3px solid #111}
.fdq-ask{margin:2px 0;font-size:19px;font-weight:700;text-align:center;overflow-wrap:anywhere;max-width:560px}
.fdq-show{font-size:30px;font-weight:800;padding:2px 10px;border:2px solid #334155;border-radius:8px;background:#fff}
.fdq-field{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:1.15rem;flex-wrap:wrap;justify-content:center}
.fdq-field-a{flex-direction:column;gap:2px}
.fdq-arow{display:flex;align-items:center;gap:8px}
.fdq-arow .fdq-lab{min-width:3.6em;text-align:right;font-size:15px}
.fdq-bar{width:6.5em;border-top:3px solid #111;margin-left:4.2em}
.fdq-input{width:4.5em;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}
.fdq-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.fdq-input.fdq-ok,.fdq-input.fdq-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.fdq-input.fdq-ng,.fdq-input.fdq-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.fdq-lab{font-size:16px;font-weight:800}
.fdq-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.fdq-guide[hidden]{display:none}
.fdq-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4;max-width:560px}
.fdq-msg:empty{min-height:0;margin:0}
.fdq-main .ufk-keypad{margin-top:4px}
.feedback.has-text.fdq-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.fdq-correct{margin:2px 0 6px;font-weight:800;font-size:17px;overflow-wrap:anywhere;line-height:2.2}
.fdq-expl-text{margin:4px 0 6px;line-height:2.1;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.fdq-example .fdq-ex-q{margin:6px 0 2px;font-weight:700}
.fdq-example .fdq-ex-a{margin:0 0 8px;line-height:2.1}
.fdq-example .fdq-ex-show{margin:4px 0 8px;text-align:center}
.fdq-example .fdq-show{display:inline-block;line-height:1.05}
#page-quiz.active:has(.fdq-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict;font-size:16px}
#page-quiz.active:has(.fdq-main) #tts-btn{display:none!important}
#page-quiz.active:has(.fdq-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.fdq-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.fdq-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.fdq-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="fraction_denominator_sequence2_5"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="fraction_denominator_sequence2_5"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
@media (max-width:400px){.fdq-table{font-size:13px}.fdq-table th,.fdq-table td{padding:3px 2px}.fdq-table th[scope="col"]{font-size:11px;white-space:normal}.fdq-table th[scope="row"]{font-size:11px}.fdq-ask{font-size:17px}}

/* 印刷（A4縦・2列・1ページ。§7） */
.fdq-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}
.fdq-pr-headrow{display:flex;flex-direction:column;gap:0}
.fdq-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}
.fdq-pr-headrow .pp-fields{height:6mm;margin:0.5mm 0 0}
.fdq-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:0.8mm 0 1mm!important;border:0;border-top:1.2pt solid #333}
.fdq-pr-inst{font-size:12.5pt;line-height:5.3mm;margin:0 0 1mm;padding:0 1.5mm}
.fdq-pr-tablewrap{display:flex;justify-content:center;margin:0 0 2mm}
.fdq-pr-table{border-collapse:collapse;font-size:12.5pt}
.fdq-pr-table th,.fdq-pr-table td{border:2px solid #555;padding:0 2mm;text-align:center;white-space:nowrap;line-height:4.4mm}
.fdq-pr-table th[scope="col"],.fdq-pr-table th[scope="row"]{font-size:9pt;font-weight:700}
.fdq-pr-table tr:nth-child(3) td{font-size:9pt}
.fdq-pr-table .fdq-gs,.fdq-pr-table .fdq-more{border-left:0.6mm solid #000}
.fdq-pr-page .fdq-frac{line-height:4.5mm}
.fdq-pr-page .fdq-frac .fdq-num{border-bottom-width:2px}
.fdq-pr-problems{display:flex;gap:4mm;justify-content:center}
.fdq-pr-col{width:91mm;display:flex;flex-direction:column;gap:0}
.fdq-pr-cell{box-sizing:border-box;width:91mm;height:37mm;border:0.3mm solid transparent;border-radius:1.5mm;padding:0.6mm 1.5mm;overflow:hidden;break-inside:avoid}
.fdq-pr-q{font-size:12.5pt;line-height:5.3mm;max-height:15.9mm;overflow:hidden}
.fdq-pr-ansrow{display:flex;align-items:center;gap:4mm;height:13mm;margin-top:2mm;font-size:12.5pt}
.fdq-pr-show{font-size:12.5pt}
.fdq-pr-ansrow:has(.fdq-pr-abox){height:16.5mm}
.fdq-pr-boxrow{display:inline-flex;align-items:center;gap:2mm}
.fdq-pr-box{display:inline-block;width:18mm;height:7mm;border:2px solid #000;box-sizing:border-box}
.fdq-pr-abox{display:flex;flex-direction:column;align-items:flex-start}
.fdq-pr-arow{display:flex;align-items:center;gap:2mm;height:7mm}
.fdq-pr-lab{font-size:9pt;width:19mm;text-align:right;white-space:nowrap}
.fdq-pr-box.fdq-pr-box-a{width:14mm;height:7mm}
.fdq-pr-bar{width:18mm;border-top:2px solid #000;margin:1mm 0 1mm 19mm}
.fdq-pr-answers{margin-top:2mm;border-top:0.3mm dashed #666;padding-top:1mm;display:flex;flex-direction:column}
.fdq-pr-anshead{font-size:12.5pt;font-weight:700;line-height:5.3mm}
.fdq-pr-ansline{display:grid;grid-template-columns:repeat(5,36mm);column-gap:1.5mm;font-size:10pt;height:9mm;align-items:center}
.fdq-pr-answer{white-space:nowrap}
.fdq-nb{white-space:nowrap}
.fdq-pr-answer .fdq-frac{line-height:3.6mm}
#pr-sheet[data-unit="fraction_denominator_sequence2_5"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="fraction_denominator_sequence2_5"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="fraction_denominator_sequence2_5"]>#pr-problems{display:block}
#pr-sheet[data-unit="fraction_denominator_sequence2_5"] .fdq-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_denominator_sequence2_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_denominator_sequence2_5"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="fraction_denominator_sequence2_5"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="fraction_denominator_sequence2_5"] .fdq-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.fdq-app-pdf-page .fdq-pr-page{box-shadow:none;margin:0}
