:root {
  --bg: #f7f6f3; --fg: #1d1d1b; --muted: #6b6b66; --line: #e3e2dd; --card: #fff; --accent: #c2410c;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151513; --fg: #ecebe6; --muted: #a09f98; --line: #2e2d29; --card: #1d1d1a; --accent: #fb923c; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.75 "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
header .name { font-weight: 700; color: var(--fg); text-decoration: none; }
header nav { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }
header nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
header .name { white-space: nowrap; }
@media (max-width: 480px) {
  header nav { gap: 12px; font-size: 13px; }
  header nav .same-page { display: none; }  /* 狭い画面では入りきらない。トップを下へ読めば出てくる */
  h1 { font-size: 26px; margin-top: 36px; }
}
header nav a:hover { color: var(--fg); }
h1 { font-size: 30px; line-height: 1.35; margin: 48px 0 12px; }
h2 { font-size: 20px; margin: 44px 0 10px; }
h3 { font-size: 16px; margin: 24px 0 6px; }
.lead { color: var(--muted); font-size: 17px; margin: 0; }
.muted { color: var(--muted); }
ol.flow { padding-left: 1.3em; }
ol.flow li { margin: 4px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 16px; }
.short { display: block; text-decoration: none; color: var(--fg); }
.short .thumb { aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--line); }
.short img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.short:hover img { transform: scale(1.04); }
.short .title { font-size: 14px; line-height: 1.5; margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.short .date { font-size: 12px; color: var(--muted); }
.empty { border: 1px dashed var(--line); border-radius: 10px; padding: 28px; text-align: center; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; }
.en { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }
footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); }
code { font-size: 0.9em; overflow-wrap: anywhere; }  /* 長い URL で画面からはみ出さない */
