/* メモ帳風のシンプルなスタイル */
:root {
  --bg: #fdfdfb;
  --fg: #222;
  --muted: #777;
  --line: #e3e3dc;
  --link: #1a5fb4;
  --code-bg: #f4f4f0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --fg: #ddd;
    --muted: #999;
    --line: #333;
    --link: #8ab4f8;
    --code-bg: #2a2a2c;
  }
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 1.5rem 1rem 3rem;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
a { color: var(--link); }
header.site {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem;
  border-bottom: 1px solid var(--line); padding-bottom: .75rem; margin-bottom: 2rem;
}
header.site .site-title { font-weight: bold; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
header.site nav a { margin-left: 1rem; font-size: .9rem; color: var(--muted); }
footer.site { margin-top: 4rem; border-top: 1px solid var(--line); padding-top: 1rem; color: var(--muted); font-size: .85rem; }

h1 { font-size: 1.5rem; line-height: 1.4; margin: 0 0 .25rem; }
h2 { font-size: 1.25rem; margin-top: 2.5rem; border-bottom: 1px solid var(--line); padding-bottom: .2rem; }
h3 { font-size: 1.08rem; margin-top: 2rem; }
.meta { color: var(--muted); font-size: .85rem; margin-bottom: 2rem; }
.tag { margin-left: .5rem; color: var(--muted); }

.post-list { list-style: none; padding: 0; }
.post-list li { padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.post-list time { color: var(--muted); font-size: .85rem; margin-right: .75rem; font-variant-numeric: tabular-nums; }

img { max-width: 100%; height: auto; border-radius: 4px; }
blockquote { margin: 1.5rem 0; padding: .25rem 1rem; border-left: 3px solid var(--line); color: var(--muted); }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 3px; font-size: .9em; }
pre { background: var(--code-bg); padding: .9rem 1rem; border-radius: 4px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }
table { border-collapse: collapse; display: block; overflow-x: auto; margin: 1.5rem 0; font-size: .9rem; }
th, td { border: 1px solid var(--line); padding: .35rem .7rem; text-align: left; white-space: nowrap; }
th { background: var(--code-bg); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; font-size: .9rem; }

iframe { max-width: 100%; }
