:root { color-scheme: light; --paper: #f5f4ee; --ink: #24332c; --muted: #56655c; --line: #d4d9cf; --green: #345a46; --mint: #e5ebdf; --white: #fffef9; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; font-size: 16px; line-height: 1.85; word-break: normal; line-break: strict; }
a { color: inherit; text-underline-offset: .25em; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #1c7152; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: -6rem; padding: .7rem 1rem; background: var(--white); z-index: 10; }
.skip:focus { top: 1rem; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 14px; font-weight: 700; }
.brand-mark { display: inline-grid; place-items: center; width: 37px; height: 37px; border: 1px solid currentColor; font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif; font-size: 24px; font-weight: 400; line-height: 1; }
nav, .site-footer>div { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; font-size: 13px; }
nav a { text-decoration: none; padding-block: 8px; }
nav a:hover, .site-footer a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 66px; padding-block: 78px 68px; align-items: center; }
.edition { font-size: 12px; margin: 0 0 24px; color: var(--muted); }
.edition span { margin-left: 12px; border-left: 1px solid var(--line); padding-left: 12px; white-space: nowrap; }
h1 { font-size: clamp(28px, 3.4vw, 43px); line-height: 1.6; letter-spacing: .015em; font-weight: 700; margin: 0 0 24px; }
.lead { font-size: 15px; line-height: 2; max-inline-size: 33ic; color: var(--muted); margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.button { display: inline-flex; align-items: center; gap: 34px; padding: 13px 21px; text-decoration: none; font-size: 14px; font-weight: 700; border: 1px solid var(--green); }
.primary { background: var(--green); color: white; }
.primary:hover { background: #254633; }
.text-link { font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--ink); padding-block: 5px; }
.hero-note { color: var(--muted); font-size: 12px; margin: 20px 0 0; }
.specimen { background: var(--mint); border: 1px solid #c7d0c0; padding: 28px 28px 22px; min-width: 0; }
.specimen-top, .specimen-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 10px; color: #405546; }
.specimen-top { padding-bottom: 16px; border-bottom: 1px solid #bbc8b5; }
.specimen-top span:last-child { white-space: nowrap; }
.specimen-title { font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif; font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; line-height: 1.9; margin: 42px 0 38px; letter-spacing: .025em; }
.specimen-bottom { border-top: 1px solid #bbc8b5; padding-top: 16px; font-size: 10px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 18px; align-items: center; }
.facts p { margin: 0; padding-inline: 22px; border-left: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.facts p:first-child { border-left: 0; padding-left: 0; }
.facts p:last-child { text-align: end; }
.facts strong { font-family: Georgia, serif; font-size: 28px; font-weight: 400; color: var(--ink); margin-right: 7px; }
.comparison, .guide, .scope { padding-block: 76px; }
.section-heading { margin-bottom: 32px; max-width: 720px; }
.eyebrow { font-size: 12px; color: var(--green); margin: 0 0 14px; }
h2 { font-size: clamp(23px, 2.5vw, 30px); line-height: 1.6; margin: 0 0 16px; font-weight: 700; }
.section-heading>p:last-child { color: var(--muted); font-size: 14px; margin: 0; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.example { border: 1px solid var(--line); background: var(--white); padding: 25px 32px 20px; min-width: 0; }
.after-example { border-color: #9eb19e; }
.example-label { font-size: 12px; margin: 0 0 24px; color: var(--muted); }
.after-example .example-label { color: var(--green); font-weight: 700; }
.sample { max-width: 370px; min-height: 230px; }
.sample-title { font-size: clamp(24px, 2.7vw, 34px); font-weight: 700; margin: 0 0 24px; }
.sample-body { font-size: 14px; margin: 0; }
.before .sample-title { line-height: 1.05; letter-spacing: -.06em; }
.before .sample-body { line-height: 1.3; letter-spacing: .08em; }
.after .sample-title { line-height: 1.45; letter-spacing: normal; }
.after .sample-body { line-height: 1.8; letter-spacing: normal; }
.sample-meta { font-size: 11px; margin: 25px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.comparison-note { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 18px 0 0; }
.comparison-note a { white-space: nowrap; }
.guide { border-top: 1px solid var(--line); }
.guide-controls { margin-block: 30px; }
.search-label { display: block; font-size: 13px; margin-bottom: 9px; }
.search-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
input[type=search] { flex: 1; min-width: 0; appearance: none; background: var(--white); border: 1px solid #a9b5a8; padding: 13px 16px; border-radius: 0; color: var(--ink); font-size: 16px; }
.reset { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 12px 5px; text-decoration: underline; text-underline-offset: 4px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 7px 12px; font-size: 12px; border-radius: 2px; }
.filter.active { background: var(--green); border-color: var(--green); color: white; }
.filter:hover:not(.active) { border-color: var(--green); }
.result-count { margin: 18px 0 0; font-size: 12px; color: var(--muted); }
.rule { border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.rule:first-child { border-top: 1px solid var(--line); }
.rule summary { display: flex; align-items: baseline; gap: 20px; list-style: none; cursor: pointer; padding: 22px 8px; }
.rule summary::-webkit-details-marker { display: none; }
.rule-id { font-family: ui-monospace, monospace; color: var(--green); font-size: 12px; min-width: 32px; }
.rule-title { font-weight: 700; font-size: 15px; line-height: 1.8; }
.rule-mark { margin-left: auto; font-weight: 400; color: var(--muted); flex-shrink: 0; }
.rule[open] { background: #eff1e9; }
.rule[open] .rule-mark { transform: rotate(45deg); }
.rule-body { padding: 0 60px 30px; max-inline-size: 57rem; font-size: 14px; }
.rule-body p { margin: 0 0 18px; }
.rule-body .basis { display: inline-block; font-size: 11px; border: 1px solid #a4b09e; padding: 2px 8px; margin-bottom: 16px; }
.rule-body .when { color: var(--muted); font-size: 13px; }
.rule-body dl { display: grid; grid-template-columns: 6em 1fr; gap: 12px 14px; margin: 24px 0; }
.rule-body dt { font-size: 12px; color: var(--green); padding-top: 2px; }
.rule-body dd { margin: 0; min-width: 0; }
.rule-body .sources { font-size: 11px; color: var(--muted); line-height: 2; }
.permalink { font-size: 11px; color: var(--muted); }
.use-section { background: var(--mint); padding-block: 64px; }
.use-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; }
.use-grid>div { min-width: 0; }
.use-grid>div>p:not(.eyebrow) { color: #45584a; font-size: 14px; }
.install-panel { background: var(--white); padding: 28px; border: 1px solid #bbc8b5; }
.panel-label { margin: 0 0 14px; font-size: 12px; color: var(--muted); }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; font-size: 13px; }
pre code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; }
.copy-button { background: var(--green); color: white; border: 1px solid var(--green); padding: 9px 15px; font-size: 12px; margin-top: 18px; }
.copy-button:hover { background: #254633; }
.install-alternative { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; margin: 18px 0 26px; }
.prompt-label { padding-top: 22px; border-top: 1px solid var(--line); }
.prompt { font-size: 12px; }
.prompt code { font-family: inherit; }
.secondary-copy { color: var(--green); background: transparent; }
.secondary-copy:hover { color: white; }
.copy-status { font-size: 12px; min-height: 1.8em; margin: 12px 0 0; }
.basis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; }
.basis-grid article { border-top: 1px solid #b8c3b1; padding-top: 17px; }
.basis-grid span { color: var(--green); font-size: 12px; }
.basis-grid h3 { font-size: 16px; line-height: 1.8; margin: 10px 0; }
.basis-grid p { color: var(--muted); font-size: 13px; margin: 0; }
.scope-note { margin-top: 32px; font-size: 12px; color: var(--muted); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-block: 28px 42px; }
.site-footer .brand { font-size: 13px; }
.site-footer>div { font-size: 12px; gap: 20px; }
.site-footer>div>span { color: var(--muted); }
@media (max-width: 900px) {
  .hero { gap: 30px; grid-template-columns: 1.2fr 1fr; }
  .specimen { padding: 22px; }
  .use-grid { gap: 32px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { align-items: flex-start; gap: 12px; padding-block: 18px; }
  .brand { font-size: 12px; gap: 8px; }
  .brand-mark { width: 29px; height: 29px; font-size: 19px; }
  nav { gap: 14px; font-size: 11px; }
  nav a:first-child { display: none; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 42px; }
  h1 { font-size: clamp(25px, 6.2vw, 36px); line-height: 1.65; }
  .edition { font-size: 10px; margin-bottom: 18px; }
  .edition span { margin-left: 6px; padding-left: 6px; }
  .lead { font-size: 14px; }
  .hero-actions { gap: 18px; }
  .button { padding: 11px 16px; font-size: 13px; gap: 22px; }
  .hero-actions .text-link { font-size: 12px; }
  .specimen { max-width: 470px; width: 100%; }
  .specimen-title { font-size: 32px; margin: 28px 0; }
  .facts { grid-template-columns: repeat(3, 1fr); padding-block: 14px; }
  .facts p { font-size: 10px; padding-inline: 12px; }
  .facts strong { font-size: 24px; margin-right: 3px; }
  .facts p:last-child { grid-column: 1/-1; border: 0; padding: 12px 0 0; text-align: start; }
  .comparison, .guide, .scope { padding-block: 48px; }
  .comparison-grid, .use-grid, .basis-grid { grid-template-columns: 1fr; }
  .example { padding: 22px; }
  .sample { min-height: 190px; }
  .sample-title { font-size: 29px; }
  .rule summary { gap: 10px; padding: 19px 2px; }
  .rule-title { font-size: 14px; }
  .rule-body { padding: 0 14px 26px; }
  .rule-body dl { grid-template-columns: 1fr; gap: 6px; }
  .rule-body dd { margin-bottom: 10px; }
  .search-row { gap: 10px; align-items: stretch; flex-wrap: wrap; }
  .search-row input { flex-basis: 100%; }
  .reset { padding-left: 0; padding-block: 4px; }
  .filter { font-size: 11px; padding: 7px 10px; }
  .use-section { padding-block: 42px; }
  .install-panel { padding: 22px; }
  .site-footer { padding-block: 22px 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
