:root {
  --bg: #f6f7f9; --panel: #ffffff; --text: #1d2330; --muted: #646b78; --line: #e2e5ea;
  --soft: #f1f3f6; --accent: #2f6fed; --accent-text: #ffffff; --accent-soft: #e8efff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161b; --panel: #1c1f26; --text: #e8eaef; --muted: #9aa1ad; --line: #2d313a;
    --soft: #23262e; --accent: #6b97ff; --accent-text: #0e1320; --accent-soft: #1f2a44;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.7;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
}
a { color: var(--accent); }
h1 { font-size: 1.6rem; line-height: 1.35; margin: .4em 0 .5em; }
h2 { font-size: 1.15rem; margin: 2em 0 .6em; }
code { background: var(--soft); padding: .1em .35em; border-radius: 4px; }

.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.logo { font-weight: 700; color: var(--text); text-decoration: none; }
.site-head nav { display: flex; gap: 16px; font-size: .92rem; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover { color: var(--text); }

.wrap { max-width: 920px; margin: 0 auto; padding: 16px 16px 48px; }
.crumbs { font-size: .82rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.lead { font-size: 1.02rem; }
.facts { color: var(--muted); font-size: .92rem; padding-left: 1.2em; }
.hint { font-size: .85rem; color: var(--muted); margin: 1.2em 0 .4em; }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-text); font-weight: 600;
  padding: .55em 1.1em; border-radius: 8px; text-decoration: none;
}
.btn:hover { filter: brightness(1.07); }
.cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cta span { color: var(--muted); font-size: .88rem; }

.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
table.words { width: 100%; border-collapse: collapse; font-size: .95rem; }
.words th, .words td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.words tbody tr:last-child td { border-bottom: none; }
.words th { font-size: .8rem; color: var(--muted); font-weight: 600; background: var(--soft); }
.words .num { width: 3.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.words .pos { width: 7em; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.words .en { font-weight: 600; white-space: nowrap; }
.kana { display: block; font-size: .78rem; color: var(--muted); }
.say {
  font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer;
  border-bottom: 1px dotted var(--muted);
}
.say:hover { color: var(--accent); border-color: var(--accent); }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.pager a, .pager .cur {
  min-width: 2.2em; text-align: center; padding: .25em .6em; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel); text-decoration: none;
}
.pager .cur { background: var(--accent); color: var(--accent-text); border-color: transparent; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.card {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text);
}
.card:hover { border-color: var(--accent); }
.card span { font-size: .82rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 6px; padding: .3em .8em; border-radius: 999px;
  background: var(--accent-soft); text-decoration: none; font-size: .9rem;
}
.chip small { color: var(--muted); }

.ad { margin: 20px 0; min-height: 90px; }
.ad-label { display: block; font-size: .7rem; color: var(--muted); margin-bottom: 2px; }

.site-foot {
  max-width: 920px; margin: 0 auto; padding: 16px 16px 40px; font-size: .78rem; color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-foot a { color: var(--muted); }

@media (max-width: 560px) {
  h1 { font-size: 1.35rem; }
  .words th, .words td { padding: 7px 8px; }
  .words .num { display: none; }
}

.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.todo { color: #c2410c; font-weight: 600; }
table.legal { font-size: .88rem; }
table.legal td { min-width: 9em; }
