/* ── multiple_three_set_count2_5（3種類の倍数を重なりなく数えよう、単元仕様書 v1.2）── */
/* 画面：問題文の下に3つの円の図（A群・B群）、答えの欄、回答案内、テンキー（§5-3・§7 画面表示）。 */
.mtsc-main{display:flex;flex-direction:column;align-items:center;margin:4px 0 6px;max-width:100%}
.mtsc-figure{margin:0;width:100%;max-width:220px;box-sizing:border-box;display:flex;justify-content:center}
.mtsc-fig{display:block;width:100%;height:auto;max-width:220px}
.mtsc-fig-label{fill:#111827;font-weight:700;font-variant-numeric:tabular-nums}
.mtsc-fields{display:flex;justify-content:center;align-items:center;gap:8px;margin:4px auto 2px}
.mtsc-input{width:6.5em;max-width:60vw;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}
.mtsc-input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.mtsc-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.mtsc-input.mtsc-input-ok{border:3px solid #15803d;background:#dcfce7}
.mtsc-input.mtsc-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.mtsc-guide{margin:6px auto 4px;font-weight:700;text-align:center;max-width:32em}
.mtsc-msg{margin:2px auto 0;color:#b91c1c;font-weight:700;font-size:.95rem;text-align:center;max-width:32em}
.mtsc-msg:empty{display:none}
.feedback.has-text.mtsc-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.mtsc-expl-text{margin:4px 0 6px;overflow-wrap:anywhere}
#page-quiz.active:has(.mtsc-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.mtsc-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.mtsc-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.mtsc-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}

/* 印刷：A4縦・2列×5段・1ページ（§7。用紙の余白10mm、本文190×277mm、列91mm・列の間4mm、各問の領域46mm）。 */
.mtsc-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}
.mtsc-pr-head{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:186mm;height:18mm}
.mtsc-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}
.mtsc-pr-fields{display:flex;gap:9mm;align-items:flex-end;height:7mm;margin-top:1mm;font-size:12.5pt;line-height:7mm;white-space:nowrap}
.mtsc-pr-group{display:inline-flex;align-items:flex-end;gap:4mm;flex:none}
.mtsc-pr-field{display:inline-flex;align-items:flex-end;gap:1.5mm;flex:none}
.mtsc-pr-field-line{display:inline-block;box-sizing:border-box;width:13mm;height:5.5mm;border-bottom:1pt solid #555}
.mtsc-field-name{flex:1;min-width:0}
.mtsc-field-name .mtsc-pr-field-line{flex:1;width:auto;min-width:40mm}
.mtsc-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}
.mtsc-pr-problems{display:grid;grid-template-columns:91mm 91mm;column-gap:4mm;flex:none;height:230mm;margin-top:2mm}
.mtsc-pr-col{display:flex;flex-direction:column}
.mtsc-pr-cell{box-sizing:border-box;height:46mm;overflow:hidden;display:flex;flex-direction:column;padding-right:3mm}
.mtsc-pr-q{margin:0;font-size:12.5pt;line-height:5.3mm;max-height:21.2mm;overflow:hidden}
.mtsc-pr-band{display:flex;align-items:flex-start;margin-top:1mm;height:22.4mm;position:relative}
.mtsc-pr-anslabel{font-size:12.5pt;line-height:8mm;font-weight:700;margin-right:1mm}
.mtsc-pr-box{display:inline-block;box-sizing:border-box;width:24mm;height:8mm;border:1pt solid #333}
.mtsc-pr-fig{position:absolute;left:64.5mm;top:0;width:23.5mm;height:22.4mm}
.mtsc-pr-fig .mtsc-fig-print{display:block;width:23.5mm;height:22.4mm}
.mtsc-pr-answers{flex:none;box-sizing:border-box;margin-top:1mm}
.mtsc-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 0.5mm;padding:0;border:0;border-top:2pt dashed #aaa}
.mtsc-pr-answers-title{font-weight:700;font-size:12.5pt;height:6mm;line-height:6mm}
.mtsc-pr-answer-line{font-size:10.2pt;line-height:4.5mm;height:4.5mm;white-space:pre}
.mtsc-app-pdf-page .mtsc-pr-page{box-shadow:none;margin:0}

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