:root {
  --bg: #fdfafa;
  --fg: #2a2424;
  --accent: #d88b9b;
  --muted: #8b7e7e;
  --border: #eee;
  --card: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1616;
    --fg: #e8e0e0;
    --accent: #e8a3b1;
    --muted: #999090;
    --border: #2a2424;
    --card: #221c1c;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.85;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
}

header .brand {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
}

header .brand:hover {
  color: var(--accent);
}

h1 {
  font-size: 1.75rem;
  margin: 0.75rem 0 0;
  letter-spacing: 0.02em;
  font-weight: 600;
}

h2 {
  font-size: 1.1rem;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
  font-weight: 600;
}

p {
  margin: 0.85rem 0;
}

ol, ul {
  padding-left: 1.5rem;
  margin: 0.85rem 0;
}

ol li, ul li {
  margin: 0.4rem 0;
}

ol li ul {
  margin: 0.4rem 0;
  padding-left: 1.25rem;
  list-style: none;
}

ol li ul li {
  position: relative;
  padding-left: 0.75rem;
}

ol li ul li::before {
  content: "・";
  position: absolute;
  left: -0.5rem;
  color: var(--muted);
}

strong {
  color: var(--accent);
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

footer nav {
  margin-bottom: 0.5rem;
}

footer nav a {
  color: var(--muted);
  margin: 0 0.5rem;
}

footer nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.doc-list li {
  margin: 0.75rem 0;
  padding: 0;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.doc-list a {
  color: var(--fg);
  text-decoration: none;
  display: block;
  font-weight: 500;
  padding: 1rem 1.25rem;
  border-radius: 12px;
}

.doc-list a:hover {
  color: var(--accent);
  text-decoration: none;
}

.doc-list .desc {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
  font-weight: 400;
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2.5rem;
}

.contact {
  background: var(--card);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

.contact strong {
  display: block;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

@media (max-width: 600px) {
  .container {
    padding: 1.5rem 1rem 3rem;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.05rem; }
}

/* ---- app-site 追加スタイル（AN-9 配布ページ） ---- */
.hero {
  text-align: center;
  padding: 1rem 0 0.5rem;
}
.hero img.icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.hero h1 { margin-top: 1rem; }
.hero .lead { color: var(--muted); margin-top: 0.25rem; }

.btn {
  display: block;
  text-align: center;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  margin: 1rem 0;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
}
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.btn.primary {
  background: linear-gradient(90deg, #EED4DE, #ACD7D7);
  color: #222;
  border: none;
}
.btn.primary:hover { color: #000; opacity: 0.92; }
.btn .sub { display: block; font-size: 0.8rem; font-weight: 400; color: var(--muted); margin-top: 0.2rem; }
.btn.primary .sub { color: #444; }

.os-switch { margin: 2rem 0 1rem; }
.note {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  margin: 1.25rem 0;
}
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  position: relative;
  padding: 0.9rem 0 0.9rem 2.6rem;
  border-bottom: 1px solid var(--border);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0.9rem;
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li strong { color: var(--fg); }
.line-btn {
  display: inline-block;
  background: #06C755;
  color: #fff !important;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.line-btn:hover { opacity: 0.9; text-decoration: none; }
.version { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }

.shot { margin: 0.9rem 0 0.25rem; }
.shot img { display: block; max-width: 240px; width: 60%; height: auto; border-radius: 14px; border: 1px solid var(--border); }
.shot figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }
