:root {
  --bg: #ffffff; --fg: #1a1a1a; --muted: #666; --link: #0b57d0; --border: #e3e3e3; --quote-bg: #f5f5f7; --accent: #0b57d0;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121212; --fg: #e6e6e6; --muted: #9a9a9a; --link: #8ab4f8; --border: #2e2e2e; --quote-bg: #1e1e22; --accent: #8ab4f8; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); line-height: 1.95;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header, main, .site-footer { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.site-header { padding-top: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.site-title { font-weight: 700; font-size: 1.15rem; color: var(--fg); }
.genres { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.9rem; }
.genres a { color: var(--muted); }
main { padding-top: 24px; padding-bottom: 48px; }
.page-title { font-size: 1.5rem; margin: 0 0 16px; }
.meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 6px; }
.article-header h1 { font-size: 1.6rem; line-height: 1.4; margin: 0 0 16px; }
.lead { font-size: 1.05rem; font-weight: 500; margin-bottom: 1.6em; }
article h2.lead-heading { font-size: 1.05rem; margin: 20px 0 8px; border-left-color: var(--muted); color: var(--muted); }
.editor-comment { margin-top: 32px; padding: 14px 16px; background: var(--quote-bg); border-radius: 8px; }
.editor-comment h2 { border: none; padding: 0; margin: 0 0 8px; font-size: 1rem; }
.editor-comment p { margin: 0; }
article h2 { font-size: 1.2rem; margin: 32px 0 8px; padding-left: 10px; border-left: 4px solid var(--accent); line-height: 1.4; }
article p { margin: 0 0 1.5em; text-align: left; overflow-wrap: anywhere; }
article section { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; margin: 20px 0 24px; }
table.data { border-collapse: collapse; width: 100%; font-size: 0.92rem; line-height: 1.5; table-layout: auto; }
@media (max-width: 480px) { table.data { font-size: 0.85rem; } table.data th, table.data td { padding: 6px 7px; } }
table.data caption { caption-side: top; text-align: left; font-size: 0.85rem; color: var(--muted); padding: 0 0 6px; }
table.data th, table.data td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; }
table.data th { background: var(--quote-bg); font-weight: 600; white-space: nowrap; }
figure.fig { margin: 20px 0 28px; }
figure.fig img { display: block; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--border); }
figure.fig figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; line-height: 1.6; }
blockquote.quote { margin: 16px 0; padding: 12px 16px; background: var(--quote-bg); border-left: 3px solid var(--border); border-radius: 4px; }
blockquote.quote p { margin: 0 0 6px; }
.quote-original { font-size: 0.92rem; color: var(--muted); }
.quote-translation { font-size: 0.98rem; }
blockquote.quote footer { font-size: 0.8rem; }
.site-intro { margin: 0 0 20px; padding: 12px 14px; background: var(--quote-bg); border-radius: 6px; font-size: 0.95rem; }
a.term { color: var(--fg); text-decoration: none; border-bottom: 1px dotted var(--link); }
a.term:hover { color: var(--link); }
.glossary dt { scroll-margin-top: 16px; }
.glossary dt:target { background: var(--quote-bg); border-radius: 4px; padding: 2px 6px; }
.glossary { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); }
.glossary h2 { border: none; padding: 0; font-size: 1rem; }
.glossary dl { margin: 0; font-size: 0.92rem; }
.glossary dt { font-weight: 600; margin-top: 10px; }
.glossary dd { margin: 2px 0 0 1em; color: var(--fg); }
.glossary .ref { color: var(--muted); font-size: 0.85rem; }
.sources { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); }
.sources h2 { border: none; padding: 0; font-size: 1rem; }
.sources ul { padding-left: 1.2em; font-size: 0.9rem; }
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li.card { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border); text-align: center; }
.article-list .thumb { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px;
  border: 1px solid var(--border); background: var(--quote-bg); margin: 0 auto 14px; }
.article-list .thumb.icon { display: flex; align-items: center; justify-content: center; }
.article-list .thumb.icon img { width: 96px; height: 96px; object-fit: contain; border-radius: 16px; }
.article-list .card-title { font-size: 1.25rem; line-height: 1.45; margin: 0 0 6px; text-align: center; }
.article-list .card-title a { color: var(--fg); }
.article-list .meta { margin: 0; }
@media (max-width: 480px) { .article-list .card-title { font-size: 1.1rem; } .article-list .thumb.icon img { width: 72px; height: 72px; } }
.site-footer { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.site-header { padding-top: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.site-title { font-weight: 700; font-size: 1.15rem; color: var(--fg); }
.genres { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.9rem; }
.genres a { color: var(--muted); }
main { padding-top: 24px; padding-bottom: 48px; }
.page-title { font-size: 1.5rem; margin: 0 0 16px; }
.meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 6px; }
.article-header h1 { font-size: 1.6rem; line-height: 1.4; margin: 0 0 16px; }
.lead { font-size: 1.05rem; font-weight: 500; margin-bottom: 1.6em; }
article h2 { font-size: 1.2rem; margin: 32px 0 8px; padding-left: 10px; border-left: 4px solid var(--accent); line-height: 1.4; }
article p { margin: 0 0 1.5em; text-align: left; overflow-wrap: anywhere; }
article section { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; margin: 20px 0 24px; }
table.data { border-collapse: collapse; width: 100%; font-size: 0.92rem; line-height: 1.5; table-layout: auto; }
@media (max-width: 480px) { table.data { font-size: 0.85rem; } table.data th, table.data td { padding: 6px 7px; } }
table.data caption { caption-side: top; text-align: left; font-size: 0.85rem; color: var(--muted); padding: 0 0 6px; }
table.data th, table.data td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; }
table.data th { background: var(--quote-bg); font-weight: 600; white-space: nowrap; }
figure.fig { margin: 20px 0 28px; }
figure.fig img { display: block; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--border); }
figure.fig figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; line-height: 1.6; }
blockquote.quote { margin: 16px 0; padding: 12px 16px; background: var(--quote-bg); border-left: 3px solid var(--border); border-radius: 4px; }
blockquote.quote p { margin: 0 0 6px; }
.quote-original { font-size: 0.92rem; color: var(--muted); }
.quote-translation { font-size: 0.98rem; }
blockquote.quote footer { font-size: 0.8rem; }
.site-intro { margin: 0 0 20px; padding: 12px 14px; background: var(--quote-bg); border-radius: 6px; font-size: 0.95rem; }
a.term { color: var(--fg); text-decoration: none; border-bottom: 1px dotted var(--link); }
a.term:hover { color: var(--link); }
.glossary dt { scroll-margin-top: 16px; }
.glossary dt:target { background: var(--quote-bg); border-radius: 4px; padding: 2px 6px; }
.glossary .back { font-size: 0.8rem; color: var(--muted); margin-left: 6px; text-decoration: none; }
.glossary { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); }
.glossary h2 { border: none; padding: 0; font-size: 1rem; }
.glossary dl { margin: 0; font-size: 0.92rem; }
.glossary dt { font-weight: 600; margin-top: 10px; }
.glossary dd { margin: 2px 0 0 1em; color: var(--fg); }
.glossary .ref { color: var(--muted); font-size: 0.85rem; }
.sources { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); }
.sources h2 { border: none; padding: 0; font-size: 1rem; }
.sources ul { padding-left: 1.2em; font-size: 0.9rem; }
.article-list .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site-footer { padding: 16px; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); }
.empty { color: var(--muted); }
@media (max-width: 480px) { html { font-size: 16px; } .article-header h1 { font-size: 1.35rem; } }
