/* ── unit_rate_reextension3_4（一単位の量にもどして求めよう、単元仕様書 v1.2）── */
/* 画面：問題文、二つの行の表と表の説明の文、4択、案内。回答後は正しい答えと解説（§5-3・§7）。 */
#question-text .urx-q{display:block;overflow-wrap:anywhere}
.urx-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.urx-tablebox{max-width:100%;display:flex;flex-direction:column;align-items:center;gap:2px}
.urx-tablewrap{max-width:100%;overflow-x:auto}
.urx-alt{margin:0;font-size:14px;line-height:1.45;color:#334155;text-align:center;max-width:560px;overflow-wrap:anywhere}
.urx-table td.urx-one{background:#fef9c3;border-left:3px solid #111827;border-right:3px solid #111827}
.urx-table{border-collapse:collapse;font-size:16px;line-height:1.4;color:#111827;background:#fff;max-width:100%}
.urx-table th,.urx-table td{border:1.5px solid #64748b;padding:5px 9px;text-align:left;vertical-align:middle;overflow-wrap:anywhere}
.urx-table th{background:#f1f5f9;font-weight:700;white-space:nowrap}
.urx-table td{font-weight:800;text-align:center;min-width:2.6em}
.urx-choices{display:flex;flex-direction:column;gap:8px;width:min(100%,480px);margin:2px auto}
.urx-choice{position:relative;word-break:keep-all;line-break:strict;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}
.urx-check{position:absolute;top:50%;left:10px;transform:translateY(-50%);font-size:18px;font-weight:900;color:#1d4ed8}
.urx-choice.urx-on{background:#dbeafe;border-color:#1d4ed8;color:#1e3a8a}
.urx-choice:focus-visible{outline:3px solid #f59e0b;outline-offset:1px}
.urx-choice:disabled{cursor:default;opacity:1}
.urx-choice.urx-ok,.urx-choice.urx-ok:disabled{border:3px solid #15803d;background:#dcfce7;color:#14532d}
.urx-choice.urx-ng,.urx-choice.urx-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2;color:#7f1d1d}
.urx-choice.urx-right,.urx-choice.urx-right:disabled{border:3px dashed #15803d;background:#fff;color:#14532d}
.urx-ok .urx-check,.urx-right .urx-check{color:#15803d}
.urx-ng .urx-check{color:#b91c1c}
.urx-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.urx-guide[hidden]{display:none}
.urx-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4;max-width:560px}
.urx-msg:empty{min-height:0;margin:0}
.feedback.has-text.urx-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.urx-correct{margin:2px 0 6px;font-weight:800;font-size:17px;overflow-wrap:anywhere}
.urx-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.urx-score{margin:6px 0 2px;font-weight:800;color:#1e3a8a}
.urx-example .urx-ex-q{margin:6px 0 2px;font-weight:700}
.urx-example .urx-ex-a{margin:0 0 8px}
#page-quiz.active:has(.urx-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.urx-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.urx-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.urx-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.urx-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz.active:has(.urx-main) #tts-btn{min-width:44px;min-height:44px}
@media (max-width:400px){.urx-table{font-size:14px}.urx-table th,.urx-table td{padding:4px 5px}.urx-table th{white-space:normal}}

.urx-nw{white-space:nowrap}
/* PC幅では表と4択を左右に並べる（§7。独立検査 URX-IR1-02） */
@media (min-width:900px){.urx-main{display:grid;grid-template-columns:auto minmax(0,480px);justify-content:center;align-items:center;column-gap:24px}.urx-main>.urx-tablebox{grid-column:1}.urx-main>.urx-choices{grid-column:2;width:100%}.urx-main>.urx-guide,.urx-main>.urx-msg{grid-column:1 / -1;justify-self:center}}
/* 印刷：A4縦・2列・1ページ（§7）。題名の枠と記入欄、共通の問い、2列×5段（番号と二つの行の表、4択を1つずつ行を分けて）、破線、答え（1行）。 */
.urx-pr-page{width:190mm;height:277mm;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}
.urx-pr-headrow{display:flex;flex-direction:column;gap:0;flex:none}
.urx-pr-headrow .pp-fields{height:7mm;margin:1mm 0 0}
.urx-pr-headrow .pp-field-line{height:6mm}
.urx-pr-headrow hr.pp-fields-solid{margin:1mm 0 0!important;border:0;border-top:1.5pt solid #333}
.urx-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}
.urx-pr-inst{flex:none;box-sizing:border-box;margin:1mm 0 1.5mm;font-size:12.5pt;line-height:5mm}
.urx-pr-problems{flex:none;display:grid;grid-template-columns:92mm 92mm;column-gap:3mm}
.urx-pr-col{display:flex;flex-direction:column}
.urx-pr-cell{box-sizing:border-box;height:42mm;border-top:2px solid transparent;padding:1.5mm 0 0;overflow:hidden;display:flex;flex-direction:column;gap:1mm}
.urx-pr-col .urx-pr-cell:last-child{border-bottom:2px solid transparent}
.urx-pr-table{width:auto!important;align-self:flex-start;border-collapse:collapse;font-size:12.5pt;line-height:5.4mm}
.urx-pr-table th,.urx-pr-table td{border:1.5px solid #000;padding:0 1.5mm;white-space:nowrap;text-align:left}
.urx-pr-table td{text-align:center;min-width:9mm}
.urx-pr-table td.urx-one{border-left:0.8mm solid #000;border-right:0.8mm solid #000}
.urx-pr-table th.urx-pr-num{border:0;padding:0 2mm 0 0;font-weight:700;vertical-align:middle}
.urx-pr-choices{display:flex;flex-direction:column}
.urx-pr-choice{font-size:12.5pt;line-height:5.2mm;padding-left:1mm;overflow-wrap:anywhere}
.urx-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:5mm}
.urx-pr-dashed{box-sizing:content-box;display:block;height:0;margin:1.5mm 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.urx-pr-anshead{font-weight:700;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.urx-pr-ansrow{display:grid;grid-template-columns:repeat(10,1fr);column-gap:1.2mm}
.urx-pr-ans{font-size:10pt;line-height:5mm;white-space:nowrap}
.urx-app-pdf-page .urx-pr-page{box-shadow:none;margin:0}

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