/* ── arithmetic_sequence_pair_sum3_4（数列を対にして和を求めよう、単元仕様書 v1.3）── */
/* 画面：問題文の下に、数のこ数、数のならびの図、図の下の代替文、答えの欄、回答案内、テンキー、「こたえる！」（§5-3・§7 画面表示）。 */
.asps-main{margin:6px auto 4px;max-width:100%}
.asps-diagram{margin:4px auto;max-width:100%;text-align:center}
.asps-count{margin:0 0 4px;font-weight:700;font-size:1rem}
.asps-figure{max-width:100%}
/* 600 CSS px 以上：1行の図（組の線と組の番号）。せまい幅：折り返すならび（組の番号だけ。ASP-18）。 */
.asps-svg{display:block;width:100%;height:auto;margin:0 auto}
.asps-wrap{display:none}
.asps-box{fill:#eff6ff;stroke:#1e3a8a;stroke-width:2.5}
.asps-num{font-size:22px;font-weight:700;fill:#111827;font-family:inherit}
.asps-pairno{font-size:16px;font-weight:700;fill:#374151;font-family:inherit}
.asps-midlabel{font-size:16px;font-weight:700;fill:#b45309;font-family:inherit}
.asps-mid .asps-pairno{fill:#b45309}
.asps-ring{fill:none;stroke:#ea580c;stroke-width:3.5;display:none}
.asps-diagram:not([data-asps-stage="0"]) .asps-ring{display:inline}
.asps-diagram[data-asps-stage="4"] .asps-markable .asps-box{fill:#fde68a;stroke:#92400e;stroke-width:4.5}
.asps-alt{margin:6px auto 2px;font-size:.95rem;color:#374151;max-width:36em;overflow-wrap:anywhere}
@media (max-width:599.98px){
  .asps-svg{display:none}
  .asps-wrap{display:block}
  .asps-wrow{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 4px}
  .asps-wcell{display:flex;flex-direction:column;align-items:center;width:2.9em}
  .asps-wbox{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:2.9em;height:2.2em;border:2.5px solid #1e3a8a;border-radius:6px;background:#eff6ff;font-weight:700;font-size:1.05rem}
  .asps-wpair{font-weight:700;font-size:.9rem;color:#374151;line-height:1.4}
  .asps-mid .asps-wpair,.asps-wmid{color:#b45309}
  .asps-wmid{margin:4px 0 0;font-weight:700;font-size:.95rem}
  .asps-diagram:not([data-asps-stage="0"]) .asps-end .asps-wbox{outline:3.5px solid #ea580c;outline-offset:2px;border-radius:50%}
  .asps-diagram[data-asps-stage="4"] .asps-markable .asps-wbox{background:#fde68a;border:4.5px solid #92400e}
}
.asps-fields{display:flex;justify-content:center;align-items:center;gap:8px;margin:6px auto 2px;font-size:1.3rem;font-weight:700}
.asps-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}
.asps-input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.asps-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.asps-input.asps-input-ok{border:3px solid #15803d;background:#dcfce7}
.asps-input.asps-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.asps-guide{margin:6px auto 4px;font-weight:700;text-align:center;max-width:32em}
.asps-msg{margin:2px auto 0;color:#b91c1c;font-weight:700;font-size:.95rem;text-align:center;max-width:32em}
.asps-msg:empty{display:none}
.feedback.has-text.asps-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.asps-correct{margin:2px 0 6px;font-weight:700}
.asps-expl-text{margin:4px 0 6px;overflow-wrap:anywhere}
.asps-lesson-ex{display:block;margin-top:8px}
.asps-lesson-q{display:block;font-weight:700;overflow-wrap:anywhere}
.asps-lesson-a{display:block;overflow-wrap:anywhere}
.asps-lesson-ex .asps-diagram{margin:4px 0}
#page-quiz.active:has(.asps-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.asps-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.asps-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.asps-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0;overflow-wrap:anywhere}

/* 印刷：A4縦・1列・1ページ（§7。用紙の余白10mm、本文190×277mm。共通の領域42mm：題名の枠9mm、記入欄と実線8mm、共通の案内3行19.5mm。
   各問19mm：1行目7mm（番号14mm・間2mm・数のならび13ます×8.5mm・間2mm・答えの行）、2行目4.5mm（数のこ数・組の番号）。
   答えの領域36mm：見出し6mm、2つの欄（各90mm・間6mm）に5行ずつ）。 */
.asps-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}
.asps-pr-head{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:190mm}
.asps-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}
.asps-pr-head hr.pp-fields-solid{margin:1mm 0!important}
.asps-pr-inst{flex:none;box-sizing:border-box;margin:1mm 0 0;padding:0 3mm;height:19.5mm;font-size:12.6pt;line-height:6.5mm;overflow:hidden}
.asps-pr-problems{display:grid;grid-template-rows:repeat(10,19mm);flex:none;margin-top:3mm}
.asps-pr-cell{box-sizing:border-box;height:19mm;overflow:hidden;padding-top:1.5mm}
.asps-pr-row1{display:flex;align-items:center;height:7mm;font-size:12.6pt;line-height:7mm;white-space:nowrap}
.asps-pr-row2{display:flex;align-items:center;height:4.5mm;font-size:9.2pt;line-height:4.5mm;white-space:nowrap}
.asps-pr-num{flex:none;width:14mm;font-weight:700}
.asps-pr-count{flex:none;width:14mm}
.asps-pr-list{flex:none;display:flex;width:110.5mm;margin:0 2mm}
.asps-pr-n,.asps-pr-k{flex:none;width:8.5mm;text-align:center}
.asps-pr-ask{flex:none;white-space:nowrap}
.asps-pr-blank{display:inline-block;width:16mm;white-space:pre;overflow:hidden;vertical-align:bottom}
.asps-pr-answers{flex:none;box-sizing:border-box;margin-top:1mm}
.asps-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 0.5mm;padding:0;border:0;border-top:2pt dashed #aaa}
.asps-pr-answers-title{font-weight:700;font-size:12.6pt;height:6mm;line-height:6mm}
.asps-pr-ans-cols{display:grid;grid-template-columns:90mm 90mm;column-gap:6mm}
.asps-pr-ans{margin:0;font-size:10.2pt;line-height:5mm;height:5mm;white-space:nowrap;overflow:hidden}
.asps-app-pdf-page .asps-pr-page{box-shadow:none;margin:0}

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