:root { --bg:#f6f3ee; --card:#fffdf9; --ink:#1b2a35; --mut:#5b6670; --line:#e2ddd4; --sun:#d9542b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg:#12181e; --card:#18212a; --ink:#ede8df; --mut:#a3acb4; --line:#2a3540; --sun:#e66a42; } }
:root[data-theme="dark"] { --bg:#12181e; --card:#18212a; --ink:#ede8df; --mut:#a3acb4; --line:#2a3540; --sun:#e66a42; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: 'DM Sans', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', sans-serif; font-size: 17px; line-height: 1.65; }
a { color: var(--sun); text-decoration: none; } a:hover { text-decoration: underline; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
nav { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 0; }
nav a { font-size: 13px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 20px; color: var(--mut); }
nav a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
nav a:hover { text-decoration: none; }
.theme-toggle { background: none; border: 1px solid var(--line); border-radius: 20px; color: var(--mut); padding: 3px 9px; cursor: pointer; line-height: 0; }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .sun { display: inline; } :root:not([data-theme="light"]) .theme-toggle .moon { display: none; } }
:root[data-theme="dark"] .theme-toggle .sun { display: inline; } :root[data-theme="dark"] .theme-toggle .moon { display: none; }
.hero { text-align: center; padding: 30px 0 46px; }
.hero img { width: min(380px, 78vw); height: auto; }
.hero .d { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero .l { display: none; } :root:not([data-theme="light"]) .hero .d { display: inline; } }
:root[data-theme="dark"] .hero .l { display: none; } :root[data-theme="dark"] .hero .d { display: inline; }
.lead { font-family: 'Playfair Display', 'Hiragino Mincho ProN', 'Yu Mincho', serif; font-size: 25px; line-height: 1.4; max-width: 640px; margin: 26px auto 0; }
.rule { width: 60px; height: 2px; background: var(--sun); margin: 26px auto 0; border: 0; }
h2 { font-family: 'Playfair Display', 'Hiragino Mincho ProN', 'Yu Mincho', serif; font-weight: 500; font-size: 26px; margin: 0 0 18px; }
section { padding: 34px 0; border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.card b { display: block; margin-bottom: 4px; }
.card span { color: var(--mut); font-size: 15px; }
.about figure { margin: 0 0 18px; } .about img { width: 100%; height: auto; border-radius: 10px; display: block; } .about figcaption { font-size: 13px; color: var(--mut); margin-top: 8px; }
.proj a { display: block; font-weight: 600; font-size: 18px; }
.contact p { margin: 0 0 6px; }
footer { border-top: 1px solid var(--line); padding: 22px 0 40px; font-size: 13px; color: var(--mut); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
footer a { color: var(--mut); }
.article { padding: 10px 0 30px; }
.article h1 { font-family: 'Playfair Display', serif; font-weight: 500; font-size: 32px; margin: 10px 0 20px; }
.article h2 { font-size: 20px; margin: 26px 0 8px; }
.article p { margin: 0 0 10px; }
.back { display: inline-block; margin-top: 4px; font-size: 14px; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } .lead { font-size: 21px; } body { font-size: 16px; } }
