/* ── unit_rate_chain3_5（いくつもの単位量をつないで求めよう、単元仕様書 v1.2）── */
/* 画面：問題文、条件の表（360px幅に収める。v1.2 URC-14）、答えの欄と単位、回答案内、共通のテンキー（§5-3・§7）。 */
#question-text .urc-q{display:block;overflow-wrap:anywhere}
.urc-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.urc-tablewrap{max-width:100%}
.urc-table{border-collapse:collapse;font-size:16px;line-height:1.35;color:#111827;background:#fff;max-width:100%}
.urc-table th,.urc-table td{border:1.5px solid #64748b;padding:6px 8px;text-align:center;vertical-align:middle}
.urc-table tbody th{background:#f1f5f9;font-weight:700;text-align:left;overflow-wrap:anywhere;max-width:11em}
.urc-table thead th{background:#e0e7ff;color:#1e3a8a;font-weight:800}
.urc-table thead th:empty{background:transparent;border-top-color:transparent;border-left-color:transparent}
.urc-table thead th:last-child:empty{border-right-color:transparent}
.urc-table td{font-weight:800;white-space:nowrap}
.urc-table td.urc-tsum{font-weight:700}
.urc-field{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:1.2rem}
.urc-input{width:5.2em;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}
.urc-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.urc-input.urc-ok,.urc-input.urc-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.urc-input.urc-ng,.urc-input.urc-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.urc-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.urc-guide[hidden]{display:none}
.urc-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4;max-width:560px}
.urc-msg:empty{min-height:0;margin:0}
.urc-main .ufk-keypad{margin-top:4px}
.feedback.has-text.urc-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.urc-correct{margin:2px 0 6px;font-weight:800;font-size:17px}
.urc-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.urc-score{margin:6px 0 2px;font-weight:800;color:#1e3a8a}
.urc-example .urc-ex-q{margin:6px 0 2px;font-weight:700}
.urc-example .urc-ex-a{margin:0 0 8px}
#page-quiz.active:has(.urc-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.urc-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.urc-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.urc-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.urc-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="unit_rate_chain3_5"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz.active:has(.urc-main) #tts-btn{min-width:44px;min-height:44px}
#page-quiz:has(#question-text[data-unit="unit_rate_chain3_5"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
@media (max-width:400px){.urc-table{font-size:14px}.urc-table th,.urc-table td{padding:5px 5px}.urc-table tbody th{max-width:8.5em}}

/* 印刷：A4横・2列・1ページ（§7）。題名の枠と記入欄、共通の問い、2列×5段（番号と問いの文、表と答えの欄）、破線、答え（1行）。 */
.urc-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}
.urc-pr-headrow{display:flex;flex-direction:column;gap:0;flex:none}
.urc-pr-headrow .pp-fields{height:7mm;margin:1mm 0 0}
.urc-pr-headrow .pp-field-line{height:6mm}
.urc-pr-headrow hr.pp-fields-solid{margin:1mm 0 0!important;border:0;border-top:1.5pt solid #333}
.urc-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}
.urc-pr-inst{flex:none;box-sizing:border-box;margin:0.8mm 0 0.6mm;font-size:12.5pt;line-height:5.6mm}
.urc-pr-problems{flex:none;display:grid;grid-template-columns:133.5mm 133.5mm;column-gap:10mm}
.urc-pr-col{display:flex;flex-direction:column}
.urc-pr-cell{box-sizing:border-box;height:30.2mm;border-top:2px solid transparent;padding:0.4mm 0 0;overflow:hidden}
.urc-pr-col .urc-pr-cell:last-child{border-bottom:2px solid transparent}
.urc-pr-line1{font-size:12.5pt;line-height:5.4mm;white-space:nowrap}
.urc-pr-num{font-weight:700}
.urc-pr-line2{display:flex;align-items:center;gap:4mm;margin-top:0.2mm}
.urc-pr-table{border-collapse:collapse;font-size:12.5pt;line-height:5.4mm;flex:none}
.urc-pr-table th,.urc-pr-table td{border:2px solid #000;padding:0 1.6mm;text-align:center;white-space:nowrap;height:6mm;box-sizing:border-box}
.urc-pr-table tbody th{text-align:left;font-weight:700}
.urc-pr-table thead th{font-weight:700}
.urc-pr-table thead th:empty{border-top-color:transparent;border-left-color:transparent}
.urc-pr-table thead th:last-child:empty{border-right-color:transparent}
.urc-pr-box{display:flex;align-items:center;gap:1.5mm;font-size:12.5pt;white-space:nowrap;flex:none}
.urc-pbox{display:inline-block;box-sizing:border-box;width:20mm;height:7mm;border:2px solid #000}
.urc-pr-answers{flex:none;box-sizing:border-box;width:277mm;margin-top:auto;padding-bottom:5mm}
.urc-pr-dashed{box-sizing:content-box;display:block;height:0;margin:1.5mm 0 0.8mm;padding:0;border:0;border-top:2pt dashed #aaa}
.urc-pr-ansrow{display:flex;flex-wrap:nowrap;align-items:baseline}
.urc-pr-anshead{font-weight:700;font-size:12.5pt;line-height:6mm;padding-right:4mm;flex:none;white-space:nowrap}
.urc-pr-ans{font-size:12.5pt;line-height:6mm;width:22mm;flex:none;white-space:nowrap}
.urc-app-pdf-page .urc-pr-page{box-shadow:none;margin:0}

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