/* ── age_three_people_timeline3_5（三人の年れいを時点をそろえて求めよう、単元仕様書 v1.2）── */
/* 画面：問題文、人物と時点の表と表の説明の文、答えの欄（才・年後・年前を欄の外）と共通のテンキー（A群・B群）又はア〜エ（C群）、案内。回答後は正しい答えと解説（§5-3・§7）。 */
#question-text .atp-q{display:block;overflow-wrap:anywhere}
.atp-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.atp-field{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:1.2rem}
.atp-input{width:6em;min-height:48px;font-size:1.4rem;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}
.atp-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.atp-input.atp-ok,.atp-input.atp-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.atp-input.atp-ng,.atp-input.atp-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.atp-choices{display:flex;flex-direction:column;gap:8px;width:min(100%,480px);margin:2px auto}
.atp-choice{position:relative;box-sizing:border-box;min-height:48px;padding:6px 10px 6px 34px;border:3px solid #64748b;border-radius:10px;background:#fff;color:#1e293b;font-size:1.05rem;font-weight:800;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.atp-check{position:absolute;top:50%;left:10px;transform:translateY(-50%);font-size:18px;font-weight:900;color:#1d4ed8}
.atp-choice.atp-on{background:#dbeafe;border-color:#1d4ed8;color:#1e3a8a}
.atp-choice:focus-visible{outline:3px solid #f59e0b;outline-offset:1px}
.atp-choice:disabled{cursor:default;opacity:1}
.atp-choice.atp-ok,.atp-choice.atp-ok:disabled{border:3px solid #15803d;background:#dcfce7;color:#14532d}
.atp-choice.atp-ng,.atp-choice.atp-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2;color:#7f1d1d}
.atp-choice.atp-right,.atp-choice.atp-right:disabled{border:3px dashed #15803d;background:#fff;color:#14532d}
.atp-ok .atp-check,.atp-right .atp-check{color:#15803d}
.atp-ng .atp-check{color:#b91c1c}
.atp-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.atp-guide[hidden]{display:none}
.atp-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4;max-width:560px}
.atp-msg:empty{min-height:0;margin:0}
.atp-main .ufk-keypad{margin-top:4px}
.feedback.has-text.atp-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.atp-correct{margin:2px 0 6px;font-weight:800;font-size:17px;overflow-wrap:anywhere}
.atp-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.atp-score{margin:6px 0 2px;font-weight:800;color:#1e3a8a}
.atp-example .atp-ex-q{margin:6px 0 2px;font-weight:700}
.atp-example .atp-ex-a{margin:0 0 8px}
#page-quiz.active:has(.atp-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.atp-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.atp-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.atp-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.atp-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz.active:has(.atp-main) #tts-btn{min-width:44px;min-height:44px}
#page-quiz:has(#question-text[data-unit="age_three_people_timeline3_5"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="age_three_people_timeline3_5"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}

.atp-tablewrap{max-width:100%;overflow:visible}
.atp-table{border-collapse:collapse;font-size:16px;background:#fff;margin:0 auto}
.atp-table th,.atp-table td{border:1.5px solid #64748b;padding:4px 10px;text-align:center;white-space:nowrap;min-width:2.6em}
.atp-table thead th{background:#f1f5f9;font-weight:800}
.atp-table tbody th{background:#f8fafc;font-weight:800;text-align:left}
.atp-alt{margin:0;font-size:14px;color:#334155;line-height:1.5;text-align:center;max-width:560px;overflow-wrap:anywhere}
.atp-unit{font-weight:800;font-size:1.15rem;white-space:nowrap}
.atp-ctext{display:inline}
.atp-nw{white-space:nowrap}
.atp-expl-text{line-height:1.8;overflow-wrap:anywhere}
/* 印刷：A4縦・2列・1ページ（§7）。題名の枠と記入欄、共通の問い、2列×5段（A群・B群は番号と問題文と答えの行、C群は番号と表と4択）、破線、答え（2行）。A群・B群の表は印刷しない。 */
.atp-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}
.atp-pr-headrow{display:flex;flex-direction:column;gap:0;flex:none}
.atp-pr-headrow .pp-fields{height:7mm;margin:1mm 0 0}
.atp-pr-headrow .pp-field-line{height:6mm}
.atp-pr-headrow hr.pp-fields-solid{margin:1mm 0 2mm!important;border:0;border-top:1.5pt solid #333}
.atp-pr-title{box-sizing:border-box;margin:0;height:8mm;width:100%;padding:0 2mm;font-size:14pt;font-weight:700;line-height:7.4mm;white-space:nowrap;text-align:center;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact;flex:none}
.atp-pr-problems{flex:none;display:grid;grid-template-columns:91mm 91mm;column-gap:4mm}
.atp-pr-col{display:flex;flex-direction:column}
.atp-pr-cell{box-sizing:border-box;height:42mm;border-top:2px solid transparent;padding:1mm 0 0;overflow:hidden;display:flex;flex-direction:column;gap:1mm}
.atp-pr-col .atp-pr-cell:last-child{border-bottom:2px solid transparent}
/* 右の列は、表と4択のあるC群（問8〜10）の段を高くし、B群（問6・7）の段を低くする（列の高さは左と同じ210mm。B群36mm×2・C群46mm×3） */
.atp-pr-col .atp-pr-cell[data-atp-group="C"]{height:46mm}
.atp-pr-col:last-child .atp-pr-cell[data-atp-group="B"]{height:36mm}
.atp-pr-q{font-size:12.5pt;line-height:5mm;overflow-wrap:anywhere}
.atp-pr-inst{margin:0 0 2mm;font-size:12.5pt;line-height:5mm;flex:none}
.atp-pr-num{font-weight:700;white-space:nowrap}
.atp-pr-blank{display:flex;align-items:center;gap:1mm;font-size:12.5pt;line-height:6mm}
.atp-pr-box{display:inline-block;box-sizing:border-box;width:20mm;height:6mm;border-bottom:2px solid #000}
.atp-pr-chead{display:flex;align-items:flex-start;gap:2mm;font-size:12.5pt}
.atp-pr-table{border-collapse:collapse;font-size:10pt;line-height:4mm}
.atp-pr-table th,.atp-pr-table td{border:1px solid #444;padding:0 1.5mm;text-align:center;white-space:nowrap}
.atp-pr-table tbody th{text-align:left}
.atp-pr-choices{display:flex;flex-direction:column;font-size:12.5pt;line-height:5mm}
.atp-pr-choices>div{white-space:nowrap}
.atp-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:5mm}
.atp-pr-dashed{box-sizing:content-box;display:block;height:0;margin:1.5mm 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.atp-pr-anshead{font-weight:700;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.atp-pr-ansrow{display:grid;grid-template-columns:repeat(5,36mm);column-gap:1mm}
.atp-pr-answer{font-size:10pt;line-height:4.5mm;white-space:nowrap}
.atp-app-pdf-page .atp-pr-page{box-shadow:none;margin:0}

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