/* ── triangle_side_condition2_3（3本のへんで 三角形ができるかな、単元仕様書 v1.2）── */
/* 画面：問題文の下にぼうの図（長さに比例・左そろえ・3本を別の行）、回答案内、○と×のボタン、答え合わせ（§5-3・§7 画面表示）。 */
.tsc-main{display:flex;flex-direction:column;align-items:center;margin:4px 0 6px;max-width:100%}
.tsc-figure{margin:0;width:100%;max-width:340px;box-sizing:border-box;display:flex;justify-content:center}
.tsc-fig{display:block;width:100%;height:auto;max-width:340px}
.tsc-fig-label{fill:#111827;font-weight:700;font-variant-numeric:tabular-nums}
.tsc-guide{margin:6px 0 4px;font-weight:700;text-align:center}
.tsc-choices{display:flex;justify-content:center;gap:20px;margin:6px auto 2px}
.tsc-choice{min-width:72px;min-height:56px;font-size:1.8rem;font-weight:700;line-height:1;border:3px solid #94a3b8;background:#fff;color:#111827;border-radius:12px;cursor:pointer;font-family:inherit}
.tsc-choice:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.tsc-choice.tsc-chosen{border-color:#1d4ed8;background:#dbeafe;box-shadow:0 0 0 2px #1d4ed8 inset}
.tsc-choice:disabled{cursor:default;opacity:1}
.tsc-choice.tsc-choice-ok{border:3px solid #15803d;background:#dcfce7}
.tsc-choice.tsc-choice-ng{border:3px dashed #b91c1c;background:#fff1f2}
.tsc-msg{margin:2px auto 0;color:#b91c1c;font-weight:700;font-size:.95rem;text-align:center;max-width:32em}
.tsc-msg:empty{display:none}
.feedback.has-text.tsc-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.tsc-answer-line{margin:4px 0 2px;font-weight:700}
.tsc-expl-text{margin:2px 0 6px}
#page-quiz.active:has(.tsc-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.tsc-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.tsc-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.tsc-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0;white-space:pre-line}

/* 印刷：A4縦・2列・1ページ（§7。用紙の余白10mm、本文190×277mm、列92mm・列の間6mm、各問39mm×5段）。 */
.tsc-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}
.tsc-pr-head{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:188mm;height:35mm}
.tsc-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}
.tsc-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}
.tsc-pr-group{display:inline-flex;align-items:flex-end;gap:4mm;flex:none}
.tsc-pr-field{display:inline-flex;align-items:flex-end;gap:1.5mm;flex:none}
.tsc-pr-field-line{display:inline-block;box-sizing:border-box;width:13mm;height:5.5mm;border-bottom:1pt solid #555}
.tsc-field-name{flex:1;min-width:0}
.tsc-field-name .tsc-pr-field-line{flex:1;width:auto;min-width:40mm}
.tsc-pr-solid{box-sizing:content-box;display:block;height:0;padding:0;border:0;border-top:1.5pt solid #333;margin:0.6mm 0 0.4mm}
.tsc-pr-instruction{margin:0;height:12mm;font-size:12.6pt;line-height:6mm;overflow:hidden}
.tsc-pr-problems{display:grid;grid-template-columns:92mm 92mm;column-gap:6mm;flex:none;height:195mm;margin-top:2mm}
.tsc-pr-col{display:flex;flex-direction:column}
.tsc-pr-cell{box-sizing:border-box;height:39mm;overflow:hidden;display:flex;flex-direction:column;padding-top:0.5mm}
.tsc-pr-qline{height:6mm;font-size:12.6pt;font-weight:700;white-space:pre;line-height:6mm}
.tsc-pr-fig{margin-top:1mm;height:15mm}
.tsc-pr-fig .tsc-fig-print{display:block;width:72.5mm;height:15mm;max-width:none}
.tsc-fig-print .tsc-fig-label{font-weight:700}
.tsc-pr-box{margin-top:2mm;height:8mm;line-height:8mm;font-size:12.6pt;white-space:pre}
.tsc-pr-answers{flex:none;box-sizing:border-box;height:37mm;margin-top:2mm}
.tsc-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.tsc-pr-answers-title{font-weight:700;font-size:12.6pt;height:6mm;line-height:6mm}
.tsc-pr-answer-cols{display:grid;grid-template-columns:92mm 92mm;column-gap:6mm}
.tsc-pr-answer{box-sizing:border-box;height:5mm;font-size:10.2pt;line-height:5mm;white-space:pre;overflow:hidden}
.tsc-app-pdf-page .tsc-pr-page{box-shadow:none;margin:0}

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