/* ── between_tens_number_set_1（ふたつの 十の かずの あいだを えらぼう、単元仕様書 v1.2）── */
/* 画面：問題文と補助案内の下に、下の かず・上の かず の札、8枚の数カード（小さい順）、案内、えらびなおす（§7 画面表示）。 */
.btns-guide{margin:2px 0 6px;font-weight:700;font-size:15px;color:#1e3a8a;line-height:1.45}
.btns-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center}
.btns-bounds{display:flex;flex-wrap:wrap;gap:8px 14px;justify-content:center;margin:2px 0 8px}
.btns-bound{display:inline-block;padding:4px 10px;border:2px solid #475569;border-radius:8px;background:#f8fafc;font-weight:700;font-size:16px;white-space:nowrap}
.btns-cards{display:grid;grid-template-columns:repeat(4,minmax(64px,92px));gap:8px;justify-content:center;max-width:100%}
.btns-card{position:relative;min-height:64px;min-width:44px;padding:6px 4px 18px;border:3px solid #64748b;border-radius:10px;background:#fff;color:#111827;font-family:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box}
.btns-num{font-size:1.55rem;font-weight:700;line-height:1.2}
/* 選んだカード：太い青の実線と ✓ えらんだ の文字（色だけにしない。§5-5）。 */
.btns-card.btns-on{border:4px solid #1d4ed8;background:#dbeafe}
.btns-card:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}
.btns-mark{position:absolute;left:0;right:0;font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden}
.btns-mark-sel{bottom:2px;color:#1d4ed8}
/* 採点後：正答の4枚に ○ あう の札と緑の二重線、選んだがちがうカードは赤の点線（線の形と文字でも区別する）。 */
.btns-card.btns-done{cursor:default}
.btns-card:disabled{opacity:1;color:#111827}
.btns-card.btns-hit{border:4px double #15803d;background:#dcfce7}
.btns-card.btns-on.btns-hit{background:#bbf7d0}
.btns-card.btns-miss{border:3px dashed #b91c1c;background:#fff1f2}
.btns-mark-hit{top:2px;color:#166534}
.btns-card.btns-hit{padding-top:16px}
.btns-msg{min-height:1.4em;margin:6px 0 2px;color:#b45309;font-weight:700;text-align:center}
.btns-msg:empty{min-height:0;margin:0}
.btns-tools{display:flex;justify-content:center;margin:4px 0 0}
.btns-reselect{min-height:44px;padding:4px 16px;border:2px solid #475569;border-radius:22px;background:#fff;font-family:inherit;font-weight:700;font-size:15px;cursor:pointer}
.btns-reselect[hidden]{display:none}
.feedback.has-text.btns-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.btns-expl-text{margin:4px 0 6px;overflow-wrap:anywhere}
.btns-hint-fig{margin:6px 0 2px}
.btns-hint-text{display:block}
.btns-nl text{fill:#111827;font-family:inherit}
.btns-ex-cards{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0}
.btns-ex-card{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;border:2px solid #64748b;border-radius:8px;background:#fff;font-weight:700;font-size:18px}
.btns-ex-card.btns-ex-hit{border:3px solid #15803d;background:#dcfce7}
.btns-ex-mark{position:absolute;top:-10px;right:-6px;font-size:14px;color:#15803d}
.btns-example-answer{margin:6px 0 0;font-weight:700}
#page-quiz.active:has(.btns-main) #question-text,#page-quiz.active:has(.btns-main) #hint-area .kp-body,#page-quiz.active:has(.btns-main) #feedback,.btns-expl-text,.btns-guide{word-break:keep-all;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.btns-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.btns-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.btns-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
@media (max-width:360px){
  .btns-cards{grid-template-columns:repeat(4,minmax(52px,1fr));gap:6px}
  .btns-num{font-size:1.35rem}
  .btns-card{min-height:72px;padding-bottom:22px}
  .btns-card.btns-hit{padding-top:22px}
  .btns-mark{font-size:9px;letter-spacing:-0.02em;white-space:normal;line-height:1.05}
  .btns-mark-word{white-space:nowrap}
  /* ヒントのカードはアイコンを上に置き、数直線をカードの幅いっぱいに見せる（BTNS-IR1-02）。 */
  #page-quiz.active:has(.btns-main) #hint-area .kp-card.btns-hint-card{display:block}
  #page-quiz.active:has(.btns-main) #hint-area .btns-hint-card .kp-head{margin-bottom:4px}
}

/* 印刷：A4横・1ページ（§7。用紙の余白 上下左右10mm（共通仕様書 v3.2 §3-6）、本文277×190mm、2列×5段、1段27mm、カード11.5×14mm・数14pt）。 */
.btns-pr-page{width:277mm;height:190mm;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}
.btns-pr-headblock{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:277mm;height:18mm}
.btns-pr-title{box-sizing:border-box;margin:0;height:9mm;font-size:15pt;font-weight:700;line-height: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}
.btns-pr-fields{display:flex;gap:8mm;align-items:flex-end;height:7mm;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.btns-pr-group{display:inline-flex;align-items:flex-end;gap:4mm;flex:none}
.btns-pr-field{display:inline-flex;align-items:flex-end;gap:1.5mm;flex:none}
.btns-pr-field-line{display:inline-block;box-sizing:border-box;width:16mm;height:6mm;border-bottom:1pt solid #555}
.btns-field-name{flex:1;min-width:0}
.btns-field-name .btns-pr-field-line{flex:1;width:auto;min-width:60mm}
.btns-pr-solid{box-sizing:content-box;display:block;height:0;padding:0;border:0;border-top:1.5pt solid #333;margin:1mm 0 0}
.btns-pr-common{flex:none;margin:1mm 0 0;height:6.5mm;line-height:6.5mm;font-size:13.1pt;font-weight:700;white-space:nowrap}
.btns-pr-problems{display:flex;gap:4mm;flex:none;height:139mm;margin-top:1mm}
.btns-pr-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:1mm}
.btns-pr-cell{box-sizing:border-box;height:27mm;display:flex;flex-direction:column;padding:1.2mm 0.8mm 0;overflow:hidden}
.btns-pr-q{flex:none;height:6.4mm;line-height:6.4mm;font-size:13.1pt;white-space:nowrap;overflow:hidden}
.btns-pr-band{flex:none;display:flex;align-items:center;gap:3mm;height:14mm;margin-top:1mm}
.btns-pr-cards{flex:none;display:flex;gap:1mm}
.btns-pr-card{box-sizing:border-box;width:11.5mm;height:14mm;border:0.35mm solid #333;border-radius:1mm;display:flex;align-items:center;justify-content:center;font-size:14.1pt;font-weight:700;white-space:nowrap}
.btns-pr-memo{flex:none;box-sizing:border-box;width:28mm;height:14mm;border:0.35mm dashed #555;border-radius:1mm;padding:0.5mm 1mm}
.btns-pr-memo-label{font-size:11.1pt;line-height:1.1}
.btns-pr-answers{flex:none;box-sizing:border-box;height:22mm}
.btns-pr-dashed{box-sizing:content-box;display:block;height:0;margin:1mm 0 0;padding:0;border:0;border-top:2pt dashed #aaa}
.btns-pr-answers-title{font-weight:700;font-size:12.6pt;line-height:6mm;height:6mm}
.btns-pr-ans-row{display:flex;height:7mm;line-height:7mm}
.btns-pr-ans{flex:1 1 0;min-width:0;font-size:12.6pt;white-space:nowrap;overflow:hidden}
.btns-app-pdf-page .btns-pr-page{box-shadow:none;margin:0}

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