/* 時事ネタ英語レッスン 共通スタイル（色・文字はモックで決めたもの） */
:root {
  --bg: #f5f6f2; --paper: #ffffff; --ink: #18212b; --muted: #5a6570; --line: #dde1da;
  --green: #1d6b58; --green-d: #14503f; --blue: #2b4f93; --amber: #8a4f00;
  --hl: rgba(255, 210, 80, 0.38); --hl-u: rgba(255, 196, 40, 0.6);
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --en: Literata, Georgia, serif;
  --bar-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.85; }
a { color: var(--green); }
a:hover { color: var(--green-d); }
img { max-width: 100%; height: auto; }
button { font: inherit; }
:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px 10px; z-index: 100; }
.wrap { max-width: 960px; margin: 0 auto; padding: 28px 16px 64px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.label { font-size: 13px; font-weight: 700; color: var(--muted); }
.small-link { font-size: 13px; font-weight: 700; text-decoration: none; }
.row-between { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--c, var(--green)); border-radius: 6px; padding: 0 8px; line-height: 1.7; white-space: nowrap; }
.badge.gray { background: #eef0eb; color: var(--muted); }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; }
.button:hover { color: #fff; background: var(--green-d); }

/* ヘッダー・フッター */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-in { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--green); text-decoration: none; }
.logo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(29,107,88,.2); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--green); }
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-in { padding-top: 20px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted); }
.footer-in nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-in a { color: var(--muted); }
.page-lesson .site-footer, 
/* 見出し・共通 */
h1 { margin: 0; font-size: 30px; line-height: 1.35; }
.page-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.page-head p { margin: 0; }
.title-en { margin: 0; font-family: var(--en); font-style: italic; font-size: 18px; color: var(--muted); line-height: 1.5; }
.title-en.small { font-size: 14px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); align-items: center; }
.kicker { margin: 0; font-size: 13px; font-weight: 700; color: var(--green); letter-spacing: .08em; }
.hero { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: #fff; margin-top: 6px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { min-height: 40px; display: inline-flex; align-items: center; padding: 4px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; text-decoration: none; cursor: pointer; }
.chip.on, .chip[aria-selected="true"] { background: var(--c, var(--green)); border-color: var(--c, var(--green)); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 700; cursor: pointer; border-radius: 999px; padding: 6px 16px; border: 1.5px solid var(--green); background: #fff; color: var(--green); }
.pill.on { background: var(--green); color: #fff; }
.play-btn { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1.5px solid var(--green); background: #fff; color: var(--green); display: inline-grid; place-items: center; cursor: pointer; padding: 0; font-size: 13px; font-weight: 700; }
.play-btn.on { background: var(--green); color: #fff; }
.play-spacer { width: 36px; flex: none; }
.star { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.star[aria-pressed="true"] { background: #fff4d6; color: var(--amber); border-color: var(--amber); }
.star[aria-pressed="true"] svg { fill: currentColor; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { background: var(--bg); font-size: 13px; color: var(--muted); border-top: 0; }
.note { background: #fff8e6; border-left: 4px solid #e2b33c; border-radius: 8px; padding: 10px 14px; }

/* レッスン */
.lesson { display: flex; flex-direction: column; gap: 26px; }
.lesson-head { display: flex; flex-direction: column; gap: 8px; }
.lesson-head h1 { font-size: 32px; }
.level-box { display: flex; flex-direction: column; gap: 10px; }
.level-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.level-tab { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; line-height: 1.3; padding: 6px; }
.level-tab b { font-size: 15px; }
.level-tab span { font-size: 12px; color: var(--muted); }
.level-tab.on { background: var(--c); border-color: var(--c); color: #fff; }
.level-tab.on span { color: rgba(255,255,255,.85); }
.level-tab.off { opacity: .55; cursor: not-allowed; }
.level-desc { margin: 0; font-size: 13px; color: var(--muted); }
.lesson-tools { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; padding: 10px 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.hint { font-size: 13px; color: var(--muted); }
.corner { display: flex; flex-direction: column; gap: 4px; }
.corner-title { margin: 0 0 6px; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.corner-title::before { content: ""; width: 4px; height: 20px; background: var(--green); border-radius: 2px; }
.seg { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.seg:hover { background: rgba(29,107,88,.05); }
.seg.now { background: var(--hl); }
.seg .who { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 4px; }
.seg-en .who { color: var(--blue); }
.seg-body { margin: 0; min-width: 0; }
.seg p { margin: 0; }
.en { font-family: var(--en); font-size: 19px; line-height: 1.75; }
.ja { font-size: 14px; color: var(--muted); margin-top: 2px !important; }
.en-hidden { display: none; font-size: 14px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 8px; padding: 6px 12px; }
.hide-en .page-lesson .en { display: none; }
.hide-en .page-lesson .en-hidden { display: block; }
.hide-ja .ja { display: none; }
.u.now { border-radius: 3px; background-color: var(--hl-u); box-shadow: 0 2px 0 #c08a00; }
.u-en { font-family: var(--en); }
/* 文の構造（薄く表示）: S・V・O・C は下線と小さな記号、かっこは薄い灰色 */
:root { --sS: rgba(43,79,147,.42); --sV: rgba(176,58,46,.42); --sO: rgba(29,107,88,.45); --sC: rgba(138,79,0,.45); }
/* 下線は文字の下線（text-decoration）ではなく、要素の背景に細い線を描く（環境によって語の間の空白に下線が引かれず、
   語ごとに切れて見えたため。背景は空白をふくむ要素の幅いっぱいに描かれる。2026-11-02） */
/* 閉じかっこ・句読点のある語（.x）は、語の部分（.ut）だけに引く */
:is(.rS, .rV, .rO, .rC):not(.x), .x > .ut { background-repeat: no-repeat; background-size: 100% 1.5px; background-position: 0 calc(100% - 1px); }
.rS:not(.x), .rS > .ut { background-image: linear-gradient(var(--sS), var(--sS)); } .rV:not(.x), .rV > .ut { background-image: linear-gradient(var(--sV), var(--sV)); }
.rO:not(.x), .rO > .ut { background-image: linear-gradient(var(--sO), var(--sO)); } .rC:not(.x), .rC > .ut { background-image: linear-gradient(var(--sC), var(--sC)); }
/* 構造を表示しているときは、語句（熟語など）の点線の下線をやめて、薄い色の帯で示す（下線が重ならないように） */
html:not(.no-svoc) :is(.ex-en, .en) b { text-decoration: none; background: linear-gradient(transparent 62%, rgba(226,179,60,.22) 62%); }
html:not(.no-svoc) .term:not(.w) { text-decoration: none; background: linear-gradient(transparent 62%, rgba(29,107,88,.075) 62%); border-radius: 2px; }
/* 記号: 品詞（名・動 …）は語の上、文型（S・V・O・C）は語の下に小さく。どちらも、かたまりの左端の語に出す */
.u[data-lab], .u[data-ps] { position: relative; }
.u[data-ps]::before { content: attr(data-ps); position: absolute; left: 0; bottom: 100%; transform: translateY(3px); font: 9.5px/1 var(--font); color: #a3aaa6; letter-spacing: 0; pointer-events: none; white-space: nowrap; }
.u[data-lab]::after { content: attr(data-lab); position: absolute; left: 0; top: 100%; transform: translateY(5px); font: 700 10px/1 var(--font); letter-spacing: 0; pointer-events: none; }
.u[data-lab="S"]::after { color: var(--sS); } .u[data-lab="V"]::after { color: var(--sV); }
.u[data-lab="O"]::after { color: var(--sO); } .u[data-lab="C"]::after { color: var(--sC); }
.tp { display: inline-block; }
.sb { color: #a9b0a8; font-weight: 400; margin: 0 1px; user-select: none; display: inline-block; }
/* かっこの記号は CSS で出す（本文の文字に入れない: 検索エンジンやコピーで英文がそのまま読めるように。2026-11-02） */
.sb::before { content: attr(data-b); }
/* 開きかっこは語の一部として下線を引く（percent [of … のように、かたまりの途中でも下線が切れないように） */
.sb.so { display: inline; margin: 0; }
/* 英文の行の高さ（上下の記号が入る分） */
html .pl-body :is(.en, .ex-en, .vocab-ex) { line-height: 2.8; padding-bottom: 10px; }
html.no-svoc .pl-body :is(.en, .ex-en, .vocab-ex) { line-height: 2.4; padding-top: 3px; padding-bottom: 0; }
html.no-pos .pl-body :is(.en, .ex-en, .vocab-ex) { line-height: 2.4; padding-bottom: 10px; }
html.no-svoc.no-pos .pl-body :is(.en, .ex-en, .vocab-ex) { line-height: 1.75; padding: 0; }
.no-svoc :is(.rS, .rV, .rO, .rC), .no-svoc .x > .ut { background-image: none; }
.no-svoc .u[data-lab]::after, .no-pos .u[data-ps]::before, .no-br .sb { display: none; }
.hide-ja :is(.ja, .ex-ja, .vocab-ex-ja) { display: none; }
/* 表示の設定（ヘッダーの「表示」） */
.header-in { position: relative; }
.opt-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 2px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; cursor: pointer; }
.opt-btn[aria-expanded="true"] { border-color: var(--green); color: var(--green); }
.opt-panel { position: absolute; right: 16px; top: calc(100% - 6px); z-index: 60; width: min(360px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(20,30,40,.14); padding: 12px 14px; }
.opt-h { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sw { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0f2ee; cursor: pointer; font-size: 15px; }
.sw input { width: 18px; height: 18px; accent-color: var(--green); }
.opt-ex { grid-column: 2; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.opt-ex b { font-weight: 700; } .opt-ex .kS { color: var(--sS); } .opt-ex .kV { color: var(--sV); } .opt-ex .kO { color: var(--sO); } .opt-ex .kC { color: var(--sC); }
.opt-help { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.opt-help summary { cursor: pointer; }
.opt-help p { margin: 6px 0 0; }
.unit-tools { margin: 6px 0 0; }
.term { text-decoration: underline dotted rgba(29,107,88,.55) 2px; text-underline-offset: 4px; position: relative; }
.term.hover { background: rgba(255,196,40,.35); border-radius: 3px; }
.popup { position: absolute; z-index: 40; width: 310px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 10px; box-shadow: 0 12px 32px rgba(24,33,43,.16); font-family: var(--font); font-size: 14px; line-height: 1.6; display: flex; flex-direction: column; gap: 6px; cursor: default; }
.popup .p-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.popup .p-term { font-family: var(--en); font-weight: 600; font-size: 19px; }
.popup .p-pos { font-size: 12px; color: var(--muted); }
.popup .p-mean { font-size: 15px; font-weight: 700; }
.popup .p-note { font-size: 13px; background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.popup img { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 8px; background: #fffdf6; }
.popup a { display: flex; justify-content: space-between; min-height: 40px; align-items: center; font-weight: 700; text-decoration: none; border-top: 1px solid var(--line); padding-top: 6px; }
.vocab-row { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.vocab-word { font-family: var(--en); font-weight: 600; font-size: 18px; line-height: 1.4; }
.vocab-word small { display: block; font-family: var(--font); font-weight: 400; font-size: 12px; color: var(--muted); }
.vocab-mean p { margin: 0; }
.vocab-ex { font-family: var(--en); color: var(--blue); }
.vocab-ex-ja { font-size: 13px; color: var(--muted); }
.vocab-btns { display: flex; gap: 6px; align-items: center; }
.study h2 { margin: 0 0 10px; font-size: 17px; }
.study-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.study-item { display: flex; flex-direction: column; gap: 2px; min-height: 44px; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.study-item:hover { border-color: var(--green); color: var(--ink); }
.study-item.off { opacity: .7; }
.study-grade { font-size: 12px; font-weight: 700; color: var(--c); }
.study-ex { font-family: var(--en); font-size: 14px; color: var(--blue); }
.soon { font-size: 12px; color: var(--muted); }
.pager-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pager-2 a { display: flex; flex-direction: column; min-height: 44px; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.pager-2 a.right { align-items: flex-end; text-align: right; }
.pager-2 small { color: var(--muted); font-size: 12px; }
.recent ul { list-style: none; padding: 0; margin: 0 0 8px; }
.recent li a { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.recent li span { color: var(--muted); font-size: 13px; min-width: 7em; }
.recent h2, .notice h2 { font-size: 17px; margin: 0 0 8px; }
.notice { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.notice p { margin: 0; }

/* 下の再生バー */
.player-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: var(--bar-h); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 12px; box-shadow: 0 -4px 16px rgba(24,33,43,.06); }
.pb-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.pb-play { width: 48px; height: 48px; background: var(--green); border-color: var(--green); color: #fff; }
.pb-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-seek { flex: 1; min-width: 60px; accent-color: var(--green); }
.pb-speed { display: flex; gap: 4px; }
.pb-speed button { min-height: 36px; padding: 2px 8px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; }
.pb-speed button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.pb-vol { display: flex; align-items: center; gap: 4px; flex: none; }
.pb-mute { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.pb-mute .x { display: none; }
.pb-mute.on .x { display: inline; } .pb-mute.on .wave { display: none; } .pb-mute.on { color: var(--muted); }
.pb-volume { width: 90px; accent-color: var(--green); }
.pb-mini { justify-content: flex-start; }
.pb-mini .pb-speed { margin-left: auto; }
.pb-label { font-size: 13px; color: var(--muted); }
.pb-mini .pb-play + .pb-label { margin-left: -2px; }

/* 単元ページ */
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.unit-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.unit-head .badge { align-self: flex-start; }
.unit-head h1 { font-size: 32px; }
.unit-head .hint { margin: 0; }
.unit-sec { margin: 0 0 34px; }
.unit-sec h2 { margin: 0 0 10px; font-size: 20px; display: flex; gap: 10px; align-items: baseline; }
.unit-sec h2 .num { font-family: "IBM Plex Mono", ui-monospace, monospace; color: var(--green); }
.unit-sec p { margin: 0 0 10px; }
.ex-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.ex { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.ex p { margin: 0 !important; }
.ex-en { font-family: var(--en); font-size: 18px; line-height: 1.6; }
.ex-en[data-play] { cursor: pointer; }
.ex-en b { text-decoration: underline 2px #e2b33c; text-underline-offset: 4px; font-weight: 600; }
.ex-ja { font-size: 14px; color: var(--muted); }
.ex.on { background: #fffbe9; border-color: #e2b33c; }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 10px 0; }
.compare-item { display: flex; flex-direction: column; gap: 6px; }
.compare-item.accent .ex { border: 1.5px solid var(--green); }
.diagram { margin: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.diagram img { width: 100%; max-width: 480px; height: auto; background: #fffdf6; border: 1px solid var(--line); border-radius: 12px; }
.diagram figcaption { font-size: 13px; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; }
.chips li span { font-family: var(--en); font-weight: 600; }
.news-ex { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.news-ex p { margin: 0 !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.explain { background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 15px; line-height: 1.8; }
.explain b { color: var(--green); }

/* 学年・レベル別 */
.grade-tabs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; position: sticky; top: 0; background: var(--bg); padding: 8px 0; z-index: 5; }
.grade-group { display: flex; flex-direction: column; gap: 4px; }
.grade-sec { scroll-margin-top: 170px; margin-bottom: 28px; }
.grade-sec h2 { font-size: 20px; margin: 0 0 4px; }
.has-tabs .grade-sec { display: none; }
.has-tabs .grade-sec.on { display: block; }
.unit-list { list-style: none; padding: 0; margin: 12px 0 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.unit-list li > a, .unit-list li > .off { display: grid; grid-template-columns: 5em minmax(0, 1fr) auto; grid-template-areas: "no name badge" "no ex badge"; gap: 0 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.unit-list li:first-child > * { border-top: 0; }
.unit-list li > a:hover { background: rgba(29,107,88,.05); }
.unit-list .off { color: var(--muted); }
.unit-no { grid-area: no; font-size: 12px; color: var(--muted); }
.unit-list b { grid-area: name; }
.unit-list .study-ex { grid-area: ex; }
.unit-list .badge { grid-area: badge; }

/* バックナンバー */
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; color: var(--ink); min-height: 44px; border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 12px; background: #fff; }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.lesson-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px 16px; overflow: hidden; }
.lesson-card:hover { border-color: var(--green); color: var(--ink); }
.lesson-card img { width: calc(100% + 32px); margin: 0 -16px 4px; aspect-ratio: 16 / 9; object-fit: cover; }
.lesson-card > b { font-size: 17px; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag { font-size: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; background: var(--bg); }
.tag b { color: var(--green); }
.pages { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.pages a { min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.pages a[aria-current="page"] { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }

/* 語句 */
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.letters a { min-width: 36px; min-height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-family: var(--en); }
.word-list { padding: 0; overflow: hidden; }
.word-row { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr) auto; gap: 8px 16px; padding: 14px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.word-row:first-child { border-top: 0; }
.word-main b { font-family: var(--en); font-size: 18px; display: block; line-height: 1.4; }
.word-main small { display: block; color: var(--muted); font-size: 12px; }
.word-mean p { margin: 0 0 4px; }
.word-dg { width: 100%; max-width: 280px; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 8px; background: #fffdf6; margin: 4px 0; }
.mine-list { margin: 0; padding-left: 1.2em; }
.small-h { font-size: 15px; margin: 0 0 6px; }

/* 使い方・このサイトについて */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.steps li span:last-child { font-size: 14px; color: var(--muted); line-height: 1.7; }
.step-no { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; display: grid; place-items: center; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.two-col p { margin: 6px 0 0; font-size: 15px; }
.checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.check-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 16px; }
.facts, .defs { margin: 10px 0 0; }
.facts { display: grid; grid-template-columns: 6em 1fr; gap: 4px 12px; }
.facts dt, .defs dt { font-weight: 700; }
.facts dd { margin: 0; }
.defs dd { margin: 0 0 10px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 6px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; }
.contact { display: flex; flex-direction: column; gap: 12px; }
.error { color: #b3412e; font-weight: 400; }

@media (max-width: 640px) {
  h1, .lesson-head h1, .unit-head h1 { font-size: 26px; }
  .wrap { padding-top: 20px; }
  .nav { gap: 2px 14px; font-size: 13px; }
  .seg { grid-template-columns: 1fr; gap: 0; }
  .seg .who { padding-top: 0; }
  .en { font-size: 18px; }
  .vocab-row { grid-template-columns: 1fr auto; }
  .vocab-word { grid-column: 1 / -1; }
  .word-row { grid-template-columns: 1fr auto; }
  .word-main { grid-column: 1 / -1; }
  .pb-time { display: none; }
  .pb-speed button { padding: 2px 6px; }
  .pb-volume { width: 56px; }
}
@media (max-width: 480px) {
  .pb-volume, .player-bar [data-act="prev"], .player-bar [data-act="next"] { display: none; }
  .pb-label { display: none; }
  .unit-list li > a, .unit-list li > .off { grid-template-columns: 4em minmax(0, 1fr) auto; }
  .grade-tabs { position: static; }
}
.lesson-card img { max-width: none; }
@media (max-width: 640px) { .level-tab b { font-size: 13px; } .level-tab { padding: 6px 2px; } }
.lesson-card { padding: 0 0 16px; }
.lesson-card > :not(img) { margin-left: 16px; margin-right: 16px; }
.lesson-card img { width: 100%; margin: 0 0 4px; }

/* 再生できるかたまり（サイト全体で共通） */
.pl { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 12px; margin: 6px 0; transition: background .15s, box-shadow .15s; }
.pl-side { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 2px; }
.pl .who { font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.3; text-align: center; }
.pl .who::after { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; letter-spacing: .05em; border-radius: 4px; padding: 0 5px; }
.pl-en .who { color: var(--blue); }
.pl-en .who::after { content: "英文"; color: #fff; background: var(--blue); }
.pl-ja .who::after { content: "解説"; color: var(--green); background: #e3efe9; }
.pl-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--green); background: #fff; color: var(--green); display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.pl-btn.on { background: var(--green); color: #fff; }
.pl-btn::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--i-play) center / contain no-repeat; mask: var(--i-play) center / contain no-repeat; }
.pl-btn.on::before { -webkit-mask-image: var(--i-pause); mask-image: var(--i-pause); }
:root { --i-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); --i-pause: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 5h4v14H6zM14 5h4v14h-4z'/%3E%3C/svg%3E"); }
.en-hidden::before { content: "英文はかくしています（クリック・タップで再生）"; }
.pl-body { min-width: 0; cursor: pointer; }
.pl-body p { margin: 0; }
.pl-en { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); }
.pl-en .en { font-family: var(--en); font-size: 19px; line-height: 1.75; color: #14233f; }
.pl-ja { background: transparent; border-left: 4px solid transparent; }
.pl-ja .pl-body { font-size: 16px; color: #2a333d; }
.pl-ex { background: #fff; border: 1px solid var(--line); grid-template-columns: 44px minmax(0, 1fr); }
.pl-vocab { grid-template-columns: 44px minmax(0, 1fr); margin: 0; padding: 4px 0; }
.pl.now { background: #fffbe9; box-shadow: 0 0 0 2px #f0cf6a inset; }
.pl-en.now { border-left-color: #c08a00; }
.compare-item.accent .pl-ex { border: 1.5px solid var(--green); }
.news-ex .pl { margin: 2px 0; }
.vocab-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.vocab-word { font-family: var(--en); font-weight: 600; font-size: 18px; line-height: 1.4; }
.vocab-word small { display: inline-block; margin-left: 10px; font-family: var(--font); font-weight: 400; font-size: 12px; color: var(--muted); }
.vocab-mean { font-weight: 700; }
@media (max-width: 640px) {
  .pl { grid-template-columns: 46px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .pl-en .en { font-size: 18px; }
}
.term.w { text-decoration: none; }
.w.hover { background: rgba(255,196,40,.28); border-radius: 3px; }
.popup .p-src { font-size: 11px; color: var(--muted); }
.popup .p-mean { font-weight: 700; font-size: 14px; }
.practice { margin: 10px 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; }
.practice li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.practice .q { margin: 0 0 4px !important; }
.practice summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--green); }
.practice .a { margin: 6px 0 0 !important; font-family: var(--en); font-size: 17px; }
.practice .hint-a { margin: 2px 0 0 !important; font-size: 14px; color: var(--muted); }

/* 辞書 */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dict-form { display: flex; gap: 8px; margin: 8px 0 4px; }
.dict-form input { flex: 1; min-width: 0; min-height: 48px; font-size: 18px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-family: var(--en), var(--font); }
.dict-form input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(29,107,88,.15); }
.dict-entry { margin: 12px 0; }
.dict-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.dict-entry h2 { font-family: var(--en); font-size: 26px; margin: 0; }
.dict-ipa { font-family: "Lucida Sans Unicode", "Arial Unicode MS", "Noto Sans", sans-serif; font-size: 16px; color: var(--muted); }
.dict-spk { display: inline-flex; gap: 4px; }
.dict-spk button { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; padding: 2px 8px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--green); cursor: pointer; }
.dict-spk button small { font-size: 11px; color: var(--muted); }
.dict-spk button:hover { border-color: var(--green); }
.dict-spk.mini button { min-height: 26px; padding: 0 6px; margin-left: 4px; vertical-align: middle; }
.dict-pchips { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.dict-pchip { font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 4px; padding: 0 6px; }
.dict-forms { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 15px; }
.dict-forms .label { margin-right: -4px; }
.dict-forms small { color: var(--muted); }
.dict-forms [lang=en] { font-family: var(--en); }
.dict-pos { font-size: 14px; color: var(--blue); margin: 12px 0 2px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.dict-mean .tag { display: inline-block; font-size: 10px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 3px; margin-right: 3px; line-height: 1.4; }
.dict-mean .gn { font-size: 12px; color: var(--muted); }
.dict-ex ul { list-style: none; padding: 0; margin: 4px 0 0; }
.dict-ex li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.dict-ex p { margin: 0; }
.dict-ex .ex-en { font-family: var(--en); font-size: 16px; }
.dict-ex .ex-ja { font-size: 14px; color: #3a4550; }
.dict-credit { margin-top: 20px; }
.dict-entry h2 small { font-family: var(--font); font-size: 13px; font-weight: 400; }
.dict-mean { margin: 6px 0 0; padding-left: 1.2em; }
.dict-mean li { margin: 2px 0; }
.dict-site { background: #f1f6f3; border-radius: 10px; padding: 8px 12px; margin: 6px 0; }
.dict-site p { margin: 4px 0 0; }
.dict-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.dict-chips a { font-family: var(--en); font-size: 15px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; }
.dict-chips a:hover { border-color: var(--green); }
.dict-more { margin: 16px 0; }
.dict-help { margin: 16px 0; }

/* ボタンの中の絵はクリックの対象にしない（押したのは常にボタン） */
button svg { pointer-events: none; }

/* トップ（最新のレッスン＋これまでのレッスン＋探す）・バックナンバーのカレンダー・月ごとのページ（2026-11-02） */
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.feature-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.feature-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.feature-body h1 { margin: 0; font-size: 26px; line-height: 1.4; text-wrap: balance; }
.feature-body h1 a { color: var(--ink); text-decoration: none; }
.feature-body h1 a:hover { color: var(--green); }
.feature-desc { margin: 0; font-size: 15px; }
.feature-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 6px; }
.lv-btn { display: flex; flex-direction: column; align-items: center; min-height: 52px; justify-content: center; border: 1.5px solid var(--line); border-radius: 10px; text-decoration: none; line-height: 1.35; background: #fff; padding: 4px; }
.lv-btn b { color: var(--c); font-size: 15px; }
.lv-btn span { color: var(--muted); font-size: 12px; }
.lv-btn:hover { border-color: var(--c); }
.home-sec { margin-top: 36px; }
.home-sec h2 { font-size: 19px; margin: 0; }
.home-sec .row-between { margin-bottom: 12px; }
.home-find { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.home-find .card { display: flex; flex-direction: column; gap: 10px; }
.home-find .card h2 { font-size: 17px; }
.home-find .card p { margin: 0; }
.chip small { margin-left: 4px; opacity: .65; font-size: 12px; }
.cal-scroll { max-height: 400px; overflow-y: auto; display: grid; gap: 16px; padding-right: 4px; }
.month-cal h3 { margin: 0 0 6px; font-size: 16px; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.month-cal h3 a { color: var(--ink); }
.month-cal h3 small { font-size: 13px; color: var(--muted); font-weight: 400; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { font-size: 12px; color: var(--muted); text-align: center; }
.cal .dow.sun, .cal .d.sun .n { color: #c0392b; }
.cal .dow.sat, .cal .d.sat .n { color: var(--blue); }
.cal .d { min-height: 40px; border-radius: 8px; border: 1px solid transparent; background: none; padding: 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.cal .d .n { font-size: 13px; line-height: 1.4; }
.cal .d.has { background: #eef2ec; border-color: var(--line); cursor: pointer; }
.cal .d.has:hover, .cal .d.sel { border-color: var(--green); }
.cal .d.sel { background: #dcebe4; }
.cal .d.today { box-shadow: inset 0 0 0 2px #f0b429; }
.cal .d.empty { visibility: hidden; }
.cal .dots { display: flex; gap: 3px; }
.cal .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.cal .t { display: none; }
.month-cal.big .d { min-height: 64px; align-items: stretch; text-align: left; padding: 4px 6px; }
.month-cal.big .d .n { font-weight: 700; }
.month-cal.big .dots { display: none; }
.month-cal.big .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.4; background: #fff; border-left: 3px solid var(--green); border-radius: 4px; padding: 2px 4px; }
.view-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 10px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 4px 16px; min-height: 36px; cursor: pointer; color: var(--muted); font: inherit; font-size: 14px; }
.seg button.on { background: var(--green); color: #fff; font-weight: 700; }
.month-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.month-jump a { font-size: 13px; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 1px 10px; background: #fff; font-variant-numeric: tabular-nums; }
.month-h { font-size: 17px; margin: 24px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.month-h a { color: var(--ink); }
.month-h small { font-size: 13px; color: var(--muted); font-weight: 400; }
.cal-stack { display: grid; gap: 16px; margin-top: 10px; }
.cal-stack .month-cal { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.more-btn { margin-top: 14px; width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px dashed var(--line); background: #fff; cursor: pointer; font: inherit; font-weight: 700; color: var(--green); }
.cal-day { margin-top: 12px; }
.cal-day h4 { margin: 0 0 4px; font-size: 15px; }
.cal-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.cal-row img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.cal-row b { display: block; line-height: 1.5; }
@media (max-width: 760px) {
  .feature { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .home-find { grid-template-columns: minmax(0, 1fr); }
  .month-cal.big .d { min-height: 46px; align-items: center; padding: 2px; }
  .month-cal.big .t { display: none; }
  .month-cal.big .dots { display: flex; }
  .cal-row { grid-template-columns: 88px minmax(0, 1fr); }
  .cal-row img { width: 88px; }
}
