:root {
  --paper: #ffffff;
  --panel: #f2f2f2;
  --card: #ffffff;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #8c8c8c;
  --rule: #e0e0e0;
  --wood: #111111;
  --wood-dark: #111111;
  --accent: #111111;
  --radius: 14px;
  --sans: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ── Masthead ───────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
}
.masthead::after { content: ""; display: block; height: 1px; background: var(--ink); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { font-weight: 600; font-size: 14px; letter-spacing: 0.18em; }
.logo-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--rule);
  box-shadow: none;
  display: inline-grid; place-items: center; flex: none;
}
.logo-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.logo-dot.small { width: 16px; height: 16px; }
.logo-dot.small::after { width: 6px; height: 6px; }
.nav { display: flex; gap: 18px; font-size: 13px; color: var(--ink-2); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* ── Index ─────────────────────────── */
.intro { padding: 56px 0 28px; }
.intro-ja { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.intro h1 { margin: 0; font-size: clamp(22px, 5vw, 30px); line-height: 1.5; font-weight: 500; letter-spacing: 0.02em; }

.list { display: grid; gap: 14px; padding-bottom: 64px; }
.card {
  display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center;
  padding: 14px; background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--rule); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #111111; transform: translateY(-1px); }
.card.feature { grid-template-columns: 1fr; padding: 16px 16px 20px; }
.card h2 { margin: 2px 0 6px; font-size: 17px; line-height: 1.55; font-weight: 600; }
.card.feature h2 { font-size: 21px; }
.card-lead { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:not(.feature) .card-lead { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11px; letter-spacing: 0.06em; padding: 2px 9px; border-radius: 99px; background: var(--panel); color: var(--ink-2); }

.kicker { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.edition { font-weight: 600; color: var(--wood); letter-spacing: 0.16em; font-size: 10.5px; }

/* 画像フレーム（製品写真を明るいグレーの台に載せる） */
.shot-frame, .thumb .shot-frame {
  background: var(--panel); border-radius: 10px; overflow: hidden;
  aspect-ratio: 16 / 10; display: grid; place-items: center;
}
.shot-frame img { width: 100%; height: 100%; object-fit: contain; }
.thumb { margin: 0; }
.thumb figcaption { display: none; }
.card:not(.feature) .thumb .shot-frame { aspect-ratio: 1 / 1; }
.thumb-empty { aspect-ratio: 1 / 1; background: var(--panel); border-radius: 10px; }
.card.feature .thumb-empty { aspect-ratio: 16 / 9; }
figure.is-missing .shot-frame { background: var(--panel); }
figure.is-missing img { display: none; }
figure.shot.is-missing { display: none; }

/* ── Post ──────────────────────────── */
.post { padding: 44px 0 64px; }
.post-head { padding-bottom: 28px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.post-head h1 { margin: 10px 0 14px; font-size: clamp(24px, 5.6vw, 32px); line-height: 1.45; font-weight: 600; letter-spacing: 0.01em; }
.lead { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.toc { list-style: none; counter-reset: toc; margin: 22px 0 0; padding: 0; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; text-decoration: none; font-size: 14px; line-height: 1.6; border-top: 1px dashed var(--rule); }
.toc a::before { content: counter(toc, decimal-leading-zero); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 18px; }
.toc-maker { font-size: 11px; color: var(--wood); letter-spacing: .06em; min-width: 64px; }
.toc a:hover { color: var(--wood-dark); }

.item { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 36px 0 30px; border-bottom: 1px solid var(--rule); scroll-margin-top: 80px; }
.item-num { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.labels { display: flex; gap: 10px; align-items: center; font-size: 11.5px; letter-spacing: 0.08em; }
.maker { color: var(--wood); font-weight: 600; }
.cat { color: var(--muted); padding-left: 10px; border-left: 1px solid var(--rule); }
.item h2 { margin: 6px 0 18px; font-size: 20px; line-height: 1.55; font-weight: 600; }
.shot { margin: 0 0 20px; }
.shot figcaption { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.prose p { margin: 0 0 1em; color: var(--ink-2); }
.specs { margin: 8px 0 16px; padding: 4px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.spec-row { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.spec-row:first-child { border-top: 0; }
.spec-row dt { color: var(--muted); font-size: 12.5px; }
.spec-row dd { margin: 0; }
.source { margin: 0; font-size: 12.5px; color: var(--muted); }
.source a { color: var(--wood-dark); text-underline-offset: 3px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.pager a { padding: 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); text-decoration: none; font-size: 13.5px; line-height: 1.6; }
.pager a span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .1em; margin-bottom: 2px; }
.pager .next { text-align: right; }

.about .prose { padding-top: 20px; }
.empty { color: var(--muted); }

/* ── Footer ────────────────────────── */
.footer { border-top: 1px solid var(--ink); background: var(--paper); }
.footer-inner { padding: 28px 20px 36px; font-size: 12px; color: var(--ink-2); line-height: 1.8; }
.footer p { margin: 10px 0 0; }
.footer .muted { color: var(--muted); }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav a:first-child { display: none; }
  .card { grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; }
  .card.feature { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr; }
  .item-num { padding: 0; }
  .toc-maker { min-width: 56px; }
}

/* 下書きプレビューのトップに出す案内 */
.draft-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 20px; padding: 14px 16px; border: 1px solid var(--ink); border-radius: var(--radius);
  text-decoration: none; font-size: 14px; font-weight: 600;
}
.draft-banner span { font-size: 10.5px; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
