/* 注意・高次脳の追加教材（cog3）の紙面
   白黒で刷る前提＝色で区別しない。灰色は「見本」「表の見出し」だけに使う。 */

/* ---------- 共通：設問と記入線 ---------- */
.c3-bl{display:inline-block; border-bottom:1px solid #999; height:1.2em; vertical-align:bottom; margin:0 1mm;}
.c3-qs{flex:1 1 auto; min-height:0; display:flex; flex-direction:column; justify-content:space-around; margin-top:5mm;}
.c3-q{font-size:12pt; line-height:1.75; padding:1.5mm 0;}
.c3-qn{color:#888; font-size:10pt; margin-right:2mm;}
.c3-wl{border-bottom:1px solid #999; height:9mm; margin:0 0 0 6mm;}
.c3-wl + .c3-wl{height:11mm;}
.c3-ansl{font-size:12pt; line-height:1.8; margin-top:6mm;}
.c3-ansl > div{padding:1mm 0; border-bottom:1px dotted #ccc;}
.c3-rec{font-size:10.5pt; margin:4mm 0 0; text-align:right;}
.c3-cond{display:block; margin:1mm 0 0 6mm;}
.c3-cond span{display:block;}
.c3-ar{text-align:right; font-size:11pt;}
.c3-small{font-size:10pt; margin-left:3mm;}

/* ---------- 記号置き換え ---------- */
.c3-g{width:100%; height:100%; display:block;}
.c3-key{display:flex; justify-content:center; border:2px solid #000; margin:0 auto 6mm; width:max-content;}
.c3-kc{width:15mm; border-left:1px solid #000; text-align:center;}
.c3-kc:first-child{border-left:0;}
.c3-kc .c3-kn{font-size:15pt; font-weight:700; border-bottom:1px solid #000; line-height:1.5;}
.c3-ks{height:11mm; padding:1.5mm 2.5mm;}
.c3-kg{flex:1 1 auto; min-height:0; display:grid; grid-auto-rows:1fr; gap:2.5mm 2mm;}
.c3-kcell{border:1.5px solid #000; display:flex; flex-direction:column; min-height:0;}
.c3-kcell .c3-kn{font-size:14pt; text-align:center; border-bottom:1px solid #000; line-height:1.4; flex:0 0 auto;}
.c3-kb{flex:1 1 auto; min-height:8mm; padding:1.2mm; display:flex; align-items:center; justify-content:center;}
.c3-kb .c3-g{width:auto; height:100%; max-height:12mm; aspect-ratio:1/1;}
.c3-kcell.ex{background:#eee;}
.c3-kcell.ex .c3-g{stroke:#666;}
.c3-kg.lv4 .c3-kcell .c3-kn, .c3-kg.lv5 .c3-kcell .c3-kn{font-size:12.5pt;}

/* ---------- 予定表 ---------- */
.c3-ytab{width:100%; border-collapse:collapse; table-layout:fixed; font-size:11pt;}
.c3-ytab th, .c3-ytab td{border:1.5px solid #000; text-align:center; vertical-align:middle;}
.c3-ytab th{background:#eee; font-size:12pt; padding:1mm 0;}
.c3-ytab th.sat, .c3-ytab th.sun{text-decoration:underline;}
.c3-ytab th.c3-yl{width:14mm;}
.c3-ytab td{height:21mm; padding:1mm 0.8mm; line-height:1.3;}
.c3-ytab.one td{height:26mm; font-size:12pt;}
.c3-yt{display:block; font-size:9.5pt;}
.c3-ye{display:block; font-weight:700; word-break:break-all;}

/* ---------- 道順 ---------- */
.c3-map{border:1.5px solid #000; padding:2mm 3mm 3mm;}
.c3-up{font-size:10pt; text-align:center; margin-bottom:1mm;}

/* ---------- 見当識シート ---------- */
.c3-kname{font-size:11pt; margin-bottom:4mm;}
.c3-kname span{display:inline-block; border-bottom:1px solid #999; min-width:70mm; padding-bottom:1mm;}
.c3-kt{flex:1 1 auto; min-height:0; display:flex; flex-direction:column; border:2px solid #000;}
.c3-kr{flex:1 1 0; display:flex; border-top:1px solid #000; min-height:0;}
.c3-kr:first-child{border-top:0;}
.c3-kh{width:46mm; flex:0 0 46mm; background:#eee; border-right:1px solid #000; font-size:12pt; font-weight:700;
  display:flex; align-items:center; padding:0 3mm; line-height:1.35;}
.c3-kv{flex:1 1 auto; display:flex; align-items:center; flex-wrap:wrap; padding:0 3mm; font-size:13pt;}
.c3-kv .c3-bl{height:1.5em;}
.c3-box{display:inline-block; width:16mm; height:11mm; border:1px solid #000; margin:0 2mm; vertical-align:middle;}
.c3-ch span{display:inline-block; border:1px solid #888; border-radius:2mm; padding:0.5mm 2.6mm; margin:0.8mm 1.4mm; font-size:13pt;}
.c3-wtab{width:100%; border-collapse:collapse; table-layout:fixed; font-size:10.5pt;}
.c3-wtab td{height:25mm;}
.c3-wtab.two td{height:12.4mm;}
.c3-wtab th, .c3-wtab td{border:1.5px solid #000; text-align:center; vertical-align:middle;}
.c3-wtab th{background:#eee; padding:1.2mm 0; font-size:10pt; line-height:1.3;}
.c3-wtab td.c3-md{white-space:nowrap; font-size:9.5pt; text-align:right; padding-right:1mm;}
.c3-wtab td.c3-md span{margin-left:4mm;}
.c3-wtab td.c3-done{font-size:8.5pt; line-height:1.35; color:#333;}
.c3-wq{font-size:11pt; margin-top:4mm;}

/* ---------- 買い物 ---------- */
.c3-fly{border:2px solid #000;}
.c3-flyh{font-size:11pt; font-weight:700; text-align:center; border-bottom:1.5px solid #000; padding:1mm 0; background:#eee;}
.c3-flyg{display:grid;}
.c3-fi{border-right:1px solid #999; border-bottom:1px solid #999; padding:1.6mm 2mm; text-align:center; line-height:1.3;}
.c3-fn{font-size:12.5pt; font-weight:700;}
.c3-fn.long{font-size:10pt;}
.c3-fu{font-size:9pt; color:#444;}
.c3-fp{font-size:17pt; font-weight:700; letter-spacing:0.02em;}
.c3-fp small{font-size:10pt; margin-left:0.5mm;}
.c3-memo{border:1.5px dashed #000; margin-top:4mm; padding:2mm 4mm; font-size:12pt; display:flex; flex-wrap:wrap; gap:1mm 7mm; align-items:center;}
.c3-mh{font-weight:700; width:100%;}
.c3-bud{margin-left:auto; font-weight:700; border:1.5px solid #000; padding:0.5mm 3mm;}

/* 解答面は上に詰める */
.sheet.ansheet .c3-kg{flex:0 0 auto; grid-auto-rows:auto;}
.sheet.ansheet .c3-kb{height:12mm;}

@media print{
  .c3-kcell.ex, .c3-ytab th, .c3-kh, .c3-wtab th, .c3-flyh{-webkit-print-color-adjust:exact; print-color-adjust:exact;}
}
