:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #2e3440;
  --muted: #5b6475;
  --accent: #3b6ea8;
  --border: #dde1e8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2e3440;
    --surface: #3b4252;
    --text: #dee2e9;
    --muted: #abb3c1;
    --accent: #95b4d4;
    --border: #4c566a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

header, main, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

header { padding-top: 32px; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 8px;
}

nav a { color: var(--accent); text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

h1 { font-size: 1.8rem; line-height: 1.3; margin: 16px 0 4px; }
h2 { font-size: 1.25rem; margin: 40px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }

.lead { color: var(--muted); margin-top: 0; }

a { color: var(--accent); }

ul { padding-left: 1.4em; }
li { margin: 2px 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}

.store { margin: 24px 0; }

.button {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.shots img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* 狭い画面では、画像を大きめにして横にスクロールさせる */
@media (max-width: 600px) {
  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 24px -16px;
    padding: 0 16px 8px;
    scroll-padding: 0 16px;
  }

  .shots img { scroll-snap-align: start; }
}

/* 画像を左、箇条書きを右に置く。狭い画面では縦に積む */
.feature {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 16px 0;
}

.feature img {
  flex: 0 0 220px;
  width: 220px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.feature ul { margin: 0; }

@media (max-width: 600px) {
  .feature { flex-direction: column; }
  .feature img { flex: none; width: 62%; align-self: center; }
}

.note { color: var(--muted); font-size: 0.92rem; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 4px;
}

footer {
  margin-top: 56px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 0.88rem;
}
