@page { size: 120mm 255mm; margin: 10mm 8.5mm 11mm; }
@page :first { margin: 0; }

:root {
  --navy: #17223b;
  --navy-2: #24345a;
  --navy-3: #33476f;
  --red: #e0453a;
  --red-pale: #fdeceb;
  --green: #23794a;
  --green-pale: #e8f4ec;
  --ink: #1e2330;
  --sub: #5b6475;
  --line: #d9dee8;
  --pale: #f3f5f9;
  --yellow: #ffe58a;
  --gold: #f2b84b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 10pt;
  line-height: 1.75;
  color: var(--ink);
  background: #fff;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
svg.defs { position: absolute; width: 0; height: 0; }

/* ---------- 表紙 ---------- */
.cover {
  width: 120mm; height: 255mm;
  background: var(--navy);
  color: #fff;
  padding: 20mm 11mm 14mm;
  display: flex; flex-direction: column;
  break-after: page;
  position: relative;
  overflow: hidden;
}
.cover .ring { position: absolute; border-radius: 50%; }
.cover .ring.a { right: -34mm; top: 118mm; width: 110mm; height: 110mm; border: 16mm solid var(--navy-2); }
.cover .ring.b { right: 12mm; top: 150mm; width: 30mm; height: 30mm; background: var(--red); opacity: .9; }
.cover .ring.c { left: -14mm; bottom: -14mm; width: 46mm; height: 46mm; border: 3mm solid var(--navy-3); }
.cover .tag {
  display: inline-block; align-self: flex-start;
  border: 1px solid rgba(255,255,255,.55); border-radius: 99px;
  padding: 1.2mm 4mm; font-size: 8pt; letter-spacing: .1em;
  position: relative; z-index: 1;
}
.cover .vol { margin-top: 18mm; font-size: 10pt; color: #ffb3ad; font-weight: 800; letter-spacing: .14em; position: relative; z-index: 1; }
.cover h1 { margin: 3mm 0 0; font-size: 25pt; line-height: 1.3; font-weight: 800; position: relative; z-index: 1; }
.cover .bar { margin-top: 7mm; width: 18mm; height: 1.6mm; background: var(--red); position: relative; z-index: 1; }
.cover .lead { margin-top: 6mm; font-size: 10pt; line-height: 1.85; color: #dfe5f2; position: relative; z-index: 1; }
.cover .toc { margin-top: 8mm; position: relative; z-index: 1; font-size: 8.6pt; color: #c9d2e6; }
.cover .toc div { padding: 1.2mm 0; border-top: 1px solid rgba(255,255,255,.18); }
.cover .toc b { color: #fff; display: inline-block; width: 8mm; font-weight: 800; }
.cover .foot { margin-top: auto; font-size: 8pt; color: #b9c3d8; position: relative; z-index: 1; }
.cover .brand { font-size: 14pt; font-weight: 800; letter-spacing: .14em; color: #fff; }

/* ---------- 章の頭(扉の帯) ---------- */
.chapter { break-before: page; }
.chead {
  display: flex; align-items: center; gap: 3.5mm;
  background: var(--navy); color: #fff; border-radius: 3mm;
  padding: 4mm 4.5mm; margin-bottom: 4.5mm;
  position: relative; overflow: hidden;
}
.chead::after {
  content: ""; position: absolute; right: -9mm; top: -9mm; width: 26mm; height: 26mm;
  border-radius: 50%; border: 4mm solid var(--navy-2);
}
.chead .no { font-size: 22pt; font-weight: 800; color: var(--red); line-height: 1; letter-spacing: -.02em; position: relative; z-index: 1; }
.chead .tt { position: relative; z-index: 1; flex: 1; }
.chead .tt h2 { margin: 0; font-size: 14pt; line-height: 1.35; font-weight: 800; }
.chead .tt p { margin: .8mm 0 0; font-size: 8.4pt; color: #c9d2e6; line-height: 1.5; }
.chead svg.ic { width: 10mm; height: 10mm; color: #fff; position: relative; z-index: 1; flex: none; }

h3 {
  margin: 5mm 0 2mm; font-size: 11pt; font-weight: 800;
  padding-left: 2.6mm; border-left: 1.3mm solid var(--red);
  break-after: avoid;
}
p { margin: 0 0 2.5mm; }
ol, ul { margin: 0 0 3mm; padding-left: 5.2mm; }
li { margin-bottom: 1.3mm; }
strong { font-weight: 800; }
.mark { background: linear-gradient(transparent 55%, var(--yellow) 55%); font-weight: 700; }
.small { font-size: 8.2pt; color: var(--sub); }

table {
  width: 100%; border-collapse: collapse; margin: 1mm 0 4mm;
  font-size: 8.8pt; line-height: 1.55; break-inside: avoid;
}
th, td { border: 1px solid var(--line); padding: 1.7mm 2mm; text-align: left; vertical-align: top; }
th { background: var(--navy); color: #fff; font-weight: 700; }
td.c, th.c { text-align: center; }
tr:nth-child(even) td { background: var(--pale); }

.box {
  background: var(--pale); border-radius: 2.5mm; padding: 3.2mm 3.8mm; margin: 2mm 0 4mm;
  break-inside: avoid;
}
.box .ttl { font-weight: 800; font-size: 9.6pt; margin-bottom: 1.2mm; display: flex; align-items: center; gap: 1.6mm; }
.box .ttl svg { width: 4.6mm; height: 4.6mm; color: var(--red); }
.box p:last-child, .box ul:last-child, .box ol:last-child { margin-bottom: 0; }
.goal { border-left: 1.3mm solid var(--navy); }
.tip { background: #fff8e1; }

.ngok { display: grid; grid-template-columns: 1fr; gap: 2mm; margin: 2mm 0 4mm; break-inside: avoid; }
.ngok > div { border-radius: 2.5mm; padding: 2.6mm 3.2mm; font-size: 9.2pt; }
.ngok .ng { background: var(--red-pale); }
.ngok .ok { background: var(--green-pale); }
.ngok b.l { display: block; font-size: 8.2pt; margin-bottom: .6mm; }
.ngok .ng b.l { color: #b2352c; }
.ngok .ok b.l { color: var(--green); }

.check { list-style: none; padding-left: 0; break-inside: avoid; }
.check li { position: relative; padding-left: 6.2mm; }
.check li::before {
  content: ""; position: absolute; left: 0; top: 1.2mm;
  width: 3.6mm; height: 3.6mm; border: 1.3px solid var(--navy); border-radius: .7mm; background: #fff;
}

.write td { height: 9mm; background: #fff !important; }
.write th { font-size: 7.4pt; line-height: 1.35; padding: 1.4mm 1.2mm; }
.ex td { color: #3d4a66; font-size: 8.4pt; }
.ex td.fill { color: #1d4ed8; font-weight: 700; }

/* ---------- サムネの作例 ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6mm; margin: 1.5mm 0 1mm; break-inside: avoid; }
.pair .lab { font-size: 7.8pt; font-weight: 800; margin-bottom: .8mm; }
.pair .lab.ng { color: #b2352c; }
.pair .lab.ok { color: var(--green); }
.thumb {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 1.4mm; overflow: hidden;
  font-weight: 800; line-height: 1.1; color: #fff;
}
.thumb .dur {
  position: absolute; right: 1mm; bottom: 1mm; background: rgba(0,0,0,.8); color: #fff;
  font-size: 4.6pt; padding: .3mm .8mm; border-radius: .5mm; font-weight: 700;
}
.thumb .t { position: absolute; }
.thumb svg { position: absolute; }
.pair-note { font-size: 8pt; color: var(--sub); margin: 0 0 2.6mm; line-height: 1.45; }
.mini { display: flex; gap: 3mm; align-items: flex-end; margin: 1mm 0 3.5mm; break-inside: avoid; }
.mini .thumb { width: 20mm; }
.mini .cap { font-size: 7.6pt; color: var(--sub); text-align: center; margin-top: .6mm; }

/* ---------- 台本の見本 ---------- */
.script { border: 1px solid var(--line); border-radius: 2.5mm; overflow: hidden; margin: 2mm 0 4mm; break-inside: avoid; }
.script .row { display: grid; grid-template-columns: 11mm 1fr; border-top: 1px solid var(--line); }
.script .row:first-child { border-top: 0; }
.script .tm { background: var(--navy); color: #fff; font-size: 7.6pt; font-weight: 700; padding: 2mm 1.2mm; text-align: center; }
.script .bd { padding: 1.5mm 2.6mm; font-size: 8.8pt; line-height: 1.6; }
.script .bd .scr { display: block; font-size: 7.6pt; color: var(--sub); margin-top: .5mm; }
.script .bd .role { display: inline-block; font-size: 7pt; font-weight: 800; color: #fff; background: var(--red); border-radius: 99px; padding: 0 1.8mm; margin-bottom: .6mm; }

/* ---------- 図 ---------- */
.fig { margin: 1.5mm 0 4mm; break-inside: avoid; }
.fig svg { width: 100%; height: auto; display: block; }
.fig .cap { font-size: 7.8pt; color: var(--sub); margin-top: 1mm; }
.graphs { display: grid; grid-template-columns: 1fr; gap: 2.4mm; margin: 1mm 0 3mm; }
.graph { display: grid; grid-template-columns: 30mm 1fr; gap: 2.6mm; align-items: center; border: 1px solid var(--line); border-radius: 2.5mm; padding: 2mm 2.4mm; break-inside: avoid; }
.graph svg { width: 30mm; height: auto; display: block; }
.graph .gt { font-weight: 800; font-size: 9.2pt; line-height: 1.4; }
.graph .gd { font-size: 8.2pt; line-height: 1.5; color: #3d4a66; margin-top: .6mm; }
.graph .gd b { color: var(--red); }

/* ---------- 終わりの頁 ---------- */
.end { break-before: page; text-align: center; padding-top: 60mm; }
.end .brand { font-size: 17pt; font-weight: 800; letter-spacing: .16em; color: var(--navy); }
.end p { color: var(--sub); font-size: 8.8pt; margin-top: 4mm; }
.series { margin: 10mm auto 0; text-align: left; font-size: 8.8pt; }
.series td.now { font-weight: 800; color: var(--navy); }

/* ---------- 特典 5 への案内(AI で速く) ---------- */
.aitip { display: flex; gap: 2mm; align-items: flex-start; background: #f4f1ff; border-radius: 2mm; padding: 1.8mm 2.6mm; margin: 2mm 0 1mm; font-size: 8.2pt; line-height: 1.55; color: #2b2357; break-inside: avoid; }
.aitip b { flex: none; font-size: 7pt; font-weight: 800; color: #fff; background: #6b5bd6; border-radius: 99px; padding: .2mm 2mm; margin-top: .3mm; }
