/* ── equation_unknown_position_model2_1（ずとしきからしかくのかずをもとめよう、単元仕様書 v1.4）── */
/* 画面（§7）：上にぜんぶ、下にぶぶん 1・ぶぶん 2 の部分全体図。しかくの区画は太い破線の枠・□・？。図の下に式、回答欄と共通のテンキー。 */
.eup-q{display:block;font-weight:700;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere}
.eup-nb{white-space:nowrap}
/* 英語の式も□の大きさを日本語とそろえる（Arial の□は小さいため）。 */
.eup-eqsq,.eup-pr-eqsq{font-family:'BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif!important}
.eup-main{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;max-width:560px;margin:0 auto;box-sizing:border-box}
.eup-figwrap{width:100%;max-width:340px}
.eup-fig{display:flex;flex-direction:column;gap:6px;width:100%}
.eup-ftop,.eup-fbot{display:flex;gap:6px}
.eup-reg{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;height:58px;border:2px solid #475569;border-radius:8px;background:#fff}
.eup-whole{background:#eff6ff;border-color:#1e3a8a}
.eup-reg.eup-box{border:3px dashed #b45309;background:#fffbeb}
.eup-lab{font-size:12px;font-weight:700;line-height:1.2;color:#334155;white-space:nowrap}
.eup-val{font-size:1.4rem;font-weight:800;line-height:1.2}
.eup-sq,.eup-qm{font-size:1.3rem;font-weight:800;line-height:1.2;color:#b45309}
.eup-sq{margin-right:2px}
.eup-reg.eup-box .eup-lab{width:100%;text-align:center}
.eup-reg.eup-box{flex-direction:row;flex-wrap:wrap;align-content:center}
.eup-eqwrap{text-align:center}
.eup-eq{display:inline-block;font-size:1.6rem;font-weight:800;letter-spacing:.02em;white-space:nowrap}
.eup-field{display:flex;flex-direction:column;align-items:center;gap:2px}
.eup-label{font-weight:700;font-size:.95rem}
.eup-input{box-sizing:border-box;width:84px;height:48px;font-size:1.4rem;text-align:center;border:2px solid #475569;border-radius:8px;background:#fff}
.eup-input:focus{outline:3px solid #2563eb;outline-offset:1px}
.eup-input.eup-ok{border-color:#16a34a;background:#f0fdf4}
.eup-input.eup-ng{border:3px solid #dc2626;background:#fef2f2}
.eup-msg{min-height:1.4em;margin:0;color:#b91c1c;font-weight:700;text-align:center;word-break:keep-all;overflow-wrap:anywhere}
/* ヒントと学習内容の日本語は語の区切り（空白）で折り返す（独立検査r1）。ヒントの題名は設けないので空の行を出さない。 */
#page-quiz.active:has(.eup-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.eup-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.eup-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.eup-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0;text-align:left;word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty}
#page-lesson:has(.eup-ex-fig){word-break:keep-all;overflow-wrap:anywhere}
#page-lesson:has(.eup-ex-fig) p{text-wrap:pretty}
.feedback.has-text.eup-feedback{display:flex;flex-direction:column;align-items:center;height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}
.eup-fb-ans{font-size:.95em}
.eup-expl-text{margin:4px 0 6px;line-height:1.8;word-break:keep-all;overflow-wrap:anywhere}
.eup-ex{margin:6px 0 2px;word-break:keep-all;overflow-wrap:anywhere}
.eup-ex-fig{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:300px;margin:4px auto}
.eup-ex-fig .eup-fig{width:100%}
@media (max-width:360px){.eup-reg{height:54px}.eup-val{font-size:1.25rem}.eup-eq{font-size:1.4rem}}

/* 印刷：A4横・1ページ（§7。v1.4）。使える領域285×198mm。題名の枠（紙面の幅いっぱい）と、その下の記入らん・実線（共通仕様 CP-08a・CP-08b）、
   共通の問い1回、2列×5段（区画140×27mm、段の間隔1mm、列の間隔5mm）、境界線、こたえ、解答2行。 */
.eup-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}
.eup-pr-top{flex:none}
.eup-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}
.eup-pr-top .pp-fields{height:8mm;margin:1mm 0 0;gap:6mm;font-size:12.5pt!important}
.eup-pr-top .pp-fields-group{gap:4mm}
.eup-pr-top .pp-field{gap:1mm}
.eup-pr-top .pp-field-line{width:16mm;height:6.5mm}
.eup-pr-top .pp-field-name .pp-field-line{min-width:40mm}
.eup-pr-top hr.pp-fields-solid{display:none}
.eup-pr-solid{box-sizing:content-box;height:0;margin:1mm 0 1mm;padding:0;border:0;border-top:1.5pt solid #333}
.eup-pr-inst{margin:0 0 1mm;font-size:13pt;font-weight:700;line-height:7mm;height:7mm;flex:none;white-space:nowrap}
.eup-pr-problems{flex:none;display:grid;grid-template-columns:136mm 136mm;column-gap:5mm}
.eup-pr-col{display:flex;flex-direction:column;gap:1mm}
.eup-pr-cell{box-sizing:border-box;height:27mm;display:flex;align-items:center;gap:0;border:0.3mm solid transparent;border-radius:1.5mm}
.eup-pr-num{flex:none;width:10mm;text-align:center;font-weight:700;font-size:12.5pt}
.eup-pr-fig{flex:none;width:64mm;display:flex;flex-direction:column;gap:2mm}
.eup-pr-ftop{display:flex}
.eup-pr-fbot{display:flex;gap:2mm}
.eup-pr-reg{box-sizing:border-box;height:9mm;display:flex;align-items:center;justify-content:center;gap:2mm;border:0.35mm solid #475569;border-radius:1mm;white-space:nowrap}
.eup-pr-ftop .eup-pr-reg{width:64mm}
.eup-pr-fbot .eup-pr-reg{width:31mm}
.eup-pr-reg.eup-pr-box{border:0.7mm dashed #b45309}
.eup-pr-lab{font-size:9pt;font-weight:700;line-height:1}
.eup-pr-val,.eup-pr-sq,.eup-pr-qm{line-height:1}
.eup-pr-val{font-size:12.5pt;font-weight:800}
.eup-pr-sq,.eup-pr-qm{font-size:12.5pt;font-weight:800;color:#b45309}
.eup-pr-sq{margin-right:-1mm}
.eup-pr-side{flex:none;width:44mm;margin-left:6mm;display:flex;flex-direction:column;justify-content:center;gap:2mm}
.eup-pr-eq{display:block;font-size:13pt;font-weight:700;line-height:6mm;white-space:nowrap}
.eup-pr-ansrow{display:flex;align-items:center;gap:1.5mm}
.eup-pr-anslab{font-size:13pt;font-weight:700;white-space:nowrap}
.eup-pr-ansbox{flex:none;box-sizing:border-box;width:20mm;height:10mm;border:0.45mm solid #000;border-radius:1mm}
.eup-pr-answers{flex:none;box-sizing:border-box;width:277mm;margin-top:2mm}
.eup-pr-border{box-sizing:content-box;display:block;height:0;margin:0 0 0;padding:0;border:0;border-top:2pt dashed #aaa}
.eup-pr-anshead{margin:0;height:6mm;font-size:12.5pt;font-weight:700;line-height:6mm}
.eup-pr-aline{margin:0;height:7mm;font-size:12.5pt;line-height:7mm;white-space:nowrap;display:grid;grid-template-columns:repeat(5,55.4mm)}
.eup-pr-page[lang=en] .eup-pr-inst,.eup-pr-page[lang=en] .eup-pr-aline,.eup-pr-page[lang=en] .eup-pr-lab,.eup-pr-page[lang=en] .eup-pr-eq,.eup-pr-page[lang=en] .eup-pr-anslab{font-family:Arial,'Helvetica Neue','Liberation Sans',sans-serif}
.eup-app-pdf-page .eup-pr-page{box-shadow:none;margin:0}

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