/* ── average_unit_rate2_5（平均から単位当たり量へつなげよう、単元仕様書 v1.3）── */
/* 画面：問題文の下に記録の表（ヒント1のあとだけ表の上に単位の矢印）、答えの欄（名前・欄・単位）、回答案内、テンキー、こたえるボタン（§5-3・§7 画面表示）。 */
.aur-main{display:flex;flex-direction:column;align-items:center;margin:4px 0 6px;max-width:100%}
.aur-arrow{margin:0 0 6px;padding:2px 12px;font-size:1.15rem;font-weight:800;color:#1e3a8a;background:#eff6ff;border:2px solid #93c5fd;border-radius:999px;white-space:nowrap}
.aur-arrow[hidden]{display:none}
.aur-table-wrap{max-width:100%}
.aur-table{border-collapse:collapse;background:#fff;font-size:1.15rem;margin:0 auto}
.aur-table th,.aur-table td{border:2px solid #475569;padding:4px 12px;text-align:center;white-space:nowrap}
.aur-table thead th{background:#f1f5f9;font-weight:800}
.aur-table tbody th{background:#f8fafc;font-weight:700}
.aur-table td{font-weight:700;font-variant-numeric:tabular-nums}
.aur-mark{display:inline-block;margin-left:2px;padding:0 6px;font-size:.85rem;font-weight:800;color:#7c2d12;background:#ffedd5;border:1.5px solid #c2410c;border-radius:6px;vertical-align:.1em}
.aur-h-short{display:none}
.aur-fields{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin:8px auto 2px}
.aur-field-label,.aur-field-unit{font-weight:700;font-size:1.2rem}
.aur-input{width:6em;max-width:45vw;min-height:44px;font-size:1.4rem;padding:4px 8px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:10px;text-align:center;font-family:inherit;box-sizing:border-box}
.aur-input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.aur-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.aur-input.aur-input-ok{border:3px solid #15803d;background:#dcfce7}
.aur-input.aur-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.aur-guide{margin:6px auto 4px;font-weight:700;text-align:center;max-width:32em}
.aur-msg{margin:2px auto 0;color:#b91c1c;font-weight:700;font-size:1rem;text-align:center;max-width:32em}
.aur-msg:empty{display:none}
.feedback.has-text.aur-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.aur-correct{margin:2px 0 6px;font-weight:700;font-size:1rem}
.aur-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;font-size:1rem}
#page-quiz.active:has(.aur-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.aur-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.aur-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.aur-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0;overflow-wrap:anywhere}
/* 360 CSS px幅以下（320をふくむ）では表を横にスクロールさせず、列の見出しを SURF-AUR-TABLE-SHORT に短くする。単位は省略しない（§7）。 */
@media (max-width:360px){
  .aur-h-long{display:none}
  .aur-h-short{display:inline}
  .aur-table{font-size:1rem}
  .aur-table th,.aur-table td{padding:3px 6px}
  .aur-mark{font-size:.8rem;padding:0 4px}
}

/* 印刷：A4縦・2列・1ページ（§7。用紙の余白10mm、本文190×277mm、列91mm・列の間4mm。各問の領域は高さ40mm：番号と表の名前の行5mm、表は行の高さ5mmで最大6行30mm、余り5mm）。 */
.aur-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}
.aur-pr-head{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:190mm}
.aur-pr-title{box-sizing:border-box;margin:0;height:9mm;font-size:14.3pt;font-weight:700;line-height:7.8mm;text-align:center;white-space:nowrap;padding:0;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.aur-pr-instruction{margin:0 0 2mm;font-size:12.6pt;line-height:5.3mm;max-height:21.2mm;overflow:hidden}
.aur-pr-problems{display:grid;grid-template-columns:91mm 91mm;column-gap:4mm;flex:none;margin-left:2mm}
.aur-pr-col{display:grid;grid-template-rows:repeat(5,40mm)}
.aur-pr-cell{position:relative;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;height:40mm;padding:0}
/* 問と問のさかいめに点線（次の問の番号と前の問の答えの欄を見分ける）。線は各問の領域の高さに数えないよう、上の端に重ねて引く。 */
.aur-pr-cell+.aur-pr-cell::before{content:'';position:absolute;top:0;left:0;right:0;border-top:0.3mm dotted #888}
.aur-pr-q{margin:0;font-size:12.6pt;line-height:5mm;height:5mm;white-space:nowrap;font-weight:700}
.aur-pr-body{display:flex;align-items:flex-start;gap:2mm;width:88mm}
.aur-pr-table{border-collapse:collapse;font-size:12.6pt;flex:none}
.aur-pr-table th,.aur-pr-table td{border:0.3mm solid #333;height:4.9mm;line-height:4.4mm;padding:0 1.5mm;text-align:center;white-space:nowrap;box-sizing:border-box;font-weight:400}
.aur-pr-table thead th{font-weight:700}
.aur-pr-table .aur-mark{font-size:inherit;font-weight:700;padding:0;border:0;background:none;color:inherit;margin-left:0}
.aur-pr-box-area{display:flex;flex-direction:column;gap:0;flex:1;min-width:0;font-size:12.6pt;line-height:5mm}
.aur-pr-round,.aur-pr-boxname{white-space:nowrap}
.aur-pr-boxline{display:flex;align-items:center;gap:1mm;height:7mm;white-space:nowrap}
.aur-pr-box{display:inline-block;box-sizing:border-box;width:12mm;height:7mm;border:0.35mm solid #333}
.aur-pr-box-C{width:20mm}
.aur-pr-unit{font-weight:700}
.aur-pr-answers{flex:none;box-sizing:border-box;margin-top:2mm}
.aur-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.aur-pr-answers-title{font-weight:700;font-size:12.6pt;height:6mm;line-height:6mm}
.aur-pr-answer-grid{display:grid;grid-template-columns:repeat(5,36.4mm);column-gap:1mm}
.aur-pr-ans{margin:0;font-size:10.2pt;line-height:5mm;height:5mm;white-space:nowrap}
.aur-app-pdf-page .aur-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="average_unit_rate2_5"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="average_unit_rate2_5"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="average_unit_rate2_5"]>#pr-problems{display:block}
/* 画面のプレビューでは、用紙の余白10mmを白い縁で見せる（印刷の寸法は変えない）。 */
#pr-sheet[data-unit="average_unit_rate2_5"] .aur-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_unit_rate2_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_unit_rate2_5"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="average_unit_rate2_5"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="average_unit_rate2_5"] .aur-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
