/* ── average_zero_assumed3_5（ゼロをふくむ平均を仮平均で求めよう、単元仕様書 v1.3）── */
/* 画面：問題文の下に記録の数のカード、（C群とヒントの第2段階以降のA群・B群は）基準の線と差、答えの欄、回答案内、テンキー（§5-3・§7 画面表示）。 */
.aza-main{display:flex;flex-direction:column;align-items:center;margin:4px 0 6px;max-width:100%}
.aza-fig{display:flex;flex-direction:column;align-items:center;max-width:100%}
.aza-base{margin:0 0 4px;font-weight:700;font-size:1rem;text-align:center}
.aza-base-label{display:inline-block;padding:2px 10px;border:2px dashed #475569;border-radius:8px;background:#f8fafc;color:#0f172a}
/* 1列にカードと差を縦に置き、列ごと折り返す（360px幅でも差は対応するカードの下にある）。 */
.aza-cols{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 6px;max-width:100%}
.aza-col{display:flex;flex-direction:column;align-items:center;width:52px}
.aza-card{box-sizing:border-box;width:52px;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid #1e3a8a;border-radius:10px;background:#fff;color:#0f172a}
.aza-num{font-size:1.35rem;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}
.aza-mark{font-size:.62rem;font-weight:700;line-height:1.1;margin-top:2px;padding:0 2px;border-radius:4px;background:#fef3c7;color:#78350f;white-space:nowrap}
.aza-fig-diffs .aza-diff{box-sizing:border-box;width:52px;margin-top:4px;padding-top:3px;border-top:2px dashed #475569;text-align:center;font-weight:700;font-size:.95rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.aza-diff-up{color:#166534}
.aza-diff-down{color:#9f1239}
.aza-diff-zero{color:#334155}
.aza-fields{display:flex;justify-content:center;align-items:center;gap:8px;margin:6px auto 2px}
.aza-input-label{font-weight:700;font-size:1.05rem}
.aza-input{width:6em;max-width:50vw;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}
.aza-input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.aza-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.aza-input.aza-input-ok{border:3px solid #15803d;background:#dcfce7}
.aza-input.aza-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.aza-guide{margin:6px auto 4px;font-weight:700;text-align:center;max-width:32em}
.aza-msg{margin:2px auto 0;color:#b91c1c;font-weight:700;font-size:.95rem;text-align:center;max-width:32em}
.aza-msg:empty{display:none}
.feedback.has-text.aza-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.aza-correct{margin:2px 0 6px;font-weight:700}
.aza-expl-text{margin:4px 0 6px;overflow-wrap:anywhere}
#page-quiz.active:has(.aza-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.aza-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.aza-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.aza-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}

/* 印刷：A4縦・2列×5段・1ページ（§7。用紙の余白10mm、本文190×277mm、列92mm・列の間3mm、各問の領域41mm）。 */
.aza-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}
.aza-pr-head{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:187mm;height:18mm}
.aza-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}
.aza-pr-fields{display:flex;gap:9mm;align-items:flex-end;height:7mm;margin-top:1mm;font-size:12.6pt;line-height:7mm;white-space:nowrap}
.aza-pr-group{display:inline-flex;align-items:flex-end;gap:4mm;flex:none}
.aza-pr-field{display:inline-flex;align-items:flex-end;gap:1.5mm;flex:none}
.aza-pr-field-line{display:inline-block;box-sizing:border-box;width:13mm;height:5.5mm;border-bottom:1pt solid #555}
.aza-field-name{flex:1;min-width:0}
.aza-field-name .aza-pr-field-line{flex:1;width:auto;min-width:40mm}
.aza-pr-solid{box-sizing:content-box;display:block;height:0;padding:0;border:0;border-top:1.5pt solid #333;margin:0.4mm 0 0}
.aza-pr-inst{flex:none;box-sizing:border-box;margin:0;height:20mm;padding-top:1.5mm;font-size:12.6pt;line-height:5mm;width:187mm}
.aza-pr-problems{display:grid;grid-template-columns:92mm 92mm;column-gap:3mm;flex:none;height:205mm;margin-top:2mm}
.aza-pr-col{display:flex;flex-direction:column}
.aza-pr-cell{box-sizing:border-box;height:41mm;overflow:hidden;display:flex;flex-direction:column;padding-right:2mm}
.aza-pr-l1{margin:0;font-size:12.6pt;line-height:6mm;height:6mm;white-space:nowrap}
.aza-pr-l2{display:flex;align-items:center;height:9mm;font-size:12.6pt;white-space:nowrap}
.aza-pr-vals{margin-right:4mm}
.aza-pr-anslabel{font-weight:700;margin-right:1mm}
.aza-pr-box{display:inline-block;box-sizing:border-box;width:16mm;height:8mm;border:1pt solid #333}
.aza-pr-lower{height:21mm;display:flex;flex-direction:column}
.aza-pr-diffhead,.aza-pr-diffs{margin:0;font-size:12.6pt;line-height:6mm;height:6mm;white-space:nowrap}
.aza-pr-memo{display:flex;align-items:flex-end;font-size:12.6pt;white-space:nowrap}
.aza-pr-memo-note{height:9mm}
.aza-pr-memo-ref{height:9mm}
.aza-pr-memo-diff{height:12mm}
.aza-pr-memo-label{margin-right:1mm;line-height:6mm}
.aza-pr-refbox{display:inline-block;box-sizing:border-box;width:15mm;height:7mm;border:1pt solid #333}
.aza-pr-line{display:inline-block;flex:1;max-width:70mm;min-width:50mm;height:5.5mm;border-bottom:1pt solid #555}
.aza-pr-answers{flex:none;box-sizing:border-box;margin-top:2mm}
.aza-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 0.5mm;padding:0;border:0;border-top:2pt dashed #aaa}
.aza-pr-answers-title{font-weight:700;font-size:12.6pt;height:6mm;line-height:6mm}
.aza-pr-answer-line{display:flex;gap:1.2mm;font-size:10.2pt;line-height:4.5mm;height:10mm;white-space:nowrap}
.aza-pr-ans{display:inline-block;width:17.5mm}
.aza-app-pdf-page .aza-pr-page{box-shadow:none;margin:0}

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