/* 国試の静的ページ（/kokushi/ 配下 約2,000枚）を、本体サイトのデザイン（紙・墨・明朝・青1色）にそろえる上書き。
   各ページの <style> の後に読み込まれる（scripts/apply_kokushi_skin.py が全ページの </head> 直前に挿入）。
   各ページは :root の変数（--ink / --acc など）で色を持っているので、まず変数を置き換え、
   次にグラデーション・角丸・影など、変数では変わらない部品だけを個別に上書きする。
   2026-10-05 賞レベル改善（国試）1周目。本文・タイトルは変えない（lastmod は本文から計算されるため動かない） */

:root {
  --ink: #1a1a1a; --sub: #4a4a47; --faint: #5b5b57; --line: #e3e3df; --bg: #f6f6f4; --card: #fff;
  --acc: #0057d9; --acc-deep: #0046ad; --accd: #0046ad; --acc-soft: #ececea; --warm: #ececea;
  --ok: #1f7a3f; --ok-soft: #eef5ef; --ok-line: #bcd9c3; --ng: #b42318; --ng-soft: #fbefed; --ng-line: #eac2bc;
  --jitchi: #1a1a1a; --jitchi-soft: #ececea; --ippan: #1a1a1a; --ippan-soft: #ececea; --kyotsu: #4a4a47; --kyotsu-soft: #ececea;
  --r: 2px; --shadow: none;
  --np-mincho: "Noto Serif JP", "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --np-sans: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}
body { font-family: var(--np-sans) !important; background: var(--bg) !important; color: var(--ink) !important; }
/* 16周目: 文節改行は見出し・ラベルだけ（本文の p/li/td に当てると右端が1〜3字ずつ欠けて読みにくい） */
:lang(ja) :is(h1, h2, h3, dt, th, summary, figcaption) { word-break: auto-phrase; }
h1, h2 { font-family: var(--np-mincho); font-weight: 600; font-feature-settings: "palt"; letter-spacing: 0.01em; }
h1 { line-height: 1.45; }
a { color: var(--acc); text-underline-offset: 0.2em; }

/* ---- サイト共通ヘッダー（npn）: 本体と同じ見た目・全幅に ---- */
.npn { background: var(--bg) !important; border-bottom: 1px solid var(--line) !important; box-shadow: none !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; width: auto !important; }
.npn-in { max-width: 1180px !important; margin: 0 auto !important; padding-left: 32px !important; padding-right: 32px !important; }
.npn-brand { font-family: var(--np-sans) !important; color: var(--ink) !important; font-weight: 700 !important; letter-spacing: 0.04em; }
.npn-brand em { color: var(--ink) !important; }
.npn-links a { color: var(--ink) !important; background: none !important; border-radius: 0 !important; }
.npn-links a[aria-current] { color: var(--acc) !important; font-weight: 600; }
.npn-cta { background: transparent !important; color: var(--ink) !important; border-radius: 0 !important; box-shadow: none !important; font-weight: 600 !important; }
.npn-cta span { background: transparent !important; color: var(--ink) !important; border: 1px solid var(--ink) !important; }
@media (max-width: 860px) {
  .npn-in { padding-left: 20px !important; padding-right: 20px !important; }
  /* 横にスクロールできることを右端のぼかしで示す */
  .npn-links { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
}

/* ---- ページ冒頭（青いグラデーション → 紙の地に墨の明朝） ---- */
header.top { background: var(--bg) !important; color: var(--ink) !important; border-bottom: 1px solid var(--ink); }
header.top :is(.eyebrow, .datetag, .lead, .mi span) { opacity: 1 !important; color: var(--sub) !important; }
header.top .eyebrow { color: var(--acc) !important; }
header.top .crumb, header.top .crumb a { color: var(--sub) !important; }
header.top .mi { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 0 !important; }
header.top .mi b { font-family: var(--np-mincho); font-weight: 600 !important; color: var(--ink); font-variant-numeric: tabular-nums; }
header.top .xlink { color: var(--acc) !important; border: none !important; border-radius: 0 !important; padding: 4px 0 !important; margin-right: 14px; text-decoration: underline; text-decoration-thickness: 1px; }
header.top .xlink:hover { background: none !important; }
header.top .fchip { background: transparent !important; border: none !important; border-radius: 0 !important; padding: 0 !important; color: var(--ink) !important; font-weight: 600 !important; display: inline-flex; align-items: baseline; gap: 7px; margin-right: 14px; }
header.top .fchip::before { content: ""; width: 6px; height: 6px; background: var(--ink); transform: translateY(-0.15em); }

/* ---- カード・帯: 角丸と影をやめ、細い罫線に ---- */
.card, .examcard, .how, .notice, .q, .rel, .panel, .box { border-radius: var(--r) !important; box-shadow: none !important; }
.examcard:hover { transform: none !important; border-color: var(--ink) !important; }
.ec-no, .ec-prof, .ec-prof.pt, .ec-prof.ot, .ec-tag, .tag, .tag.sub, .tag.jitchi, .tag.ippan, .badge, .kb-実地, .kb-一般, .kb-共通 {
  background: transparent !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 0 !important; font-weight: 600 !important;
}
.ec-title { font-family: var(--np-mincho); font-weight: 600 !important; }
.ec-go { color: var(--acc) !important; }

/* 濃い青の帯（採用の案内・CTA・診断）: 本体の濃色欄と同じ墨の地に */
.cta, .sp-recruit, .kyujin, .hero, .dv { background: var(--ink) !important; color: #f6f6f4 !important; border-radius: 0 !important; box-shadow: none !important; }
.cta h2, .hero .sub { font-family: var(--np-mincho); font-weight: 600 !important; color: #f6f6f4 !important; }
.hero .d, .cta p, .sp-recruit p { color: #c6c6c0 !important; opacity: 1 !important; }
.hero .lbl { background: transparent !important; border: 1px solid #c6c6c0; border-radius: 0 !important; color: #c6c6c0 !important; }
.cta a, .hero .go, .sp-recruit .sp-rbtns a { background: #fff !important; color: var(--ink) !important; border-radius: 0 !important; }
.sp-recruit .sp-rbtns a.g { background: transparent !important; color: #f6f6f4 !important; border: 1px solid #c6c6c0 !important; }
.hero:hover { transform: none !important; box-shadow: none !important; }

/* ---- 問題のカード・選択肢 ---- */
ol.opts li, .opt, .numbtn, .chip, .mode, .jump select, .jump input, .search input { border-radius: 0 !important; }
.on, .optn { border-radius: 0 !important; }
.ansbox { background: #fff !important; border: 1px solid var(--ink) !important; border-radius: 0 !important; }
.ansbox b { font-family: var(--np-mincho); color: var(--ink) !important; }
.mode[aria-pressed="true"], .chip.on { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
.qsess { background: var(--ink) !important; border-radius: 0 !important; }
.expl summary { color: var(--acc) !important; }
.riyuu, .expl .kai { border-left-color: var(--ink) !important; background: #fff !important; }

/* 科目ページの問番号バッジが「問／13」と2行に割れていた */
.qno, .qn, .num, .badge { white-space: nowrap; }

/* 進捗バーなどの単色化 */
.pbar i, .bar i, .bar span { background: var(--ink) !important; background-image: none !important; }

/* フッター */
footer.src { border-top: 1px solid var(--ink); }

/* ---- 国試トップの案内の帯（弱点診断・頻出用語）: 墨の地／罫線の白地 ---- */
.np-band { display: block; text-decoration: none; padding: 22px 26px; margin: 0 0 20px; border: 1px solid var(--ink); background: #fff; color: var(--ink); }
.np-band > div:first-child { color: var(--acc); opacity: 1 !important; }
.np-band > div:nth-child(2) { font-family: var(--np-mincho); font-weight: 600 !important; font-size: 1.25rem !important; }
.np-band > div:nth-child(3) { color: var(--sub); opacity: 1 !important; }
.np-band--ink { background: var(--ink); color: #f6f6f4; border-color: var(--ink); }
.np-band--ink > div:first-child { color: #9ec3f7; }
.np-band--ink > div:nth-child(3) { color: #c6c6c0; }
.np-band:hover { border-color: var(--acc); }
/* 試験カード: 「開く →」がタグに重ならないよう下段に */
.examcard .ec-go { position: static !important; display: block; margin-top: 10px; }
/* 回の一覧のツールバー・正答の数字 */
.ansval { font-family: var(--np-mincho); color: var(--ink) !important; }
.modes { border-radius: 0 !important; }
.jump button { background: var(--ink) !important; border-radius: 0 !important; }
.figchip { border-radius: 0 !important; background: transparent !important; border: 1px solid var(--line) !important; }
.notice { border-left-color: var(--ink) !important; }
.secn, .examsec h2 { font-family: var(--np-mincho); }

/* ---- 1問ページ: 選んでから答えが出る（np-skin.js が html に .np-quiz を付けたときだけ） ---- */
.np-quiz:not(.np-revealed) ol.opts li.ok { background: #fff !important; border-color: var(--line) !important; }
/* 解答前は正解の選択肢も他と同じ見た目に（番号の塗りで正答が分かってしまっていた・6周目で修正） */
.np-quiz:not(.np-revealed) ol.opts li .on, .np-quiz:not(.np-revealed) ol.opts li.ok .on { background: transparent !important; color: var(--ink) !important; border: 1px solid var(--line) !important; }
.np-quiz:not(.np-revealed) :is(.ansbox, #kaisetsu) { display: none !important; }
.np-quiz ol.opts li { cursor: pointer; transition: border-color .15s; }
.np-quiz:not(.np-revealed) ol.opts li:hover, .np-quiz ol.opts li:focus-visible { border-color: var(--ink) !important; outline: none; }
.np-quiz ol.opts li.np-miss { background: var(--ng-soft) !important; border-color: var(--ng) !important; }
.np-quiz ol.opts li.np-miss .on { background: var(--ng) !important; color: #fff !important; }
.np-quiz.np-revealed ol.opts li { cursor: default; }
.np-judge { margin: 12px 0 0; font-weight: 600; min-height: 0; }
.np-judge:empty { display: none; }
.np-judge.is-ok { color: var(--ok); }
.np-judge.is-ng { color: var(--ng); }
.np-reveal { margin-top: 12px; background: transparent; border: 1px solid var(--ink); color: var(--ink); font: inherit; font-weight: 600; padding: 10px 18px; min-height: 44px; cursor: pointer; }
.np-reveal:hover { background: var(--ink); color: #fff; }
/* 介護の科目ページ: 問番号のしるしが「問／13」と割れていた */
.st { flex: none !important; width: auto !important; min-width: 3.2em; height: auto !important; padding: 2px 6px; border-radius: 0 !important; white-space: nowrap; }

/* ---- 2周目: 回のページ（スマホ）の冒頭を短く。1問目まで早く届くように ---- */
@media (max-width: 760px) {
  header.top { padding: 20px 0 16px !important; }
  header.top .lead { font-size: 0.875rem !important; line-height: 1.7 !important; }
  header.top .meta { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px !important; }
  header.top .mi { min-width: 0 !important; padding: 6px 10px !important; }
  header.top .xlinks { flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  header.top .xlinks::-webkit-scrollbar { display: none; }
  header.top .xlink { white-space: nowrap; flex: none; }
}

/* ---- 2周目（2026-10-05）---- */
/* 角丸をすべてやめる（本体と同じ四角の作り）。○×の記号だけは丸のまま */
body *:not(.mk):not(.qmark) { border-radius: 0 !important; }
/* 正解の表示は緑ではなく墨（アクセントは青1色）。不正解だけ赤 */
:root { --ok: #1a1a1a; --ok-soft: #ececea; --ok-line: #1a1a1a; }
/* サイト共通のフッター（np-foot） */
.np-foot { background: #1a1a1a; color: #b4b4ae; margin-top: 64px; padding: 56px 32px 32px; font-size: 0.8125rem; line-height: 1.9; }
.np-foot-in { max-width: 1116px; margin: 0 auto; }
.np-foot a { color: #b4b4ae; }
.np-foot a:hover { color: #9ec3f7; }
.np-foot b { color: #f6f6f4; font-size: 0.9375rem; }
.np-foot-motto { font-family: var(--np-mincho); font-weight: 600; color: #f6f6f4; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.45; margin: 0 0 36px; font-feature-settings: "palt"; }
.np-foot-motto .k { font-size: 0.9em; }
.np-foot-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; padding-bottom: 28px; }
.np-foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.np-foot-facs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 24px 0; border-top: 1px solid #33332f; border-bottom: 1px solid #33332f; }
.np-foot-facs div { display: flex; flex-direction: column; }
.np-foot-facs div > a:first-child { color: #f6f6f4; font-weight: 600; }
.np-foot-copy { margin: 20px 0 0; font-size: 0.75rem; }
@media (max-width: 760px) { .np-foot { padding: 44px 32px 28px; } .np-foot-cols, .np-foot-facs { grid-template-columns: minmax(0, 1fr); } }
/* 弱点診断の資格選択・注記・表の見出し: 青の枠と青い地をやめる */
.pick, .prof, .choice, .sel-btn, button.pt, button.ot, .pbtn { border-color: var(--ink) !important; color: var(--ink) !important; background: #fff !important; }
th { background: transparent !important; color: var(--ink) !important; border-bottom: 1px solid var(--ink) !important; font-weight: 600; }
.lead-note, .src-note, .why, aside { border-left-color: var(--ink) !important; }
/* 国試トップ: 8回同じ「全問に独自解説つき・演習対応」のしるしは省く */
.examcard .ec-tag { display: none !important; }
/* 1問ページ: 「選ばずに答えを見る」は選択肢より控えめな文字のボタンに */
.np-reveal { border: none !important; padding: 8px 0 !important; color: var(--sub) !important; text-decoration: underline; text-underline-offset: 0.25em; min-height: 44px; background: none !important; }
.np-reveal:hover { color: var(--ink) !important; background: none !important; }
/* 介護の科目ページ: 下線の青いリンクが36本並ぶ壁 → 行全体を押せる一覧に */
ul.qs { list-style: none; padding: 0; }
ul.qs li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.qs li a { color: var(--ink); text-decoration: none; }
ul.qs li a:hover { color: var(--acc); text-decoration: underline; }
@media (min-width: 900px) { ul.qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
/* スマホの表: 文字と余白を詰めて画面に収める */
@media (max-width: 600px) {
  .wrap table { font-size: 0.8125rem; }
  .wrap table th, .wrap table td { padding: 6px 6px !important; }
}
/* 用語ページ: 箇条書きの点がカードの外に出ていた */
.card ul:not(.ch):not(.qs):not(.opts) { padding-left: 1.2em; }
.trend i { background: var(--ink) !important; }

/* ---- 3周目（2026-10-05）---- */
/* 採用の帯（1問・用語・科目ページ共通） */
.np-cta { background: var(--ink); color: #c6c6c0; padding: 22px 24px; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.np-cta p { margin: 0; flex: 1 1 22em; line-height: 1.8; font-size: 0.9375rem; }
.np-cta b { display: block; color: #f6f6f4; font-family: var(--np-mincho); font-weight: 600; font-size: 1.125rem; margin-bottom: 2px; }
.np-cta a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: #fff; color: var(--ink) !important; font-weight: 600; text-decoration: none; white-space: nowrap; }
/* フッター: 重要事項の公表 */
.np-foot-disc { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid #33332f; font-size: 0.75rem; }
.np-foot-disc b { font-size: 0.8125rem; }
/* 弱点診断の旧フッター（出典の一文）: 地の色をやめ、本文の注記として残す */
footer.f { background: transparent !important; border-top: 1px solid var(--line); color: var(--sub) !important; }
footer.f a { color: var(--sub) !important; }
/* スマホのヘッダー: 5項目を1行に収める（「会社概」で切れていた） */
@media (max-width: 860px) {
  .npn-links { gap: 0 !important; -webkit-mask-image: none !important; mask-image: none !important; display: flex !important; justify-content: space-between; width: 100%; }
  .npn-links a { padding: 8px 0 !important; font-size: 0.8125rem !important; white-space: nowrap; }
}
/* 回のページ: 操作の帯の中身を本文の列幅にそろえる */
nav.tool .toolrow, nav.tool .row2 { max-width: 1116px; margin-left: auto !important; margin-right: auto !important; }
/* スマホ: 使い方の注記は省き（国試トップに同じ説明あり）、絞り込みは「絞り込み」ボタンで開く（np-skin.js） */
@media (max-width: 760px) {
  .notice { display: none !important; }
  html.np-filter-fold nav.tool .row2 { display: none !important; }
  html.np-filter-fold.np-filter-open nav.tool .row2 { display: flex !important; }
}
.np-filter-btn { display: none; }
@media (max-width: 760px) { html.np-filter-fold .np-filter-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-size: 0.8125rem; font-weight: 600; } }
/* 各問の下のリンク（公式PDF・1問ページ）は小さく1行に */
.qfoot, .qlinks { font-size: 0.8125rem !important; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.q .pdflink, .q .qplink { font-size: 0.8125rem !important; display: inline-block; margin: 10px 16px 0 0; }
/* 国試トップ: この端末の解答記録（np-skin.js） */
.np-prog { margin-top: 10px; }
.np-prog-bar { display: block; height: 6px; background: #ececea; }
.np-prog-bar i { display: block; height: 100%; background: var(--ink); }
.np-prog-t { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--sub); }
.np-prog-t b { color: var(--ink); font-variant-numeric: tabular-nums; }
.np-prog-sum { margin: 0 0 14px; padding: 12px 16px; border-left: 2px solid var(--ink); background: #fff; font-size: 0.875rem; }

/* ---- 4周目（2026-10-05）---- */
/* 採用の帯: 画面幅いっぱいの墨の帯にし、中身は本文の列にそろえ、フッターに直接つなげる */
.np-cta { margin: 64px 0 0 !important; padding: 28px max(24px, calc((100vw - 1116px) / 2)) !important; }
.np-cta + .np-foot { margin-top: 0 !important; border-top: 1px solid #33332f; }
.wrap .np-cta { margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }
/* 弱点診断: 資格の選択を見出しの直下に（注記は下へ）。表はスマホで収まる大きさに */
#start { display: flex; flex-direction: column; }
#start > .note { order: 3; margin-top: 20px; font-size: 0.8125rem; border-left: 2px solid var(--ink) !important; background: transparent !important; }
.note { background: transparent !important; border-left: 2px solid var(--ink) !important; }
/* 弱点診断の旧フッター: 出典の一文だけ残し、本フッターと重なる会社名・セキュリティ宣言・リンクは省く */
footer.f p:nth-child(n+2) { display: none !important; }
/* 回のページ（パソコン）: 操作の帯の中身を本文の列（860px）にそろえる */
nav.tool .toolrow, nav.tool .row2 { max-width: 828px !important; }
/* 回のページ（スマホ）: 冒頭の説明文は省いて1問目を近くに。数字は4つを1行に小さく */
@media (max-width: 760px) {
  header.top .lead { display: none !important; }
  header.top .meta { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  header.top .mi { padding: 4px 6px !important; }
  header.top .mi b { font-size: 0.9375rem !important; }
  header.top .mi span { font-size: 0.6875rem !important; line-height: 1.3; display: block; }
}
/* 灰色の塗りの箱（用語の要点など）は細い罫線の白地に */
.point, .summary, .yoten, .kp { background: #fff !important; border: 1px solid var(--line) !important; }
/* 矢印だけが次の行に落ちない */
a.cta-btn, .card > a[class*="btn"] { white-space: nowrap; }
.drillbtn { white-space: nowrap; }
.tsum { background: #fff !important; border-left: 2px solid var(--ink) !important; }

/* ---- 5周目（2026-10-05）: 本体のヘッダーと同じ寸法・文字に ---- */
.npn { margin-top: 0 !important; }
.npn-in { height: 64px; flex-wrap: nowrap !important; gap: 24px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.npn-brand { font-size: 1rem !important; }
.npn-links { gap: 26px !important; margin-left: auto !important; }
.npn-links a { font-size: 0.9375rem !important; font-weight: 400 !important; padding: 0 !important; min-height: 0 !important; }
.npn-links a[aria-current] { font-weight: 600 !important; }
.npn-cta { font-size: 0.9375rem !important; padding: 8px 0 !important; min-height: 0 !important; }
.npn-cta span { font-size: 0.75rem !important; padding: 1px 8px !important; font-weight: 700 !important; }
@media (max-width: 860px) {
  .npn-in { height: auto; flex-wrap: wrap !important; padding: 12px 32px 4px !important; gap: 6px !important; }
  .npn-links { order: 3; width: 100%; gap: 0 !important; margin-left: 0 !important; padding-bottom: 8px; }
  .npn-links a { font-size: 0.875rem !important; padding: 6px 0 !important; }
  .npn-cta { margin-left: auto !important; font-size: 0.8125rem !important; }
}
/* スマホの左右の余白を本体と同じ32pxに */
@media (max-width: 760px) {
  .wrap { padding-left: 32px !important; padding-right: 32px !important; }
  .npn { margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }
}
/* フッターのリンクは本体と同じ13項目を3列に */
.np-foot-links { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 760px) { .np-foot-links { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
/* 【後退の修正】左の罫線を1行のリンクや短い注記に付けない（カーソルのように見えた）。段落の注記（弱点診断の冒頭）だけに残す */
.note { border-left: none !important; padding-left: 0 !important; }
#start > .note { border-left: 2px solid var(--ink) !important; padding-left: 14px !important; }
.tsum { padding-left: 14px !important; }
/* 国試トップの「国家試験リベンジ採用」も全幅の墨の帯に（ほかのページと同じ形） */
.cta { margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; padding: 36px max(24px, calc((100vw - 1116px) / 2)) !important; text-align: left !important; margin-bottom: 0 !important; }
.cta + footer.src, .cta ~ footer.src { margin-top: 40px; }
/* 灰色の地のチップは墨の細い枠に（地の色は使わない） */
.tag, .chip, .figchip, .badges span, .anssub, .tlink, .kw { background: transparent !important; }
/* 回のページ: 星を右端に、選択肢の番号は枠だけ、モード切替は墨の枠、案内は墨の罫線 */
.qtools { margin-left: auto !important; }
.qhead { padding-right: 14px !important; }
.optn { background: transparent !important; border: 1px solid var(--line) !important; color: var(--ink) !important; }
.q.revealed .opt.correct .optn, body[data-mode="view"] .opt.correct .optn { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
.q.revealed .opt.sel.wrong .optn { background: var(--ng) !important; color: #fff !important; border-color: var(--ng) !important; }
.modes { background: transparent !important; border: 1px solid var(--ink) !important; padding: 0 !important; gap: 0 !important; }
.mode { color: var(--ink) !important; box-shadow: none !important; }
.modehint { background: #fff !important; border: none !important; border-left: 2px solid var(--ink) !important; color: var(--ink) !important; }
header.top .mi b { white-space: nowrap; }
.figchip { display: inline-block; margin-bottom: 10px !important; }
/* 1問ページ: 選択肢の番号は枠だけ（正解・不正解の後だけ塗る）。用語のリンクは塗りをやめ細い枠に */
ol.opts li .on { background: transparent !important; border: 1px solid var(--line) !important; color: var(--ink) !important; }
.np-revealed ol.opts li.ok .on { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
a[href^="/kokushi/terms/"][style*="acc-soft"], a[href^="/kokushi/kaigo-terms/"][style*="acc-soft"] { background: transparent !important; border: 1px solid var(--line) !important; }

/* ---- 6周目（2026-10-06）---- */
/* 介護の科目ページの問番号・用語の「正答」しるし: 灰色の地をやめ細い枠に */
.st { background: transparent !important; border: 1px solid var(--line) !important; color: var(--ink) !important; }
.st.done { border-color: var(--ink) !important; }
.st.wrong { border-color: var(--ng) !important; color: var(--ng) !important; }
.ansmark, .seikai, .okmark, .tmark { background: transparent !important; border: 1px solid var(--ink) !important; }
/* スマホ: はみ出し・割れの修正 */
.drillbtn { display: inline-flex !important; max-width: 100%; box-sizing: border-box; white-space: normal !important; }
.qnum, .qid { white-space: nowrap; }
.qid { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 760px) {
  header.top .meta { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  header.top .mi span { font-size: 0.75rem !important; }
  /* 【後退の修正】.numrow の表示・非表示はページ側が決める（ここで display を指定すると全問に番号行が出た）。並びだけ均等に */
  .numrow .numbtn { flex: 1 1 0; min-width: 0; }
}
/* 国試トップ: 採用の帯のあとの出典は、帯と同じ墨のまとまりの手前に置く（白い箱を挟まない） */
.cta ~ footer.src { background: transparent !important; border: none !important; border-top: 1px solid var(--line) !important; box-shadow: none !important; }
.ansb { background: transparent !important; border: 1px solid var(--ink) !important; color: var(--ink) !important; }
/* 国試トップ: 前回の続きから（記録があるときだけ・np-skin.js） */
.np-resume { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; margin: 0 0 14px; padding: 16px 20px; background: var(--ink); color: #f6f6f4 !important; text-decoration: none; }
.np-resume span { grid-column: 1; font-size: 0.8125rem; color: #9ec3f7; font-weight: 600; letter-spacing: 0.06em; }
.np-resume b { grid-column: 1; font-family: var(--np-mincho); font-weight: 600; font-size: 1.25rem; }
.np-resume i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 1.25rem; }

/* ---- 7周目（2026-10-06）: 200問の解答マップ ---- */
.np-mapbox { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.np-mapbox-h { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 0.8125rem; color: var(--sub); }
.np-mapbox-h b { font-family: var(--np-mincho); font-weight: 600; font-size: 1rem; color: var(--ink); }
.np-mapbox-h .np-map-c { display: inline-block; vertical-align: -1px; margin: 0 3px 0 8px; }
.np-map { display: flex; flex-direction: column; gap: 6px; }
.np-map-row { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); align-items: start; gap: 8px; }
.np-map-lb { font-size: 0.75rem; color: var(--sub); line-height: 12px; }
.np-map-cells { display: grid; grid-template-columns: repeat(50, minmax(0, 1fr)); gap: 2px; max-width: 700px; }
.np-map-c { display: block; aspect-ratio: 1; min-width: 8px; background: #fff; border: 1px solid #c9c9c4; box-sizing: border-box; }
a.np-map-c:hover, a.np-map-c:focus-visible { border-color: var(--acc); outline: none; }
.np-map-c.is-ok { background: var(--ink); border-color: var(--ink); }
.np-map-c.is-ng { background: var(--ng); border-color: var(--ng); }
.np-map-c.is-done { background: #9a9a95; border-color: #9a9a95; }
@media (max-width: 760px) { .np-map-cells { grid-template-columns: repeat(25, minmax(0, 1fr)); } }
/* 国試トップのカード内の小さなマップ */
.np-map--mini { gap: 2px; margin-bottom: 4px; }
.np-map--mini .np-map-row { grid-template-columns: minmax(0, 1fr); }
.np-map--mini .np-map-cells { grid-template-columns: repeat(50, minmax(0, 1fr)); gap: 1px; }
.np-map--mini .np-map-c { min-width: 0; border-width: 0; background: #e3e3df; }
.np-map--mini .np-map-c.is-ok { background: var(--ink); }
.np-map--mini .np-map-c.is-ng { background: var(--ng); }
/* 国試トップ（スマホ）: 各回のカードを低い行に（同じ形のカード10枚が縦に長く続いていた） */
@media (max-width: 760px) {
  .examcard { padding: 12px 14px !important; }
  .examcard .ec-title { display: none; }
  .examcard .ec-top { margin-bottom: 2px !important; }
  .examcard .ec-date { display: inline; margin-right: 10px; }
  .examcard .ec-stats { display: inline-flex; margin-top: 0 !important; }
  .examcard .ec-go { margin-top: 6px !important; }
  .grid { gap: 8px !important; }
}
.np-band > div:nth-child(2) { word-break: auto-phrase; }
/* 弱点診断: 冒頭の特長は国試トップと同じ「■」つきの横並びに（浮いた文字だけになっていた） */
header.top .badges { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0 !important; }
header.top .badges span { padding: 0 !important; border: none !important; display: inline-flex; align-items: baseline; gap: 7px; font-weight: 600; color: var(--ink); }
header.top .badges span::before { content: ""; width: 6px; height: 6px; background: var(--ink); transform: translateY(-0.15em); }
/* 用語ページ・介護の科目ページの一覧: リンクを1行目、設問の要旨を2行目に。行の右端に → */
.card > ul:not(.ch):not(.qs):not(.opts) > li > a:first-child { display: inline-block; margin-right: 8px; }
ul.qs li > span:last-child { flex: 1; }
ul.qs li > span:last-child::after { content: "→"; float: right; color: var(--acc); }

/* ---- 8周目（2026-10-06）: 解答マップを道具として使える形に ---- */
.np-map-cells { display: flex !important; flex-wrap: wrap; gap: 6px !important; max-width: none !important; }
.np-map-g { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; flex: 1 1 calc(20% - 6px); min-width: 0; }
.np-map-c { min-width: 0 !important; }
.np-map-c.is-cur { outline: 2px solid var(--acc); outline-offset: 1px; }
@media (max-width: 760px) {
  .np-map-g { flex-basis: calc(50% - 6px); }  /* スマホは 20列×5行（1マス約15px・押せる大きさ） */
  .np-map-row { grid-template-columns: minmax(0, 1fr) !important; }
  .np-map-lb { margin-bottom: 2px; }
}
.np-map--mini .np-map-cells { gap: 3px !important; }
.np-map--mini .np-map-g { gap: 1px; }
.np-mapbox--q { margin: 4px 0 18px; padding-top: 0; border-top: none; }
/* 回のページ: ☆は見出しの右上に固定（「2つ選べ」が折り返すと位置がずれていた） */
.qhead { position: relative; padding-right: 96px !important; }
.qtools { position: absolute; right: 14px; top: 10px; }
/* 箇条書きの点を ■ に（デザインの約束にそろえる） */
.card ul:not(.ch):not(.qs):not(.opts) { list-style: none; padding-left: 0 !important; }
.card ul:not(.ch):not(.qs):not(.opts) > li { position: relative; padding-left: 16px; margin-bottom: 6px; }
.card ul:not(.ch):not(.qs):not(.opts) > li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 6px; height: 6px; background: var(--ink); }
/* 1問ページの見出し: 「問51」だけが最後の行に残らない */
h1 { text-wrap: balance; }
/* 介護の科目ページ: → を固定の列に（行ごとに位置がずれていた） */
ul.qs li { display: grid !important; grid-template-columns: auto minmax(0, 1fr) 1.2em; }
ul.qs li > span:last-child::after { content: none !important; }
ul.qs li::after { content: "→"; color: var(--acc); text-align: right; }

/* ---- 9周目（2026-10-06）---- */
/* 採点対象外の問題は斜線のマス（空白にしない） */
.np-map-c.is-x { background: repeating-linear-gradient(135deg, #fff 0 2px, #c9c9c4 2px 3px) !important; border-color: #c9c9c4 !important; }
/* 凡例の見本は実際のマスと同じ大きさで */
.np-mapbox-h .np-map-c { width: 12px; height: 12px; aspect-ratio: auto; }
/* 空のマスの枠を濃くし、空の状態でも格子として読めるように */
.np-map-c { border-color: #b4b4ae; }
/* 国試トップの小さなマップ: 1マス＝10問の20区画の帯に（スマホで灰色の塊になり縦に長くなっていた） */
.np-map--mini .np-map-row { display: none; }
.np-mini { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 2px; height: 10px; margin-bottom: 6px; }
.np-mini i { display: block; background: #fff; border: 1px solid #b4b4ae; position: relative; overflow: hidden; }
.np-mini i b { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.np-mini i s { position: absolute; top: 0; bottom: 0; background: var(--ng); }
/* ☆: 見出しを1行の flex にして右端に（タグが増えても動かない） */
.qhead { display: flex !important; flex-wrap: nowrap !important; align-items: center; padding-right: 14px !important; }
.qid { flex: 1 1 auto; min-width: 0; }
.qtools { position: static !important; margin-left: auto !important; flex: none; }
.bmark { min-width: 44px; min-height: 44px; }

/* ---- 10周目（2026-10-06）---- */
/* ☆: 演習中は「正答 5」の箱が見えないまま場所を取り、☆が右端から45px内側にずれていた → ☆を行の最後に並べる */
.qtools .bmark { order: 2; }
.qtools .qans { order: 1; }
/* 国試トップ（スマホ）: 各回のカードを2列の小さな札に */
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .examcard .ec-date { display: none; }
  .examcard .ec-stats { display: flex !important; flex-direction: column; gap: 0 !important; font-size: 0.75rem !important; }
  .examcard .ec-top { flex-wrap: wrap; gap: 4px !important; }
  .examcard .ec-go { font-size: 0.8125rem !important; }
}
/* 小さな帯（記録なし）を「チェックボックスの列」に見せない: 1本の細い線＋10%ごとの目盛り */
.np-mini { height: 6px; gap: 0; border: 1px solid #b4b4ae; background: #fff; }
.np-mini i { border: none; border-right: 1px solid #e3e3df; }
.np-mini i:nth-child(10) { border-right-color: #b4b4ae; }
.np-mini i:last-child { border-right: none; }
/* 各問の下のリンク: 灰色の小さな1行に */
.q .pdflink, .q .qplink { color: var(--sub) !important; }
/* 用語ページ: リンクを1行目、要旨は下の行に */
.card > ul:not(.ch):not(.qs):not(.opts) > li > a:first-child { display: block !important; margin-right: 0; }
/* 弱点診断の表（スマホ）: 横にスクロールできる箱に */
@media (max-width: 600px) { main table { display: block; overflow-x: auto; } }

/* ---- 11周目（2026-10-06）---- */
/* フッター: 本体のフッターと同じ見た目（リンクに下線なし・SNSの行） */
.np-foot a { text-decoration: none !important; }
.np-foot a:hover { text-decoration: underline !important; }
.np-foot-links { font-size: 0.8333rem; }
.np-foot-sns { display: flex; gap: 20px; padding-top: 8px; }
/* 国試トップ（スマホ）: 実施年月を1行で戻す */
@media (max-width: 760px) { .examcard .ec-date { display: block !important; font-size: 0.75rem !important; } }
/* 弱点診断: 横スクロールの案内は灰色の文字（リンクに見えないように） */
.swipe { color: var(--sub) !important; font-weight: 400 !important; }
.compare-wrap { overflow-x: auto; }
/* 回のページ（スマホ）: 記録がないときの解答マップは畳む（np-skin.js が「解答マップを開く」を付ける） */
.np-mapbox.is-folded .np-map { display: none; }
.np-mapbox .np-map-toggle { display: none; }
.np-mapbox.is-folded .np-map-toggle, .np-mapbox.is-open .np-map-toggle { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; margin-top: 4px; background: #fff; border: 1px solid var(--ink); color: var(--ink); font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }

/* ---- 12周目（2026-10-06）---- */
/* 採用の帯: /study と同じ構成（見出しの上の小見出し・明朝の一文・本文・ボタン2つ） */
.np-cta { display: block !important; }
.np-cta p { margin: 0 0 10px !important; max-width: 44em; }
.np-cta .np-cta-k { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; color: #9ec3f7; margin-bottom: 6px !important; }
.np-cta .np-cta-t { font-family: var(--np-mincho); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.75rem); color: #f6f6f4; line-height: 1.5; font-feature-settings: "palt"; }
.np-cta .np-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 0 !important; }
.np-cta .np-cta-btns a.g { background: transparent !important; color: #f6f6f4 !important; border: 1px solid #c6c6c0; }
/* 国試トップの従来の「国家試験リベンジ採用」の箱は、上の帯と重複するので出さない */
body > .wrap .cta, .cta { display: none !important; }
/* フッター: 本体と同じく、理念の一文を大きく・下に罫線、施設名に下線、事業所番号の行 */
.np-foot-motto { font-size: clamp(1.8rem, 3.8vw, 2.8rem) !important; padding-bottom: 28px; border-bottom: 1px solid #33332f; }
.np-foot-facs div > a:first-child { text-decoration: underline !important; text-underline-offset: 0.3em; text-decoration-color: rgba(246,246,244,.4); }
.np-foot-disc span { line-height: 1.9; }
/* 回のページ（スマホ）: 1問目を最初の画面の近くに */
@media (max-width: 760px) {
  header.top .mi:nth-child(n+3) { display: none !important; }   /* 数字は合格率・合格基準の2つだけ */
  .modehint { display: none !important; }                        /* 演習の説明は国試トップの「使い方」と同じなので省く */
  .np-mapbox.is-folded .np-mapbox-h { display: none; }           /* 畳んだマップは「解答マップを開く」の1行だけ */
  .np-mapbox.is-folded { margin-top: 10px; padding-top: 0; border-top: none; }
  header.top .xlinks { margin-top: 8px !important; }
}
/* 用語ページのボタンを途中で折り返さない */
.drillbtn { white-space: nowrap !important; font-size: 0.875rem !important; }

/* ---- 14周目（2026-10-06）---- */
/* 採用の帯: /study（StudyPage.css の .stx-cta と nx.css の上書き）と同じ寸法・同じ色。左右の余白は本文と同じ 32px */
.np-cta { padding: 48px max(32px, calc((100vw - 1116px) / 2)) !important; margin-top: 48px !important; }
.np-cta p { font-size: 16px !important; line-height: 2.3 !important; color: #c6c6c0; margin: 0 0 4px !important; }
.np-cta .np-cta-k { font-size: 14px !important; line-height: 1.6 !important; margin-bottom: 14px !important; }
.np-cta .np-cta-t { font-size: 26px !important; line-height: 1.5 !important; margin-bottom: 16px !important; }
.np-cta .np-cta-t .ib { display: inline-block; }
.np-cta .np-cta-btns { margin-top: 24px !important; line-height: 1.6 !important; }
.np-cta .np-cta-btns a { min-height: 0; padding: 14px 32px; font-size: 16px; font-weight: 400; background: #f6f6f4; transition: color .15s, background-color .15s; }
.np-cta .np-cta-btns a:hover { background: #9ec3f7; }
.np-cta .np-cta-btns a.g { padding: 13px 32px; }
.np-cta .np-cta-btns a.g:hover { background: transparent !important; color: #9ec3f7 !important; }
@media (max-width: 760px) { .np-cta .np-cta-t { font-size: 22px !important; } .np-cta .np-cta-btns a { flex: 1 1 100%; justify-content: center; } }
/* フッターの理念の一文: 本体の .nx-footer-motto と同じ大きさ */
.np-foot-motto { font-size: clamp(36px, 4.6vw, 72px) !important; line-height: 1.35 !important; letter-spacing: 0.05em; margin: 0 0 56px !important; padding-bottom: 48px !important; }
.np-foot-copy .nw, .np-foot-links a { white-space: nowrap; }
/* 出典欄の中の採用リンクは、すぐ下の帯と重なるので注記として見せる（文言はそのまま） */
section p:has(> a[href^="/recruit"]):not(.np-cta-btns) { font-size: 0.8125rem; color: var(--sub, #5c5c58); }
section p:has(> a[href^="/recruit"]):not(.np-cta-btns) a { color: inherit !important; text-decoration: underline; text-decoration-color: #b4b4ae; text-underline-offset: 0.25em; font-weight: 400; }
/* 日本語の改行: 文節で折る、見出しは行の長さをそろえる */
/* 15周目: 本文への auto-phrase は行末が乱れるのでやめ、見出し・札・帯の見出しだけに */
:lang(ja) :is(h1, h2, h3, .np-cta-t, .ec-title, .np-band, .np-pass-h) { word-break: auto-phrase; }
main p, main li { line-break: strict; }
:is(h1, h2, h3, .np-cta-t) { text-wrap: balance; }
.ib { display: inline-block; }
/* 回のページ: 回の切り替えは折り返さず横に送る（「第58回 OT」だけ2行目に残らない） */
header.top .xlinks { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 90%, transparent); mask-image: linear-gradient(to right, #000 90%, transparent); }
header.top .xlinks::-webkit-scrollbar { display: none; }
header.top .xlinks .xlink { flex: 0 0 auto; white-space: nowrap; }
/* 回のページ: 「このページの使い方」は出さず、いまのモードの説明1つにする（保存の注記は np-skin.js がそこへ添える） */
.notice { display: none !important; }
.modehint .np-priv { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--sub, #5c5c58); }
/* 国試トップ: 本文側の SECURITY ACTION はフッターと重なるので出さない／スマホで最後の1枚（第38回 介護）は全幅 */
footer.src p:has(img[src*="security-action"]) { display: none !important; }
@media (max-width: 600px) { .grid > .examcard:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* 4列までの表（スマホ）は横に送らず収める */
@media (max-width: 600px) {
  main table:not(:has(th:nth-child(5))) { display: table; width: 100%; }
  main table:not(:has(th:nth-child(5))) :is(th, td) { padding: 6px 8px !important; font-size: 0.8125rem !important; white-space: normal !important; }
  main table:not(:has(th:nth-child(5))) caption span { display: none; }
}
/* 回のページ: 合格ラインまでの距離（np-skin.js）。基準の位置に縦線、正解の点が墨で積み上がる。基準に届いた行は青 */
.np-pass { margin: 4px 0 16px; padding: 14px 0 16px; border-top: 1px solid var(--ink); border-bottom: 1px solid #d7d7d2; }
.np-pass-h { margin: 0 0 10px; font-size: 0.9375rem; line-height: 1.6; }
.np-pass-h b { font-weight: 600; margin-right: 10px; }
.np-pass-h em { font-style: normal; font-family: var(--np-mincho); font-weight: 600; font-size: 1.75rem; line-height: 1; margin: 0 2px; font-variant-numeric: tabular-nums; }
.np-pass-h span { display: block; font-size: 0.75rem; color: var(--sub, #5c5c58); }
.np-pass-r { display: grid; grid-template-columns: 5em 1fr auto; align-items: center; gap: 12px; font-size: 0.8125rem; margin-top: 6px; }
.np-pass-l { color: var(--sub, #5c5c58); }
.np-pass-t { position: relative; height: 10px; background: #fff; border: 1px solid #b4b4ae; }
.np-pass-t b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); transition: width .4s cubic-bezier(.2,.7,.2,1); }
.np-pass-t i { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--acc); }
.np-pass-r.is-pass .np-pass-t b { background: var(--acc); }
.np-pass-v { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .np-pass-t b { transition: none; } }
@media (max-width: 760px) {
  .np-pass { padding: 10px 0 12px; margin-bottom: 8px; }
  .np-pass-h span { display: none; }
  .np-pass-r { grid-template-columns: 4.5em 1fr auto; gap: 8px; font-size: 0.75rem; }
}

/* ---- 15周目（2026-10-06）---- */
/* 診断の4列の表: ページ側の min-width:520px を外してスマホで収める */
@media (max-width: 600px) { .compare-wrap table { min-width: 0 !important; } }
/* 合格ラインのゲージ: 棒を太く、基準の位置に「合格 167」。数字のまとまりは改行しない */
.np-pass { border-bottom: none; margin-bottom: 18px; }
.np-pass-h .nw { white-space: nowrap; }
.np-pass-r { margin-top: 18px; }
.np-pass-t { height: 12px; border: none; background: #e3e3df; }
.np-pass-t i { top: -6px; bottom: -4px; width: 2px; }
.np-pass-t i::after { content: attr(data-l); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 2px; font-style: normal; font-size: 0.6875rem; line-height: 1; color: var(--acc); white-space: nowrap; font-weight: 600; }
.np-pass-r.is-pass .np-pass-v { color: var(--acc); font-weight: 600; }
/* 演習の上の帯にも「合格まであと N点」（np-skin.js） */
.np-left { margin-left: 10px; font-weight: 600; white-space: nowrap; }
.np-left.is-pass { color: var(--acc); }
/* 合格ラインに届いた瞬間に一度だけ出す知らせ */
.np-toast { position: fixed; left: 50%; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 12px); background: var(--acc); color: #fff; padding: 14px 22px; font-weight: 600; font-size: 0.9375rem; opacity: 0; transition: opacity .3s, transform .3s; z-index: 50; pointer-events: none; white-space: nowrap; }
.np-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .np-toast { transition: none; } }

/* ---- 16周目（2026-10-06）---- */
/* 問題の一覧のラベル（「障害者福祉の歴史的展開として」など）: 文節で折り、行の長さをそろえる（「して」だけの行を作らない） */
:lang(ja) li > span:last-child:has(> a) { word-break: auto-phrase; text-wrap: balance; }
/* フッターのリンク: 15周目の nowrap で長い項目が隣の列にはみ出していた。格子の中で折り返す */
.np-foot-links a { white-space: normal !important; }
@media (max-width: 760px) { .np-foot-links { column-gap: 16px !important; row-gap: 8px !important; } }
/* 回のページ（スマホ）の上の帯を2段に: 1段目＝モード切替＋絞り込み、2段目＝進捗。午前／午後へのジャンプは絞り込みの中へ */
@media (max-width: 760px) {
  html.np-filter-fold nav.tool .toolrow { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px !important; }
  html.np-filter-fold nav.tool .toolrow > .chip[data-scroll] { display: none !important; }
  html.np-filter-fold.np-filter-open nav.tool .toolrow > .chip[data-scroll] { display: inline-flex !important; order: 4; }
  html.np-filter-fold nav.tool .toolrow > .modes { order: 1; }
  html.np-filter-fold nav.tool .toolrow > .jump { order: 2; }
  html.np-filter-fold nav.tool .toolrow > .np-filter-btn { order: 3; margin-left: auto; }
  html.np-filter-fold nav.tool .toolrow > .progress { order: 5; flex: 1 1 100%; margin: 0 !important; }
}
/* 国試トップ: カードと「前回の続きから」に合格ラインまでの距離（np-skin.js・ptot-meta.json） */
.np-resume i { grid-row: 1 / span 3 !important; }
.np-resume-pass { grid-column: 1; font-style: normal; font-size: 0.875rem; color: #c6c6c0; margin-top: 4px; }
.np-resume-pass strong { font-family: var(--np-mincho); font-size: 1.5rem; color: #f6f6f4; margin: 0 2px; font-weight: 600; }
.np-prog-pass { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: 8px; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.np-prog-pass .np-pass-t { height: 6px; }
.np-prog-pass .np-pass-t i { top: -4px; bottom: -4px; }
.np-prog-pass.is-pass .np-pass-t b { background: var(--acc); }
.np-prog-pass.is-pass > span:last-child { color: var(--acc); font-weight: 600; }

/* ---- 17周目（2026-10-06）---- */
/* 回のページ（デスクトップも）: 絞り込みの段は「絞り込み」ボタンの中へ。操作の帯は2段まで */
html.np-filter-fold nav.tool .row2 { display: none !important; }
html.np-filter-fold.np-filter-open nav.tool .row2 { display: flex !important; }
html.np-filter-fold .np-filter-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
html.np-filter-fold.np-filter-open .np-filter-btn { background: var(--ink); color: #fff; }
@media (min-width: 761px) {
  html.np-filter-fold nav.tool .toolrow { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 10px !important; }
  html.np-filter-fold nav.tool .toolrow > .modes { order: 1; }
  html.np-filter-fold nav.tool .toolrow > .chip[data-scroll] { order: 2; }
  html.np-filter-fold nav.tool .toolrow > .jump { order: 3; }
  html.np-filter-fold nav.tool .toolrow > .np-filter-btn { order: 5; margin-left: auto; }
  html.np-filter-fold nav.tool .toolrow > .progress { order: 6; flex: 1 1 100%; margin: 0 !important; }
}
/* 各問の下のリンク: 右寄せの1行（表示は短く、元の文言は aria-label に残す・np-skin.js） */
.q .np-qlinks { display: flex; justify-content: flex-end; gap: 4px 18px; flex-wrap: wrap; margin-top: 12px; }
.q .np-qlinks a { margin: 0 !important; font-size: 0.75rem !important; color: var(--sub, #5c5c58) !important; text-decoration: underline; text-decoration-color: #b4b4ae; text-underline-offset: 0.25em; white-space: nowrap; }
/* 10問ごとの節目 */
.np-qdiv { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 10px; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--sub, #5c5c58); font-variant-numeric: tabular-nums; }
.np-qdiv::after { content: ""; flex: 1; border-top: 1px solid #d7d7d2; transform: translateY(-3px); }
.examsec:has(.q.hidden) .np-qdiv { display: none; }
/* 問題のラベル（科目ページ）: 狭い幅では均等割りをやめ、最後の行だけ整える */
@media (max-width: 480px) { :lang(ja) li > span:last-child:has(> a) { text-wrap: pretty; } }
li > span:last-child:has(> a) { text-spacing-trim: trim-start; }
/* フッターのリンク: 文節で折る（「無料公／開」にしない） */
:lang(ja) .np-foot-links a { word-break: auto-phrase; }
/* 国試トップ（記録なし）: 空の帯は出さない（np-skin.js が記録のあるカードだけに付ける） */

/* ---- 18周目（2026-10-06）---- */
/* 本文の列幅を /study と同じ 900px にそろえる（静的ページは 760〜860px でページごとに左端がずれていた） */
.wrap { max-width: 964px !important; padding-left: 32px !important; padding-right: 32px !important; }
nav.tool .toolrow, nav.tool .row2 { max-width: 900px !important; }
/* 採用の帯の文章も同じ列の左端から */
.np-cta { padding-left: max(32px, calc((100vw - 900px) / 2)) !important; padding-right: max(32px, calc((100vw - 900px) / 2)) !important; }
.np-cta p:not(.np-cta-btns) { text-wrap: pretty; max-width: 34em; }
/* 科目ページの問題一覧: 1列（2列だと各ラベルが細切れになった） */
@media (min-width: 900px) { ul.qs { display: block !important; } }
@media (min-width: 481px) { :lang(ja) li > span:last-child:has(> a) { text-wrap: pretty; } }
/* 関連ページ: 青い箱の格子ではなく、墨の文字の一覧（2列）。カードの穴をなくす */
.related { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; gap: 0 32px !important; }
.related a { display: block; padding: 12px 0 !important; border: none !important; border-bottom: 1px solid var(--line, #d7d7d2) !important; background: none !important; color: var(--ink) !important; text-decoration: none; font-weight: 600; word-break: auto-phrase; }
.related a:hover { color: var(--acc) !important; }
/* 回のページ: 図のある問題は上の「図・写真は公式PDF（別冊）で確認」があるので、下の行の「公式PDF」は出さない */
.q:has(.figchip) .np-qlinks .pdflink { display: none; }

/* ---- 19周目（2026-10-06）---- */
/* 記録がまだない人: 合格ラインは見出しの1行だけ（棒は1点目から出す）。マップは畳む（np-skin.js） */
.np-pass.is-compact .np-pass-r, .np-pass.is-compact .np-pass-h > span:last-child { display: none; }
.np-pass.is-compact { padding: 12px 0; margin-bottom: 8px; }
/* 広い画面: 左の余白に固定の解答マップ（午前・午後それぞれ 10×10）。いま読んでいる問題に青い枠 */
.np-rail { display: none; }
html.np-has-rail .np-rail { display: block; position: fixed; z-index: 40; top: 50%; transform: translateY(-50%); background: var(--bg, #f6f6f4); padding: 14px 12px 12px; box-sizing: content-box; border: 1px solid #e3e3df; left: max(24px, calc((100vw - 900px) / 2 - 196px)); width: 156px; font-size: 0.75rem; }
.np-rail-h { margin: 0 0 2px; font-family: var(--np-mincho); font-weight: 600; font-size: 1.125rem; font-feature-settings: "palt"; }
.np-rail-left { margin: 0 0 12px; color: var(--sub, #5c5c58); font-variant-numeric: tabular-nums; min-height: 1.5em; }
.np-rail-left.is-pass { color: var(--acc); font-weight: 600; }
.np-rail .np-map-row { display: block; margin-bottom: 12px; }
.np-rail .np-map-lb { display: block; margin-bottom: 4px; line-height: 1.4; }
.np-rail .np-map-cells { display: flex !important; flex-direction: column; flex-wrap: nowrap; gap: 2px !important; max-width: none; }
.np-rail .np-map-g:nth-child(5) { margin-bottom: 4px; }
.np-rail .np-map-g { display: grid; grid-template-columns: repeat(10, 12px); gap: 2px; flex: none; }
.np-rail .np-map-c { width: 12px; min-width: 0; }
.np-rail .np-map-c.is-cur { outline: 2px solid var(--acc); outline-offset: 0; }
.np-rail-k { margin: 2px 0 0; color: var(--sub, #5c5c58); }
.np-rail-k .np-map-c { display: inline-block; width: 9px; height: 9px; vertical-align: -1px; margin: 0 2px 0 6px; }
.np-rail-k .np-map-c:first-child { margin-left: 0; }
/* 固定のマップがあるときは、本文側のマップは畳んだまま（同じものを二度見せない） */
html.np-has-rail .np-mapbox:not(.np-mapbox--q) .np-map, html.np-has-rail .np-mapbox:not(.np-mapbox--q) .np-map-toggle, html.np-has-rail .np-mapbox:not(.np-mapbox--q) .np-mapbox-h { display: none !important; }
/* 採用の帯の本文: 文節で折る（「無｜料」「と｜して」にしない）・行間 1.8・幅 30em（/study と同じ） */
:lang(ja) .np-cta p:not(.np-cta-btns) { word-break: auto-phrase; line-height: 1.8 !important; max-width: 30em; margin-bottom: 10px !important; }
/* スマホ: 回のページの操作帯の左右も本文と同じ 32px */
@media (max-width: 760px) { nav.tool .toolrow, nav.tool .row2 { padding-left: 32px !important; padding-right: 32px !important; box-sizing: border-box; } }
/* 科目ページの問題一覧: 問番号の札は同じ幅・等幅数字。題名は通常の折り返し */
ul.qs li > .st { width: 3.6em !important; text-align: center; font-variant-numeric: tabular-nums; box-sizing: border-box; }
:lang(ja) ul.qs li > span:last-child:has(> a) { word-break: normal; text-wrap: pretty; }

.np-pass-h .nw { display: inline !important; }

/* ---- 20周目（2026-10-06）---- */
/* 下の採点バー: 200問の帯（午前10区画＋午後10区画）。押すと上の解答マップへ */
.np-sp-strip { flex: 1 1 160px; min-width: 120px; cursor: pointer; align-self: center; }
.np-sp-strip .np-map-row { display: none !important; }
.np-sp-strip .np-mini { display: grid !important; margin: 0 !important; }
@media (max-width: 760px) {
  .scorepanel .sp-head { flex-wrap: wrap; row-gap: 6px; }
  .scorepanel .np-sp-strip { order: -1; flex-basis: 100%; }
  .scorepanel .sp-title { display: none !important; }
}
/* 操作帯の進み具合は途中で折らない（「0」だけが次の行に落ちていた） */
#ptxt { white-space: nowrap; }
/* 固定のマップ（1400px〜）がある間は、ほかの「あと N点」は出さない（同じ数字が3か所に出ていた） */
html.np-has-rail .np-pass, html.np-has-rail .np-left { display: none !important; }
/* 固定のマップ: マスを 14px に、余白の中央に置く。斜線のマスの凡例を足す（np-skin.js） */
html.np-has-rail .np-rail { left: max(16px, calc(((100vw - 900px) / 2 - 186px) / 2)) !important; }
.np-rail .np-map-g { grid-template-columns: repeat(10, 14px) !important; }
.np-rail .np-map-c { width: 14px !important; }
/* 関連ページ（静的・/study 共通の見た目）: 墨・下線なし・→ */
/* 21周目: 「→」は文言の側に入っているので足さない（二重になっていた） */
/* 採用の帯: 「——」を1本に見せる */
.np-cta .nw { white-space: nowrap; letter-spacing: 0; }
/* 本文のリンクは文節で折る（「傾向｜分析」「生｜活」にしない） */
:lang(ja) main a { word-break: auto-phrase; }

/* ---- 21周目（2026-10-06）---- */
/* 固定マップの凡例は縦に並べる（「採点／対象外」と割れない） */
.np-rail-k { display: grid; grid-template-columns: auto 1fr; gap: 4px 6px; align-items: center; }
.np-rail-k .np-map-c { margin: 0 !important; }
/* 固定マップがある幅では、計器はマップ1つだけ: 操作帯の進み具合の線と、下のバーの帯は出さない */
html.np-has-rail nav.tool .progress .pbar, html.np-has-rail .np-sp-strip { display: none !important; }
/* 固定マップを操作帯の白い帯より上に（帯の背景を本文の列に収める） */
@media (min-width: 1400px) { nav.tool { background: transparent !important; border: none !important; box-shadow: none !important; } nav.tool .toolrow, nav.tool .row2 { background: #fff; padding: 10px 16px !important; border: 1px solid #e3e3df; } }
/* 下のバー右端の開閉ボタンに意味が読める文字 */
.scorepanel .sp-toggle { width: auto !important; padding: 0 10px; border-radius: 0 !important; font-size: 0.75rem !important; background: #fff !important; border: 1px solid var(--ink) !important; color: var(--ink) !important; }
.scorepanel .sp-toggle::before { content: "詳細 "; }
/* スマホ: 操作帯の「合格まであと N点」は、上の合格ラインの行が画面の外に出てから（np-skin.js） */
@media (max-width: 1399px) { html:not(.np-pass-off) .np-left { display: none; } }
/* 回のページの見出しの札は折り返さない（「2つ選べ」だけ2行目に落ちた） */
.qid { flex-wrap: nowrap !important; }
.qid .badge { white-space: nowrap; flex: none; }
/* 回のリンク列（スマホ）: 右端に薄いフェード（続きがあることを示す） */
@media (max-width: 760px) { header.top .xlinks { -webkit-mask-image: linear-gradient(to right, #000 80%, transparent) !important; mask-image: linear-gradient(to right, #000 80%, transparent) !important; } }
/* 本文の注記のリンクも文節で（「働きなが｜ら」にしない） */
:lang(ja) main section p a, :lang(ja) .card p a { word-break: auto-phrase; }
@media (min-width: 1400px) { html.np-has-rail header.top { border-bottom: none !important; box-shadow: none !important; } }
