/* ── multiple_condition_range3_5（倍数をはんい・余り・位置の条件でしぼろう、単元仕様書 v1.2）── */
/* 画面：問いの文、条件カード（1条件1行、以上・以下を太字）、答えの欄、回答案内、テンキー、こたえるボタン（§5-3・§7 画面表示）。 */
.question-text.mcr-question{text-align:left;display:flex;flex-direction:column;align-items:stretch;gap:6px}
.mcr-stem{display:block;font-weight:700;overflow-wrap:anywhere}
.mcr-cards{list-style:none;margin:2px 0 0;padding:6px 10px;display:flex;flex-direction:column;gap:3px;border:2px solid #94a3b8;border-radius:10px;background:#f8fafc;max-width:100%;box-sizing:border-box}
/* 条件の1行は折り返しても1つの条件として読めるよう、行頭の記号のあとに字下げして続ける。 */
.mcr-card-line{display:flex;align-items:baseline;gap:.25em;font-size:1.05rem;line-height:1.5;color:#0f172a;overflow-wrap:anywhere}
.mcr-bullet{flex:none;font-weight:700}
.mcr-card-text{min-width:0}
.mcr-bound{font-weight:900;color:#1d4ed8}
.mcr-main{display:flex;flex-direction:column;align-items:center;gap:6px;margin:4px 0 8px;max-width:100%}
.mcr-input-row{display:flex;justify-content:center;max-width:100%}
.mcr-input{width:7em;min-height:44px;font-size:1.4rem;padding:2px 6px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:10px;text-align:center;font-family:inherit;font-weight:700;box-sizing:border-box}
.mcr-input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.mcr-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.mcr-input.mcr-input-ok{border:3px solid #15803d;background:#dcfce7}
.mcr-input.mcr-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.mcr-guide{margin:6px auto 4px;font-weight:700;text-align:center;max-width:32em}
.mcr-msg{margin:2px auto 0;color:#b91c1c;font-weight:700;font-size:1rem;text-align:center;max-width:32em}
.mcr-msg:empty{display:none}
.feedback.has-text.mcr-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.mcr-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;font-size:1rem}
#page-quiz.active:has(.mcr-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.mcr-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.mcr-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.mcr-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0;overflow-wrap:anywhere}

/* 印刷：A4縦・2列・1ページ（§7。用紙の余白10mm、本文190×277mm、各列91mm・列の間4mm、各問の領域は幅91mm・高さ45.2mm）。 */
.mcr-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}
.mcr-pr-head-area{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:190mm;height:22mm}
.mcr-pr-title{box-sizing:border-box;margin:0;height:8mm;font-size:14.3pt;font-weight:700;line-height:7mm;text-align:center;white-space:nowrap;padding:0;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.mcr-pr-head-area .pp-fields{margin-top:1mm}
.mcr-pr-head-area hr.pp-fields-solid{margin:1mm 0!important}
.mcr-pr-problems{display:grid;grid-template-columns:91mm 91mm;column-gap:4mm;flex:none;margin-top:2mm}
.mcr-pr-col{display:grid;grid-template-rows:repeat(5,45.2mm)}
.mcr-pr-cell{box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;width:91mm;height:45.2mm}
/* 問と問のさかいめに点線（線は背景で描き、各問の高さを減らさない）。 */
.mcr-pr-cell+.mcr-pr-cell{background-image:linear-gradient(to right,#888 50%,transparent 50%);background-size:1.2mm 0.3mm;background-repeat:repeat-x;background-position:left top;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.mcr-pr-text{width:88mm;height:31.2mm;flex:none;font-size:12.6pt;line-height:5.2mm;overflow:hidden}
.mcr-pr-stem,.mcr-pr-line{margin:0;overflow-wrap:break-word}
.mcr-pr-line{padding-left:0}
.mcr-pr-row{display:flex;align-items:center;gap:1mm;height:8mm;flex:none;margin-top:1mm;font-size:12.6pt;white-space:nowrap}
.mcr-pr-box{display:inline-block;box-sizing:border-box;width:25mm;height:8mm;border:0.35mm solid #333;flex:none}
.mcr-pr-answers{flex:none;box-sizing:border-box;margin-top:2mm}
.mcr-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.mcr-pr-answers-title{font-weight:700;font-size:12.6pt;height:6mm;line-height:6mm}
.mcr-pr-answer-grid{display:grid;grid-template-columns:repeat(5,36mm);column-gap:1mm}
.mcr-pr-ans{margin:0;font-size:10.2pt;line-height:4.5mm;height:4.5mm;white-space:nowrap}
.mcr-app-pdf-page .mcr-pr-page{box-shadow:none;margin:0}

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