:root { --bg: #f7f8fa; --paper: #ffffff; --fg: #1d2330; --muted: #5d6677; --line: #dde1e8;
        --code-bg: #f0f2f5; --accent: #2f5d8a;
        --body: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
        --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root {
  --bg: #12151b; --paper: #1a1e26; --fg: #e3e7ee; --muted: #9aa3b2; --line: #2c323d;
  --code-bg: #232833; --accent: #8db8e4; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.85; }
a { color: var(--accent); }
header.site, main, footer.site { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.site { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; padding-block: 20px; }
header.site .name { font-weight: 700; font-size: 1.2em; color: var(--fg); text-decoration: none; }
header.site nav a { margin-left: 12px; font-size: .9em; }
footer.site { color: var(--muted); font-size: .85em; padding-block: 32px; text-align: center; }
article.post { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 32px clamp(16px, 5vw, 40px); }
h1 { font-size: 1.6em; line-height: 1.4; margin: 0 0 .4em; text-wrap: balance; }
h2 { font-size: 1.25em; margin: 2em 0 .6em; padding-bottom: .2em; border-bottom: 1px solid var(--line); }
.meta { color: var(--muted); font-size: .85em; margin: 0 0 1.5em; }
.meta a { margin-left: .4em; }
img { display: block; max-width: 100%; height: auto; margin: 1.2em auto; border-radius: 4px; }
pre { background: var(--code-bg); padding: 12px 14px; border-radius: 6px; overflow-x: auto; line-height: 1.55; font-size: .88em; }
code { font-family: var(--mono); }
:not(pre) > code { background: var(--code-bg); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
table { border-collapse: collapse; width: 100%; font-size: .92em; }
th, td { border: 1px solid var(--line); padding: 4px 8px; }
blockquote { margin-left: 0; padding-left: 14px; border-left: 3px solid var(--line); color: var(--muted); }
ul.posts { list-style: none; padding: 0; margin: 0; }
ul.posts li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
ul.posts img { margin: 0; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
ul.posts .title { font-weight: 700; font-size: 1.05em; text-decoration: none; }
ul.posts p { margin: .2em 0; }
ul.posts .meta { margin: 0; }
@media (max-width: 560px) { ul.posts li { grid-template-columns: 1fr; } }
.pager { display: flex; justify-content: space-between; margin: 24px 0; }
.old { color: var(--muted); font-size: .85em; text-align: center; margin-top: 24px; }
section h2 { border: 0; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.2em 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; }
