/* ── average_limit_reason2_5（平均だけではわからないことを見分けよう、単元仕様書 v1.2）── */
/* 画面：問題文、資料の表（資料A・資料Bと平均）、資料の選択（2つ）と理由の選択（3つ）、案内。回答後は正しい答えと解説（§5-3・§7）。 */
#question-text .alr-q{display:block;overflow-wrap:anywhere}
.alr-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.alr-tablewrap,.alr-stagewrap{max-width:100%}
.alr-table{border-collapse:collapse;font-size:16px;line-height:1.4;color:#111827;background:#fff;max-width:100%}
.alr-table th,.alr-table td{border:1.5px solid #64748b;padding:5px 9px;text-align:left;vertical-align:middle;overflow-wrap:anywhere}
.alr-table th{background:#f1f5f9;font-weight:700;white-space:nowrap}
.alr-table td{font-weight:800;text-align:center;min-width:2.6em}
.alr-choices{display:flex;flex-direction:column;gap:8px;width:min(100%,480px);margin:2px auto}
.alr-choice{position:relative;box-sizing:border-box;min-height:48px;padding:6px 10px 6px 34px;border:3px solid #64748b;border-radius:10px;background:#fff;color:#1e293b;font-size:1.05rem;font-weight:800;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.alr-check{position:absolute;top:50%;left:10px;transform:translateY(-50%);font-size:18px;font-weight:900;color:#1d4ed8}
.alr-choice.alr-on{background:#dbeafe;border-color:#1d4ed8;color:#1e3a8a}
.alr-choice:focus-visible{outline:3px solid #f59e0b;outline-offset:1px}
.alr-choice:disabled{cursor:default;opacity:1}
.alr-choice.alr-ok,.alr-choice.alr-ok:disabled{border:3px solid #15803d;background:#dcfce7;color:#14532d}
.alr-choice.alr-ng,.alr-choice.alr-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2;color:#7f1d1d}
.alr-choice.alr-right,.alr-choice.alr-right:disabled{border:3px dashed #15803d;background:#fff;color:#14532d}
.alr-ok .alr-check,.alr-right .alr-check{color:#15803d}
.alr-ng .alr-check{color:#b91c1c}
.alr-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.alr-guide[hidden]{display:none}
.alr-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4;max-width:560px}
.alr-msg:empty{min-height:0;margin:0}
.feedback.has-text.alr-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.alr-correct{margin:2px 0 6px;font-weight:800;font-size:17px;overflow-wrap:anywhere}
.alr-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.alr-score{margin:6px 0 2px;font-weight:800;color:#1e3a8a}
.alr-example .alr-ex-q{margin:6px 0 2px;font-weight:700}
.alr-example .alr-ex-a{margin:0 0 8px}
#page-quiz.active:has(.alr-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.alr-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.alr-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.alr-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.alr-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz.active:has(.alr-main) #tts-btn{min-width:44px;min-height:44px}

.alr-tablewrap{max-width:100%}
.alr-table td{min-width:2em}
.alr-table td.alr-mean{font-weight:700;background:#f8fafc;white-space:nowrap}
.alr-groups{display:flex;flex-wrap:wrap;gap:12px 20px;justify-content:center;width:100%}
.alr-group{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:min(100%,220px)}
.alr-group-h{margin:0;font-weight:800;font-size:16px;text-align:center}
.alr-row{display:flex;gap:8px;justify-content:center}
.alr-row .alr-choice{flex:1;text-align:center}
.alr-col{display:flex;flex-direction:column;gap:8px}
.alr-expl-text{line-height:1.8;overflow-wrap:anywhere}
@media (max-width:400px){.alr-table{font-size:14px}.alr-table th,.alr-table td{padding:4px 3px}.alr-table td{min-width:1.6em}.alr-table th{white-space:nowrap}}
/* 印刷：A4横・2列・1ページ（§7）。題名の枠と記入欄、共通の案内と理由の一覧、2列×5段（番号と問い、資料の表と答えの（　））、破線、答え（1行）。 */
.alr-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}
.alr-pr-headrow{display:flex;flex-direction:column;gap:0;flex:none}
.alr-pr-headrow .pp-fields{height:7mm;margin:1mm 0 0}
.alr-pr-headrow .pp-field-line{height:6mm}
.alr-pr-headrow hr.pp-fields-solid{margin:1mm 0 0!important;border:0;border-top:1.5pt solid #333}
.alr-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}
.alr-pr-inst{flex:none;box-sizing:border-box;margin:1mm 0 0;font-size:12.5pt;line-height:5.6mm}
.alr-pr-reasons{flex:none;margin:0.5mm 0 1mm;font-size:12.5pt;line-height:6mm;font-weight:700;white-space:pre}
.alr-pr-problems{flex:none;display:grid;grid-template-columns:133.5mm 133.5mm;column-gap:4mm}
.alr-pr-col{display:flex;flex-direction:column}
.alr-pr-cell{box-sizing:border-box;height:27.5mm;border-top:2px solid transparent;padding:1mm 0 0;overflow:hidden;display:flex;flex-direction:column;gap:0.8mm}
.alr-pr-col .alr-pr-cell:last-child{border-bottom:2px solid transparent}
.alr-pr-q{font-size:12.5pt;line-height:6mm;white-space:nowrap}
.alr-pr-num{display:inline-block;width:7.5mm;font-weight:700}
.alr-pr-row{display:flex;align-items:center;gap:1.5mm;padding-left:7.5mm}
.alr-pr-table{width:auto!important;border-collapse:collapse;font-size:12.5pt;line-height:5.4mm}
.alr-pr-table th,.alr-pr-table td{border:2px solid #000;padding:0 0.8mm;white-space:nowrap;text-align:center}
.alr-pr-table th{text-align:left;font-weight:700}
.alr-pr-box{font-size:12.5pt;white-space:nowrap;display:flex;flex-direction:column;gap:0.6mm}
.alr-pr-boxline{line-height:7mm;display:grid;grid-template-columns:auto 11mm;align-items:center;column-gap:1mm}
.alr-pr-boxline .alr-pbox{justify-self:start;margin:0}
.alr-pbox{height:6.5mm}
.alr-pbox{display:inline-block;box-sizing:border-box;width:9mm;height:7mm;border:2px solid #000;vertical-align:middle;margin:0 1mm}
.alr-pr-answers{flex:none;box-sizing:border-box;width:277mm;margin-top:auto;padding-bottom:4mm}
.alr-pr-dashed{box-sizing:content-box;display:block;height:0;margin:1.2mm 0 0.6mm;padding:0;border:0;border-top:2pt dashed #aaa}
.alr-pr-ansbody{display:flex;align-items:baseline;gap:4mm}
.alr-pr-anshead{font-weight:700;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.alr-pr-ansrow{display:grid;grid-template-columns:repeat(10,1fr);column-gap:1mm;flex:1}
.alr-pr-ans{font-size:10pt;line-height:5mm;white-space:nowrap}
.alr-app-pdf-page .alr-pr-page{box-shadow:none;margin:0}

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