/* ── exchange_discount_payment2_5（こうかんとわりびきから必要なしはらいを求めよう、単元仕様書 v1.2）── */
/* 画面：問題文、条件の表、A群・B群は答えの欄と単位と共通のテンキー、C群は4択、案内。回答後はこうかんの表と解説（§5-3・§7）。 */
#question-text .edp-q{display:block;overflow-wrap:anywhere}
.edp-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.edp-tablewrap,.edp-stagewrap{max-width:100%}
.edp-table{border-collapse:collapse;font-size:16px;line-height:1.4;color:#111827;background:#fff;max-width:100%}
.edp-table th,.edp-table td{border:1.5px solid #64748b;padding:5px 9px;text-align:left;vertical-align:middle;overflow-wrap:anywhere}
.edp-table th{background:#f1f5f9;font-weight:700;white-space:nowrap}
.edp-table td{font-weight:800}
.edp-field{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:1.2rem}
.edp-input{width:6em;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}
.edp-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.edp-input.edp-ok,.edp-input.edp-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.edp-input.edp-ng,.edp-input.edp-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.edp-choices{display:flex;flex-direction:column;gap:8px;width:min(100%,480px);margin:2px auto}
.edp-choice{position:relative;box-sizing:border-box;min-height:48px;padding:6px 10px 6px 34px;border:3px solid #64748b;border-radius:10px;background:#fff;color:#1e293b;font-size:1.05rem;font-weight:800;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.edp-check{position:absolute;top:50%;left:10px;transform:translateY(-50%);font-size:18px;font-weight:900;color:#1d4ed8}
.edp-choice.edp-on{background:#dbeafe;border-color:#1d4ed8;color:#1e3a8a}
.edp-choice:focus-visible{outline:3px solid #f59e0b;outline-offset:1px}
.edp-choice:disabled{cursor:default;opacity:1}
.edp-choice.edp-ok,.edp-choice.edp-ok:disabled{border:3px solid #15803d;background:#dcfce7;color:#14532d}
.edp-choice.edp-ng,.edp-choice.edp-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2;color:#7f1d1d}
.edp-choice.edp-right,.edp-choice.edp-right:disabled{border:3px dashed #15803d;background:#fff;color:#14532d}
.edp-ok .edp-check,.edp-right .edp-check{color:#15803d}
.edp-ng .edp-check{color:#b91c1c}
.edp-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.edp-guide[hidden]{display:none}
.edp-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4;max-width:560px}
.edp-msg:empty{min-height:0;margin:0}
.edp-main .ufk-keypad{margin-top:4px}
.feedback.has-text.edp-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.edp-correct{margin:2px 0 6px;font-weight:800;font-size:17px;overflow-wrap:anywhere}
.edp-stage{border-collapse:collapse;font-size:14px;line-height:1.35;margin:6px 0;background:#fff;max-width:100%}
.edp-stage th,.edp-stage td{border:1px solid #94a3b8;padding:3px 6px;text-align:center}
.edp-stage thead th{background:#e0e7ff;color:#1e3a8a;word-break:keep-all;overflow-wrap:normal}
.edp-stagewrap{overflow-x:auto}
.edp-stage tbody th{background:#f8fafc;text-align:left;white-space:nowrap}
.edp-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.edp-score{margin:6px 0 2px;font-weight:800;color:#1e3a8a}
.edp-example .edp-ex-q{margin:6px 0 2px;font-weight:700}
.edp-example .edp-ex-a{margin:0 0 8px}
#page-quiz.active:has(.edp-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.edp-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.edp-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.edp-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.edp-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz.active:has(.edp-main) #tts-btn{min-width:44px;min-height:44px}
#page-quiz:has(#question-text[data-unit="exchange_discount_payment2_5"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="exchange_discount_payment2_5"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
@media (max-width:400px){.edp-table{font-size:14px}.edp-table th,.edp-table td{padding:4px 6px}.edp-table th{white-space:normal}.edp-stage{font-size:12px}.edp-stage th,.edp-stage td{padding:2px 3px}}

/* 印刷：A4縦・2列・1ページ（§7）。題名の枠と記入欄、共通の問い、2列×5段（番号、条件の表、答えの行又は4択）、破線、答え（1行）。 */
.edp-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}
.edp-pr-headrow{display:flex;flex-direction:column;gap:0;flex:none}
.edp-pr-headrow .pp-fields{height:7mm;margin:1mm 0 0}
.edp-pr-headrow .pp-field-line{height:6mm}
.edp-pr-headrow hr.pp-fields-solid{margin:1mm 0 0!important;border:0;border-top:1.5pt solid #333}
.edp-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}
.edp-pr-inst{flex:none;box-sizing:border-box;margin:0.6mm 0 0.6mm;font-size:12.5pt;line-height:5mm}
.edp-pr-problems{flex:none;display:grid;grid-template-columns:93mm 93mm;column-gap:4mm}
.edp-pr-col{display:flex;flex-direction:column}
.edp-pr-cell{box-sizing:border-box;height:43mm;border-top:2px solid transparent;padding:1.2mm 3mm 0 0;overflow:hidden;display:grid;grid-template-columns:10.5mm minmax(0,1fr);grid-auto-rows:min-content;row-gap:1mm;align-content:start}
.edp-pr-col .edp-pr-cell:last-child{border-bottom:2px solid transparent}
.edp-pr-num{font-size:12.5pt;font-weight:700;line-height:5.2mm;grid-row:1 / span 3;white-space:nowrap}
.edp-pr-cell>table,.edp-pr-blank,.edp-pr-choices{grid-column:2}
.edp-pbox.edp-pbox-A{width:20mm}
.edp-pbox.edp-pbox-B{width:24mm}
.edp-pr-table{border-collapse:separate;border-spacing:0;border-top:1.5px solid #000;border-left:1.5px solid #000;font-size:10pt;line-height:4.2mm}
.edp-pr-table th,.edp-pr-table td{border:0;border-right:1.5px solid #000;border-bottom:1.5px solid #000;padding:0.1mm 1.5mm;text-align:left;white-space:nowrap}
.edp-pr-table th{font-weight:700}
.edp-pr-blank{font-size:12.5pt;line-height:8mm;white-space:nowrap}
.edp-pbox{display:inline-block;box-sizing:border-box;width:22mm;height:7mm;border:2px solid #000;vertical-align:middle;margin:0 1mm}
.edp-pr-choices{display:grid;grid-template-columns:1fr 1fr;column-gap:2mm;row-gap:0.5mm}
.edp-pr-choices.edp-pr-c3{grid-template-columns:1fr}
.edp-pr-choice{font-size:12.5pt;line-height:4.6mm;overflow-wrap:anywhere}
.edp-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:5mm}
.edp-pr-dashed{box-sizing:content-box;display:block;height:0;margin:1.5mm 0 0.6mm;padding:0;border:0;border-top:2pt dashed #aaa}
.edp-pr-ansbody{display:grid;grid-template-columns:auto 1fr;column-gap:3mm;align-items:start}
.edp-pr-ansrow{display:grid;grid-template-columns:repeat(5,1fr);column-gap:3mm}
.edp-pr-anshead{font-weight:700;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.edp-pr-ans{font-size:10pt;line-height:5mm;white-space:nowrap}
.edp-app-pdf-page .edp-pr-page{box-shadow:none;margin:0}

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