/* ── decimal_multiplication_place_value3_4（小数のかけ算を位取りで説明しよう、単元仕様書 v1.5）── */
/* 画面：問題文、回答案内、選択肢①〜④（1行に1つ）。回答後は正しい答え、解説、位取りの4段階（見えるラベルつき）（§5-3・§7）。 */
#question-text .dpv-q{display:block}
.dpv-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center}
.dpv-guide{margin:4px 0 2px;font-size:15px;font-weight:700;text-align:center;line-height:1.4}
.dpv-guide[hidden]{display:none}
.dpv-choices{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:min(100%,620px);margin:2px auto}
.dpv-choice{position:relative;box-sizing:border-box;min-height:48px;padding:6px 10px 6px 28px;border:3px solid #64748b;border-radius:10px;background:#fff;color:#1e293b;font-size:1.08rem;font-weight:800;font-variant-numeric:tabular-nums;cursor:pointer;touch-action:manipulation;text-align:left;line-height:1.4;overflow-wrap:anywhere}
.dpv-check{position:absolute;top:50%;left:7px;transform:translateY(-50%);font-size:18px;font-weight:900;color:#1d4ed8}
.dpv-choice.dpv-on{background:#dbeafe;border-color:#1d4ed8;color:#1e3a8a}
.dpv-choice:focus-visible{outline:3px solid #f59e0b;outline-offset:1px}
.dpv-choice:disabled{cursor:default;opacity:1}
.dpv-choice.dpv-ok,.dpv-choice.dpv-ok:disabled{border:3px solid #15803d;background:#dcfce7;color:#14532d}
.dpv-choice.dpv-ng,.dpv-choice.dpv-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2;color:#7f1d1d}
.dpv-choice.dpv-right,.dpv-choice.dpv-right:disabled{border:3px solid #15803d;background:#f0fdf4;color:#14532d}
.dpv-ok .dpv-check,.dpv-right .dpv-check{color:#15803d}
.dpv-ng .dpv-check{color:#b91c1c}
.dpv-msg{min-height:1.4em;margin:4px 0 2px;color:#b45309;font-weight:700;text-align:center;line-height:1.4}
.dpv-msg:empty{min-height:0;margin:0}
.feedback.has-text.dpv-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.dpv-correct{margin:2px 0 6px;font-weight:800;font-size:17px;overflow-wrap:anywhere}
.dpv-expl-text{margin:4px 0 6px;word-break:normal;overflow-wrap:anywhere;line-break:strict}
.dpv-trace{list-style:none;margin:6px 0;padding:0;display:flex;flex-direction:column;gap:4px}
.dpv-trace-step{display:flex;align-items:center;gap:8px;padding:4px 8px;border:2px solid #94a3b8;border-radius:8px;background:#f8fafc;font-weight:700;overflow-wrap:anywhere}
.dpv-trace-no{flex:none;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#1e3a8a;color:#fff;font-size:14px}
.dpv-score{margin:6px 0 2px;font-weight:800;color:#1e3a8a}
@media (max-width:360px){.dpv-choice{font-size:.98rem;padding-left:26px}}
.dpv-example .dpv-ex-q{font-weight:700;margin:6px 0 2px;overflow-wrap:anywhere}
.dpv-example .dpv-ex-a{margin:2px 0 8px;overflow-wrap:anywhere}
#page-quiz.active:has(.dpv-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.dpv-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.dpv-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.dpv-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.dpv-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}

/* 印刷：A4縦・2列・1ページ（§7）。題名の枠と記入欄、共通の案内、2列×5問（番号と答えの欄、式2行、選択肢4行）、破線、答え1行。 */
.dpv-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}
.dpv-pr-headrow{display:flex;flex-direction:column;gap:0;flex:none}
.dpv-pr-headrow .pp-fields{height:8mm;margin:1mm 0 0}
.dpv-pr-headrow .pp-field-line{height:6mm}
.dpv-pr-headrow hr.pp-fields-solid{margin:1mm 0 0!important;border:0;border-top:1.5pt solid #333}
.dpv-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}
.dpv-pr-inst{flex:none;box-sizing:border-box;width:186mm;margin:2mm 0 0;font-size:12.5pt;line-height:5.6mm}
.dpv-pr-nobr{white-space:nowrap}
.dpv-pr-problems{flex:none;display:grid;grid-template-columns:91mm 91mm;column-gap:8mm;margin:3mm 0 0}
.dpv-pr-col{display:flex;flex-direction:column}
.dpv-pr-cell{box-sizing:border-box;display:grid;grid-template-columns:13mm 1fr;height:42.5mm;padding:0.4mm 0 0;border-top:2px solid transparent}
.dpv-pr-col .dpv-pr-cell:last-child{border-bottom:2px solid transparent}
.dpv-pr-left{display:flex;flex-direction:column;gap:0}
.dpv-pr-num{font-size:12.5pt;font-weight:700;line-height:6mm}
.dpv-pr-box{font-size:12.5pt;line-height:6mm;white-space:pre}
.dpv-pr-blank{display:inline-block;min-width:5mm;height:6mm;vertical-align:middle}
.dpv-pr-body{min-width:0}
.dpv-pr-q,.dpv-pr-choice{font-size:12.5pt;line-height:6mm;white-space:nowrap}
.dpv-pr-q{font-weight:700}
.dpv-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:5.6mm}
.dpv-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 0.8mm;padding:0;border:0;border-top:2pt dashed #aaa}
.dpv-pr-ansrow{display:grid;grid-template-columns:22mm repeat(10,16.8mm);align-items:baseline;height:6mm;line-height:6mm;font-size:12.5pt;white-space:nowrap}
.dpv-pr-answers-title{font-weight:700;font-size:12.5pt}
.dpv-app-pdf-page .dpv-pr-page{box-shadow:none;margin:0}

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