/* ── nonadjacent_sequence_rule3_1（はなれた かずから ならびを みぬこう、単元仕様書 v1.5）── */
/* 画面（§7）：7つの枠（折り返さない）、既知の2枠の上のラベル、しるしの枠の下のラベル、枠の左上の位置の番号、ヒントの強調・矢印・一つぶん、回答欄と共通のテンキー。 */
.nsr-q{display:block;font-weight:700;line-height:1.5}
.nsr-main{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;max-width:560px;margin:0 auto;box-sizing:border-box}
.nsr-figwrap{width:100%;max-width:420px}
.nsr-fig{display:flex;flex-direction:column;width:100%}
.nsr-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));column-gap:4px;position:relative}
.nsr-steprow{min-height:20px}
.nsr-arrowrow{min-height:14px}
.nsr-toprow{min-height:34px;align-items:end}
.nsr-botrow{min-height:22px}
.nsr-klabel{justify-self:center;width:max-content;box-sizing:border-box;padding:1px 3px;border:1px solid #93c5fd;border-radius:6px;background:#eff6ff;text-align:center;font-size:12px;font-weight:700;line-height:1.2;color:#1e3a8a}
.nsr-kword,.nsr-pr-kword{display:block;white-space:nowrap}
/* 両端の枠のラベルは、カードの内側の余白に収まるよう少しだけ内側へ寄せる（v1.5）。 */
.nsr-klabel.nsr-kl-first{justify-self:start;margin-left:-15px}
.nsr-klabel.nsr-kl-last{justify-self:end;margin-right:-15px}
.nsr-klabel.nsr-kl-near{transform:translateX(10px)}
.nsr-tlabel{justify-self:center;width:120px;text-align:center;font-size:12px;font-weight:700;line-height:1.4;color:#92400e;white-space:nowrap}
.nsr-tlabel.nsr-tl-left,.nsr-klabel.nsr-tl-left{justify-self:start;text-align:left}
.nsr-tlabel.nsr-tl-right,.nsr-klabel.nsr-tl-right{justify-self:end;text-align:right}
.nsr-box{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:52px;border:2px solid #64748b;border-radius:8px;background:#fff}
.nsr-known{border-color:#1e3a8a;background:#eff6ff}
.nsr-target{border:3px solid #b45309;background:#fffbeb}
.nsr-box.nsr-hl{box-shadow:0 0 0 3px #facc15;background:#fef9c3}
.nsr-pos{position:absolute;left:3px;top:1px;font-size:12px;line-height:1;color:#475569}
.nsr-val{font-size:1.35rem;font-weight:800;margin-top:6px}
.nsr-target .nsr-val{color:#b45309}
.nsr-arrow{display:block;grid-row:1;margin:0 25%;height:14px}
.nsr-arrow svg{display:block;width:100%;height:100%}
.nsr-step{justify-self:center;font-size:13px;font-weight:800;color:#b45309;white-space:nowrap;align-self:end}
.nsr-field{display:flex;flex-direction:column;align-items:center;gap:2px}
.nsr-label{font-weight:700;font-size:.95rem}
.nsr-input{box-sizing:border-box;width:84px;height:48px;font-size:1.4rem;text-align:center;border:2px solid #475569;border-radius:8px;background:#fff}
.nsr-input:focus{outline:3px solid #2563eb;outline-offset:1px}
.nsr-input.nsr-ok{border-color:#16a34a;background:#f0fdf4}
.nsr-input.nsr-ng{border:3px solid #dc2626;background:#fef2f2}
.nsr-msg{min-height:1.4em;margin:0;color:#b91c1c;font-weight:700;text-align:center}
.feedback.has-text.nsr-feedback{display:block;height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}
.nsr-expl-text{margin:4px 0 6px;line-height:1.8;word-break:keep-all;overflow-wrap:anywhere}
.nsr-ex{margin:2px 0;word-break:keep-all;overflow-wrap:anywhere}
@media (max-width:360px){.nsr-row{column-gap:3px}.nsr-box{height:46px}.nsr-val{font-size:1.15rem}.nsr-klabel{letter-spacing:-0.6px;padding:1px 2px}}

/* 印刷：A4横・1ページ（§7。v1.4）。題名の枠（紙面の幅いっぱい）と、その下の記入らん・実線（共通仕様 CP-08a・CP-08b）、共通の問い1回、
   2列×5段（1段30.4mm＝既知ラベル8.6＋枠15＋しるしラベル4.3＋段間2.5）、破線、こたえ、解答（各列1行）。 */
.nsr-pr-page{width:277mm;height:190mm;box-sizing:border-box;display:flex;flex-direction:column;padding:0.8mm 0 0;margin:0 auto 8mm;overflow:hidden;background:#fff;color:#000;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.nsr-pr-top{flex:none}
.nsr-pr-title{box-sizing:border-box;width:100%;margin:0;height:8mm;padding:0 2mm;font-size:13pt;font-weight:700;line-height:calc(8mm - 3pt);white-space:nowrap;text-align:center;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.nsr-pr-top .pp-fields{height:8mm;margin:1mm 0 0;gap:6mm;font-size:12pt!important}
.nsr-pr-top .pp-fields-group{gap:4mm}
.nsr-pr-top .pp-field{gap:1mm}
.nsr-pr-top .pp-field-line{width:16mm;height:6.5mm}
.nsr-pr-top .pp-field-name .pp-field-line{min-width:40mm}
.nsr-pr-top hr.pp-fields-solid{display:none}
.nsr-pr-solid{box-sizing:content-box;height:0;margin:1mm 0 1mm;padding:0;border:0;border-top:1.5pt solid #333}
.nsr-pr-inst{margin:0 0 0.2mm;font-size:13pt;line-height:6.4mm;height:6.4mm;flex:none}
.nsr-pr-problems{flex:none;display:grid;grid-template-columns:136.5mm 136.5mm;column-gap:4mm}
.nsr-pr-col{display:flex;flex-direction:column;gap:2mm}
.nsr-pr-cell{box-sizing:border-box;height:27.9mm;display:flex;align-items:center;gap:0;overflow:visible}
.nsr-pr-num{flex:none;width:10mm;font-weight:700;font-size:12.5pt;align-self:center}
.nsr-pr-fig{flex:none;width:101.1mm;display:flex;flex-direction:column}
.nsr-pr-row{display:grid;grid-template-columns:repeat(7,13.5mm);column-gap:1.1mm;position:relative}
.nsr-pr-steprow,.nsr-pr-arrowrow{display:none}
.nsr-pr-toprow{height:8.6mm;align-items:end}
.nsr-pr-botrow{height:4.3mm}
.nsr-pr-klabel{justify-self:center;width:max-content;text-align:center;font-size:10pt;font-weight:700;line-height:4.2mm}
.nsr-pr-tlabel{justify-self:center;width:30mm;text-align:center;font-size:10pt;font-weight:700;line-height:4.3mm;white-space:nowrap}
.nsr-pr-tlabel.nsr-tl-left,.nsr-pr-klabel.nsr-tl-left{justify-self:start;text-align:left}
.nsr-pr-tlabel.nsr-tl-right,.nsr-pr-klabel.nsr-tl-right{justify-self:end;text-align:right}
.nsr-pr-box{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:15mm;border:0.35mm solid #475569;border-radius:1mm}
.nsr-pr-known{border-width:0.6mm;border-color:#1e3a8a}
.nsr-pr-target{border:0.6mm solid #b45309}
.nsr-pr-pos{position:absolute;left:0.6mm;top:0.2mm;font-size:9pt;line-height:3.4mm}
.nsr-pr-val{font-size:16pt;font-weight:800;margin-top:1.5mm}
.nsr-pr-tri{flex:none;width:6mm;margin-left:3mm;font-size:16pt;font-weight:800;color:#b45309;text-align:center}
.nsr-pr-ansbox{flex:none;box-sizing:border-box;width:14mm;height:15mm;border:0.45mm solid #000;border-radius:1mm}
.nsr-pr-answers{flex:none;box-sizing:border-box;width:277mm;margin-top:auto;margin-bottom:0.4mm}
.nsr-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0.5mm 0 0.5mm;padding:0;border:0;border-top:2pt dashed #aaa}
.nsr-pr-anshead{margin:0;height:6mm;font-size:12.5pt;font-weight:700;line-height:6mm}
.nsr-pr-agrid{display:grid;grid-template-columns:136.5mm 136.5mm;column-gap:4mm}
.nsr-pr-aline{margin:0;height:7.5mm;font-size:12.5pt;line-height:7.5mm;white-space:nowrap;display:flex;gap:6mm}
.nsr-pr-page[lang=en] .nsr-pr-inst,.nsr-pr-page[lang=en] .nsr-pr-aline,.nsr-pr-page[lang=en] .nsr-pr-klabel,.nsr-pr-page[lang=en] .nsr-pr-tlabel{font-family:Arial,'Helvetica Neue','Liberation Sans',sans-serif}
.nsr-app-pdf-page .nsr-pr-page{box-shadow:none;margin:0}

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