/* ── age_transfer_relation2_3（年れいと受けわたしのかわり方を図で考えよう、単元仕様書 v1.4）── */
/* 画面：問題文、図1（前と後の表と2本の線分）、回答欄（単位つき）、案内と共通のテンキー。回答後は正誤・正しい答え・？を答えにした図1・解説（§5-3・§7）。 */
#question-text .atr-q{display:block;overflow-wrap:anywhere}
.atr-nb{white-space:nowrap}
.atr-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.atr-fig{margin:0;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.atr-fig-title{font-size:14px;font-weight:700;text-align:center}
.atr-fig-table{border-collapse:collapse;font-size:16px;font-weight:700}
.atr-fig-table th,.atr-fig-table td{border:2px solid #334155;padding:4px 8px;min-width:3.4em;height:34px;text-align:center;box-sizing:border-box}
.atr-fig-table thead th,.atr-fig-table tr:first-child th{background:#f1f5f9}
.atr-fig-table th[scope=row]{background:#f1f5f9;min-width:2.6em}
.atr-fig-table tr:first-child th:first-child{border-top-color:transparent;border-left-color:transparent;background:transparent}
.atr-fig-table td.atr-unknown{font-size:19px;color:#b91c1c;border-style:dashed}
.atr-fig-table td.atr-revealed{color:#15803d;background:#dcfce7}
.atr-segs{max-width:100%;display:flex;justify-content:center}
.atr-seg-svg{display:block;max-width:100%;height:auto}
.atr-seg-svg text{fill:#111}
.atr-seg-narrow{display:none}
@media (max-width:560px){.atr-seg-wide{display:none}.atr-seg-narrow{display:block}}
.atr-field-row{display:flex;align-items:center;gap:8px}
.atr-input{width:5.5em;min-height:48px;font-size:1.35rem;padding:0 6px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:8px;text-align:center;font-family:inherit;font-weight:800;box-sizing:border-box}
.atr-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.atr-input.atr-ok,.atr-input.atr-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.atr-input.atr-ng,.atr-input.atr-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.atr-unit{font-size:17px;font-weight:800}
.atr-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center;max-width:560px}
.atr-guide[hidden]{display:none}
.atr-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.5;max-width:560px}
.atr-msg:empty{min-height:0;margin:0}
.atr-main .ufk-keypad{margin-top:4px}
.feedback.has-text.atr-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.atr-correct{margin:2px 0 6px;font-weight:800;font-size:17px;overflow-wrap:anywhere}
.atr-expl-text{margin:4px 0 6px;line-height:2.1;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.atr-example .atr-ex-q{margin:6px 0 4px;font-weight:700;line-height:2}
.atr-example .atr-fig{margin:4px 0}
.atr-example .atr-ex-a{margin:4px 0 14px;line-height:2.1}
#page-quiz.active:has(.atr-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict;font-size:17px;line-height:2}
#page-quiz.active:has(.atr-main) #tts-btn{display:none!important}
#page-quiz.active:has(.atr-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.atr-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.atr-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.atr-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="age_transfer_relation2_3"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="age_transfer_relation2_3"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
@media (max-width:400px){.atr-fig-table{font-size:15px}.atr-fig-table th,.atr-fig-table td{padding:4px 5px;min-width:2.9em}#page-lesson .lesson-example:has(.atr-example){padding-left:12px;padding-right:12px}#page-lesson .lesson-example div:has(>.atr-example){padding-left:8px;padding-right:8px}.atr-example .atr-fig-table th,.atr-example .atr-fig-table td{min-width:2.2em;padding:3px 3px}}

/* 印刷（A4縦・2列・1ページ。§7） */
.atr-pr-page{width:190mm;box-sizing:border-box;color:#000;background:#fff;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif;display:flex;flex-direction:column}
.atr-pr-headrow{display:flex;flex-direction:column;gap:0}
.atr-pr-title{box-sizing:border-box;font-size:14pt;margin:0;height:7mm;line-height:6mm;text-align:center;font-weight:700;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.atr-pr-headrow .pp-fields{height:6mm;margin:0.5mm 0 0}
.atr-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:0.8mm 0 1.5mm!important;border:0;border-top:2px solid #333}
.atr-pr-inst{font-size:12.5pt;line-height:6mm;margin:0 0 2mm;padding:0 1mm}
.atr-pr-problems{display:flex;gap:6mm;justify-content:center}
.atr-pr-col{width:92mm;display:flex;flex-direction:column;gap:1.8mm}
.atr-pr-cell{box-sizing:border-box;width:92mm;height:41.2mm;border:2px solid transparent;border-radius:1.5mm;padding:1mm 1.6mm;overflow:hidden;break-inside:avoid;display:flex;flex-direction:column;justify-content:space-between}
.atr-pr-q{font-size:12.5pt;line-height:6mm;height:24mm;overflow:hidden;flex:none}
.atr-pr-num{font-weight:700}
.atr-pr-band{display:flex;gap:1.6mm;align-items:stretch;height:14mm;flex:none}
.atr-pr-table{border-collapse:collapse;font-size:10pt;width:56.6mm;height:14mm;table-layout:fixed;flex:none}
.atr-pr-table th,.atr-pr-table td{border:2px solid #333;padding:0 0.2mm;height:7mm;white-space:nowrap;overflow:hidden}
.atr-pr-table th{width:6mm;text-align:center;font-weight:700}
.atr-pr-paren{display:inline-flex;align-items:center;width:13mm;justify-content:space-between;vertical-align:middle}
.atr-pr-blank{display:inline-block;flex:1;height:6mm}
.atr-pr-ansbox{flex:1;min-width:0;border:2px solid #333;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:0 0.6mm}
.atr-pr-anshead{font-size:10pt;font-weight:700;line-height:4.5mm}
.atr-pr-ansrow{display:flex;align-items:flex-end;gap:0.6mm;font-size:10pt;line-height:4.2mm}
.atr-pr-unit{max-width:14mm}
.atr-pr-box{display:inline-block;flex:none;width:14mm;height:7mm;border-bottom:2px solid #333}
.atr-pr-answers{margin-top:3mm;border-top:2px dashed #666;padding-top:1mm}
.atr-pr-anshead2{font-size:12.5pt;font-weight:700;line-height:6mm}
.atr-pr-acols{display:flex;gap:6mm}
.atr-pr-acol{width:92mm}
.atr-pr-answer{margin:0;font-size:10pt;line-height:4.6mm}
#pr-sheet[data-unit="age_transfer_relation2_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="age_transfer_relation2_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="age_transfer_relation2_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="age_transfer_relation2_3"] .atr-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="age_transfer_relation2_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="age_transfer_relation2_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="age_transfer_relation2_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="age_transfer_relation2_3"] .atr-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.atr-app-pdf-page .atr-pr-page{box-shadow:none;margin:0}
/* 英語の印刷：前後表の行見出し（Before・After）を欠かさない（v1.3 確定表 ATK-15） */
.atr-pr-page[lang=en] .atr-pr-cell{padding-left:0.3mm;padding-right:0.3mm}
.atr-pr-page[lang=en] .atr-pr-table{width:60.8mm}
.atr-pr-page[lang=en] .atr-pr-table th{width:11.6mm;padding:0}
.atr-pr-page[lang=en] .atr-pr-ansbox{padding:0 0.4mm}
.atr-pr-page[lang=en] .atr-pr-band{gap:0.5mm}
