:root{--ink:#222;--sub:#5b6460;--accent:#31574D;--line:#d9dfdb;--bg:#fbfaf6;--modern:#f1f4f1}
@media (prefers-color-scheme:dark){:root{--ink:#e8e6e1;--sub:#a9b1ad;--accent:#8fc1b1;--line:#3a413e;--bg:#1b1e1d;--modern:#232826}}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"BIZ UDPGothic","Hiragino Sans","Yu Gothic UI",sans-serif;font-size:17px;line-height:1.9}
a{color:var(--accent)}
header.site{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 16px;border-bottom:1px solid var(--line)}
.brand{font-size:22px;font-weight:700;text-decoration:none;color:var(--ink)}
.brand small{font-size:13px;font-weight:400;margin-left:8px;color:var(--sub)}
main{max-width:760px;margin:0 auto;padding:16px}
.crumbs{font-size:14px;color:var(--sub)}
h1{font-size:28px;line-height:1.4;margin:12px 0}
h2{font-size:20px;margin-top:32px;border-bottom:1px solid var(--line)}
.meta,.status,.legend,small{color:var(--sub);font-size:14px}
.lead{font-size:18px;font-weight:700}
.action{display:inline-block;padding:8px 14px;border:1px solid var(--accent);border-radius:6px;text-decoration:none}
.pair{margin:16px 0;padding-bottom:12px;border-bottom:1px dashed var(--line)}
.pair .text{font-family:"BIZ UDPMincho","Hiragino Mincho ProN","Yu Mincho",serif}
.pair .modern,.legend .modern{background:var(--modern);padding:8px 12px;margin-top:8px;border-radius:4px}
.legend .modern{padding:2px 8px}
details{margin:24px 0}
details p{font-family:"BIZ UDPMincho","Yu Mincho",serif;font-size:15px}
dt{font-weight:700}
dd{margin:0 0 12px}
.pager{display:flex;justify-content:space-between;gap:12px;margin:32px 0;flex-wrap:wrap}
.toc li,.works li{margin:6px 0}
.works p{margin:2px 0 12px}
footer{text-align:center;color:var(--sub);font-size:14px;padding:32px 16px;border-top:1px solid var(--line)}
