:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --text: #1c2127;
  --muted: #5a6470;
  --line: #dfe3e8;
  --accent: #1667c2;
  --accent-text: #ffffff;
  --code-bg: #f1f3f5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171b;
    --surface: #1d2126;
    --text: #e7eaee;
    --muted: #9da7b3;
    --line: #313840;
    --accent: #5aa7f5;
    --accent-text: #0d1117;
    --code-bg: #262b32;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; color: var(--text); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .93rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); }

.hero { padding-top: 56px; }
.version { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
h1 { font-size: clamp(1.7rem, 4.6vw, 2.7rem); line-height: 1.35; margin: 0 0 20px; letter-spacing: .01em; text-wrap: balance; }
.lead { max-width: 46em; font-size: 1.05rem; margin: 0 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 40px; }
.button {
  display: inline-block; padding: 10px 20px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); text-decoration: none; font-weight: 600;
}
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.button:hover { filter: brightness(1.08); }

figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
figcaption { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.shot { max-width: 884px; }

section { padding-top: 56px; }
h2 { font-size: 1.5rem; margin: 0 0 20px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.grid p { margin: 0; color: var(--muted); font-size: .95rem; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.note { color: var(--muted); font-size: .88rem; }

table { border-collapse: collapse; width: 100%; max-width: 640px; margin: 16px 0; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: .9rem; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; background: var(--code-bg); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--code-bg); padding: 14px 16px; border-radius: 6px; overflow-x: auto; line-height: 1.6; }
pre code { background: none; padding: 0; }

.steps { padding-left: 1.4em; max-width: 46em; }
.steps li { margin-bottom: 18px; padding-left: 4px; }
.steps li::marker { font-weight: 700; color: var(--accent); }
.steps p { margin: 0 0 8px; }
.plain { max-width: 46em; padding-left: 1.3em; }
.plain li { margin-bottom: 8px; }

.foot { margin-top: 72px; padding-top: 20px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
