/* Generated by scripts/generate-site.ts — do not edit by hand. */
:root {
  color-scheme: light dark;
  --bg: #f5efe3; --surface: #fbf8f1; --ink: #22201c; --muted: #615a4f; --line: #e0d6c3;
  --shu: #c8402b; --shu-ink: #fff; --ai: #2e4a62; --gold: #f3e6c4;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1a1714; --surface: #24201c; --ink: #f3ece1; --muted: #b8ad9c; --line: #3a332c; --shu: #e0644f; --ai: #9fbad3; --gold: #3a3224; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; font-size: 17px; line-height: 1.65; }
a { color: var(--ai); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 22px; }
.brand img { border-radius: 9px; }
.menu { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 15px; }
.menu a { color: var(--ink); text-decoration: none; }
.menu a:hover { text-decoration: underline; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--shu); color: var(--shu-ink) !important; text-decoration: none !important; font-weight: 700; border: 2px solid var(--shu); }
.btn.small { padding: 6px 14px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
main.wrap { padding-top: 24px; padding-bottom: 96px; }
h1, h2, h3 { font-family: "Shippori Mincho B1", serif; line-height: 1.3; }
h1 { font-size: clamp(28px, 5vw, 40px); margin: 8px 0 12px; }
h2 { font-size: 26px; margin: 40px 0 12px; }
h3 { font-size: 19px; margin: 24px 0 8px; }
.lead { font-size: 19px; color: var(--muted); max-width: 760px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.hero { text-align: center; padding: 24px 0 8px; }
.hero .lead { margin: 0 auto 20px; }
.hero .buttons { justify-content: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 16px 0; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
.card:hover { border-color: var(--shu); }
.card .emoji { font-size: 30px; line-height: 1; }
.card .kanji-sample { font-family: "Shippori Mincho B1", serif; font-size: 34px; }
.card-title { font-weight: 700; }
.card .jp-title { display: block; margin-top: 2px; font-size: 14px; }
.cards.compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.card-text { font-size: 15px; color: var(--muted); }
.card-meta { font-size: 13px; color: var(--muted); margin-top: auto; }
.jp-title { font-family: "Shippori Mincho B1", serif; color: var(--muted); font-weight: 700; font-size: 0.8em; }
.pill { display: inline-block; vertical-align: middle; font-family: "Zen Kaku Gothic New", sans-serif; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--ink); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px 12px; margin: 20px 0; }
.toc h2 { font-size: 18px; margin: 12px 0 4px; }
.toc ol { columns: 2 260px; margin: 0; padding-left: 20px; font-size: 15px; }
.topic { border-top: 1px solid var(--line); margin-top: 32px; }
.topic h2 { margin-top: 28px; }
.table { margin: 16px 0; }
.table figcaption { font-weight: 700; margin-bottom: 6px; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; font-size: 15px; min-width: 100%; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
thead th { background: var(--gold); }
td .jp, th .jp { display: block; font-size: 17px; }
.romaji { display: block; font-size: 13px; color: var(--muted); }
ruby rt { font-size: 0.55em; color: var(--muted); }
.examples { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.examples li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.examples .jp { display: block; font-size: 20px; line-height: 2; }
.examples .tr { display: block; }
.tip { background: var(--gold); border-radius: 12px; padding: 12px 16px; margin: 14px 0; }
.see { font-size: 15px; color: var(--muted); }
.back { font-size: 14px; margin: 18px 0 0; }
.back a { color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 36px 0 8px; font-weight: 700; }
.kana-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 28px; }
.kana-table { min-width: 0; width: 100%; }
.kana-table td { text-align: center; min-width: 64px; }
.kana-table .kana { display: block; font-size: 26px; font-family: "Shippori Mincho B1", serif; }
.kanji-index { font-size: 22px; line-height: 1.9; word-break: break-all; }
.kanji-index a { text-decoration: none; }
.kanji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.kanji { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; scroll-margin-top: 80px; }
.kanji p { margin: 4px 0; }
.kanji-head { display: flex; gap: 14px; align-items: center; }
.kanji-char { font-family: "Shippori Mincho B1", serif; font-size: 52px; line-height: 1; }
.kanji-meaning { font-weight: 700; }
.kanji .label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.kanji-words { padding-left: 18px; margin: 6px 0; font-size: 15px; }
.kanji-words .romaji { display: inline; }
.okuri { color: var(--muted); }
.mnemonic { font-size: 14px; color: var(--muted); font-style: italic; }
.muted { color: var(--muted); font-size: 14px; }
.feature-grid { columns: 3 280px; column-gap: 14px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px 10px; break-inside: avoid; margin: 0 0 14px; }
.feature h3 { font-size: 18px; }
.feature ul { padding-left: 18px; }
.cta { margin: 48px 0 0; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.cta h2 { margin-top: 4px; }
.cta .buttons { justify-content: center; }
.foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; line-height: 1.6; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 24px; padding-top: 32px; padding-bottom: 24px; }
.foot-brand .brand { font-size: 18px; }
.foot-brand .brand img { border-radius: 7px; }
.foot-brand p { margin: 8px 0 0; max-width: 260px; }
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-title { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.foot-legal { border-top: 1px solid var(--line); padding-top: 14px; padding-bottom: 24px; font-size: 12px; }
.foot-legal p { margin: 0; }
.foot-col span[aria-current] { font-weight: 700; color: var(--ink); }
.mascot { display: block; height: auto; }
.hero .mascot { margin: 0 auto 4px; width: 220px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-head .mascot { flex: none; width: 180px; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { position: static; }
  [id] { scroll-margin-top: 12px; }
  .top-row { min-height: 0; padding-top: 10px; padding-bottom: 10px; row-gap: 6px; }
  .menu { gap: 12px; font-size: 14px; }
  .menu .btn.small { padding: 5px 12px; }
  main.wrap { padding-top: 16px; }
  h2 { font-size: 23px; margin-top: 32px; }
  .lead { font-size: 17px; }
  .toc ol { columns: 1; }
  table { font-size: 14px; }
  th, td { padding: 6px 8px; }
  .examples .jp { font-size: 18px; }
  .kanji-grid { grid-template-columns: 1fr; }
  .feature-grid { columns: 1; }
  .cta { padding: 20px 16px; }
  .hero .mascot { width: 160px; }
  .page-head .mascot { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .foot-brand { grid-column: 1 / -1; }
  main.wrap { padding-bottom: 64px; }
}
