/* ── score_distribution_extrema2_5（得点の組合せから正答人数のはんいを求めよう、単元仕様書 v1.2）── */
/* 画面：問題文、点数の表と人数の表（★と太いわく。表の説明の文はARIA名）、答えの欄（単位を欄の外）と共通のテンキー、またはC群の4択、案内。回答後は正しい答えと解説（§5-3・§7）。 */
#question-text .sdx-q{display:block;overflow-wrap:anywhere}
.sdx-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.sdx-field{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:1.2rem;flex-wrap:wrap;justify-content:center;row-gap:4px}
.sdx-input{width: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}
.sdx-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.sdx-input.sdx-ok,.sdx-input.sdx-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.sdx-input.sdx-ng,.sdx-input.sdx-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.sdx-unit{font-weight:800;font-size:1.15rem;white-space:nowrap}
.sdx-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.sdx-guide[hidden]{display:none}
.sdx-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4;max-width:560px}
.sdx-msg:empty{min-height:0;margin:0}
.sdx-main .ufk-keypad{margin-top:4px}
.feedback.has-text.sdx-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.sdx-correct{margin:2px 0 6px;font-weight:800;font-size:17px;overflow-wrap:anywhere}
.sdx-expl-text{margin:4px 0 6px;line-height:1.8;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.sdx-example .sdx-ex-q{margin:6px 0 2px;font-weight:700}
.sdx-example .sdx-ex-a{margin:0 0 8px}
#page-quiz.active:has(.sdx-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.sdx-main) #tts-btn{display:none!important}
#page-quiz.active:has(.sdx-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.sdx-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.sdx-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.sdx-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="score_distribution_extrema2_5"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="score_distribution_extrema2_5"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}

.sdx-tablewrap{max-width:100%;width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.sdx-tblock{display:flex;flex-direction:column;align-items:center;max-width:100%}
.sdx-tcap{font-weight:800;font-size:15px;margin-bottom:2px}
.sdx-table{border-collapse:collapse;font-size:17px;font-variant-numeric:tabular-nums}
.sdx-table th,.sdx-table td{border:1.5px solid #334155;padding:6px 9px;text-align:center;white-space:nowrap;min-width:2.2em}
.sdx-table th[scope="row"]{background:#f8fafc;font-weight:800}
.sdx-table th[scope="col"]{background:#f1f5f9;font-weight:800}
.sdx-table .sdx-star{border-left:4px solid #111;border-right:4px solid #111}
.sdx-table tr:first-child .sdx-star{border-top:4px solid #111}
.sdx-table tr:last-child .sdx-star{border-bottom:4px solid #111}
.sdx-starmark{margin-left:1px}
.sdx-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;max-width:440px}
.sdx-choice{min-height:48px;font-size:18px;padding:8px 10px;border:2px solid #9aa7b4;border-radius:10px;background:#fff;cursor:pointer;color:#222;font-family:inherit;font-weight:700}
.sdx-choice.sdx-chosen{border-color:#1565c0;background:#e6f0fb}
.sdx-choice.sdx-correct{border-color:#15803d;background:#dcfce7}
.sdx-choice.sdx-wrong{border-color:#b91c1c;border-style:dashed;background:#fff1f2}
.sdx-choice:disabled{cursor:default;opacity:1}
@media (max-width:400px){.sdx-table{font-size:15px}.sdx-table th,.sdx-table td{padding:5px 4px;min-width:1.8em}.sdx-choices{grid-template-columns:minmax(0,1fr)}}

/* 印刷（A4縦・2列・1ページ。§7） */
.sdx-pr-page{width:190mm;box-sizing:border-box;color:#000;font-family:inherit;display:flex;flex-direction:column}
.sdx-pr-headrow{display:flex;flex-direction:column;gap:0}
.sdx-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}
.sdx-pr-headrow .pp-fields{height:6mm;margin:0.5mm 0 0}
.sdx-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:0.8mm 0 1mm!important;border:0;border-top:1.2pt solid #333}
.sdx-pr-inst{font-size:12.5pt;line-height:5mm;margin:0 0 2mm;padding:0 1.5mm}
.sdx-pr-problems{display:flex;gap:3mm;justify-content:center}
.sdx-pr-col{width:92mm;display:flex;flex-direction:column;gap:0}
.sdx-pr-cell{box-sizing:border-box;width:92mm;height:43mm;border:0.3mm solid transparent;border-radius:1.5mm;padding:0.4mm 1.5mm;overflow:hidden;break-inside:avoid}
.sdx-pr-head{font-size:12.5pt;line-height:5.5mm;font-weight:700;white-space:nowrap}
.sdx-pr-body{display:flex;flex-direction:column;gap:1mm;margin-top:0}
.sdx-pr-body .sdx-tblock{align-items:flex-start}
.sdx-pr-table{border-collapse:collapse;font-size:12.5pt;line-height:4.2mm}
.sdx-pr-table th,.sdx-pr-table td{border:0.3mm solid #333;padding:0 1.2mm;text-align:center;white-space:nowrap;font-weight:400;min-width:6mm;height:4.6mm;box-sizing:border-box}
.sdx-pr-table th[scope="row"]{font-weight:700}
.sdx-pr-table .sdx-star{border-left:0.8mm solid #000;border-right:0.8mm solid #000}
.sdx-pr-table tr:first-child .sdx-star{border-top:0.8mm solid #000}
.sdx-pr-table tr:last-child .sdx-star{border-bottom:0.8mm solid #000}
.sdx-pr-blank{font-size:12.5pt;line-height:6mm;margin-top:1.2mm}
.sdx-pr-gap{display:inline-block;width:12mm;height:4.5mm;vertical-align:bottom}
.sdx-pr-choices{display:grid;grid-template-columns:1fr 1fr;font-size:12.5pt;line-height:4.8mm;margin-top:1.2mm}
.sdx-pr-choice{white-space:nowrap}
.sdx-pr-answers{margin-top:2mm;border-top:0.3mm dashed #666;padding-top:1mm;display:flex;flex-direction:column;gap:0.5mm}
.sdx-pr-anshead{font-size:12.5pt;font-weight:700;line-height:6mm;white-space:nowrap}
.sdx-pr-ansrow{display:grid;grid-template-columns:repeat(10,18mm);column-gap:0.5mm;font-size:10pt;line-height:4.5mm}
.sdx-pr-answer{white-space:nowrap}
#pr-sheet[data-unit="score_distribution_extrema2_5"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="score_distribution_extrema2_5"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="score_distribution_extrema2_5"]>#pr-problems{display:block}
#pr-sheet[data-unit="score_distribution_extrema2_5"] .sdx-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="score_distribution_extrema2_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="score_distribution_extrema2_5"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="score_distribution_extrema2_5"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="score_distribution_extrema2_5"] .sdx-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.sdx-app-pdf-page .sdx-pr-page{box-shadow:none;margin:0}
