/* 名言で英文法講義（/eibunpo/）。大人っぽく：明朝の見出し・黒と紙の白・金の差し色 */
.eb-hero { background: radial-gradient(1100px 480px at 50% 0%, #2a2733 0%, #131217 58%, #0c0c0f 100%); color: #f3ede2; padding: 54px 0 46px; margin-top: -1px; text-align: center; }
.eb-k { margin: 0 0 12px; font: 600 11.5px/1.6 'Poppins', sans-serif; letter-spacing: 0.22em; color: #c9a24a; }
.eb-hero h1 { margin: 0 0 16px; font: 800 clamp(34px, 6vw, 60px) / 1.2 'Shippori Mincho B1', var(--jp), serif; letter-spacing: 0.06em; }
.eb-lead { max-width: 40em; margin: 0 auto; font-size: 15.5px; line-height: 1.95; color: rgba(243, 237, 226, 0.82); }
.eb-stats { display: flex; justify-content: center; gap: 34px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 13px; color: rgba(243, 237, 226, 0.7); }
.eb-stats b { display: block; font: 600 30px/1.1 'Playfair Display', Georgia, serif; color: #fff; }
.eb-wrap { padding-top: 34px; padding-bottom: 60px; }
.eb-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 26px; padding: 0; list-style: none; counter-reset: how; }
.eb-how li { counter-increment: how; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card, transparent); }
.eb-how li::before { content: '0' counter(how); display: block; font: 600 13px 'Poppins', sans-serif; color: #b8913c; letter-spacing: 0.1em; margin-bottom: 4px; }
.eb-how b { display: block; font: 700 16px/1.5 'Shippori Mincho B1', var(--jp), serif; }
.eb-how span { font-size: 13px; opacity: 0.75; }
.eb-legend { font-size: 13px; opacity: 0.85; margin: 0 0 8px; }
.eb-done-l { white-space: nowrap; }
.eb-rank { display: inline-flex; align-items: baseline; gap: 3px; padding: 1px 8px; border-radius: 999px; font: 700 12px/1.6 'Poppins', sans-serif; border: 1px solid currentColor; vertical-align: middle; white-space: nowrap; }
.eb-rank small { font: 700 10px var(--jp); }
.eb-rank.r-S { color: #b3261e; } .eb-rank.r-A { color: #9a7417; } .eb-rank.r-B { color: #5b6470; }
:root[data-theme='dark'] .eb-rank.r-S { color: #ff8a80; } :root[data-theme='dark'] .eb-rank.r-A { color: #e9cf8a; } :root[data-theme='dark'] .eb-rank.r-B { color: #aab4c0; }
.eb-ch { margin-top: 38px; }
.eb-ch-en { margin: 0; font: 600 11px 'Poppins', sans-serif; letter-spacing: 0.2em; color: #b8913c; }
.eb-ch h2 { margin: 4px 0 12px; font: 800 clamp(21px, 3vw, 27px) / 1.4 'Shippori Mincho B1', var(--jp), serif; }
.eb-units { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.eb-units li { border-bottom: 1px solid var(--line); }
.eb-u { display: grid; grid-template-columns: 44px 1fr auto 22px; align-items: center; gap: 12px; padding: 14px 6px; color: inherit; text-decoration: none; transition: background 0.2s; }
a.eb-u:hover { background: color-mix(in srgb, #b8913c 7%, transparent); }
.eb-u.off { opacity: 0.45; grid-template-columns: 44px 1fr auto; }
.eb-no { font: 600 20px/1 'Playfair Display', Georgia, serif; color: #b8913c; }
.eb-u-t b { display: block; font: 700 16.5px/1.5 'Shippori Mincho B1', var(--jp), serif; }
.eb-u-t small { display: block; font-size: 13px; opacity: 0.75; }
.eb-u-t i { display: block; margin-top: 3px; font: italic 500 14px/1.5 'Playfair Display', Georgia, serif; opacity: 0.8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46em; }
.eb-mark { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; color: #fff; }
.eb-u.done .eb-mark { background: #b8913c; border-color: #b8913c; }
.eb-u.done .eb-mark::before { content: '✓'; }
.eb-more { margin-top: 40px; font-size: 14px; }

/* ── 各講義 */
.eb-head { background: radial-gradient(1000px 420px at 50% 0%, #2a2733 0%, #131217 60%, #0c0c0f 100%); color: #f3ede2; padding: 40px 0 28px; margin-top: -1px; }
.eb-head h1 { margin: 0 0 10px; font: 800 clamp(28px, 5vw, 46px) / 1.3 'Shippori Mincho B1', var(--jp), serif; letter-spacing: 0.04em; }
.eb-short { margin: 0 0 18px; font-size: 15px; color: rgba(243, 237, 226, 0.85); }
.eb-head .eb-rank.r-S { color: #ff8a80; } .eb-head .eb-rank.r-A { color: #e9cf8a; } .eb-head .eb-rank.r-B { color: #c5ccd6; }
.eb-leadbox p { margin: 0 0 8px; font-size: 15px; line-height: 1.95; color: rgba(243, 237, 226, 0.82); }
.eb-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.eb-toc a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(243, 237, 226, 0.22); border-radius: 999px; color: #f3ede2; font-size: 13px; text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.eb-toc a:hover { background: rgba(233, 207, 138, 0.12); border-color: #e9cf8a; }
.eb-toc span { font: 600 11px 'Poppins', sans-serif; color: #e9cf8a; }
.eb-body { padding-bottom: 60px; }
.eb-sec { margin-top: 44px; scroll-margin-top: 80px; }
.eb-h2 { margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 800 clamp(21px, 3vw, 26px) / 1.4 'Shippori Mincho B1', var(--jp), serif; }
.eb-h2 small { display: block; font: 600 11px 'Poppins', sans-serif; letter-spacing: 0.22em; color: #b8913c; }
.eb-lec { margin: 0 0 30px; }
.eb-lec h3 { display: flex; gap: 10px; align-items: baseline; margin: 0 0 10px; font: 700 18.5px/1.55 'Shippori Mincho B1', var(--jp), serif; }
.eb-lec h3 span { flex: none; font: 600 15px 'Playfair Display', Georgia, serif; color: #b8913c; }
.eb-lec p { margin: 0 0 12px; font-size: 15.5px; line-height: 2; }
.eb-form { padding: 14px 18px; border-left: 3px solid #b8913c; background: color-mix(in srgb, #b8913c 8%, transparent); border-radius: 0 10px 10px 0; font: 600 16px/1.7 'Playfair Display', Georgia, var(--jp), serif !important; }
.eb-tw { overflow-x: auto; }
.eb-tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.7; }
.eb-tbl th { text-align: left; padding: 10px 12px; border-bottom: 2px solid currentColor; font: 700 14px var(--jp); white-space: nowrap; }
.eb-tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.eb-tbl tr:hover td { background: color-mix(in srgb, #b8913c 5%, transparent); }
.eb-exam { margin: 0; padding: 0; list-style: none; counter-reset: ex; }
.eb-exam li { counter-increment: ex; position: relative; padding: 12px 14px 12px 64px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; line-height: 1.85; }
.eb-exam li::before { content: 'POINT ' counter(ex); position: absolute; left: 12px; top: 14px; font: 700 10px/1.3 'Poppins', sans-serif; letter-spacing: 0.06em; color: #b3261e; width: 44px; text-align: center; }
:root[data-theme='dark'] .eb-exam li::before { color: #ff8a80; }
.eb-traps { display: grid; gap: 12px; }
.eb-trap { padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; }
.eb-trap p { margin: 0 0 6px; }
.eb-trap .ng, .eb-trap .ok { font: 500 16px/1.6 'Playfair Display', Georgia, serif; }
.eb-trap .ng { text-decoration: line-through; text-decoration-color: rgba(179, 38, 30, 0.6); opacity: 0.8; }
.eb-trap span { display: inline-block; width: 1.6em; font: 700 15px var(--jp); text-decoration: none; }
.eb-trap .ng span { color: #b3261e; } .eb-trap .ok span { color: #2e7d4f; }
.eb-trap .why { font-size: 14px; line-height: 1.8; opacity: 0.85; margin: 4px 0 0; }
.eb-quotes { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.eb-quotes li { padding: 20px 22px; border-radius: 16px; background: #131217; color: #f3ede2; }
.eb-en { margin: 0 0 8px; font: italic 600 clamp(19px, 2.6vw, 24px) / 1.45 'Playfair Display', Georgia, serif; }
/* 名言カードはいつも黒い地。黄色い字に黄色い帯は読みにくい（12/3 ユーザー）→ 文法の部分は白く、下に細い金の線。ほかの部分は少し落として目立たせる */
.eb-quotes .eb-en { color: rgba(243, 237, 226, 0.72); }
.eb-en mark { color: #fff; font-weight: 700; background: linear-gradient(transparent 88%, #c9a24a 88%, #c9a24a 96%, transparent 96%) no-repeat 0 0 / 100% 100%; padding: 0 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.eb-ja { margin: 0 0 4px; font-size: 14.5px; line-height: 1.8; opacity: 0.88; }
.eb-by { margin: 0 0 10px; font-size: 12.5px; opacity: 0.6; }
.eb-why { margin: 0 0 12px; padding-top: 10px; border-top: 1px solid rgba(243, 237, 226, 0.14); font-size: 14.5px; line-height: 1.85; }
.eb-act { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.eb-quotes .eb-b.ghost { color: #f3ede2; border-color: rgba(243, 237, 226, 0.3); }
.eb-b { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ink, #222); background: var(--ink, #222); color: var(--bg, #fff); font: 700 13.5px var(--jp); text-decoration: none; cursor: pointer; }
.eb-b.ghost { background: transparent; color: inherit; border-color: var(--line); }
.eb-b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.eb-score { font-size: 14px; opacity: 0.85; }
.eb-score b { font: 600 22px 'Playfair Display', Georgia, serif; color: #b8913c; }
.eb-drill { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.eb-d { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; transition: border-color 0.3s; }
.eb-d.ok { border-color: #2e7d4f; } .eb-d.ng { border-color: #b3261e; }
.eb-dn { margin: 0 0 6px; font: 700 15px 'Playfair Display', Georgia, serif; color: #b8913c; }
.eb-dn small { margin-left: 8px; font: 700 11px var(--jp); opacity: 0.8; color: var(--ink); }
.eb-q { margin: 0 0 12px; font-size: 16.5px; line-height: 1.75; }
.eb-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.eb-opts button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: inherit; font: 500 15.5px/1.4 'Playfair Display', Georgia, var(--jp), serif; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.15s; }
.eb-opts button span { font: 700 12px 'Poppins', sans-serif; opacity: 0.6; }
.eb-opts button:hover:not(:disabled) { border-color: #b8913c; }
.eb-opts button.right { border-color: #2e7d4f; background: rgba(46, 125, 79, 0.12); }
.eb-opts button.wrong { border-color: #b3261e; background: rgba(179, 38, 30, 0.1); }
.eb-opts button:disabled { cursor: default; }
.eb-built { min-height: 48px; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; margin-bottom: 8px; border: 1px dashed var(--line); border-radius: 12px; }
.eb-pool { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.eb-built button, .eb-pool button { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: inherit; font: 500 15px 'Playfair Display', Georgia, serif; cursor: pointer; }
.eb-built button { background: color-mix(in srgb, #b8913c 12%, transparent); border-color: #b8913c; }
.eb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.eb-row input { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: inherit; font: 500 16px 'Playfair Display', Georgia, serif; }
.eb-exp { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, #b8913c 8%, transparent); }
.eb-exp p { margin: 0 0 4px; font-size: 14.5px; line-height: 1.85; }
.eb-ans { font-weight: 700; }
.eb-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 54px; padding-top: 18px; border-top: 1px solid var(--line); }
.eb-nav a { color: inherit; text-decoration: none; font: 700 15px/1.5 'Shippori Mincho B1', var(--jp), serif; }
.eb-nav a small { display: block; font: 600 11px var(--jp); opacity: 0.6; }
.eb-nav a:last-child { text-align: right; }
.eb-nav .eb-nav-c { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.mo .eb-d.ok { animation: hop 0.5s; } .mo .eb-d.ng { animation: no 0.4s; }
@media (max-width: 640px) {
  .eb-how { grid-template-columns: 1fr; }
  .eb-opts { grid-template-columns: 1fr; }
  .eb-u { grid-template-columns: 34px 1fr auto 20px; gap: 8px; }
  .eb-u-t i { white-space: normal; }
  .eb-stats { gap: 22px; }
}
@media print { .eb-hero, .eb-head { background: none; color: #000; } .eb-quotes li { background: none; color: #000; border: 1px solid #999; } .eb-exp { display: block !important; } .eb-toc, .eb-act, .eb-row { display: none; } }

/* ══ 図と動き（12/3 ユーザー「文字ばかりでつまらない。motion や図表を」「Codex で絵を」）。図の HTML は scripts/ebfig.mjs */
/* 役割の色（紙の地＝濃い色、黒い地＝明るい色） */
.ef-c, .bk-c { --rc: #3a3a40; }
.ef-c.r-s, .bk-c.r-s { --rc: #2f5d8a; } .ef-c.r-v, .bk-c.r-v { --rc: #a83a32; } .ef-c.r-o, .bk-c.r-o { --rc: #3d7a52; } .ef-c.r-c, .bk-c.r-c { --rc: #6b4f8f; }
.ef-c.r-m, .bk-c.r-m { --rc: #63676e; } .ef-c.r-f, .bk-c.r-f { --rc: #94700f; } .ef-c.r-k, .bk-c.r-k { --rc: #2a7272; }
:root[data-theme='dark'] .ef-c, .eb-fig .bk-c { --rc: #d9d4ca; }
:root[data-theme='dark'] .ef-c.r-s, .eb-fig .bk-c.r-s { --rc: #8fbbe8; } :root[data-theme='dark'] .ef-c.r-v, .eb-fig .bk-c.r-v { --rc: #f0958c; } :root[data-theme='dark'] .ef-c.r-o, .eb-fig .bk-c.r-o { --rc: #8fd0a6; } :root[data-theme='dark'] .ef-c.r-c, .eb-fig .bk-c.r-c { --rc: #c9b0ec; }
:root[data-theme='dark'] .ef-c.r-m, .eb-fig .bk-c.r-m { --rc: #b8bcc4; } :root[data-theme='dark'] .ef-c.r-f, .eb-fig .bk-c.r-f { --rc: #e7c97f; } :root[data-theme='dark'] .ef-c.r-k, .eb-fig .bk-c.r-k { --rc: #86d0cc; }

/* 公式：色の部品 */
.eb-form.ef { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 14px 18px; margin: 0 0 14px; }
.ef-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ef-l { margin-right: 4px; padding: 3px 9px; border-radius: 6px; background: #131217; color: #e1c47e; font: 700 12px/1.5 var(--jp); }
:root[data-theme='dark'] .ef-l { background: #e1c47e; color: #131217; }
.ef-u { display: inline-flex; }
.ef-c { display: inline-block; padding: 4px 11px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); background: color-mix(in srgb, var(--rc) 11%, transparent); color: var(--rc); font: 600 15.5px/1.45 'Playfair Display', Georgia, var(--jp), serif; }
.ef-plus { font: 700 15px 'Poppins', sans-serif; opacity: 0.45; }
.ef-arw { padding: 0 4px; color: #b8913c; font: 700 18px/1 'Poppins', sans-serif; }
.ef-note { font: 500 12.5px/1.6 var(--jp); opacity: 0.72; }
.ef-plain .ef-ex { font: italic 600 15.5px/1.6 'Playfair Display', Georgia, var(--jp), serif; }

/* 図の枠（いつも黒い地：名言カードとそろえる） */
.eb-fig { position: relative; margin: 6px 0 36px; padding: 22px 22px 18px; border-radius: 18px; background: radial-gradient(700px 260px at 0% 0%, #26232d 0%, #15141a 60%, #0f0e12 100%); color: #f3ede2; box-shadow: 0 24px 46px -30px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(225, 196, 126, 0.16); overflow: hidden; }
.eb-fig::before { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(225, 196, 126, 0.13), transparent 70%); pointer-events: none; }
.eb-fig-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 18px; font: 700 16.5px/1.5 'Shippori Mincho B1', var(--jp), serif; }
.eb-fig-h small { font: 600 10.5px 'Poppins', sans-serif; letter-spacing: 0.24em; color: #c9a24a; }
.eb-fig-cap { margin: 16px 0 0; padding-top: 10px; border-top: 1px solid rgba(243, 237, 226, 0.1); font-size: 13.5px; line-height: 1.8; color: rgba(243, 237, 226, 0.75); }

/* 時の流れ */
.tl { position: relative; padding-top: 2px; }
.tl-now { position: absolute; top: 0; bottom: 26px; width: 0; border-left: 1px dashed rgba(225, 196, 126, 0.55); }
.tl-lane { position: relative; padding-top: 20px; }
.tl-ll { position: absolute; top: 0; left: 0; font: 700 12.5px/1.4 var(--jp); color: #e1c47e; }
.tl-track { position: relative; height: 40px; }
.tl-span { position: absolute; top: 10px; height: 20px; border-radius: 10px; background: linear-gradient(90deg, rgba(225, 196, 126, 0.35), #e1c47e); transform-origin: 0 50%; }
.tl-span.back { transform-origin: 100% 50%; background: linear-gradient(270deg, rgba(225, 196, 126, 0.35), #e1c47e); }
.tl-span::after { content: ''; position: absolute; right: -7px; top: 50%; border: 8px solid transparent; border-left: 9px solid #e1c47e; border-right: 0; transform: translateY(-50%); }
.tl-span.back::after { right: auto; left: -7px; border-left: 0; border-right: 9px solid #e1c47e; }
.tl-span em { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 6px; font: 700 11.5px/1 'Playfair Display', Georgia, var(--jp), serif; font-style: normal; color: #17151b; white-space: nowrap; }
.tl-span.k-b { background: linear-gradient(90deg, rgba(143, 187, 232, 0.3), #8fbbe8); } .tl-span.k-b::after { border-left-color: #8fbbe8; } .tl-span.k-b.back::after { border-right-color: #8fbbe8; }
.tl-span.k-c { background: linear-gradient(90deg, rgba(240, 149, 140, 0.3), #f0958c); } .tl-span.k-c::after { border-left-color: #f0958c; } .tl-span.k-c.back::after { border-right-color: #f0958c; }
.tl-span.k-e { background: linear-gradient(90deg, rgba(143, 208, 166, 0.3), #8fd0a6); } .tl-span.k-e::after { border-left-color: #8fd0a6; } .tl-span.k-e.back::after { border-right-color: #8fd0a6; }
.tl-span.k-dash { background: repeating-linear-gradient(90deg, rgba(225, 196, 126, 0.5) 0 8px, transparent 8px 13px); box-shadow: inset 0 0 0 1px rgba(225, 196, 126, 0.6); }
.tl-span.k-dash em { color: #f3ede2; text-shadow: 0 1px 4px #000; }
.tl-mark { position: absolute; top: 12px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.tl-mark i { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(225, 196, 126, 0.55), 0 0 18px rgba(225, 196, 126, 0.8); }
.tl-mark em { margin-top: 4px; padding: 1px 6px; border-radius: 5px; background: rgba(12, 12, 15, 0.75); font: 700 11px/1.4 var(--jp); font-style: normal; color: #f3ede2; white-space: nowrap; }
.tl-mark.k-c i { background: #f0958c; } .tl-mark.k-b i { background: #8fbbe8; }
.tl-lane:has(.tl-mark) .tl-track { height: 54px; }
.tl-axis { position: relative; height: 34px; margin-top: 4px; }
.tl-line { position: absolute; left: 1%; right: 1%; top: 7px; height: 2px; background: linear-gradient(90deg, transparent, rgba(243, 237, 226, 0.5) 8%, rgba(243, 237, 226, 0.5)); }
.tl-line::after { content: ''; position: absolute; right: -2px; top: 50%; border: 6px solid transparent; border-left: 9px solid rgba(243, 237, 226, 0.6); border-right: 0; transform: translateY(-50%); }
.tl-tick { position: absolute; top: 0; transform: translateX(-50%); padding-top: 14px; font: 600 12px/1.3 var(--jp); color: rgba(243, 237, 226, 0.7); white-space: nowrap; }
.tl-tick::before { content: ''; position: absolute; left: 50%; top: 2px; width: 2px; height: 12px; background: rgba(243, 237, 226, 0.6); transform: translateX(-50%); }
.tl-tick.now { color: #e1c47e; font-weight: 800; }
.tl-tick.now::before { background: #e1c47e; width: 3px; }

/* ものさし */
.sc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: 12px; color: rgba(243, 237, 226, 0.6); }
.sc-h b { font: 700 13.5px var(--jp); color: #e1c47e; }
.sc-row { display: grid; grid-template-columns: minmax(7em, 11em) 1fr minmax(7em, 12em); align-items: center; gap: 14px; padding: 7px 0; border-top: 1px solid rgba(243, 237, 226, 0.07); }
.sc-en { font: italic 600 17px/1.3 'Playfair Display', Georgia, serif; color: #fff; }
.sc-bar { height: 10px; border-radius: 5px; background: rgba(243, 237, 226, 0.09); overflow: hidden; }
.sc-bar i { display: block; height: 100%; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, #7d6327, #e1c47e); box-shadow: 0 0 12px rgba(225, 196, 126, 0.45); transform-origin: 0 50%; }
.sc-ja { font-size: 13px; line-height: 1.5; color: rgba(243, 237, 226, 0.82); }

/* 文の部品・書き換えの手順 */
.bk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 0; border-top: 1px dashed rgba(243, 237, 226, 0.12); }
.bk-row:first-child { border-top: 0; padding-top: 0; }
.bk-l { flex-basis: 100%; font: 700 12.5px/1.4 var(--jp); color: #e1c47e; letter-spacing: 0.04em; }
.bk-cs { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.bk-c { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 54px; padding: 8px 13px 6px; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); background: color-mix(in srgb, var(--rc) 15%, transparent); }
.bk-c b { font: 600 17px/1.3 'Playfair Display', Georgia, var(--jp), serif; color: #fff; }
.bk-c small { margin-top: 3px; font: 700 10.5px/1.2 var(--jp); color: var(--rc); letter-spacing: 0.04em; white-space: nowrap; }
.bk-n { flex-basis: 100%; font-size: 13px; line-height: 1.7; color: rgba(243, 237, 226, 0.72); }
.fl { display: flex; flex-direction: column; }
.fl-step { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(243, 237, 226, 0.13); background: rgba(255, 255, 255, 0.035); }
.fl-step .bk-l { display: block; margin-bottom: 8px; }
.fl-ja { margin: 8px 0 0; font-size: 13px; color: rgba(243, 237, 226, 0.72); }
.fl-arw { display: flex; align-items: center; gap: 12px; padding: 8px 0 8px 22px; color: #e1c47e; }
.fl-arw span { font: 700 22px/1 'Poppins', sans-serif; }
.fl-arw em { font: 600 13px/1.6 var(--jp); font-style: normal; color: rgba(243, 237, 226, 0.85); }

/* 2 つを比べる */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 14px; }
.vs-c { padding: 18px 18px 16px; border-radius: 14px; border: 1px solid rgba(243, 237, 226, 0.13); background: rgba(255, 255, 255, 0.035); }
.vs-h { margin: 0 0 10px; font: italic 700 20px/1.35 'Playfair Display', Georgia, serif; color: #fff; }
.vs-dir { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 11px var(--jp); color: rgba(243, 237, 226, 0.5); }
.vs-line { position: relative; flex: 1; height: 2px; background: rgba(243, 237, 226, 0.18); }
.vs-line i { position: absolute; top: -2px; height: 6px; border-radius: 3px; background: #e1c47e; box-shadow: 0 0 10px rgba(225, 196, 126, 0.6); }
.vs-line i::after { content: ''; position: absolute; top: 50%; border: 6px solid transparent; transform: translateY(-50%); }
.d-future .vs-line i { left: 50%; right: 0; transform-origin: 0 50%; } .d-future .vs-line i::after { right: -8px; border-left: 9px solid #e1c47e; border-right: 0; }
.d-past .vs-line i { right: 50%; left: 0; transform-origin: 100% 50%; } .d-past .vs-line i::after { left: -8px; border-right: 9px solid #e1c47e; border-left: 0; }
.d-now .vs-line i { left: calc(50% - 6px); width: 12px; height: 12px; top: -5px; border-radius: 50%; }
.d-same .vs-line i { left: 20%; width: 60%; height: 6px; top: -2px; border-radius: 3px; }
.vs-ja { margin: 0 0 10px; font: 700 15px/1.6 'Shippori Mincho B1', var(--jp), serif; }
.vs-ex { margin: 0; padding-top: 10px; border-top: 1px solid rgba(243, 237, 226, 0.1); font: italic 500 15.5px/1.5 'Playfair Display', Georgia, serif; color: #e1c47e; }
.vs-exja { margin: 4px 0 0; font-size: 12.5px; color: rgba(243, 237, 226, 0.65); }
.vs-mid { align-self: center; font: italic 700 17px 'Playfair Display', Georgia, serif; color: #c9a24a; letter-spacing: 0.06em; }

/* 表を色の箱で */
.eb-fig.ef-matrix { overflow-x: auto; }
.mx { display: grid; grid-template-columns: auto repeat(var(--n), minmax(84px, 1fr)); gap: 6px; min-width: min-content; }
.mx-ch { padding: 4px 6px; text-align: center; font: 700 12.5px/1.4 var(--jp); color: #e1c47e; }
.mx-rh { display: flex; align-items: center; padding: 0 10px 0 0; font: 700 13px/1.4 var(--jp); color: rgba(243, 237, 226, 0.85); white-space: nowrap; }
.mx-cell { display: flex; align-items: center; justify-content: center; padding: 11px 8px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(243, 237, 226, 0.08); text-align: center; font: 500 15px/1.35 'Playfair Display', Georgia, serif; color: #f3ede2; }
.mx-cell.hi { background: rgba(225, 196, 126, 0.17); border-color: rgba(225, 196, 126, 0.7); color: #fff; font-weight: 700; box-shadow: 0 0 18px -6px rgba(225, 196, 126, 0.6); }

/* 講義の頭の絵（Codex の油彩）と大きな番号 */
.eb-head { position: relative; overflow: hidden; isolation: isolate; }
.eb-head > .wrap { position: relative; z-index: 2; }
.eb-head.has-img { padding: 72px 0 34px; }
.eb-head-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center 38%; }
.eb-head-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 12, 15, 0.42) 0%, rgba(12, 12, 15, 0.8) 52%, #0c0c0f 100%); }
.eb-head-no { position: absolute; right: 3%; top: 6px; z-index: 1; font: italic 700 clamp(110px, 19vw, 230px) / 1 'Playfair Display', Georgia, serif; color: transparent; -webkit-text-stroke: 1px rgba(225, 196, 126, 0.42); pointer-events: none; }
.eb-hero { position: relative; }
.eb-hero.has-img { background: linear-gradient(180deg, rgba(12, 12, 15, 0.5), rgba(12, 12, 15, 0.9)), var(--img) center 40% / cover; padding: 80px 0 54px; }
.eb-lec h3 span { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #b8913c; font-size: 14px; line-height: 1; }
.eb-u.has-img { position: relative; grid-template-columns: 112px 1fr auto 22px; }
.eb-u-img { width: 112px; height: 63px; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.6); }
.eb-u.has-img .eb-no { position: absolute; left: 12px; top: 18px; font-size: 15px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }


/* 動き（html.mo のときだけ。eibunpo.js が eb-rv・in を付ける） */
.mo .eb-rv { opacity: 0; transform: translateY(26px); transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.mo .eb-rv.in { opacity: 1; transform: none; }
.mo .ef.in .ef-u, .mo .ef.in .ef-row > .ef-c { animation: eb-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) calc(var(--i, 0) * 75ms + var(--r, 0) * 160ms) both; }
.mo .ef.in .ef-arw { animation: eb-fade 0.4s 0.3s both; }
.mo .eb-fig.in .tl-span { animation: eb-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--d, 0s) + 0.15s) both; }
.mo .eb-fig.in .tl-mark { animation: eb-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) calc(var(--d, 0s) + 0.4s) both; }
.mo .eb-fig.in .tl-mark i { animation: eb-pulse 2.4s ease-in-out 1.4s infinite; }
.mo .eb-fig.in .sc-bar i { animation: eb-grow 1s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i, 0) * 110ms + 0.15s) both; }
.mo .eb-fig.in .bk-c { animation: eb-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) calc(var(--i, 0) * 90ms + var(--r, 0) * 260ms + 0.1s) both; }
.mo .eb-fig.in .fl-step, .mo .eb-fig.in .fl-arw { animation: eb-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i, 0) * 420ms) both; }
.mo .eb-fig.in .fl-step .bk-c { animation: none; }
.mo .eb-fig.in .vs-c:first-child { animation: eb-left 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
.mo .eb-fig.in .vs-c:last-child { animation: eb-right 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both; }
.mo .eb-fig.in .vs-mid { animation: eb-pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) 0.6s both; }
.mo .eb-fig.in .vs-line i { animation: eb-grow 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s both; }
.mo .eb-fig.in .d-now .vs-line i { animation: eb-pop 0.5s 0.8s both, eb-pulse 2.4s ease-in-out 1.6s infinite; }
.mo .eb-fig.in .mx-cell { animation: eb-fade 0.45s ease-out calc(var(--i, 0) * 45ms + 0.1s) both; }
.mo .eb-fig.in .mx-cell.hi { animation: eb-pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) calc(var(--i, 0) * 45ms + 0.3s) both, eb-glow 2.8s ease-in-out 1.6s infinite; }
.mo .eb-quotes li.eb-rv mark { background-size: 0% 100%; }
.mo .eb-quotes li.eb-rv.in mark { background-size: 100% 100%; transition: background-size 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s; }
.mo .eb-trap.in .ng span { display: inline-block; animation: eb-no 0.5s 0.35s both; }
.mo .eb-trap.in .ok span { display: inline-block; animation: eb-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) 0.7s both; }
.mo .eb-head-bg { animation: eb-kb 26s ease-out both; }
.mo .eb-head-no { animation: eb-no-in 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
.mo .eb-head h1, .mo .eb-head .eb-short { animation: eb-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.mo .eb-head .eb-short { animation-delay: 0.12s; }
.eb-d { position: relative; }
.mo .eb-d.ok::after { content: ''; position: absolute; inset: -1px; border-radius: 16px; border: 2px solid #2e7d4f; pointer-events: none; animation: eb-ring 0.8s ease-out forwards; }
@keyframes eb-pop { from { opacity: 0; transform: scale(0.6) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes eb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes eb-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes eb-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes eb-left { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes eb-right { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes eb-pulse { 50% { box-shadow: 0 0 0 5px rgba(225, 196, 126, 0.25), 0 0 26px rgba(225, 196, 126, 0.9); } }
@keyframes eb-glow { 50% { box-shadow: 0 0 26px -4px rgba(225, 196, 126, 0.85); } }
@keyframes eb-no { 0% { transform: scale(0.4); opacity: 0; } 50% { transform: scale(1.4); opacity: 1; } 65% { transform: translateX(-3px) scale(1.1); } 80% { transform: translateX(3px); } 100% { transform: none; } }
@keyframes eb-kb { from { transform: scale(1.14); } to { transform: scale(1.02); } }
@keyframes eb-no-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes eb-ring { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(1.05); } }

@media (max-width: 640px) {
  .eb-fig { padding: 18px 14px 14px; margin-left: -6px; margin-right: -6px; border-radius: 14px; }
  .sc-row { grid-template-columns: 1fr auto; grid-template-areas: 'en ja' 'bar bar'; gap: 6px 10px; }
  .sc-en { grid-area: en; } .sc-ja { grid-area: ja; text-align: right; } .sc-bar { grid-area: bar; }
  .vs { grid-template-columns: 1fr; gap: 8px; }
  .vs-mid { justify-self: center; }
  .mo .eb-fig.in .vs-c:first-child, .mo .eb-fig.in .vs-c:last-child { animation-name: eb-rise; }
  .bk-c { min-width: 44px; padding: 7px 10px 5px; }
  .bk-c b { font-size: 15.5px; }
  .ef-c { font-size: 14.5px; padding: 3px 9px; }
  .tl-span em, .tl-mark em { font-size: 10.5px; }
  .eb-head.has-img { padding-top: 56px; }
  .eb-u.has-img { grid-template-columns: 80px 1fr auto 20px; }
  .eb-u-img { width: 80px; height: 45px; }
  .eb-u.has-img .eb-no { left: 10px; top: 16px; font-size: 13px; }
}
@media print { .eb-fig { background: none; color: #000; box-shadow: none; border: 1px solid #999; } .eb-rv { opacity: 1 !important; transform: none !important; } .eb-head-bg, .eb-prog { display: none; } }
.mx-cell[data-ja] { font: 700 13.5px/1.5 var(--jp); }
