/* ── multi_event_quantity_trace2_1（ふえたりへったりをじゅんにおおう、単元仕様書 v1.5）── */
/* 画面：問題文（場面文と問い）、時点列の図（はじめ→1かいめ→…）、さいごの かずの入力欄、共通のテンキー、案内。回答後は解説（§5-3・§7）。 */
#question-text .meq-q{display:block;word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty}
.meq-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:10px}
.meq-fig{max-width:100%}
.meq-tl{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 4px;max-width:100%}
.meq-pt{box-sizing:border-box;min-width:58px;min-height:52px;padding:4px 6px;border-radius:8px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:800;line-height:1.25;text-align:center}
.meq-pt-start{border:3px double #1e3a8a;background:#eff6ff}
.meq-pt-up{border:3px solid #15803d}
.meq-pt-down{border:3px dashed #c2410c}
.meq-pt-head{font-size:1.05rem;white-space:nowrap}
.meq-pt-num{font-size:1.25rem}
.meq-pt-word{font-size:.92rem;white-space:normal;max-width:6.5em}
.meq-arrow{font-weight:900;font-size:1.2rem;color:#334155}
.meq-hl{box-shadow:0 0 0 4px #facc15}
.meq-arrow.meq-hl{box-shadow:none;color:#a16207;background:#fef08a;border-radius:4px;padding:0 3px}
.meq-fields{display:flex;justify-content:center}
.meq-field{display:inline-flex;align-items:center;gap:6px;font-weight:800;font-size:1.1rem}
.meq-label{white-space:nowrap}
.meq-input{width:3.2em;min-height:48px;font-size:1.4rem;padding:0 4px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:8px;text-align:center;font-family:inherit;font-weight:800;box-sizing:border-box}
.meq-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.meq-input.meq-ok,.meq-input.meq-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.meq-input.meq-ng,.meq-input.meq-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.meq-msg{word-break:keep-all;min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4;max-width:560px;text-wrap:pretty}
.meq-msg:empty{min-height:0;margin:0}
.meq-main .ufk-keypad{margin-top:2px}
.feedback.has-text.meq-feedback{display:block;height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}
.meq-expl-text{margin:4px 0 6px;line-height:1.8;word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty}
#page-quiz.active:has(.meq-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.meq-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.meq-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.meq-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0;word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty}
#page-quiz:has(#question-text[data-unit="multi_event_quantity_trace2_1"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="multi_event_quantity_trace2_1"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}

/* 印刷：A4縦・1ページ（§7。v1.4〜v1.5）。題名の枠（紙面の幅いっぱい）と、その下の記入らん・実線（共通仕様 CP-08a・CP-08b。v1.5）、共通の問い1回、2列×5段の各問（番号と場面文、時点列の図と答えの枠）、破線、解答2行。 */
.meq-pr-page{width:190mm;height:277mm;box-sizing:border-box;display:flex;flex-direction:column;padding:0.8mm 0 0;margin:0 auto 8mm;overflow:hidden;background:#fff;color:#000;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.meq-pr-top{flex:none}
.meq-pr-title{box-sizing:border-box;width:100%;margin:0;height:8mm;padding:0 2mm;font-size:13pt;font-weight:700;line-height:calc(8mm - 3pt);white-space:nowrap;text-align:center;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.meq-pr-top .pp-fields{height:8mm;margin:1mm 0 0;gap:5mm;font-size:12pt!important}
.meq-pr-top .pp-fields-group{gap:3mm}
.meq-pr-top .pp-field{gap:1mm}
.meq-pr-top .pp-field-line{width:14.5mm;height:6.5mm}
.meq-pr-top .pp-field-name .pp-field-line{min-width:40mm}
.meq-pr-top hr.pp-fields-solid{display:none}
.meq-pr-solid{box-sizing:content-box;height:0;margin:1mm 0 1mm;padding:0;border:0;border-top:1.5pt solid #333}
.meq-pr-inst{margin:0 0 0.8mm;font-size:12.6pt;line-height:6.2mm;flex:none}
.meq-pr-problems{flex:none;display:grid;grid-template-columns:93mm 93mm;column-gap:4mm}
.meq-pr-col{display:flex;flex-direction:column;gap:0.8mm}
.meq-pr-cell{box-sizing:border-box;height:45.5mm;border:2px solid transparent;border-radius:1mm;padding:0.6mm 1.5mm 0.8mm 1.5mm;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;gap:1mm}
.meq-pr-q{margin:0;font-size:12.6pt;line-height:5.3mm;word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty}
.meq-pr-num{font-weight:700}
.meq-pr-band{flex:none}
.meq-pr-tl{display:flex;align-items:center;gap:0;height:12mm}
.meq-pr-tl .meq-pt{min-width:0;min-height:0;width:10.6mm;height:12mm;padding:0;border-radius:1mm;border-width:0.35mm;font-size:9pt;line-height:3.6mm;font-weight:700}
.meq-pr-tl .meq-pt-start{width:11.2mm;padding:0 0.4mm;border:0.6mm double #1e3a8a;background:#fff}
.meq-pr-tl .meq-pt-up{border:0.35mm solid #15803d}
.meq-pr-tl .meq-pt-down{border:0.35mm dashed #c2410c}
.meq-pr-tl .meq-pt-head,.meq-pr-tl .meq-pt-num,.meq-pr-tl .meq-pt-word{font-size:9pt;max-width:none}
.meq-pr-tl .meq-arrow{width:2.5mm;text-align:center;font-size:9pt;font-weight:900}
.meq-pr-frame{display:block;box-sizing:border-box;width:11mm;height:10mm;margin-left:auto;border:0.4mm solid #000;border-radius:1mm}
.meq-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;margin-bottom:1mm}
.meq-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0.5mm 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.meq-pr-ansbody{display:flex;gap:2mm}
.meq-pr-anshead{flex:none;width:18mm;font-weight:700;font-size:12.6pt;line-height:5.6mm;white-space:nowrap}
.meq-pr-ansrows{flex:1;display:flex;flex-direction:column}
.meq-pr-ansrow{display:grid;grid-template-columns:repeat(5,1fr)}
.meq-pr-answer{font-size:12.6pt;line-height:5.6mm;white-space:pre}
.meq-pr-page[lang=en] .meq-pr-q,.meq-pr-page[lang=en] .meq-pr-answer,.meq-pr-page[lang=en] .meq-pr-inst,.meq-pr-page[lang=en] .meq-pr-anshead,.meq-pr-page[lang=en] .meq-pr-tl{font-family:Arial,'Helvetica Neue','Liberation Sans',sans-serif}
.meq-pr-page[lang=en] .meq-pr-tl .meq-pt-word{font-size:9pt;line-height:3.4mm}
.meq-app-pdf-page .meq-pr-page{box-shadow:none;margin:0}

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