/* プラグインナビ（danrog.net/plugins/）の画面スタイル
   danrog（トップ・更新状況ページ）の色・文字・余白に合わせた明るいテーマのみ。
   色は下の変数で管理。図解スライドの中の色は plugins-slides.js の C／TINT。 */
:root {
  --bg: #f5f5ef; --panel: #ffffff; --band: #eceee5; --band2: #f1f2eb; --cream: #eff7df; --cream2: #f7fbeb;
  --line: #d9ddd1; --line2: #e6e9df; --line3: #c4cbb7;
  --fg: #20241d; --fg-strong: #141713; --fg2: #454b3e; --muted: #6b7065;
  --link: #3d5a14; --link-hover: #20241d;
  --accent: #6a8c35; --accent-ink: #4b6913; --accent-ink2: #344a0c;
  --lime: #d5ff43; --lime-soft: #eff7df; --ink: #20241d; --paper: #f5f5ef;
  --cta: #d5ff43; --cta-top: #d5ff43; --cta-edge: #20241d; --cta-shadow: #20241d; --on-cta: #20241d;
  --navy: #20241d; --navy-edge: #141713; --navy-shadow: #0b0d0a; --on-navy: #ffffff; --navy-soft: #eef0e8; --navy-ink: #20241d;
  --up: #2f6a12; --down: #b42318; --amber: #8a4b0f; --warn-bg: #fbf1e1; --warn-bd: #ebd3ae;
  --green-soft: #eaf5d8; --green-ink: #3d5a14; --surge-bg: #ece9f6; --surge-ink: #4a4672;
  --code-bg: #141713; --code-fg: #e4edda;
  --t-orange-bg: #f1f9dc; --t-orange-fg: #3d5a14; --t-orange-bd: #d3e6a8;
  --t-navy-bg: #ece9f6; --t-navy-fg: #4a4672; --t-navy-bd: #d6d1ea;
  --t-green-bg: #e3f1ea; --t-green-fg: #1f5c45; --t-green-bd: #c2dccf;
  --t-gray-bg: #f1f2eb; --t-gray-fg: #454b3e; --t-gray-bd: #d9ddd1;
  --focus: #4b6913; --shadow: rgba(30, 44, 17, 0.10); --scrim: rgba(16, 20, 13, 0.62);
  --ff: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans CJK JP", Meiryo, system-ui, sans-serif;
  --ff-num: "Space Grotesk", "Noto Sans JP", system-ui, sans-serif;
  --ff-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --slide-ff: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--ff); font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--fg-strong); text-wrap: balance; margin: 0; line-height: 1.45; }
h1, h2 { letter-spacing: -0.02em; }
p { margin: 0; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.num { font-family: var(--ff-num); font-variant-numeric: tabular-nums; }
::selection { background: var(--lime); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 860px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ico { flex: 0 0 auto; vertical-align: middle; }

@media (max-width: 859px) {
  .chips.role-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chips.role-chips::-webkit-scrollbar { display: none; }
  .chips.role-chips > * { flex: 0 0 auto; }
}

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(245, 245, 239, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--fg-strong); flex: 0 0 auto; }
.logo:hover { text-decoration: none; color: var(--fg-strong); }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--lime); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.logo-mark.sm { width: 32px; height: 32px; border-radius: 8px; }
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-text b { font-size: 20px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.logo-text span { font-family: var(--ff-num); font-size: 9.5px; font-weight: 500; line-height: 1.2; color: var(--muted); letter-spacing: 0.12em; }
.hdr-search { flex: 1 1 280px; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 5px 0 14px; border: 1px solid var(--line3); border-radius: 10px; background: var(--panel); color: var(--muted); }
.hdr-search input { flex: 1 1 auto; min-width: 0; height: 40px; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--fg); }
.hdr-search input::placeholder { color: var(--muted); }
.hdr-search:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.hdr-search button { flex: 0 0 auto; height: 34px; padding: 0 16px; border: 0; border-radius: 7px; background: var(--ink); color: #ffffff; font-size: 13px; font-weight: 700; }
.hdr-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--band); color: var(--fg2); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.count.on { background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--fg-strong); display: inline-flex; align-items: center; justify-content: center; position: relative; }
a.icon-btn:hover { text-decoration: none; color: var(--fg-strong); }
.icon-btn:hover { background: var(--band2); }
.icon-btn .dot { position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--lime); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: var(--ff-num); }
.gnav { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.gnav a { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-bottom: 3px solid transparent; color: var(--fg2); font-size: 13px; font-weight: 700; }
.gnav a:hover { text-decoration: none; color: var(--ink); background: var(--band2); }
.gnav a[aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); }
.gnav .sep { width: 1px; margin: 12px 8px; background: var(--line); flex: 0 0 auto; }
.only-sp { display: none !important; }
@media (max-width: 859px) {
  .only-pc { display: none !important; }
  .only-sp { display: inline-flex !important; }
  .hdr-row { padding-block: 6px; gap: 4px; flex-wrap: nowrap; }
  .logo-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .logo-text { min-width: 0; }
  .logo-mark { width: 32px; height: 32px; border-radius: 8px; }
  .logo-text b { font-size: 18px; }
  .logo-text span { display: none; }
  .logo { flex: 1 1 auto; min-width: 0; }
}
.sp-search { padding-block: 8px 12px; border-top: 1px solid var(--line2); }
.sp-search .hdr-search { flex: 1 1 auto; }

/* ---------- drawer & modal ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 80; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); background: var(--panel); z-index: 90; border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) 16px; overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 6px; border-bottom: 1px solid var(--line2); color: var(--fg-strong); font-weight: 700; font-size: 15px; }
.drawer nav a[aria-current="page"] { color: var(--accent-ink); }
.drawer .group-label { margin: 18px 6px 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.drawer-foot { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.drawer-foot .btn { margin-bottom: 6px; }
.drawer-tools { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; color: var(--fg2); font-size: 13px; font-weight: 700; }
.drawer-tools:hover { color: var(--ink); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lbl { font-size: 13px; font-weight: 700; color: var(--fg-strong); }
.field .req { margin-left: 6px; font-size: 11px; color: var(--cta); font-weight: 700; }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line3); border-radius: 6px; background: var(--panel); color: var(--fg); font-size: 14px; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.err { font-size: 12px; color: var(--down); }
.form-note { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line3); border-radius: 10px; background: var(--panel); color: var(--fg-strong); font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; touch-action: manipulation; }
.btn:hover { text-decoration: none; background: var(--band2); color: var(--fg-strong); }
.btn-cta { border-color: var(--ink); background: var(--lime); box-shadow: 0 3px 0 var(--ink); color: var(--ink); }
.btn-cta:hover { background: #cbf634; color: var(--ink); }
.btn-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn-navy { border-color: var(--ink); background: var(--ink); color: #ffffff; }
.btn-navy:hover { background: #2c3228; color: #ffffff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: var(--panel); }
.btn-ghost:hover { color: var(--ink); background: var(--band2); }
.btn-lg { min-height: 54px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[aria-pressed="true"] { border-color: var(--accent); background: var(--cream); color: var(--accent-ink2); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.linkish { border: 0; background: none; padding: 0; color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }

/* ---------- chips, pills, badges ---------- */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line3); border-radius: 999px; background: var(--panel); color: var(--fg-strong); font-size: 13px; }
.chip:hover { text-decoration: none; background: var(--band2); color: var(--fg-strong); }
.chip .cnt { font-family: var(--ff-num); font-size: 12px; color: var(--muted); }
.chip.on, .chip[aria-pressed="true"], .chip[aria-current="page"] { border-color: var(--accent); background: var(--cream); color: var(--accent-ink2); font-weight: 700; }
.chip.on .cnt, .chip[aria-pressed="true"] .cnt { color: var(--accent-ink); }
.chip[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: #ffffff; }
.chip[aria-current="page"] .cnt { color: var(--lime); }
.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border: 1px solid var(--line3); border-radius: 999px; background: var(--panel); color: var(--fg-strong); font-size: 12px; font-weight: 700; }
.pill:hover { background: var(--band2); }
.pill[aria-pressed="true"] { border-color: var(--accent); background: var(--cream); color: var(--accent-ink2); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; }
.b-official { background: var(--navy); color: var(--on-navy); }
.b-partner { border: 1px solid var(--line3); background: var(--panel); color: var(--fg2); }
.b-new { background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.b-ec { background: var(--ink); color: var(--lime); font-size: 12px; }
.b-soft { background: var(--band); color: var(--fg2); }
.b-ease1 { background: var(--green-soft); color: var(--green-ink); }
.b-ease2 { background: var(--navy-soft); color: var(--navy-ink); }
.b-ease3 { background: var(--surge-bg); color: var(--surge-ink); }
.b-step1 { background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.b-step { background: var(--navy); color: var(--on-navy); }
.label-box { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--line3); border-radius: 6px; background: var(--panel); color: var(--fg2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; min-height: 22px; padding: 0; border: 0; background: none; color: var(--fg); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5a7b21; box-shadow: 0 0 0 4px rgba(90, 123, 33, 0.12); flex: 0 0 auto; }

/* ---------- page head ---------- */
.page { padding-block: 18px 8px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; padding: 10px 0 6px; }
.page-head .ph-main { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; flex: 1 1 320px; }
.page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.4; }
.page-head p { font-size: 14px; line-height: 1.85; color: var(--muted); max-width: 52em; }
.ph-acts { display: flex; gap: 8px; flex: 0 0 auto; }
@media (max-width: 859px) { .page-head { padding: 4px 0 2px; } .page-head h1 { font-size: 23px; } .page-head p { font-size: 13px; } }
.crumbs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.crumbs a { color: var(--fg2); text-decoration: underline; text-decoration-color: var(--line3); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.crumbs nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs .cur { color: var(--fg); }

/* ---------- layout ---------- */
.layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; margin-top: 4px; }
.side-left { order: 1; flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.content { order: 2; flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side-right { order: 3; flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.layout-2 .content { flex: 999 1 600px; }
.layout-2 .side-right { flex: 1 1 280px; }
.filters-inline { display: none; }
.fi-body { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 1023px) {
  .side-left { display: none; }
  .filters-inline { display: block; }
}
.anchor { scroll-margin-top: 132px; }
@media (max-width: 859px) { .anchor { scroll-margin-top: 76px; } }
#view:focus { outline: none; }

/* ---------- panel ---------- */
.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; min-width: 0; }
.panel-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 14px 18px 12px; border-bottom: 1px solid var(--line2); background: transparent; }
.panel-h h2, .panel-h h3 { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.panel-h .meta { font-size: 12px; color: var(--muted); }
.panel-b { padding: 16px; }
.side .panel-h { padding: 12px 14px 10px; }
.side .panel-h h2 { font-size: 14px; }
.list-links { list-style: none; margin: 0; padding: 0; }
.list-links li + li { border-top: 1px dotted var(--line2); }
.list-links a, .list-links button.ll { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 40px; padding: 6px 14px; font-size: 13px; line-height: 1.5; text-align: left; border: 0; background: transparent; color: var(--link); }
.list-links button.ll:hover { background: var(--band2); text-decoration: underline; }
.list-links button.ll[aria-pressed="true"] { background: var(--cream); color: var(--accent-ink2); font-weight: 700; text-decoration: none; }
.list-links .cnt { flex: 0 0 auto; font-family: var(--ff-num); font-size: 12px; color: var(--muted); }
.list-links .arrow { color: var(--accent-ink); margin-right: 4px; }

/* ---------- tabs in page ---------- */
.tabs4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.tabs4.t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tabs4 button { min-height: 48px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--fg-strong); font-size: 14px; font-weight: 700; padding: 0 4px; }
.tabs4 button:hover { background: var(--band2); }
.tabs4 button[aria-current="true"] { border-bottom-color: var(--ink); color: var(--ink); }

/* ---------- tiles, stars ---------- */
.tile { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--t-gray-bd); background: var(--t-gray-bg); color: var(--t-gray-fg); font-family: var(--ff-num); font-weight: 700; }
.tile.orange { border-color: var(--t-orange-bd); background: var(--t-orange-bg); color: var(--t-orange-fg); }
.tile.navy { border-color: var(--t-navy-bd); background: var(--t-navy-bg); color: var(--t-navy-fg); }
.tile.green { border-color: var(--t-green-bd); background: var(--t-green-bg); color: var(--t-green-fg); }
.tile.s72 { width: 72px; height: 72px; border-radius: 14px; font-size: 24px; }
.tile.s56 { width: 56px; height: 56px; border-radius: 12px; font-size: 19px; }
.tile.s44 { width: 44px; height: 44px; border-radius: 10px; font-size: 15px; }
.tile.s40 { width: 40px; height: 40px; border-radius: 9px; font-size: 13px; }
.tile.s32 { width: 32px; height: 32px; border-radius: 8px; font-size: 12px; }
.tile.s28 { width: 28px; height: 28px; border-radius: 7px; font-size: 11px; }

.disclose { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg-strong); font-size: 13px; font-weight: 700; text-align: left; }
.disclose-body { padding: 12px 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; margin-top: -8px; font-size: 13px; line-height: 1.85; color: var(--fg2); background: var(--panel); }

/* ---------- ranking ---------- */
.rk-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rk-tools .lbl { font-size: 12px; color: var(--muted); margin-right: 2px; }
.sorts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); }
.sorts button { min-height: 32px; padding: 0 6px; border: 0; background: none; color: var(--link); font-size: 12px; font-weight: 400; }
.sorts button[aria-pressed="true"] { color: var(--fg-strong); font-weight: 700; }
.sorts .vbar { color: var(--line3); }
.rk-count { padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.rk-count b { font-family: var(--ff-num); font-size: 15px; color: var(--ink); margin: 0 1px; }
.rank-card { border-bottom: 1px solid var(--line); }
.rc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px; background: var(--band2); }
.rank-card.first .rc-head { background: var(--cream); }
.rc-rank { font-family: var(--ff-num); font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--fg-strong); }
.rc-head h3 { font-size: 20px; line-height: 1.3; }
.rc-head .grow { flex: 1 1 auto; }
.sq-link { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sq-link:hover { color: var(--ink); background: #cbf634; }
.rc-body { display: grid; grid-template-columns: 72px minmax(0, 1fr) 216px; gap: 14px 18px; padding: 16px 16px 12px; }
.rc-actions .btn { white-space: nowrap; }
.rc-actions .btn-lg { font-size: 15px; padding: 0 10px; }
.rc-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rc-main .desc { font-size: 13px; line-height: 1.8; color: var(--fg2); }
.rc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rc-meta { font-size: 12px; line-height: 1.7; color: var(--muted); }
.rc-actions { display: flex; flex-direction: column; gap: 8px; }
.rc-foot { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 16px; }
@media (max-width: 760px) {
  .rc-body { grid-template-columns: 56px minmax(0, 1fr); }
  .rc-body .tile.s72 { width: 56px; height: 56px; font-size: 19px; border-radius: 12px; }
  .rc-actions { grid-column: 1 / -1; }
  .rc-head h3 { font-size: 18px; }
}
.spec-wrap { overflow-x: auto; }
.spec { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.65; }
.spec th { width: 84px; padding: 8px 10px; border: 1px solid var(--line); background: var(--band); color: var(--fg2); font-weight: 700; text-align: left; white-space: nowrap; vertical-align: top; }
.spec td { padding: 8px 10px; border: 1px solid var(--line); color: var(--fg); vertical-align: top; }
.spec td.good { color: var(--up); } .spec td.bad { color: var(--amber); }
.spec code { font-family: var(--ff-mono); font-size: 11.5px; }
@media (max-width: 560px) { .spec, .spec tbody, .spec tr { display: block; } .spec tr { display: grid; grid-template-columns: 84px minmax(0, 1fr); } .spec th, .spec td { display: block; border-top: 0; } .spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--line); } .spec td { border-left: 0; } }
.hitokoto { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; line-height: 1.75; color: var(--fg-strong); }
.rank-rows { list-style: none; margin: 0; padding: 0; }
.rank-row { border-bottom: 1px solid var(--line2); }
.rank-row > a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; color: var(--fg); }
.rank-row > a:hover { text-decoration: none; background: var(--band2); }
.rr-rank { flex: 0 0 34px; font-family: var(--ff-num); font-size: 17px; font-weight: 700; color: var(--fg-strong); }
.rr-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rr-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rr-name b { font-size: 15px; color: var(--fg-strong); }
.rank-row > a:hover .rr-name b { text-decoration: underline; text-underline-offset: 3px; }
.rr-desc { font-size: 12px; line-height: 1.6; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.rr-price { flex: 0 0 170px; display: flex; flex-direction: column; gap: 3px; }
.rr-price b { font-size: 11px; color: var(--muted); }
.rr-price span { font-size: 12px; line-height: 1.5; color: var(--fg2); }
.rr-go { flex: 0 0 auto; color: var(--muted); }
@media (max-width: 760px) {
  .rr-price { display: none; }
  .rr-desc { -webkit-line-clamp: 2; }
  .rr-main { flex-basis: 160px; }
}
.empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.more-row { display: flex; justify-content: center; padding: 16px; }
.other-sorts { padding: 14px 16px; border-bottom: 1px solid var(--line2); background: var(--bg); }
.other-sorts p.t { font-size: 12px; font-weight: 700; color: var(--fg-strong); margin-bottom: 8px; }
.other-sorts p.n { margin-top: 8px; font-size: 11px; line-height: 1.6; color: var(--muted); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.6; }
.tbl th { padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; text-align: left; background: var(--bg); white-space: nowrap; }
.tbl td, .tbl tbody th { padding: 10px 14px; border-bottom: 1px solid var(--line2); text-align: left; vertical-align: top; }
.tbl tbody th { color: var(--fg-strong); font-weight: 700; background: transparent; font-size: 13px; white-space: normal; }
.tbl tr:last-child td, .tbl tr:last-child th { border-bottom: 0; }
.tbl tr.hl { background: var(--cream2); }
.tbl .r { text-align: right; }

/* ---------- side items ---------- */
.mini-plug { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; color: var(--fg); }
.mini-plug:hover { text-decoration: none; background: var(--band2); color: var(--fg); }
.mini-plug .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini-plug b { font-size: 14px; color: var(--fg-strong); }
.mini-plug span.d { font-size: 12px; line-height: 1.6; color: var(--muted); }
.feature-link { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px dotted var(--line2); font-size: 13px; font-weight: 700; line-height: 1.6; }
.feature-link:last-child { border-bottom: 0; }
.feature-link { color: var(--fg-strong); }
.feature-link:hover { color: var(--ink); }
.feature-link .thumb { flex: 0 0 52px; height: 40px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.callout { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.callout.cream { border-color: var(--t-orange-bd); background: var(--cream); }
.callout .k { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--navy-ink); }
.callout h2 { font-size: 16px; line-height: 1.5; }
.callout p { font-size: 12px; line-height: 1.8; color: var(--fg2); }
.ministep { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 10px; background: var(--panel); color: var(--fg-strong); font-size: 13px; font-weight: 700; line-height: 1.5; }
.ministep:hover { color: var(--ink); }
.ministep span.m { flex: 0 0 auto; font-size: 11px; font-weight: 400; color: var(--muted); }
.ministep.done { color: var(--muted); text-decoration: line-through; }

/* ---------- install / code ---------- */
.inst-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .inst-grid { grid-template-columns: minmax(0, 1fr); } }
.inst { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); min-width: 0; }
.inst .tag { align-self: flex-start; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--navy); color: var(--on-navy); font-size: 12px; font-weight: 700; }
.inst .tag.dark { background: var(--code-bg); color: var(--lime); }
.inst-note { padding: 0 16px 14px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.inst p { font-size: 13px; line-height: 1.8; color: var(--fg2); }
.inst pre.code { white-space: pre-wrap; word-break: break-all; }
pre.code { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--code-bg); color: var(--code-fg); font-family: var(--ff-mono); font-size: 12px; line-height: 1.8; overflow-x: auto; white-space: pre; }
@media (max-width: 640px) { pre.code { white-space: pre-wrap; word-break: break-all; } }
code.inline { font-family: var(--ff-mono); font-size: 0.92em; padding: 1px 5px; border-radius: 4px; background: var(--band); color: var(--fg-strong); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }

/* ---------- detail ---------- */
.d-hero { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px 20px; padding: 20px; }
.d-hero .tile { width: 88px; height: 88px; border-radius: 18px; font-size: 28px; }
.d-hero h1 { font-size: 28px; }
.d-hero .lead { font-size: 14px; line-height: 1.9; color: var(--fg2); }
@media (max-width: 640px) { .d-hero { grid-template-columns: 64px minmax(0, 1fr); padding: 16px; } .d-hero .tile { width: 64px; height: 64px; font-size: 21px; border-radius: 14px; } .d-hero h1 { font-size: 22px; } .d-hero .lead { grid-column: 1 / -1; } }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 12px 16px; border-right: 1px solid var(--line2); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: 11px; color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-size: 14px; font-weight: 700; color: var(--fg-strong); line-height: 1.5; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(2n) { border-right: 0; } .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line2); } }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 20px; }
@media (max-width: 640px) { .d-actions { padding: 0 16px 16px; } .d-actions .btn { flex: 1 1 140px; padding: 0 10px; font-size: 13px; white-space: nowrap; } }
.tbl-roles { table-layout: fixed; }
.tbl-roles thead th:first-child { width: 34%; }
@media (min-width: 761px) { .tbl-roles thead th:first-child { width: 26%; } }
.skill-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 760px) { .skill-list { grid-template-columns: minmax(0, 1fr); } }
.skill-list li { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px dotted var(--line2); min-width: 0; }
.skill-list code { font-family: var(--ff-mono); font-size: 12.5px; color: var(--fg-strong); font-weight: 600; word-break: break-all; }
.skill-list span { font-size: 13px; line-height: 1.7; color: var(--fg2); }
.skill-list li.hit code { background: var(--cream); }
.conn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.conn-chips span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 12px; color: var(--fg2); }
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .pc-grid { grid-template-columns: minmax(0, 1fr); } }
.pc { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.pc h3 { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14px; }
.pc.good h3 { background: var(--t-green-bg); color: var(--t-green-fg); }
.pc.bad h3 { background: var(--warn-bg); color: var(--amber); }
.pc ul { list-style: none; margin: 0; padding: 4px 14px 8px; }
.pc li { display: flex; align-items: flex-start; gap: 8px; padding: 9px 0; border-bottom: 1px dotted var(--line2); font-size: 14px; line-height: 1.6; }
.pc li:last-child { border-bottom: 0; }
.pc li .ico { margin-top: 3px; }
.pc.good li .ico { color: var(--t-green-fg); } .pc.bad li .ico { color: var(--amber); }
.role-ranks { list-style: none; margin: 0; padding: 0; }
.role-ranks li + li { border-top: 1px dotted var(--line2); }
.role-ranks a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 6px 14px; font-size: 13px; }
.role-ranks .rk { font-size: 12px; color: var(--muted); }

/* ---------- home ---------- */
.kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; font: 500 10px/1.6 var(--ff-num); letter-spacing: 0.12em; color: var(--fg); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #5a7b21; box-shadow: 0 0 0 4px rgba(90, 123, 33, 0.12); flex: 0 0 auto; }
.marker { position: relative; z-index: 0; white-space: nowrap; }
.marker::after { content: ""; position: absolute; left: -2%; right: -4%; bottom: 6%; height: 30%; background: var(--lime); z-index: -1; transform: rotate(-2deg); }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 48px; align-items: start; padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; line-height: 1.38; letter-spacing: -0.07em; margin: 0 0 18px; }
.hero .lead { font-size: 14px; line-height: 2; color: var(--muted); max-width: 34em; }
.how3 { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.how3 li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 6px; border: 1px solid var(--line3); border-radius: 999px; background: var(--panel); font-size: 13px; font-weight: 700; color: var(--fg-strong); }
.how3 li b { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-pick { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid #cdd3c1; border-radius: 18px; background: var(--panel); }
.hp-t { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--fg-strong); }
.hp-t .num { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.hero-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.role-tile { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 10px 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg-strong); }
.role-tile:hover { text-decoration: none; border-color: var(--ink); background: var(--panel); color: var(--fg-strong); }
.role-tile .ri { width: 32px; height: 32px; border-radius: 9px; background: var(--lime); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.role-tile .rt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.role-tile b { font-size: 14px; line-height: 1.4; }
.role-tile .rt > span { font-size: 11px; color: var(--muted); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-tile .go { color: var(--muted); display: none; }
.hero-alt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--line3); border-radius: 12px; color: var(--fg-strong); }
.hero-alt:hover { text-decoration: none; color: var(--ink); border-color: var(--ink); }
.hero-alt > span { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.hero-alt b { font-size: 13px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 2px 4px 0; }
.hero-links a, .hero-links button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--link); font-size: 13px; font-weight: 700; cursor: pointer; }
.hero-links a:hover, .hero-links button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hero-alt > span > span { font-size: 12px; color: var(--muted); }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); padding: 14px 0 26px; gap: 22px; } }
@media (max-width: 620px) {
  .kicker { font-size: 9px; letter-spacing: 0.08em; margin-bottom: 14px; }
  .hero h1 { font-size: clamp(32px, 9.6vw, 44px); margin-bottom: 14px; }
  .hero .lead { font-size: 13px; }
  .how3 li { font-size: 12px; padding-right: 11px; }
  .hero-pick { padding: 14px; border-radius: 16px; }
  .hero-roles { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .role-tile { min-height: 56px; }
  .role-tile .go { display: block; }
}
.road-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .road-mini { grid-template-columns: minmax(0, 1fr); } }

/* ---------- learn ---------- */
.roadmap { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); align-items: stretch; gap: 10px; padding: 18px 16px; }
@media (max-width: 960px) { .roadmap { grid-template-columns: minmax(0, 1fr); } .roadmap .arrow { transform: rotate(90deg); } }
.roadmap .arrow { display: flex; align-items: center; justify-content: center; color: var(--line3); }
.step-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); min-width: 0; }
.step-card.focus { border: 2px solid var(--accent); background: var(--cream2); }
.step-card h3 { font-size: 19px; }
.step-card p { font-size: 13px; line-height: 1.8; color: var(--fg2); }
.step-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.step-top .min { margin-left: auto; font-size: 12px; color: var(--muted); }
.step-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-family: var(--ff-num); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.step-pill.cta { background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.step-pill.navy { background: var(--navy); color: var(--on-navy); }
.step-lbl { font-size: 12px; font-weight: 700; }
.step-lbl.cta { color: var(--accent-ink); } .step-lbl.navy { color: var(--navy-ink); }
.step-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.step-list a { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; font-size: 13px; line-height: 1.55; color: var(--fg); }
.step-list a:hover { color: var(--link); }
.step-list .ico { margin-top: 2px; color: var(--line3); }
.step-list .done .ico { color: var(--up); }
.progress { display: flex; flex-direction: column; gap: 6px; }
.progress .pl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.bar { height: 8px; border-radius: 999px; background: var(--band); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--navy); border-radius: 999px; transition: width 0.3s ease; }
.bar.cta > span { background: var(--accent); }
.bar.thin { height: 6px; }
.lesson-rows { list-style: none; margin: 0; padding: 0; }
.lesson-rows li { border-top: 1px solid var(--line2); }
.lesson-rows a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; color: var(--fg); }
.lesson-rows a:hover { text-decoration: none; background: var(--band2); }
.step-ico { flex: 0 0 40px; height: 40px; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-family: var(--ff-num); border: 1px solid var(--t-navy-bd); background: var(--t-navy-bg); color: var(--t-navy-fg); }
.step-ico small { font-size: 8px; font-weight: 700; letter-spacing: 0.06em; }
.step-ico b { font-size: 16px; }
.step-ico.s1 { border-color: var(--t-orange-bd); background: var(--cream2); color: var(--accent-ink); }
.step-ico.s3 { border-color: var(--t-green-bd); background: var(--t-green-bg); color: var(--t-green-fg); }
.lr-main { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lr-main b { font-size: 15px; line-height: 1.5; color: var(--fg-strong); }
.lesson-rows a:hover .lr-main b { text-decoration: underline; text-underline-offset: 3px; }
.lr-go { flex: 0 0 auto; color: var(--muted); }
.lr-main span { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lr-state { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--up); }
.role-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
@media (max-width: 960px) { .role-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .role-cards { grid-template-columns: minmax(0, 1fr); } }
.role-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--fg-strong); }
.role-card:hover { text-decoration: none; border-color: var(--ink); color: var(--fg-strong); }
.role-card .rl { align-self: flex-start; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--band); color: var(--fg2); font-size: 11px; font-weight: 700; }
.role-card b { font-size: 14px; line-height: 1.6; color: var(--fg-strong); }
.role-card .rp { display: flex; align-items: center; gap: 5px; margin-top: auto; font-size: 11px; color: var(--muted); }
.term-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; padding: 4px 16px 12px; }
@media (max-width: 760px) { .term-grid { grid-template-columns: minmax(0, 1fr); } }
.term { padding: 12px 0; border-bottom: 1px dotted var(--line2); min-width: 0; }
.term dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 15px; font-weight: 700; color: var(--fg-strong); }
.term dt .en { font-family: var(--ff-num); font-size: 11px; font-weight: 500; color: var(--muted); }
.term dd { margin: 4px 0 0; font-size: 13px; line-height: 1.8; color: var(--fg2); }
.term dd a { font-size: 12px; font-weight: 700; }
.term.hit { background: var(--cream2); }

/* ---------- quiz ---------- */
.quiz { display: flex; flex-direction: column; gap: 14px; }
.quiz .q { font-size: 17px; font-weight: 700; line-height: 1.6; color: var(--fg-strong); }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quiz-top .ql { font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.quiz-top .bar { flex: 0 0 160px; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line3); border-radius: 12px; background: var(--panel); color: var(--fg-strong); font-size: 14px; font-weight: 700; text-align: left; line-height: 1.5; }
.opt:hover { background: var(--band2); }
.opt .letter { flex: 0 0 28px; height: 28px; border-radius: 999px; background: var(--band); color: var(--fg2); font-family: var(--ff-num); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.opt .tail { margin-left: auto; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.opt.correct { border: 2px solid var(--t-green-fg); background: var(--t-green-bg); cursor: default; }
.opt.correct .letter { background: var(--t-green-fg); color: #ffffff; }
.opt.correct .tail { color: var(--t-green-fg); }
.opt.wrong { border: 2px solid var(--down); background: #fbeae8; cursor: default; }
.opt.wrong .letter { background: var(--down); color: #ffffff; }
.opt.wrong .tail { color: var(--down); }
.opt.muted { border-color: var(--line2); background: var(--bg); color: var(--muted); cursor: default; }
.explain { padding: 12px 14px; border-radius: 12px; background: var(--band2); }
.explain b { font-size: 14px; color: var(--fg-strong); }
.explain p { margin-top: 4px; font-size: 13px; line-height: 1.8; color: var(--fg2); }

/* ---------- lesson article ---------- */
.article { padding: 32px 36px 36px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); min-width: 0; }
@media (max-width: 760px) { .article { padding: 22px 16px 26px; } }
.article h1 { margin-top: 14px; font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.45; }
@media (max-width: 760px) { .article h1 { font-size: 23px; } }
.article .by { margin-top: 10px; font-size: 12px; color: var(--muted); }
.article .lead { margin-top: 14px; font-size: 15px; line-height: 1.95; color: var(--fg2); }
.goal-box { margin-top: 22px; padding: 16px 20px; border: 1px solid var(--t-orange-bd); border-radius: 14px; background: var(--cream2); }
.goal-box h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--accent-ink2); margin-bottom: 8px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.7; }
.checks li { display: flex; align-items: flex-start; gap: 8px; }
.checks .ico { margin-top: 4px; color: var(--accent-ink); }
.sec-h { margin-top: 36px; display: flex; align-items: flex-start; gap: 10px; font-size: 21px; line-height: 1.5; }
.sec-h .n { flex: 0 0 30px; height: 30px; margin-top: 1px; border-radius: 50%; background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-family: var(--ff-num); font-size: 15px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 760px) { .sec-h { font-size: 18px; } }
.prose { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.prose > p { font-size: 15px; line-height: 1.95; max-width: 46em; }
.prose ul.dots { margin: 0; padding-left: 1.3em; font-size: 15px; line-height: 1.9; }
.tip, .warn { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.85; }
.tip { background: var(--navy-soft); color: var(--fg); }
.tip .ico { color: var(--navy-ink); margin-top: 3px; }
.warn { background: var(--warn-bg); border: 1px solid var(--warn-bd); color: var(--fg); }
.warn .ico { color: var(--amber); margin-top: 3px; }
.ex-box { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ex-box .exh { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 14px; background: var(--band); font-size: 12px; font-weight: 700; color: var(--fg2); }
.ex-box .exb { padding: 12px 14px; font-size: 14px; line-height: 1.85; white-space: pre-wrap; background: var(--bg); color: var(--fg); font-family: var(--ff); }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps3.n5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .steps3, .steps3.n5 { grid-template-columns: minmax(0, 1fr); } }
.steps3 li { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.steps3 .sn { width: 32px; height: 32px; border-radius: 999px; background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-family: var(--ff-num); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps3 b { font-size: 15px; line-height: 1.5; color: var(--fg-strong); }
.steps3 span { font-size: 13px; line-height: 1.8; color: var(--fg2); }
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .ba { grid-template-columns: minmax(0, 1fr); } }
.ba > div { border-radius: 10px; padding: 14px; font-size: 14px; line-height: 1.85; }
.ba .bad { background: var(--band2); border: 1px dashed var(--line3); color: var(--fg2); }
.ba .good { background: var(--t-green-bg); border: 1px solid var(--t-green-bd); color: var(--fg); }
.ba .k { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.ba .bad .k { color: var(--muted); } .ba .good .k { color: var(--t-green-fg); }
figure.fig { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
figure.fig figcaption { margin-top: 12px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1.35fr) 32px minmax(0, 1fr); align-items: stretch; gap: 8px; }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow .arrow { transform: rotate(90deg); } }
.flow .arrow { display: flex; align-items: center; justify-content: center; color: var(--line3); }
.flow .box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); min-width: 0; }
.flow .box.main { border: 2px solid var(--navy); }
.flow .lbl { font-size: 12px; font-weight: 700; color: var(--muted); }
.flow .box.main .lbl { color: var(--navy-ink); }
.flow .say { padding: 10px 12px; border-radius: 10px 10px 10px 2px; background: var(--navy-soft); color: var(--fg); font-size: 13px; line-height: 1.7; }
.flow .say.out { border-radius: 10px 10px 2px 10px; background: var(--cream); }
.tokens { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.tokens span { display: inline-flex; align-items: center; height: 26px; padding: 0 8px; border: 1px solid var(--line3); border-radius: 6px; background: var(--panel); color: var(--fg2); font-size: 12px; font-weight: 700; }
.tokens span.hot { border-color: var(--ink); background: var(--lime); color: var(--ink); }
.tokens i { color: var(--line3); font-style: normal; font-size: 12px; }
.probs { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 8px; background: var(--band2); }
.probs .t { font-size: 11px; font-weight: 700; color: var(--muted); }
.probs .r { display: grid; grid-template-columns: 76px minmax(0, 1fr) 34px; align-items: center; gap: 8px; font-size: 12px; }
.probs .r .bar { height: 8px; background: var(--line2); }
.probs .r .bar span { background: var(--line3); }
.probs .r .bar.hot span { background: var(--accent); }
.probs .r .v { text-align: right; font-family: var(--ff-num); color: var(--fg2); }
.p3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .p3 { grid-template-columns: minmax(0, 1fr); } }
.p3 > div { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.p3 .k { font-size: 18px; font-weight: 700; color: var(--fg-strong); }
.p3 .q { font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.p3 span.d { font-size: 13px; line-height: 1.7; color: var(--fg2); }
.stack-fig { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 2px solid var(--navy); border-radius: 12px; background: var(--panel); }
.stack-fig .top { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--navy-ink); }
.stack-fig .in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .stack-fig .in { grid-template-columns: minmax(0, 1fr); } }
.stack-fig .part { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.stack-fig .part b { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg-strong); }
.stack-fig .part span { font-size: 12px; line-height: 1.7; color: var(--fg2); }
.stack-fig .ext { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 4px; font-size: 12px; color: var(--muted); }
.sum-box { margin-top: 32px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--band); }
.sum-box h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 10px; }
.sum-box ul { margin: 0; padding-left: 1.3em; font-size: 14px; line-height: 1.9; }
.quiz-box { margin-top: 32px; border: 2px solid var(--navy); border-radius: 12px; overflow: hidden; }
.quiz-box .qh { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; background: var(--navy); color: var(--on-navy); }
.quiz-box .qh h2 { color: var(--on-navy); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.quiz-box .qh span { font-size: 12px; opacity: 0.85; }
.quiz-box .qb { padding: 18px 20px 20px; background: var(--panel); }
.done-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 54px; padding: 6px 8px 6px 16px; border: 1px solid var(--t-green-bd); border-radius: 12px; background: var(--t-green-bg); color: var(--t-green-fg); font-size: 15px; font-weight: 700; }
.done-row .linkish { margin-left: auto; color: var(--t-green-fg); font-size: 12px; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .pager { grid-template-columns: minmax(0, 1fr); } }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--fg-strong); }
.pager a:hover { text-decoration: none; border-color: var(--ink); color: var(--fg-strong); }
.pager a.next { align-items: flex-end; text-align: right; }
.pager small { font-size: 12px; color: var(--muted); }
.pager b { font-size: 14px; line-height: 1.6; color: var(--fg-strong); }
.toc { list-style: none; margin: 0; padding: 8px 0 6px; }
.toc a { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; color: var(--fg); }
.toc a:hover { text-decoration: none; background: var(--band2); }
.toc a[aria-current="page"] { background: var(--cream); }
.toc .tn { flex: 0 0 24px; height: 24px; border-radius: 999px; border: 1px solid var(--line3); color: var(--muted); font-family: var(--ff-num); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.toc a[aria-current="page"] .tn { border-color: var(--ink); background: var(--lime); color: var(--ink); }
.toc .tn.ok { border-color: var(--navy); background: var(--navy); color: var(--on-navy); }
.toc .tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toc .tt span { font-size: 13px; line-height: 1.6; color: var(--fg2); }
.toc a[aria-current="page"] .tt span { color: var(--fg-strong); font-weight: 700; }
.toc .tt small { font-size: 11px; color: var(--muted); }
.toc .tt small.now { color: var(--accent-ink); font-weight: 700; }


/* ---------- finder ---------- */
.stepper { display: flex; gap: 6px; margin-bottom: 4px; }
.stepper span { flex: 1 1 0; height: 6px; border-radius: 999px; background: var(--band); }
.stepper span.on { background: var(--ink); }
.opt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .opt-grid { grid-template-columns: minmax(0, 1fr); } }
.opt-card { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border: 1px solid var(--line3); border-radius: 12px; background: var(--panel); color: var(--fg-strong); font-size: 14px; font-weight: 700; text-align: left; line-height: 1.45; }
.opt-card:hover { background: var(--band2); }
.opt-card[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--cream); color: var(--accent-ink2); padding: 9px 11px; }
.opt-card .ck { flex: 0 0 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line3); display: flex; align-items: center; justify-content: center; color: transparent; }
.opt-card[aria-pressed="true"] .ck { border-color: var(--ink); background: var(--lime); color: var(--ink); }
.finder-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.result { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px 16px; padding: 16px; border-bottom: 1px solid var(--line2); }
.result:last-child { border-bottom: 0; }
.result .why { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--fg2); }
.result .why li { display: flex; gap: 6px; align-items: flex-start; }
.result .why .ico { color: var(--up); margin-top: 3px; }

/* ---------- compare ---------- */
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; line-height: 1.7; table-layout: fixed; }
.cmp th, .cmp td { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.cmp thead th { background: var(--panel); }
.cmp tbody th { width: 128px; background: var(--band); color: var(--fg2); font-size: 12px; font-weight: 700; }
.cmp .ch { display: flex; flex-direction: column; gap: 8px; }
.cmp .ch b { font-size: 16px; }
.cmp pre.code { font-size: 11px; white-space: pre-wrap; word-break: break-all; }

/* ---------- me ---------- */
.me-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .me-grid { grid-template-columns: minmax(0, 1fr); } }
.fav-list { list-style: none; margin: 0; padding: 0; }
.fav-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line2); }
.fav-list li:first-child { border-top: 0; }
.fav-list a { flex: 1 1 auto; min-width: 0; font-weight: 700; }

/* ---------- search ---------- */
mark { background: linear-gradient(transparent 52%, var(--lime) 52%); color: inherit; padding: 0 1px; }
.sr-item { display: block; padding: 12px 16px; border-top: 1px solid var(--line2); color: var(--fg); }
.sr-item:first-child { border-top: 0; }
.sr-item:hover { text-decoration: none; background: var(--band2); color: var(--fg); }
.sr-item b { color: var(--fg-strong); font-size: 15px; }
.sr-item p { font-size: 13px; color: var(--fg2); line-height: 1.7; margin-top: 2px; }

/* ---------- faq ---------- */
.faq { margin: 0; padding: 2px 16px 6px; }
.faq > div { padding: 14px 0; border-bottom: 1px dotted var(--line2); }
.faq > div:last-child { border-bottom: 0; }
.faq dt { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--fg-strong); }
.faq dt .q { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-family: var(--ff-num); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.faq dd { margin: 6px 0 0 34px; font-size: 13px; line-height: 1.85; color: var(--fg2); }

/* ---------- footer ---------- */
.footer { margin-top: 36px; background: var(--bg); border-top: 1px solid var(--line); }
.footer .cols { display: flex; flex-wrap: wrap; gap: 28px 48px; padding-block: 32px 20px; }
.footer .about { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer .about p { font-size: 12px; line-height: 1.9; color: var(--muted); }
.footer nav { flex: 1 1 140px; }
.footer nav p { margin-bottom: 10px; font: 600 10px/1.6 var(--ff-num); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 34px; color: var(--fg); }
.footer nav a:hover { color: var(--ink); }
.footer .legal { padding-block: 0 28px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.footer .legal > div { padding-top: 14px; border-top: 1px solid var(--line2); }

/* ---------- tabbar (sp) ---------- */
.tabbar { display: none; }
@media (max-width: 859px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 0 max(10px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); pointer-events: none; }
  .tabbar nav { pointer-events: auto; height: 62px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 8px 24px var(--shadow); overflow: hidden; }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; color: var(--fg2); font-size: 10px; font-weight: 700; }
  .tabbar a:hover { text-decoration: none; color: var(--ink); }
  .tabbar a[aria-current="page"] { background: var(--ink); color: var(--lime); }
  .tabbar .tb-dot { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 9px; font-family: var(--ff-num); display: flex; align-items: center; justify-content: center; }
}

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 120; width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #ffffff; font-size: 14px; font-weight: 700; line-height: 1.6; box-shadow: 0 12px 32px rgba(16, 20, 13, 0.28); display: flex; align-items: center; gap: 10px; }
.toast .ico { color: var(--lime); }
.toast.err .ico { color: #ffb4a8; }
.toast-x { flex: 0 0 auto; width: 36px; height: 36px; margin-left: 2px; border: 0; border-radius: 8px; background: transparent; color: #ffffff; display: inline-flex; align-items: center; justify-content: center; }
.toast-x:hover { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 859px) { .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }
.toast a { color: var(--lime); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- danrog とのつなぎ・共通の案内 ---------- */
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 200; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: #ffffff; font-weight: 700; }
.skip-link:focus { top: calc(10px + env(safe-area-inset-top, 0px)); color: #ffffff; }
.svc-crumb { font-size: 12px; color: var(--muted); }
.svc-crumb .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 4px; padding-bottom: 0; }
.svc-crumb a { display: inline-flex; align-items: center; min-height: 40px; color: var(--link); font-weight: 700; }
.svc-crumb a:hover { color: var(--ink); }
.help-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.help-note .ico { margin-top: 3px; flex: 0 0 auto; }
.help-note a { color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.guide-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--band2); font-size: 13px; line-height: 1.85; color: var(--fg2); }
.guide-note .ico { margin-top: 3px; color: var(--accent-ink); }
.guide-note b { color: var(--fg-strong); }
.uc-btn { justify-content: space-between; min-height: 60px; padding: 10px 12px 10px 16px; background: var(--bg); }
.uc-btn .uc-t { text-align: left; }
.fav-ico { display: inline-flex; color: var(--accent-ink); }
.ftr-share { margin-top: 2px; }
.boot { padding-block: 40px 60px; }
.boot-load { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.boot-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pn-pulse 1s ease-in-out infinite alternate; }
.boot-slow { margin-top: 18px; padding: 16px; border: 1px solid var(--warn-bd); border-radius: 14px; background: var(--warn-bg); font-size: 14px; line-height: 1.8; opacity: 0; visibility: hidden; animation: pn-reveal 0s linear 8s forwards; }
.boot-acts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-weight: 700; }
.boot-acts a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.boot-nojs { margin-top: 18px; padding: 16px; border: 1px solid var(--warn-bd); border-radius: 14px; background: var(--warn-bg); font-size: 14px; line-height: 1.8; }
@keyframes pn-pulse { from { opacity: 0.35; } to { opacity: 1; } }
@keyframes pn-reveal { to { opacity: 1; visibility: visible; } }

@media (prefers-reduced-motion: reduce) { .boot-slow { animation: pn-reveal 0s linear 8s forwards !important; } }

/* 職種別のおすすめ一覧（ホーム・職種ページ） */
.role-list { list-style: none; margin: 0; padding: 0; }
.role-list li { display: grid; grid-template-columns: minmax(170px, 0.9fr) minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 8px 16px; padding: 10px 18px; border-top: 1px solid var(--line2); }
.role-list li:first-child { border-top: 0; }
.role-list li.hl { background: var(--cream2); }
.rl-role { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--fg-strong); }
.rl-role:hover { color: var(--ink); }
.rl-role .ri { width: 28px; height: 28px; border-radius: 8px; background: var(--lime); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.rl-role b { font-size: 14px; }
.rl-role .num { font-size: 12px; color: var(--muted); }
.rl-k { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.rl-top a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--fg-strong); font-size: 14px; }
.rl-more { font-size: 13px; line-height: 1.7; }
.rl-more a { color: var(--link); }
@media (max-width: 760px) {
  .role-list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px 14px; }
  .rl-role { grid-column: 1 / -1; min-height: 32px; }
}
@media (max-width: 359px) {
  .hdr-row { gap: 0; }
  .icon-btn { width: 40px; height: 40px; }
  .logo { gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-text b { font-size: 16px; }
}

/* ---------- 図解スライド：スライド本体（白地の資料として描く。文字は --slide-ff） ---------- */
:root { --df-bg: #10130e; --df-panel: #20281a; --df-fg: #f5f5ef; --df-muted: #c9d1bc; --df-line: #455236; --slide-paper: #FFFFFF; }
.sl-fit { position: relative; overflow: hidden; background: var(--slide-paper); }
.slide { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; transform: scale(var(--k, 0.25)); overflow: hidden; font-family: var(--slide-ff, var(--ff)); -webkit-font-smoothing: antialiased; }
.slide .sx { position: absolute; display: flex; flex-direction: column; box-sizing: border-box; }
.slide .sx > p { position: relative; z-index: 1; margin: 0; width: 100%; overflow-wrap: anywhere; word-break: normal; line-break: strict; }
.slide .sx > p b { font-weight: 700; }
.slide .sx > p b.ac { color: #4B6913; }
.slide .sx > p code, .slide .sx > p.mono { font-family: var(--ff-mono); font-size: 0.95em; letter-spacing: 0; }
.slide .sx > p code { white-space: nowrap; }
.slide .sx > p.mono code { font-size: 1em; }
.slide .sx > p.nm { font-family: var(--ff-num); }
.slide svg.sl, .slide svg.si { position: absolute; overflow: visible; }
.slide svg.sh { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- 図解スライド：ビューア ---------- */
.deck { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.deck-head { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.deck-head h2, .deck-head h3 { font-size: 17px; line-height: 1.5; min-width: 0; }
.deck-head .meta { font-size: 12px; color: var(--muted); }
.deck-stage { width: 100%; aspect-ratio: 16 / 9; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 12px var(--shadow); touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.btn-ppt { border-color: var(--ink); color: var(--ink); }
.deck-thumb .sl-fit { display: block; }
.deck-stage:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.deck-stage .tap { position: absolute; top: 0; bottom: 0; width: 22%; z-index: 2; border: 0; padding: 0; background: transparent; cursor: pointer; }
.deck-stage .tap.prev { left: 0; } .deck-stage .tap.next { right: 0; }
.deck-stage .tap:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.deck-bar { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.deck-nav { display: flex; align-items: center; gap: 4px; }
.deck-nav .icon-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--fg-strong); }
.deck-nav .icon-btn[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.deck-count { min-width: 56px; text-align: center; font-family: var(--ff-num); font-weight: 700; font-size: 15px; color: var(--fg-strong); font-variant-numeric: tabular-nums; }
.deck-dots { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.deck-dots button { width: 22px; height: 28px; padding: 0; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.deck-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line3); transition: transform .15s; }
.deck-dots button[aria-current="true"]::before { background: var(--ink); transform: scale(1.35); }
.deck-dots button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 6px; }
.deck-bar .grow { flex: 1 1 auto; }
.deck-bar .btn { min-height: 38px; }
.deck-note { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--band2); border: 1px solid var(--line2); }
.deck-note b { font-size: 14px; color: var(--fg-strong); }
.deck-note p { font-size: 13px; line-height: 1.85; color: var(--fg2); }
.deck-hint { font-size: 12px; color: var(--muted); }
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.deck-thumb { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--fg2); font: inherit; }
.deck-thumb .sl-fit { width: 100%; aspect-ratio: 16 / 9; border: 2px solid var(--line); border-radius: 6px; }
.deck-thumb[aria-current="true"] .sl-fit { border-color: var(--accent); }
.deck-thumb span { font-size: 11px; line-height: 1.5; }
.deck-thumb:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.deck-panel { padding: 16px; }
@media (max-width: 640px) { .deck-panel { padding: 12px; } .deck-bar .btn { flex: 1 1 140px; } .deck-dots { display: none; } }

/* 全画面 */
.deck-full { --focus: #d5ff43; position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; background: var(--df-bg); color: var(--df-fg); padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.deck-full .df-top { display: flex; align-items: center; gap: 10px; padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); min-height: 56px; }
.deck-full .df-top b { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-full .df-wrap { flex: 1 1 auto; min-height: 0; container-type: size; display: flex; align-items: center; justify-content: center; padding: 4px 16px; }
.deck-full .deck-stage { width: min(100cqw, 100cqh * 16 / 9); height: auto; border: 0; border-radius: 6px; box-shadow: none; }
.deck-full .df-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px 14px; flex-wrap: wrap; }
.deck-full .df-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--df-line); background: var(--df-panel); color: var(--df-fg); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.deck-full .df-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.deck-full .df-btn[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.deck-full .deck-count { color: var(--df-fg); }
.deck-full .df-note { max-width: 900px; margin: 0 auto; padding: 0 16px 10px; font-size: 13px; line-height: 1.7; color: var(--df-muted); text-align: center; }
.deck-full .df-hint { font-size: 12px; color: var(--df-muted); }
@media (max-height: 520px) { .deck-full .df-note { display: none; } .deck-full .df-top { min-height: 44px; padding-block: 4px; } .deck-full .df-bar { padding-block: 4px 8px; } }
.deck-full, .deck-full .df-wrap { overflow: hidden; }
.deck-full .df-rot { display: none; }
@media (orientation: portrait) and (max-width: 640px) {
  .deck-full .df-rot { display: inline-flex; }
  .deck-full.rot .df-wrap .deck-stage { flex: 0 0 auto; max-width: none; width: min(100cqh, 100cqw * 16 / 9); transform: rotate(90deg); }
  .deck-full.rot .df-note { display: none; }
}
h1, h2, h3 { word-break: auto-phrase; }

/* スライド一覧ページ */
.deck-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.deck-cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.deck-cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1099px) { .deck-cards.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 859px) { .deck-cards.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .deck-cards.c3, .deck-cards.c4 { grid-template-columns: minmax(0, 1fr); } }
.deck-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.deck-card .sl-fit { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line2); border-radius: 8px; }
.deck-card .t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.deck-card .t b { font-size: 14px; line-height: 1.45; color: var(--fg-strong); }
.deck-card .m { font-size: 12px; color: var(--muted); }
.deck-card .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.deck-card .acts .btn { flex: 1 1 auto; min-height: 36px; font-size: 13px; }
.deck-feature { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .deck-feature { grid-template-columns: minmax(0, 1fr); } }
.deck-points { display: flex; flex-direction: column; gap: 10px; }
.deck-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.75; color: var(--fg2); }
.deck-points li .ico { flex: 0 0 auto; margin-top: 4px; color: var(--up); }
