/* 試験アプリ（/app.html?exam=<id>）のスタイル。色は /style.css のトークン（--bg・--surface・--brand など）だけを使い、
   暗い配色は html[data-mode="dark"] のトークンの上書きで自動で切り替わる。スマホ 375px を第一に作り、広い画面で左右に分ける。
   クラスは ea- で始める（ほかの画面の CSS と重ならないように）。 */

.ea-page { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
.ea-main { padding-top: 16px; padding-bottom: 24px; min-height: 60vh; }
.ea-main:focus { outline: none; }
.pre { white-space: pre-wrap; }
.ea-muted { color: var(--muted); }
.ea-small { font-size: 14px; }
.ea-loading { color: var(--muted); padding: 32px 0; }
.ea-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ea-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ea-unofficial { display: inline-block; padding: 0 7px; border-radius: 6px; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; font-weight: 700; line-height: 1.6; vertical-align: middle; }
.ea-noscroll { overflow: hidden; }

/* ヘッダー */
.ea-header .wrap { gap: 10px; }
.ea-head-title { display: grid; min-width: 0; line-height: 1.3; }
.ea-head-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: color-mix(in srgb, var(--fg) 78%, transparent); font-weight: 700; }
.ea-head-brand .ep-logo { font-size: 15px; }
#ea-exam-name { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ea-planchip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.ea-planchip.is-standard { background: var(--brand-soft); color: var(--brand); }
.ea-planchip.is-pro { background: var(--brand); color: var(--on-brand); }
.ea-planchip.is-premium { background: var(--fg); color: var(--bg); }
.icon-btn.is-on { color: var(--brand); border-color: var(--brand); }

/* 画面の切り替え（スマホは下に固定、広い画面はヘッダーの下） */
.ea-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.ea-tabs[hidden] { display: none; }
/* 要点集のない試験（config/exams.ts の hasNotes=false）は「要点集」の入口を出さないので 4 列 */
.ea-tabs.no-notes { grid-template-columns: repeat(4, 1fr); }
.ea-tabs a[hidden] { display: none; }
.ea-tabs a { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 700; min-height: 56px; }
.ea-tabs a.is-active { color: var(--brand); }
.ea-tabs .ico { width: 24px; height: 24px; }
body.ea-in-quiz .ea-tabs { display: none; }
body.ea-in-quiz { padding-bottom: 0; }
@media (min-width: 900px) {
  .ea-page { padding-bottom: 0; }
  .ea-tabs { position: sticky; top: 61px; z-index: 19; display: flex; justify-content: center; gap: 4px; padding: 0 16px; border-top: 0; border-bottom: 1px solid var(--line); background: var(--bg); }
  .ea-tabs a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; min-height: 44px; padding: 8px 14px; border-bottom: 2px solid transparent; }
  .ea-tabs a.is-active { border-bottom-color: var(--brand); }
  .ea-tabs .ico { width: 20px; height: 20px; }
  body.ea-in-quiz .ea-tabs { display: flex; }
}

/* カード */
.ea-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin: 0 0 14px; box-shadow: var(--shadow); }
.ea-card h2, .ea-card h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.ea-card h3 { font-size: 16px; }
.ea-cta { border-color: var(--brand); background: linear-gradient(0deg, var(--surface), var(--brand-soft)); }

/* ホーム */
.ea-hero { display: grid; gap: 12px; margin: 4px 0 16px; }
.ea-hero h1 { font-size: 24px; margin: 0 0 4px; }
.ea-eyebrow { margin: 0; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.ea-count { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.ea-count > .ico { width: 30px; height: 30px; color: var(--brand); }
.ea-count-label { font-size: 13px; color: var(--muted); font-weight: 700; }
.ea-count-num { font-size: 36px; font-weight: 800; line-height: 1.1; font-family: var(--font-num); }
.ea-count-num small { font-size: 15px; margin-left: 4px; font-family: var(--font); }
@media (min-width: 700px) { .ea-hero { grid-template-columns: 1fr auto; align-items: center; } }
.ea-resume { display: grid; gap: 4px; }
.ea-resume p { margin: 0; }
.ea-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.ea-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.ea-stat-label { display: block; font-size: 12px; color: var(--muted); }
.ea-stat b { font-size: 24px; line-height: 1.3; }
.ea-stat b small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.ea-weak { list-style: none; margin: 0; padding: 0; }
.ea-weak li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ea-weak li:first-child { border-top: 0; }
.ea-weak .btn { min-height: 40px; padding: 6px 14px; }
.ea-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 14px; }
@media (min-width: 700px) { .ea-quick { grid-template-columns: repeat(4, 1fr); } }
.ea-tile { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; font-weight: 700; cursor: pointer; text-align: left; }
.ea-tile .ico { color: var(--brand); }
.ea-tile:hover { border-color: var(--brand); }
.ea-upnote, .ea-disclaim { margin: 0 0 14px; }

/* 演習の選び方 */
.ea-modes { display: grid; gap: 10px; margin: 0 0 10px; }
@media (min-width: 700px) { .ea-modes { grid-template-columns: repeat(3, 1fr); } }
.ea-mode { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); cursor: pointer; min-height: 72px; }
.ea-mode:hover:not([disabled]) { border-color: var(--brand); }
.ea-mode[disabled] { opacity: .5; cursor: not-allowed; }
.ea-mode .ico { width: 28px; height: 28px; color: var(--brand); }
.ea-mode strong { display: block; }
.ea-mode small { color: var(--muted); }
.ea-subjects { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 900px) { .ea-subjects { grid-template-columns: 1fr 1fr; } }
.ea-subjbtn { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; }
.ea-subjbtn:hover { border-color: var(--brand); }
.ea-subjname { font-weight: 700; }
.ea-subjmeta { color: var(--muted); font-size: 13px; }
.ea-subjbtn .ea-bar { grid-column: 1 / -1; }

/* 細い棒（進み具合・正答率。値は必ず文字でも出す） */
.ea-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; min-width: 60px; }
.ea-bar span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }

/* 問題 */
.ea-quiz { padding-bottom: 24px; }
.ea-qhead { display: flex; align-items: center; gap: 10px; }
.ea-qhead-main { flex: 1; min-width: 0; }
/* 題名・分野名は 375px でも途中で切らず 2 行まで（「仕訳 15 題タイムア…」「取引と仕訳（本試験 第…」。2026-11-06 説明書 付録 1-13） */
.ea-qtitle { font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.ea-qmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--muted); }
.ea-subj { flex-basis: 100%; max-width: 100%; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
/* 時間を計る演習（模試・タイムアタック）は、狭い画面で 戻る・時間・しおり を 1 段目に、題名と分野名を 2 段目の全幅に（付録 1-13） */
@media (max-width: 480px) {
  .ea-qhead.has-timer { flex-wrap: wrap; row-gap: 6px; }
  .ea-qhead.has-timer .ea-qhead-main { order: 9; flex-basis: 100%; }
  .ea-qhead.has-timer .ea-timer { margin-left: auto; }
}
.ea-timer { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.ea-timer .ico { width: 18px; height: 18px; }
.ea-timer.is-low { background: var(--ng-soft); color: var(--ng); }
.ea-progress { height: 4px; background: var(--line); border-radius: 999px; margin: 10px 0 14px; overflow: hidden; }
.ea-progress span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .2s; }
.ea-qbody { display: grid; gap: 14px; }
.ea-passage details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ea-passage summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; min-height: 44px; }
.ea-passage-text { margin: 0; padding: 0 14px 14px; max-height: 45vh; overflow: auto; font-size: 15px; line-height: 1.8; }
.ea-passage-text.is-code { font-family: ui-monospace, "SFMono-Regular", Consolas, "BIZ UDGothic", monospace; font-size: 14px; }
@media (min-width: 960px) {
  .ea-quiz.has-passage .ea-qbody { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .ea-quiz.has-passage .ea-passage { position: sticky; top: 120px; }
  .ea-passage-text { max-height: calc(100vh - 200px); }
}
.ea-question { min-width: 0; }
.ea-q { font-size: 17px; font-weight: 600; line-height: 1.8; margin: 0 0 14px; }
.ea-illu { margin: 0 0 14px; border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--surface-2); }
.ea-illu figcaption { display: grid; gap: 4px; font-size: 15px; }
.ea-illu-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ea-illu-label .ico { width: 18px; height: 18px; }
.ea-illu-img { display: block; max-width: 100%; height: auto; margin: 0 auto 10px; border-radius: var(--radius-sm); background: #fff; }
.ea-hint { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.ea-opts { display: grid; gap: 8px; margin: 0 0 14px; }
.ea-opts.is-binary { grid-template-columns: 1fr 1fr; }
.ea-opt {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 52px; padding: 12px 14px; text-align: left;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--fg); cursor: pointer; font-size: 16px; line-height: 1.6;
}
.ea-opt:hover:not([disabled]) { border-color: var(--brand); }
.ea-opt.is-binary { justify-content: center; align-items: center; font-size: 24px; font-weight: 800; min-height: 72px; }
.ea-opt.is-chosen { border-color: var(--brand); background: var(--brand-soft); }
.ea-opt.is-right { border-color: var(--ok); background: var(--ok-soft); }
.ea-opt.is-wrong { border-color: var(--ng); background: var(--ng-soft); }
.ea-opt[disabled] { cursor: default; }
.ea-opt.is-multi input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.ea-opt-text { flex: 1; min-width: 0; }
.ea-opt.is-binary .ea-opt-text { flex: none; }
.ea-opt.is-binary .ea-mark { margin-left: 8px; }
.ea-lab { flex: none; display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.ea-mark { margin-left: auto; color: var(--ok); }
.ea-opt.is-wrong .ea-mark { color: var(--ng); }
.ea-submit { margin: 0 0 14px; }
.ea-input-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.ea-input { flex: 1 1 200px; min-height: 52px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); font-size: 17px; }
.ea-input:focus { border-color: var(--brand); }
/* 記述式（2026-10-12）: 文章を入力して、模範解答との近さで自動採点する */
.ea-written { display: grid; gap: 10px; margin: 0 0 14px; }
.ea-textarea { width: 100%; min-height: 168px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-size: 17px; line-height: 1.7; resize: vertical; box-sizing: border-box; }
.ea-textarea:focus { border-color: var(--brand); outline: none; }
.ea-textarea:disabled { opacity: .85; }
.ea-wr-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ea-wr-score { margin: 10px 0 6px; }
.ea-wr-score strong { font-size: 1.25rem; }
.ea-wr-bar { position: relative; height: 10px; border-radius: 999px; background: var(--line); margin: 8px 0 6px; overflow: visible; }
.ea-wr-bar span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.ea-wr-bar i { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--ink); opacity: .55; }
.ea-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.ea-chip { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; overflow-wrap: anywhere; }
.ea-chips.is-missed .ea-chip { border-style: dashed; opacity: .9; }
.ea-model { padding: 10px 12px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* 解説 */
.ea-exp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 14px; }
.ea-exp h4 { font-size: 14px; color: var(--muted); margin: 14px 0 4px; }
/* 解説の言語の上書き（AI による翻訳の 1 行・英語の版の折りたたみ。content-i18n.js） */
.ea-i18n-ai { margin: 12px 0 4px; }
.ea-i18n-en { margin: 4px 0 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.ea-i18n-en > summary { cursor: pointer; color: var(--brand); font-weight: 700; font-size: 14px; padding: 6px 0; }
.ea-i18n-en > div { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.ea-exp p { margin: 0; }
.ea-verdict { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.ea-verdict.is-ok { color: var(--ok); }
.ea-verdict.is-ng { color: var(--ng); }
.ea-answer-line { margin: 4px 0 0 !important; }
.ea-why { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ea-why li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.ea-why li.is-right { background: var(--ok-soft); }
.ea-why li.is-right .ea-lab { border-color: var(--ok); color: var(--ok); }
.ea-why.is-plain li { display: block; }
.ea-note { background: var(--mark-soft); border-radius: var(--radius-sm); padding: 8px 10px; }
.ea-seclinks { margin-top: 6px; }
.ea-seclink { display: flex; align-items: center; gap: 8px; padding: 8px 0; text-decoration: none; font-weight: 600; }
.ea-seclink .ico { width: 18px; height: 18px; }

/* 問題の移動 */
.ea-nav { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0 12px; }
.ea-nav .btn { flex: 1; max-width: 220px; }
.ea-nav .btn:last-child { margin-left: auto; }
.ea-gridwrap summary { display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 44px; font-weight: 700; color: var(--muted); }
.ea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin: 8px 0 12px; }
.ea-cell { min-height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-family: var(--font-num); font-weight: 700; cursor: pointer; }
.ea-cell.is-done { background: var(--brand-soft); border-color: var(--brand); }
.ea-cell.is-here { outline: 2px solid var(--brand); outline-offset: 1px; }
.ea-cell.is-ok { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.ea-cell.is-ng { background: var(--ng-soft); border-color: var(--ng); color: var(--ng); }
.ea-cell.is-skip { background: var(--surface-2); color: var(--muted); }

/* 結果 */
.ea-score { display: flex; align-items: baseline; gap: 6px; font-size: 44px; font-weight: 800; margin: 4px 0; }
.ea-score small { font-size: 18px; color: var(--muted); font-weight: 600; }
.ea-score-pct { margin-left: auto; font-size: 24px; color: var(--brand); }
.ea-result-verdict { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; }
.ea-result-verdict.is-ok { color: var(--ok); }
.ea-result-verdict.is-ng { color: var(--ng); }
.ea-table-wrap { overflow-x: auto; }
.ea-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ea-table th, .ea-table td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ea-table thead th { border-top: 0; color: var(--muted); font-size: 12px; }
.ea-table td.num { white-space: nowrap; text-align: right; }
.ea-table td:has(.ea-bar) { width: 30%; }

/* 復習 */
.ea-count-badge { margin-left: auto; font-size: 14px; color: var(--muted); }
.ea-revlist { list-style: none; margin: 12px 0 0; padding: 0; }
.ea-revitem { display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer; }
.ea-revitem:hover span:last-child { color: var(--brand); }

/* 学習記録の棒グラフ（1 系列。値はツールチップと表でも読める） */
.ea-cols { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; align-items: end; height: 140px; padding-top: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.ea-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; outline-offset: 2px; }
.ea-col-bar { width: 70%; max-width: 18px; background: var(--brand); border-radius: 4px 4px 0 0; }
.ea-col-x { position: absolute; bottom: -20px; font-size: 10px; color: var(--muted); }
.ea-col:hover .ea-col-bar, .ea-col:focus .ea-col-bar { background: var(--brand-strong); }
.ea-record .ea-cols { margin-bottom: 26px; }

/* 要点集 */
.ea-notes-grid { display: grid; gap: 14px; }
@media (min-width: 960px) { .ea-notes-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .ea-figures { position: sticky; top: 120px; } }
.ea-chapter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; }
.ea-chapter > summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; min-height: 52px; font-weight: 700; }
.ea-chno { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 14px; }
.ea-chtitle { flex: 1; min-width: 0; }
.ea-lock { color: var(--muted); display: inline-flex; }
.ea-lock .ico { width: 18px; height: 18px; }
.ea-chbody { padding: 0 14px 10px; }
.ea-lead { color: var(--muted); margin: 0 0 10px; }
.ea-section { border-top: 1px solid var(--line); padding: 12px 0; scroll-margin-top: 130px; }
.ea-section h4 { display: flex; align-items: center; gap: 6px; font-size: 16px; margin: 0 0 8px; }
.ea-section h4 .ico { width: 18px; height: 18px; color: var(--muted); }
.ea-section.is-marked h4 { color: var(--mark); }
.ea-section.is-target { background: var(--brand-soft); border-radius: var(--radius-sm); padding-left: 10px; padding-right: 10px; }
.ea-nblock h5 { font-size: 13px; color: var(--brand); margin: 10px 0 2px; }
.ea-nblock p { margin: 0; }
.ea-nblock.ea-nbox { border: 1.5px solid var(--brand); border-radius: 10px; padding: 8px 12px 10px; margin: 10px 0; background: color-mix(in srgb, var(--brand) 6%, transparent); }
.ea-nblock.ea-nbox h5 { margin-top: 2px; }
.ea-nfig { margin: 10px 0 12px; }
.ea-nfig img { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; border-radius: var(--radius-sm); background: #fff; padding: 6px; box-sizing: border-box; }
.ea-nfig figcaption { font-size: 12px; color: var(--muted, #667); margin-top: 4px; text-align: center; }
.ea-markchip { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; padding: 0 8px; border-radius: 999px; background: var(--mark-soft); color: var(--mark); font-size: 12px; font-weight: 700; }
.ea-markchip .ico { width: 14px; height: 14px; color: var(--mark) !important; }
.ea-mosaic { display: grid; gap: 9px; padding: 6px 0 10px; filter: blur(3px); user-select: none; }
.ea-mosaic span { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, var(--line), var(--surface-2), var(--line)); }
.ea-figinline { margin-top: 10px; min-height: 44px; font-size: 14px; }
.ea-figlist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ea-figbtn { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; min-height: 52px; }
.ea-figbtn:hover { border-color: var(--brand); }
.ea-figbtn > span:first-of-type { flex: 1; display: grid; }
.ea-figbtn small { color: var(--muted); }
.ea-figbtn[data-locked] { opacity: .75; }
.ea-figdialog { position: fixed; inset: 0; z-index: 80; background: rgba(10, 14, 24, .55); display: grid; place-items: center; padding: 12px; }
.ea-figdialog[hidden] { display: none; }
.ea-figpanel { width: min(960px, 100%); height: min(88vh, 900px); background: var(--surface); border-radius: var(--radius); display: grid; grid-template-rows: auto 1fr; overflow: hidden; box-shadow: var(--shadow); }
.ea-fighead { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.ea-fighead h3 { flex: 1; margin: 0; font-size: 16px; }
.ea-figframe { min-height: 0; }
/* 図解（content/figures）は端末の明暗（prefers-color-scheme）で配色を決め、背景は透明のものが多い。
   画面の明暗の切り替えとは別に、端末の設定に合わせた背景を敷く。color-scheme を light にそろえるのは、
   親（暗い配色）と図解の color-scheme が食い違うと Chrome が iframe に白い下地を塗り、暗い配色の図解の文字が読めなくなるため */
.ea-figframe iframe { width: 100%; height: 100%; border: 0; display: block; color-scheme: light; background: #ffffff; }
@media (prefers-color-scheme: dark) { .ea-figframe iframe { background: #10151c; } }
.ea-figlocked { display: grid; place-items: center; gap: 10px; height: 100%; padding: 24px; text-align: center; color: var(--muted); }
.ea-figlocked .ico { width: 36px; height: 36px; }

/* 試験の一覧（試験が指定されていないとき） */
.ea-chooser { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
@media (min-width: 700px) { .ea-chooser { grid-template-columns: 1fr 1fr; } }
.ea-chooser a { display: grid; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--fg); background: var(--surface-2); }
.ea-chooser small { color: var(--muted); }
.ea-footer { margin-top: 24px; }

/* 難易度の切り替え（演習） */
.ea-diff { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.ea-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ea-segbtn { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line, #ccd); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.ea-segbtn small { opacity: .7; margin-left: 4px; }
.ea-segbtn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
/* 出典 */
.ea-evidence { margin: 0; padding-left: 1.2em; font-size: 14px; }
.ea-evidence li { margin: 2px 0; overflow-wrap: anywhere; }

/* ==== ホーム（B 案: 今日の学習・今週の積み重ね・学習メニュー・学習中の分野） ==== */
.ea-hello { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.ea-h2 { font-size: 16px; margin: 22px 0 10px; }
.ea-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ea-sechead h2 { font-size: 16px; margin: 0; }
.ea-dash { display: grid; gap: 14px; margin-bottom: 4px; }
@media (min-width: 760px) { .ea-dash { grid-template-columns: 1.2fr 1fr; align-items: stretch; } .ea-dash > .ea-card { margin: 0; } }
.ea-today { background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ea-today-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ea-today-head h2 { font-size: 16px; margin: 0; }
.ea-goalsel { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ea-goalsel select { min-height: 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 2px 8px; font-size: 12px; }
.ea-today-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ea-left { font-size: 24px; font-weight: 700; margin: 0 0 2px; letter-spacing: -.01em; }
.ea-left.is-done { display: flex; align-items: center; gap: 6px; font-size: 17px; color: var(--ok); }
.ea-ring { --p: 0; flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 360deg), var(--line) 0); }
html:not([data-mode="dark"]) .ea-ring { background: conic-gradient(#527a60 calc(var(--p) * 360deg), #d9e1d1 0); }
.ea-ring-in { width: 86px; height: 86px; border-radius: 50%; background: var(--surface-2); display: grid; place-content: center; text-align: center; line-height: 1.15; }
.ea-ring-in strong { font-size: 28px; }
.ea-ring-in strong small { font-size: 14px; color: var(--muted); font-weight: 600; }
.ea-ring-in span { font-size: 11px; color: var(--muted); }
.ea-go { border-radius: 14px; justify-content: space-between; padding: 12px 18px; }
.ea-today-note { margin: -4px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.ea-linkbtn { border: 0; background: none; padding: 0 0 0 6px; color: var(--brand); text-decoration: underline; cursor: pointer; font-size: inherit; }
.ea-week { display: flex; flex-direction: column; }
.ea-weekbars { display: flex; align-items: flex-end; gap: 8px; height: 112px; padding-top: 8px; margin-bottom: 10px; }
.ea-wb { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.ea-wb i { display: block; width: 100%; max-width: 22px; border-radius: 6px; background: var(--brand-soft); }
html:not([data-mode="dark"]) .ea-wb i { background: #c6d7c1; }
.ea-wb.is-today i, html:not([data-mode="dark"]) .ea-wb.is-today i { background: var(--brand); }
.ea-wb small { font-size: 11px; color: var(--muted); }
.ea-menu { display: grid; gap: 8px; margin-bottom: 14px; }
@media (min-width: 760px) { .ea-menu { grid-template-columns: repeat(3, 1fr); } }
.ea-lesson { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--fg); text-decoration: none; }
.ea-lesson:hover { border-color: var(--brand); }
.ea-lesson b { display: block; font-size: 15px; }
.ea-lesson small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ea-lesson > .ico:last-child { margin-left: auto; color: var(--muted); }
.ea-sq { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--brand); display: grid; place-items: center; }
.ea-subjlist { list-style: none; margin: 0; padding: 0; }
.ea-subjlist li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.ea-subjlist li:first-child { border-top: 0; }
.ea-subjname b { display: block; font-size: 14px; }
.ea-subjname small { color: var(--muted); font-size: 11px; }
.ea-subjrate { font-size: 13px; white-space: nowrap; }
.ea-subjgo { min-height: 36px; padding: 4px 14px; font-size: 13px; }
.ea-revbanner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--brand); color: var(--on-brand); text-decoration: none; margin: 4px 0 14px; }
.ea-revbanner b { display: block; }
.ea-revbanner small { display: block; opacity: .85; font-size: 12px; }
.ea-revgo { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-weight: 700; font-size: 14px; }

/* ==== はじめてのガイド（exam/tour.js）。対象を穴あきで明るく残し、吹き出しで案内する ==== */
.ea-tour { position: fixed; inset: 0; z-index: 90; }
.ea-tour-hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(15, 30, 22, .62); transition: top .25s, left .25s, width .25s, height .25s; pointer-events: none; outline: 2px solid var(--brand-soft); }
.ea-tour-pop { position: fixed; padding: 16px 16px 14px; border-radius: 16px; background: #1b3328; color: #fffdf8; box-shadow: 0 12px 32px rgba(0, 0, 0, .3); transition: top .25s, left .25s; }
.ea-tour-pop:focus { outline: none; }
.ea-tour-count { margin: 0 0 2px; font-size: 12px; opacity: .7; }
.ea-tour-t { font-size: 17px; margin: 0 0 6px; color: inherit; }
.ea-tour-d { margin: 0 0 12px; font-size: 14px; line-height: 1.65; }
.ea-tour-btns { display: flex; justify-content: flex-end; gap: 8px; }
.ea-tour-btns [hidden] { display: none; }
.ea-tour-btns .btn { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.ea-tour-btns .ea-tour-next { background: #fffdf8; color: #1b3328; }
.ea-tour-btns .ea-tour-back { color: #fffdf8; border-color: rgba(255, 253, 248, .45); }
.ea-tour-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; color: inherit; opacity: .75; font-size: 12px; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ea-tour-hole, .ea-tour-pop { transition: none; } }

/* ==== ヒント・正解の印・結論の強調・解説一覧（問題演習で追い込む人向け） ==== */
.ea-hintbox { margin: 4px 0 12px; display: grid; gap: 8px; }
.ea-hintbtn { justify-self: start; min-height: 40px; padding: 6px 14px; font-size: 14px; color: var(--mark); border-color: color-mix(in srgb, var(--mark) 45%, var(--line)); }
.ea-hintbtn .ico { width: 18px; height: 18px; }
.ea-hintlist { list-style: none; margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--mark-soft); display: grid; gap: 4px; font-size: 14px; }
.ea-hintlist strong { color: var(--mark); }
.ea-hintused { display: flex; align-items: center; gap: 6px; margin: 6px 0; font-size: 13px; color: var(--mark); }
.ea-hintused .ico { width: 16px; height: 16px; }
.ea-opt.is-eliminated { opacity: .35; text-decoration: line-through; }
.ea-lead { color: var(--brand-strong); }
html[data-mode="dark"] .ea-lead { color: var(--brand); }
.ea-nav.is-sticky { position: sticky; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 5; padding: 8px; margin: 12px -8px 0; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); box-shadow: var(--shadow); }
.ea-stamp { position: fixed; left: 50%; top: 42%; z-index: 80; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; padding: 18px 26px; border-radius: 24px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); pointer-events: none; animation: ea-stamp 1s ease-out forwards; }
.ea-stamp .ico { width: 64px; height: 64px; stroke-width: 2.4; }
.ea-stamp span { font-size: 22px; font-weight: 800; letter-spacing: .1em; }
.ea-stamp.is-ok { color: var(--ok); }
.ea-stamp.is-ng { color: var(--ng); }
@keyframes ea-stamp { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 30% { transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
.ea-listlink { margin: 0 0 14px; }
.ea-list .ea-h1 { font-size: 22px; margin: 4px 0; }
.ea-listpick { margin: 10px 0 14px; font-size: 14px; }
.ea-listpick select { font-size: 14px; max-width: 70vw; }
.ea-listitems { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.ea-listitem { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ea-listitem p { margin: 0 0 6px; }
.ea-listq { font-weight: 600; }
.ea-listopts { margin: 4px 0 8px; padding-left: 0; list-style: none; display: grid; gap: 2px; font-size: 14px; }
.ea-listopts li { display: flex; gap: 8px; }
.ea-listitem summary { cursor: pointer; color: var(--brand); font-weight: 700; font-size: 14px; }
.ea-listans { margin-top: 8px !important; color: var(--ok); }
@media (prefers-reduced-motion: reduce) { .ea-stamp { display: none; } }

.ea-exam-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
/* 試験の印は 2 行（examplat・試験名）の左に大きく（2026-10-13 稲木さん「見づらい」） */
#ea-exam-mark { display: inline-flex; flex: none; }
#ea-exam-mark .xl { font-size: 15px; }
#ea-exam-mark + .ea-head-title { margin-left: -2px; }
#ea-exam-mark:empty { display: none; }

/* ==== 毎日の計画（学習管理。plan.js、2026-10-08。2026-10-17 に今日のやること・進み具合を 1 枚にまとめた） ==== */
.ea-one { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.ea-one .ea-eyebrow, .ea-one .ea-muted { color: inherit; opacity: .8; }
.ea-one h2 { margin: 2px 0 4px; font-size: 20px; }
.ea-one p { margin: 0; }
.ea-one-go { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); white-space: nowrap; }
.ea-one-go:hover { background: var(--surface-2); }
.ea-pace .ea-sechead h2 { display: inline-flex; align-items: baseline; }
.ea-plan-form { display: grid; gap: 10px; padding: 12px; margin: 8px 0 12px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.ea-plan-form[hidden] { display: none; }
.ea-plan-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.ea-plan-form input, .ea-plan-form select { min-height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 4px 10px; font-size: 15px; color: var(--fg); }
@media (min-width: 560px) { .ea-plan-form { grid-template-columns: 1fr 1fr 1fr; align-items: end; } .ea-plan-form .ea-row { grid-column: 1 / -1; } }
.ea-plan-days { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; font-size: 20px; font-weight: 800; }
.ea-plan-days svg { width: 22px; height: 22px; flex: none; color: var(--brand); }
.ea-plan-days.is-none { font-size: 15px; font-weight: 700; }
.ea-pace h3 { margin: 0; font-size: 15px; }
.ea-plan-todo { margin-top: 12px; }
.ea-plan-prog { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
/* 進み具合の棒（列車の絵と 25%・50%・75%・ゴール） */
.ea-route { position: relative; height: 74px; margin: 18px 10px 6px; }
.ea-route-track { position: absolute; left: 0; right: 0; top: 30px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ea-route-done { display: block; height: 100%; background: var(--brand); border-radius: 3px; transition: width .6s ease; }
.ea-route-st { position: absolute; top: 24px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; }
.ea-route-st b { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); box-sizing: border-box; }
.ea-route-st.is-reached b { border-color: var(--brand); background: var(--brand-soft); }
.ea-route-st small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.ea-route-st.is-start { transform: translateX(-30%); }
.ea-route-st:last-of-type { transform: translateX(-70%); }
.ea-route-flag { position: absolute; top: -2px; transform: translateX(-40%); color: var(--accent); }
.ea-route-flag svg { width: 20px; height: 20px; }
.ea-route-train { position: absolute; top: 5px; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; box-shadow: var(--shadow); transition: left .6s ease; }
.ea-route-train svg { width: 20px; height: 20px; }
.ea-plan-status { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; font-weight: 700; font-size: 14px; }
.ea-plan-status svg { width: 18px; height: 18px; flex: none; }
.ea-plan-status.is-ok { color: var(--ok); }
.ea-plan-status.is-behind { color: var(--accent); }
/* 今日のやること */
.ea-todo { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ea-todo li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.ea-todo li.is-done { opacity: .6; }
.ea-todo li.is-done .ea-todo-chk span { text-decoration: line-through; }
.ea-todo-main { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.ea-todo-main .ea-q-left { margin-left: 30px; }
.ea-todo-chk { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; font-size: 14px; cursor: pointer; }
.ea-todo-chk input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.ea-todo-chk input:disabled { cursor: default; }
.ea-todo-chk small { color: var(--muted); font-size: 12px; margin-left: auto; white-space: nowrap; }
.ea-todo .btn { white-space: nowrap; }
.ea-todo-del { color: var(--muted); padding: 4px; text-decoration: none; }
.ea-todo-del svg { width: 16px; height: 16px; }
.ea-todo-add { display: flex; gap: 8px; margin-top: 10px; }
.ea-todo-add input { flex: 1; min-width: 0; min-height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 4px 10px; font-size: 14px; color: var(--fg); }
/* 試験までにやる問題の行の「残り n 問」（押すと復習のリストへ） */
.ea-q-left { font-size: 12px; white-space: nowrap; }
/* ==== 試験までにやる問題（queue.js。復習の画面。2026-10-17） ==== */
.ea-qchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.ea-qchip { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 13px; font-weight: 700; cursor: pointer; }
.ea-qchip small { color: var(--muted); font-weight: 600; }
.ea-qchip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.ea-qchip[aria-pressed="true"] small { color: inherit; opacity: .85; }
.ea-qrow { display: flex; align-items: flex-start; gap: 6px; border-top: 1px solid var(--line); }
.ea-qrow .ea-revitem { border-top: 0; flex: 1; min-width: 0; }
.ea-qrow .ea-revitem > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ea-qhead2 { display: flex; align-items: center; gap: 8px; }
.ea-qmark { width: 10px; height: 10px; flex: none; box-sizing: border-box; }
.ea-qmark.is-wrong { border-radius: 50%; background: var(--ng, #c0392b); }
.ea-qmark.is-hint { border-radius: 50%; border: 2px solid var(--accent); }
.ea-qmark.is-manual { width: 9px; height: 9px; transform: rotate(45deg); border: 2px solid var(--brand); }
.ea-qmore { font-size: 11px; color: var(--accent); font-weight: 700; }
.ea-qdel { flex: none; padding: 12px 6px; color: var(--muted); text-decoration: none; }
.ea-qdel svg { width: 16px; height: 16px; }
/* 答え合わせの後の静かな 1 行「試験までにやる問題に入れました」 */
.ea-qnote { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.ea-qnote svg { width: 14px; height: 14px; flex: none; }

/* ==== コンテンツの保護（2026-10-08 稲木さん）: 本文の選択・コピー・ドラッグ・印刷を止め、利用者の透かしを重ねる。
   OS のスクリーンショット・画面録画は Web ページからは止められないので、透かしで出どころが分かるようにする。入力欄は選べる ==== */
.ea-main, .ea-main * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ea-main input, .ea-main textarea, .ea-main [contenteditable] { -webkit-user-select: text; user-select: text; }
.ea-main img, .ea-main svg { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.ea-main a img, .ea-main button svg, .ea-main a svg { pointer-events: auto; }
.ea-watermark { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 140px; align-content: start; transform: rotate(-18deg) scale(1.3); opacity: .055; color: var(--fg); font-size: 13px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
html[data-mode="dark"] .ea-watermark { opacity: .08; }
.ea-watermark span { padding: 60px 10px; }
.ea-copyright { font-size: 11px; color: var(--muted); text-align: center; margin: 14px 0 4px; }
@media print { .ea-main, .ea-watermark { display: none !important; } body::after { content: "このページは印刷できません（examplat の利用規約により複製を禁じています）。"; display: block; padding: 40px; font-size: 16px; } }

/* 2026-10-14: 左上は試験のホームへ、ロゴはマイポータルへ。ホームの上部に続きカードとポータルへのリンク */
.ea-head-brand { text-decoration: none; }
.ea-head-brand:focus-visible, #ea-home-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.ea-portal-link { margin: 0 0 8px; font-size: 13px; }
.ea-portal-link a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--brand); text-decoration: none; font-weight: 700; }
.ea-portal-link a svg { width: 16px; height: 16px; }
.ea-resumecard { display: grid; gap: 10px; margin: 0 0 14px; border-color: var(--brand); }
.ea-resumecard h2 { margin: 0 0 2px; font-size: 1.05rem; }
.ea-resumecard .ea-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ea-resumecard .btn { min-height: 44px; }

/* ==== 要点集の一覧・見た目の整え（2026-10-14 稲木さん「最初から開いているのはやめましょう」「レイアウトを修整」） ==== */
.ea-notes > .ea-card { padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 4px; }
.ea-notes > .ea-card h2 { font-size: 17px; margin: 0; }
.ea-notes > .ea-card p { margin: 0; font-size: 14px; line-height: 1.55; }
.ea-notes > .ea-card .btn { justify-self: start; margin-top: 6px; min-height: 40px; }
.ea-chapter { margin-bottom: 8px; }
.ea-chapter > summary { min-height: 56px; padding: 10px 12px; list-style: none; }
.ea-chapter > summary::-webkit-details-marker { display: none; }
.ea-chapter > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px 0 2px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.ea-chapter[open] > summary::after { transform: rotate(-135deg); }
.ea-chtitle { display: grid; gap: 1px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.ea-chsub { font-size: 12px; font-weight: 500; color: var(--muted); }
.ea-chbody { padding: 0 12px 8px; max-width: 46em; }
.ea-chbody > .ea-lead { color: var(--fg); font-size: 14px; line-height: 1.7; margin: 0 0 8px; padding: 2px 0 2px 10px; border-left: 3px solid var(--brand); }
details.ea-section { border-top: 1px solid var(--line); padding: 0; }
details.ea-section > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; list-style: none; }
details.ea-section > summary::-webkit-details-marker { display: none; }
details.ea-section > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
details.ea-section[open] > summary::after { transform: rotate(-135deg); }
details.ea-section > summary h4 { flex: 1; min-width: 0; margin: 0; font-size: 15px; line-height: 1.45; font-weight: 700; }
.ea-secbody { padding: 0 0 12px; font-size: 15px; line-height: 1.75; }
.ea-secbody:empty { display: none; }
.ea-section.is-locked { padding: 10px 0; }
.ea-section.is-locked h4 { font-size: 15px; margin-bottom: 6px; }
.ea-nblock h5 { font-size: 13px; }
.ea-markchip { margin-left: 0; }

/* ヘッダー: 試験名を切らずに 2 行まで使う。スマホでは文字を少し小さく */
.ea-exam-line { align-items: flex-start; }
#ea-exam-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  #ea-exam-name { font-size: 14px; }
  .ea-head-brand { font-size: 12px; }
  .ea-header .wrap { gap: 6px; }
  .ea-header .header-tools { gap: 4px; }
  .ea-planchip { font-size: 11px; padding: 2px 7px; }
}
html[data-mode] .ea-chbody > .ea-lead { color: var(--fg); }
.ea-notes > .ea-card .btn { font-size: 14px; line-height: 1.4; padding: 8px 16px; min-height: 40px; }
.ea-notes > .ea-card .ea-small .ico { width: 16px; height: 16px; vertical-align: -3px; }
.ea-section.is-locked .ea-mosaic { gap: 7px; padding: 2px 0 8px; }
.ea-section.is-locked .ea-mosaic span:nth-child(n+4) { display: none; }

/* 2026-10-14: 途中の演習の選択・ご要望フォーム（ダイアログ）と、ダッシュボード下部のご要望カード */
.ea-modal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 12px; background: rgba(10, 14, 24, .55); overflow-y: auto; }
.ea-modal-box { width: min(440px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 18px 16px 14px; border-radius: 16px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.ea-modal-box:focus { outline: none; }
.ea-modal-box h2 { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.45; }
.ea-modal-btns { display: grid; gap: 10px; justify-items: stretch; margin-top: 14px; }
.ea-modal-btns .btn { min-height: 46px; justify-content: center; }
.ea-modal-btns .ea-linkbtn { justify-self: center; min-height: 40px; }
.ea-fbform .field { margin-bottom: 12px; }
.ea-fbform input, .ea-fbform textarea { width: 100%; box-sizing: border-box; font-size: 16px; }
.ea-fbcount { margin: -6px 0 8px; text-align: right; }
.ea-feedback { display: grid; gap: 8px; margin: 18px 0 12px; justify-items: start; }
.ea-feedback h2 { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.ea-feedback p { margin: 0; }
.ea-feedback .btn { min-height: 44px; }
.ea-fblang { font-weight: 600; color: var(--brand, inherit); overflow-wrap: anywhere; }
/* 2026-11-11 要望の欄（docs/要望の欄_設計_20261111.md）: 種類のチップ・個人情報の注意・連絡先の折りたたみ・結果と解説の下の入口 */
.ea-fbform > p { margin: 0 0 10px; }
.ea-fbkinds { margin: 0 0 12px; }
.ea-fbkinds .ea-segbtn { min-height: 38px; padding: 5px 12px; font-size: .92rem; }
.ea-fbwarn { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); color: var(--fg); overflow-wrap: anywhere; }
.ea-fbcontact { margin: 0 0 12px; }
.ea-fbcontact summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; color: var(--brand); font-size: .95rem; }
.ea-fbcontact[open] summary { margin-bottom: 8px; }
.ea-fblink { margin: 14px 0 0; }
.ea-fblink .ea-linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; font-size: .92rem; text-align: left; }
.ea-fblink .ea-linkbtn svg { width: 16px; height: 16px; flex: none; }
.ea-fbq { border-top: 1px dashed var(--line); padding-top: 6px; }
.ea-fbcard { margin-top: 12px; }
.ea-fbcard .ea-fblink { margin: 0; }
.ea-adapt-note { display: block; margin-top: 3px; }

/* IELTS 4 技能のいまの目安（ホーム。2026-10-15） */
.ea-i4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
@media (min-width: 640px) { .ea-i4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ea-i4-cell { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: inherit; text-decoration: none; }
.ea-i4-cell b { font-size: 1.6rem; line-height: 1.1; }
.ea-i4-cell small { color: var(--muted); font-size: .78rem; }


/* 壁紙のプレゼント（2026-10-15。駅スタンプの代わり）。サムネは奥の園・桜色が色、桜・紅葉・雪は img/wall の写真 */
.ea-gift-next { margin: 10px 0 6px; font-weight: 700; }
.ea-gift-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 4px; }
.ea-gift-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.ea-gifts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px 10px; }
.ea-gift { display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; min-width: 0; }
.ea-gift b { font-size: 13px; line-height: 1.3; }
.ea-gift small { font-size: 11px; color: var(--muted); }
.ea-gift-using { color: var(--accent) !important; font-weight: 700; }
.ea-gift .ea-linkbtn { font-size: 12px; }
.ea-gift-thumb { display: block; width: 72px; aspect-ratio: 3 / 4; border-radius: 12px; border: 1.5px solid var(--line); background-size: cover; background-position: center; background-color: var(--surface-2); }
.ea-gift-thumb.is-locked { filter: grayscale(1) brightness(.85); opacity: .5; }
.ea-gift-big { width: 120px; margin: 10px auto; }
.ea-gt-okunosono { background-image: linear-gradient(160deg, #f7f6ee 0%, #dcebc6 100%); }
.ea-gt-sakurairo { background-image: linear-gradient(125deg, #c7f0ec, #c8b7ef, #f3b6d1); }
.ea-gt-sakura { background-image: linear-gradient(130deg, #fff3e3, #f9dfeb 50%, #e8a3ba); }
.ea-gt-momiji { background-image: linear-gradient(140deg, #fff1c8, #e9be8c, #ba7166); }
.ea-gt-yuki { background-image: linear-gradient(145deg, #f3fcff, #b2cee8, #c4bfe6); }
/* 2026-11-03 手書き風ノート: 奥の園・夜・温泉・旅館もプレゼントに */
.ea-gt-okunosono_night { background-image: linear-gradient(160deg, #0b1220 0%, #1f3a45 100%); }
.ea-gt-onsen { background-image: linear-gradient(150deg, #e9f3ef, #9fd0c4 60%, #4f8f86); }
.ea-gt-ryokan { background-image: linear-gradient(150deg, #f4ebdc, #d9b98a 60%, #7a4a1e); }
html[data-mode="dark"] .ea-gt-okunosono { background-image: linear-gradient(160deg, #0b1220 0%, #1f3a45 100%); }
html[data-mode="dark"] .ea-gt-sakurairo { background-image: linear-gradient(125deg, #214b57, #514877, #67395f); }
html[data-mode="dark"] .ea-gt-sakura { background-image: linear-gradient(130deg, #271c34, #71435e); }
html[data-mode="dark"] .ea-gt-momiji { background-image: linear-gradient(140deg, #332c24, #754135); }
html[data-mode="dark"] .ea-gt-yuki { background-image: linear-gradient(145deg, #0c2030, #325275); }
html[data-mode="dark"] .ea-gt-onsen { background-image: linear-gradient(150deg, #112c30, #1f454a 60%, #8fd6cb); }
html[data-mode="dark"] .ea-gt-ryokan { background-image: linear-gradient(150deg, #251f1c, #4a3d33 60%, #e9b877); }
/* ==== 動き（2026-10-15。docs/Webデザイン_動き_設計_20261015.md 3.2。トークン・m-rise は motion.css。transform・opacity だけ） ==== */
@keyframes ea-pop { 50% { transform: scale(1.02); } }
@keyframes ea-shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(0); } }
.has-motion .ea-opt.is-right { animation: ea-pop 360ms var(--ease-spring, ease-out); }
.has-motion .ea-opt.is-wrong { animation: ea-shake 240ms ease-out; }
.has-motion .ea-exp { animation: m-rise var(--dur-3, .48s) var(--ease-out, ease-out) backwards; }
.ea-progress span { transition: width var(--dur-3, .48s) var(--ease-out, ease-out); }
@media (prefers-reduced-motion: reduce) { .ea-opt.is-right, .ea-opt.is-wrong, .ea-exp { animation: none !important; } }
[data-reduce-motion="true"] .ea-opt.is-right, [data-reduce-motion="true"] .ea-opt.is-wrong, [data-reduce-motion="true"] .ea-exp { animation: none !important; }

/* ---- Next Generation 形式（NCLEX-RN。apps/web/exam/ngn.js。2026-10-17）。スマートフォン第一・タップとキーボードだけで答えられる ---- */
.ea-step { margin: 0 0 8px; }
.ea-chip.is-step { background: var(--brand-soft); color: var(--brand); white-space: normal; }
.ea-update { margin: 10px 0 0; padding: 10px 12px; border-left: 4px solid var(--accent, var(--brand)); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.ea-update h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13px; }
.ea-update p { margin: 0; }
.ea-trend { overflow-x: auto; margin: 0 0 12px; }
.ea-trend .ea-table th, .ea-trend .ea-table td { white-space: nowrap; }
.ea-bowtie { display: grid; gap: 12px; margin: 0 0 12px; }
@media (min-width: 760px) { .ea-bowtie { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "act cond par"; align-items: start; } .ea-bt-group.is-actions { grid-area: act; } .ea-bt-group.is-condition { grid-area: cond; border-color: var(--brand); } .ea-bt-group.is-parameters { grid-area: par; } }
.ea-bt-group { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px 10px; margin: 0; min-width: 0; display: grid; gap: 6px; }
.ea-bt-group legend { font-weight: 800; font-size: 14px; padding: 0 4px; }
.ea-bt-group legend small { font-weight: 600; color: var(--muted); margin-left: 4px; }
.ea-chipopt, .ea-mxcell { display: flex; align-items: flex-start; gap: 8px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.ea-chipopt input, .ea-mxcell input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.ea-chipopt.is-chosen, .ea-mxcell.is-chosen { border-color: var(--brand); background: var(--brand-soft); }
.ea-chipopt:has(input:disabled):not(.is-chosen):not(.is-right):not(.is-missed):not(.is-wrong) { opacity: .55; cursor: default; }
.ea-chipopt:focus-within, .ea-mxcell:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.ea-chipopt .ea-mark, .ea-mxcell .ea-mark { margin-left: auto; }
.is-right.ea-chipopt, .is-right.ea-mxcell, .ea-hl.is-right, .ea-ordlist li.is-right { border-color: var(--ok); background: var(--ok-soft); }
.is-wrong.ea-chipopt, .is-wrong.ea-mxcell, .ea-hl.is-wrong, .ea-ordlist li.is-wrong { border-color: var(--ng); background: var(--ng-soft); }
.is-missed.ea-chipopt, .is-missed.ea-mxcell, .ea-hl.is-missed, .ea-opt.is-missed { border: 2px dashed var(--ok); }
.ea-matrix { display: grid; gap: 10px; margin: 0 0 12px; }
.ea-mxrow { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 0; min-width: 0; }
.ea-mxrow legend { float: left; width: 100%; display: flex; gap: 8px; align-items: flex-start; font-weight: 700; padding: 0; }
.ea-mxrow legend .ea-mark { margin-left: auto; flex: none; }
.ea-mxrow.is-ok { border-color: var(--ok); } .ea-mxrow.is-ng { border-color: var(--ng); }
.ea-mxno { flex: none; min-width: 22px; height: 22px; border-radius: 999px; background: var(--surface-2); display: inline-grid; place-items: center; font-size: 12px; }
.ea-mxcells { clear: both; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.ea-mxcell { flex: 1 1 120px; align-items: center; }
.ea-cloze { line-height: 2.4; margin: 0 0 12px; }
.ea-cloze-blank { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; vertical-align: middle; max-width: 100%; min-width: 0; }
.ea-cloze-no { font-size: 11px; font-weight: 800; color: var(--muted); }
.ea-cloze-sel { font: inherit; min-height: 40px; width: auto; max-width: min(100%, calc(100vw - 72px)); text-overflow: ellipsis; padding: 4px 8px; border: 1px solid var(--brand); border-radius: 8px; background: var(--surface); color: var(--text, inherit); }
.ea-cloze-sel.is-right { border-color: var(--ok); background: var(--ok-soft); } .ea-cloze-sel.is-wrong { border-color: var(--ng); background: var(--ng-soft); }
.ea-cloze-fix { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); max-width: 100%; white-space: normal; }
.ea-highlight { line-height: 2; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ea-hl { font: inherit; color: inherit; background: transparent; border: 1px solid transparent; border-bottom: 2px dotted var(--muted); border-radius: 4px; padding: 1px 2px; margin: 0; cursor: pointer; text-align: left; line-height: 1.6; }
.ea-hl.is-on { background: #ffe58a; color: #1f2933; border-bottom: 2px solid #b8860b; }
.ea-hl:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.ea-hl:disabled { cursor: default; }
.ea-hl.is-right, .ea-hl.is-wrong { color: inherit; }
.ea-order { display: grid; gap: 8px; margin: 0 0 10px; }
.ea-ordopt { display: flex; align-items: flex-start; gap: 10px; text-align: left; font: inherit; color: inherit; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.ea-ordopt.is-chosen { border-color: var(--brand); background: var(--brand-soft); }
.ea-ordopt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ea-ordno { flex: none; width: 26px; height: 26px; border-radius: 999px; border: 2px solid var(--brand); display: grid; place-items: center; font-weight: 800; color: var(--brand); }
.ea-ordhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 6px; font-size: 14px; }
.ea-ordlist { margin: 0 0 12px; padding-left: 26px; display: grid; gap: 6px; }
.ea-ordlist li { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; display: flex; align-items: center; gap: 8px; }
.ea-ordlist li > span.pre { flex: 1; min-width: 0; }
.ea-ordbtns { display: flex; gap: 4px; flex: none; }
.ea-ordbtns .icon-btn { min-width: 40px; min-height: 40px; font-weight: 800; }
.ea-points { margin: 8px 0 4px; }
.ea-points strong { font-size: 20px; }
.ea-why-group { margin: 12px 0 4px; font-size: 14px; }
.ea-why.is-ngn li { display: grid; gap: 2px; }
.ea-why-label { font-size: 13px; }
.ea-submit.is-shake, .ea-opts.is-shake { animation: ea-shake .35s; }
@keyframes ea-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .ea-submit.is-shake, .ea-opts.is-shake { animation: none; } }
.ea-notes-practice { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }

/* 2026-10-17: 試験のアプリのヘッダーが 320〜430px で横にはみ出していた（プランの印・ガイド・明暗のボタンの列が、
   style.css の .header-tools { min-width: 0 } で縮められ、中のボタンが右へはみ出していた。プランの印が長いと 375px でも約 20px）。
   右のボタンの列は縮めず、左の「examplat／試験名」の欄が残りの幅に収まって切れるようにする */
.ea-header .wrap { min-width: 0; }
.ea-header .header-tools { flex: none; min-width: auto; }
.ea-header .ea-head-title { flex: 1 1 0; overflow: hidden; }
.ea-head-brand { min-width: 0; max-width: 100%; overflow: hidden; }
.ea-head-brand .ep-logo { min-width: 0; }
@media (max-width: 360px) {
  .ea-header .wrap { gap: 4px; }
  .ea-planchip { padding: 2px 6px; letter-spacing: -.01em; }
  .ea-header .icon-btn { width: 40px; height: 40px; }
}
/* 長い言語（スペイン語など）の「1 問だけ」のボタンが 320px で 1px はみ出していた（10/17）。狭い画面では折り返す */
.ea-one-go { max-width: 100%; }
@media (max-width: 360px) { .ea-one-go { white-space: normal; text-align: center; } }
/* IELTS: 目標との差・受験日まで・今週の課題（2026-10-17 ギャップ分析 ③） */
.ea-i4-goal { display: grid; gap: 6px; margin: 8px 0; }
.ea-i4-goal > .btn { justify-self: start; }
.ea-i4-goal > .ea-linkbtn { justify-self: start; font-size: .85rem; }
.ea-i4-gap { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.ea-i4-gap p { margin: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--brand-soft); }
.ea-i4-gap b { font-size: 1.35rem; line-height: 1.2; color: var(--brand-strong); }
.ea-i4-goalform { display: grid; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.ea-i4-goalform[hidden] { display: none; }
.ea-i4-goalform .field { margin: 0; }
.ea-i4-week { margin: 10px 0 6px; }
.ea-i4-week h3 { margin: 0 0 6px; font-size: 1rem; }
.ea-i4-week ul { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 6px; }
.ea-i4-week li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: .92rem; }
.ea-i4-week li.is-done { opacity: .75; }
.ea-i4-chk { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); display: inline-grid; place-items: center; color: var(--ok); }
.ea-i4-chk.is-done { border-color: var(--ok); background: var(--ok-soft); }
.ea-i4-chk svg { width: 14px; height: 14px; }
.ea-i4-week .btn { min-height: 36px; padding: 4px 14px; font-size: 13px; flex: none; }
/* 簿記の仕訳入力（journal）・表の空欄（sheet）・大問の構成の模試・苦手な勘定科目（docs/簿記3級_強化_設計_20261019.md。2026-10-19）。
   375px では借方の下に貸方（横スクロールさせない）。表は 1 列目を固定して表だけを横にスクロール */
.ea-journal { display: grid; gap: 10px; margin: 0 0 12px; }
@media (min-width: 640px) { .ea-journal { grid-template-columns: 1fr 1fr; } }
.ea-jside { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px 10px; margin: 0; min-width: 0; display: grid; gap: 6px; background: var(--surface); }
.ea-jside legend { font-weight: 700; padding: 0 4px; }
.ea-jside.is-debit legend { color: var(--brand); }
.ea-jrow { display: grid; grid-template-columns: 18px minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; border-radius: 8px; }
.ea-jrow.is-right { background: var(--ok-soft); } .ea-jrow.is-wrong { background: var(--ng-soft); }
.ea-jno { font-size: 12px; color: var(--muted); text-align: center; }
.ea-jacc, .ea-jamt, .ea-sh-in { font: inherit; min-height: 44px; min-width: 0; width: 100%; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text, inherit); }
.ea-jamt, input.ea-sh-in { text-align: right; font-variant-numeric: tabular-nums; }
.ea-jacc:focus, .ea-jamt:focus, .ea-sh-in:focus { border-color: var(--brand); outline: 2px solid var(--brand-soft); }
.ea-jrow .ea-mark { width: 18px; height: 18px; }
.ea-jswitch { margin: 6px 0 0; font-size: .9rem; }
.ea-jswitch .ea-linkbtn { display: inline-flex; align-items: center; gap: 4px; padding: 0; min-height: 40px; }
.ea-jswitch .ea-linkbtn svg { width: 16px; height: 16px; }
.ea-jkey-h { margin: 12px 0 4px; }
.ea-jkey td.num { text-align: right; }
.ea-sheet { margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.ea-sheet-table { min-width: 100%; width: max-content; }
.ea-sheet-table caption { text-align: left; font-weight: 700; padding: 8px 8px 0; }
.ea-sheet-table th, .ea-sheet-table td { white-space: nowrap; }
.ea-sheet-table tbody th[scope=row], .ea-sheet-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.ea-sh-blank { display: inline-flex; align-items: center; gap: 4px; }
.ea-sh-in { width: 9.5em; min-height: 40px; }
select.ea-sh-in { width: auto; max-width: 8.5em; }
.ea-sheet-table tbody th[scope=row] { max-width: 10.5em; white-space: normal; }
.ea-sheet-table th, .ea-sheet-table td { padding: 6px; }
.ea-sh-in.is-right { border-color: var(--ok); background: var(--ok-soft); } .ea-sh-in.is-wrong { border-color: var(--ng); background: var(--ng-soft); }
.ea-sh-fix { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--ok); }
.ea-chip.is-part { background: var(--brand-soft); color: var(--brand); }
.ea-chip.is-until, .ea-chip.is-from { white-space: normal; }
.ea-gridpart { grid-column: 1 / -1; margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.ea-parts td.num { white-space: nowrap; }
.ea-weakacc .ea-chips { margin: 6px 0; }
.ea-chipbtn { display: inline-flex; align-items: baseline; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.ea-chipbtn:hover, .ea-chipbtn:focus-visible { border-color: var(--brand); }
.ea-chipbtn small { color: var(--ng); font-weight: 700; }

/* 無料登録者の初月 60% オフ: 試験のホームの 1 行（2026-10-19） */
.ea-f60line { margin: 10px 0; padding: 8px 12px; border-left: 4px solid var(--accent, #527A60); background: var(--surface); border-radius: 8px; }
/* 無料の模擬試験（#mock-free。docs/無料模擬試験_ケアマネ簿記3級_設計_20261019.md） */
.ea-mf { display: grid; gap: 14px; }
.ea-mf .ea-card { margin: 0; }
.ea-mf-rules { margin: 8px 0; padding-left: 1.2em; }
.ea-mf-rules li { margin: 4px 0; }
.ea-mf-where { margin: 8px 0 12px; padding: 10px 12px; border-left: 4px solid var(--brand); background: var(--surface-2, rgba(0,0,0,.03)); border-radius: 6px; line-height: 1.7; }
.ea-mf-table .is-ok { color: var(--ok); }
.ea-mf-table .is-ng, .ea-mf .is-ng { color: var(--ng); }
.ea-mf .is-ok { color: var(--ok); }
.ea-mf-table td, .ea-mf-table th { vertical-align: top; }
.ea-mf-when { display: grid; gap: 6px; margin: 4px 0 10px; }
.ea-mfcard h2 { display: flex; align-items: center; gap: 6px; }

/* ==== 要点集の事例と図（2026-10-19 docs/要点集_事例と図解で倍増_設計_20261019.md 3 章） ====
   色は役割で固定（壁紙 data-wall では上書きしない）。昼（既定・奥の園・桜色）と暗い表示（既定・奥の園の夜・桜色の夜）の 2 組。
   色だけに頼らない: 要語は太字、結論は下線、吹き出しは形、矢印は矢じり */
:root {
  --nk-key: #b3261e;
  --nk-line: #254a33;
  --nk-bubble: #6b4fbb;
  --nk-bubble-bg: #efeaff;
  --nk-arrow: #1f7f80;
  --nk-lot1: #f4efe3;
  --nk-lot2: #e6dcc6;
  --font-notes: "BIZ UDPGothic", var(--font);
}
html[data-mode="dark"] {
  --nk-key: #ff9b8f;
  --nk-line: #a9c9b4;
  --nk-bubble: #c4b1ff;
  --nk-bubble-bg: #2b2545;
  --nk-arrow: #6fd3d3;
  --nk-lot1: #1b2436;
  --nk-lot2: #26324a;
}
/* 書体: 日本語の試験の要点集の読み物の部分だけ（章の題・ボタン・ナビは今のまま） */
.ea-notes-ja .ea-secbody .ea-nblock p, .ea-notes-ja .ea-chbody > .ea-lead, .ea-notes-ja .ea-cases, .ea-notes-ja .nk-svg, .ea-figinline-big.ea-notes-ja { font-family: var(--font-notes); }
.ea-cases .num { font-family: inherit; }
b.nk-key, .nk-table b.nk-key { color: var(--nk-key); font-weight: 700; }
u.nk-line { text-decoration: underline; text-decoration-color: var(--nk-line); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-skip-ink: none; }
.ea-intro { margin: 0 0 8px; font-size: 15px; line-height: 1.75; }
.ea-case { margin: 16px 0 10px; padding: 12px 0 4px; border-top: 1px dashed var(--line); }
.ea-case > h5 { margin: 0 0 6px; font-size: 17px; line-height: 1.5; font-weight: 700; color: var(--fg); }
.ea-case-pts { margin: 0 0 8px; padding: 0; list-style: none; }
.ea-case-pts li { position: relative; padding-left: 1em; margin: 0 0 6px; font-size: 16px; line-height: 1.75; }
.ea-case-pts li::before { content: "・"; position: absolute; left: 0; top: 0; }
.ea-case-fig { margin: 10px 0 12px; }
.ea-case-fig figcaption { font-size: 14px; font-weight: 700; color: var(--fg); line-height: 1.5; }
.ea-case-figbody { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 6px 4px; }
.ea-case-table .ea-case-figbody { padding: 0; border: 0; background: none; }
.ea-case-fighead { display: flex; align-items: flex-end; gap: 6px; margin: 0 0 4px; }
.ea-case-fighead figcaption { flex: 1; margin: 0; }
.ea-case-fighead > span { flex: 1; }
.ea-figzoom { flex: none; margin: -6px -4px 0 0; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.ea-figzoom .ico { width: 18px; height: 18px; }
.ea-figzoom:hover, .ea-figzoom:focus-visible { color: var(--fg); background: var(--surface-2); }
.ea-case-conc, .ea-case-stumble { margin: 6px 0; font-size: 15px; line-height: 1.75; }
.ea-case-lab { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.8; vertical-align: 1px; background: var(--surface-2); color: var(--fg); }
.ea-case-stumble .ea-case-lab { background: transparent; border: 1.5px solid var(--nk-key); color: var(--nk-key); }
.ea-case-src { margin: 4px 0 0; font-size: 13px; }
.ea-case-src > summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; color: var(--muted); }
.ea-case-src ul { margin: 2px 0 6px; padding-left: 1.2em; }
.ea-case-src a { overflow-wrap: anywhere; }
.ea-case-table > h5 { margin: 12px 0 4px; font-size: 14px; }
.ea-case-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
/* 図（diagram.js の SVG）。線は文字色の 60%、塗りは役割のトークン */
.nk-svg { display: block; width: 100%; height: auto; max-width: 520px; margin: 0 auto; color: var(--fg); overflow: visible; }
.nk-svg text { font-family: inherit; }
.nk-l { fill: none; stroke: currentColor; stroke-opacity: .6; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nk-lot { stroke: currentColor; stroke-opacity: .6; stroke-width: 1.75; }
.nk-s0 { fill: var(--surface); } .nk-s1 { fill: var(--nk-lot1); } .nk-s2 { fill: var(--nk-lot2); }
.nk-t { fill: currentColor; }
.nk-tm { fill: var(--muted); }
.nk-tb { font-weight: 700; }
.nk-tk, .nk-svg .nk-tk { fill: var(--nk-key); font-weight: 700; }
.nk-halo { paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; }
.nk-bb { fill: var(--nk-bubble-bg); stroke: var(--nk-bubble); stroke-width: 1.5; stroke-linejoin: round; }
.nk-tail { stroke-linejoin: round; }
.nk-bt { fill: var(--nk-bubble); font-weight: 700; }
.nk-ar { fill: none; stroke: var(--nk-arrow); stroke-width: 3; stroke-linecap: round; }
.nk-ah { fill: var(--nk-arrow); stroke: var(--nk-arrow); stroke-width: 1; stroke-linejoin: round; }
.nk-span { fill: none; stroke: var(--nk-arrow); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.nk-tick { stroke: currentColor; stroke-opacity: .6; stroke-width: 1.75; stroke-linecap: round; }
.nk-tick-key { stroke: var(--nk-key); stroke-opacity: 1; stroke-width: 3; }
.nk-step { fill: var(--surface); stroke: currentColor; stroke-opacity: .55; stroke-width: 1.5; }
.nk-step-key { stroke: var(--nk-key); stroke-opacity: 1; stroke-width: 2.5; }
.nk-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nk-table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.6; background: var(--surface); }
.nk-table th, .nk-table td { border: 1px solid var(--line); padding: 6px 6px; text-align: left; vertical-align: top; }
.nk-table thead th { background: var(--surface-2); font-weight: 700; }
.nk-table tbody th { font-weight: 700; }
.nk-compare { display: grid; gap: 8px; }
@media (min-width: 560px) { .nk-compare { grid-template-columns: 1fr 1fr; } }
.nk-cmp { border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--surface); }
.nk-cmp.is-right { border-style: dashed; }
.nk-cmp-h { margin: 0 0 4px; font-weight: 700; }
.nk-cmp ul { margin: 0; padding-left: 1.1em; }
.nk-svgraw svg { display: block; width: 100%; height: auto; max-width: 520px; margin: 0 auto; }
.ea-figinline-big { height: 100%; overflow: auto; padding: 12px; box-sizing: border-box; color: var(--fg); background: var(--surface); }
.ea-figinline-big .nk-svg, .ea-figinline-big svg { max-width: none; width: 100%; min-width: 520px; }
@media (min-width: 720px) { .ea-figinline-big .nk-svg, .ea-figinline-big svg { min-width: 0; max-width: 900px; } }
/* ロックされた節の図の形のぼかし（中身は渡していない） */
.ea-mosaic-fig { margin: 2px 0 6px; filter: blur(2.5px); user-select: none; }
.ea-mosaic-fig span { display: block; height: 96px; border-radius: 12px; border: 2px solid var(--line); background: linear-gradient(135deg, var(--surface-2), var(--line)); }
.ea-lockcount { margin: 0 0 4px; }

/* ==== 登録直後の 5 問（docs/登録直後の体験_設計_20261021.md 3-5・5-1）。箇条書きは LP と同じ .lp-points（is-dot）。375px で案内と結果の①②が 1 画面目に入るよう詰める ==== */
.ea-ob .lp-points, .ea-obr .lp-points { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ea-ob .lp-points li, .ea-obr .lp-points li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.55; }
.ea-ob .lp-points li::before, .ea-obr .lp-points li::before { content: ""; position: absolute; top: .62em; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.ea-ob-h { margin: 4px 0 2px; font-size: 22px; line-height: 1.35; }
.ea-ob .ea-go { margin-top: 14px; }
.ea-obr .ea-card { margin-bottom: 12px; }
.ea-obr .ea-score { font-size: 36px; }
.ea-obr-score { margin: 0 0 6px; font-weight: 700; }
.ea-obr-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ea-obr-bar i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.ea-obr-h3 { margin: 14px 0 0; font-size: 15px; }
.ea-obr .ea-linkbtn { padding: 0; text-align: left; }
.ea-obcard .ea-row { flex-wrap: wrap; }
.ea-obr .ea-obr-when { display: grid; gap: 6px; }
.ea-obr .ea-obr-when .ea-row { gap: 6px; flex-wrap: wrap; }
.ea-obr .ea-obr-mail { display: grid; gap: 2px; }
.ea-obr .ea-obr-mail[hidden], .ea-obr-price[hidden] { display: none; }
.ea-obr .ea-obr-mail small { font-size: 12px; }
.ea-obr-price { border: 2px solid var(--brand); }
.ea-obr-price-h { margin: 0 0 4px; font-size: 17px; line-height: 1.45; }
.ea-obr-price .btn.block { margin-top: 12px; }
.ea-obr .ea-disclaim { margin-top: 12px; }

/* 日本で働く試験（JFT-Basic）: ふりがな・音声・目安（docs/日本で働くための試験_設計_20261021.md 7 章） */
.ea-q ruby, .ea-opt-text ruby, .ea-passage-text ruby, .ea-exp ruby { ruby-position: over; }
.ea-q rt, .ea-opt-text rt, .ea-passage-text rt, .ea-exp rt { font-size: .55em; font-weight: 400; color: var(--muted); }
.ea-q:has(ruby), .ea-passage-text:has(ruby), .ea-opt-text:has(ruby) { line-height: 2.1; }
.ea-noruby rt, .ea-noruby rp { display: none; }
.ea-furi { min-height: 36px; padding: 4px 10px; font-size: 13px; white-space: nowrap; }
.ea-furi.is-on { border-color: var(--accent, currentColor); }
/* 問題文・選択肢の母語の並記（translatedExam。docs/translatedExam_仕様_20261103.md 5 章）。訳は日本語の下に一回り小さく */
.ea-txbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.ea-txbtn { min-height: 36px; padding: 4px 10px; font-size: 13px; }
.ea-txbtn.is-on { border-color: var(--accent, currentColor); font-weight: 700; }
.ea-txnote { margin: 0 0 8px; }
.ea-tx { display: block; margin-top: 4px; font-size: 0.92em; font-weight: 400; line-height: 1.5; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.ea-tx-only { white-space: pre-wrap; overflow-wrap: anywhere; }
.ea-opt.is-binary .ea-tx { font-size: 0.85em; }
.ea-audio { margin: 8px 0 12px; }
.ea-audio audio { width: 100%; max-width: 480px; }
.ea-chip.is-level { background: var(--surface-2); color: var(--text); }
.ea-work-note { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 1.6; }
.ea-work-note p { margin: 0 0 6px; }
.ea-work-note p:last-child { margin-bottom: 0; }

/* 2026-11-06 画面遷移説明書 付録 1-7: 375px で上の帯のロゴが「exampl」で切れ、長い試験名（宅建など）が細い欄で何行にも折れていた。
   ロゴ（本のマーク＋examplat）は縮めず切らない。狭い画面では試験のマーク（試験名と同じ情報）を隠して試験名の欄を広げ、
   試験名は 2 行まで（あふれたら…）。320px 台ではプランの印も隠す（プランは記録・契約の画面で見られる） */
.ea-head-brand { overflow: visible; flex: none; }
.ea-head-brand .ep-logo { flex: none; }
@media (max-width: 480px) {
  #ea-exam-mark { display: none; }
  #ea-exam-mark + .ea-head-title { margin-left: 0; }
}
@media (max-width: 359px) {
  .ea-header #ea-plan { display: none; }
}
/* 日商簿記の「わかったつもり」の見える化（2026-11-06 docs 日商簿記_強化_設計_20261106.md 4-2） */
.ea-gap-say { margin: 8px 0; padding: 8px 12px; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; font-weight: 700; line-height: 1.6; }
.ea-gap-list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 10px; }
.ea-gap-row { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); display: grid; gap: 6px; }
.ea-gap-row.is-mark { border-color: var(--accent); }
.ea-gap-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ea-gap-bar { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 5.2em; gap: 8px; align-items: center; font-size: 13px; }
.ea-gap-bar .num { text-align: right; white-space: nowrap; }
.ea-gap-bar .num small { color: var(--muted); font-weight: 400; }
.ea-gap-bar.is-choice .ea-bar span { background: var(--muted); }
.ea-gap-bar.is-input .ea-bar span { background: var(--brand); }
.ea-gap-lab { color: var(--muted); }
.ea-gap-row .btn { justify-self: start; }
@media (max-width: 480px) {
  .ea-gap-row.is-extra { display: none; }
  .ea-gap-bar { grid-template-columns: 6.6em minmax(0, 1fr) 4.8em; font-size: 12px; }
}
.ea-q3t-chart { width: 100%; max-width: 520px; height: auto; display: block; margin: 6px 0; color: var(--fg); }
.ea-q3t-chart text { font-size: 10px; fill: var(--muted); }
.ea-q3t-goal { stroke: var(--ng); stroke-width: 1.2; stroke-dasharray: 4 3; }
.ea-q3t-chart .ea-q3t-goal-t { fill: var(--ng); font-weight: 700; }
.ea-q3t-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.ea-q3t-chart circle { fill: var(--brand); }
.ea-q3t-chart circle.is-over { fill: var(--ng); }
.ea-over { color: var(--ng); font-weight: 700; }
.ea-ta-time { font-size: 22px; font-weight: 800; margin: 6px 0; line-height: 1.4; }
.ea-timer.is-up { background: var(--surface-2); }
.ea-pairlinks { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 6px 0; }
.ea-pairlink { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ea-pairlink .ico { width: 16px; height: 16px; }
