/* App Reel のサイト。読みやすさだけを狙った素朴な作り。 */
:root {
  --fg: #16181d;
  --muted: #5d6470;
  --line: #e3e6ec;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --accent: #1d4ed8;
  --max: 860px;
}

* { box-sizing: border-box; }

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

/* ---- ヘッダー ---- */
header.site {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--fg);
}
.brand img { border-radius: 9px; }
nav.top { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; font-size: 0.9rem; }
nav.top a { color: var(--muted); text-decoration: none; padding: 0.15rem 0; }
nav.top a:hover { color: var(--accent); }
nav.top a.on { color: var(--fg); font-weight: 600; border-bottom: 2px solid var(--accent); }

/* ---- 本文 ---- */
main { max-width: var(--max); margin: 0 auto; padding: 2rem 1.2rem 3rem; }
h1 { font-size: 1.9rem; line-height: 1.4; margin: 0.4rem 0 1rem; }
h2 { font-size: 1.25rem; margin: 2.2rem 0 0.6rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--line); }
h3 { font-size: 1.05rem; margin: 0 0 0.2rem; }
p { margin: 0.6rem 0; }
a { color: var(--accent); }
code {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.08em 0.4em;
  font-size: 0.9em;
}

.hero { padding: 1rem 0 0.5rem; }
.hero h1 { font-size: 2.3rem; }
.lead { font-size: 1.05rem; }
.muted { color: var(--muted); font-size: 0.92rem; }
.en { color: var(--muted); font-size: 0.92rem; }
.note {
  background: var(--soft);
  border-left: 3px solid var(--line);
  padding: 0.8rem 1rem;
  border-radius: 0 6px 6px 0;
}
.notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 0.9rem 1rem;
}
.more { display: inline-block; margin-top: 0.7rem; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---- 手順 ---- */
ol.steps { padding-left: 1.3rem; }
ol.steps li { margin: 0.7rem 0; }

/* ---- 主要アプリのカード ---- */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.card {
  display: flex;
  gap: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}
.card img { border-radius: 14px; flex: none; }
.card p { margin: 0.25rem 0; font-size: 0.95rem; }
.store { font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.store:hover { text-decoration: underline; }

/* ---- アプリ一覧 ---- */
ul.applist { list-style: none; margin: 0.8rem 0; padding: 0; display: grid; gap: 0.2rem; }
ul.applist li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.7rem 0.3rem;
  border-bottom: 1px solid var(--line);
}
ul.applist img { border-radius: 12px; flex: none; }
ul.applist a { font-weight: 600; text-decoration: none; }
ul.applist a:hover { text-decoration: underline; }
ul.applist p { margin: 0.1rem 0 0; }

/* ---- 表 ---- */
table.scopes { width: 100%; border-collapse: collapse; margin: 0.8rem 0; font-size: 0.95rem; }
table.scopes th, table.scopes td { border: 1px solid var(--line); padding: 0.6rem 0.7rem; text-align: left; vertical-align: top; }
table.scopes th { background: var(--soft); font-weight: 600; }

/* ---- Q&A ---- */
.qa h2 { border: none; margin-bottom: 0.2rem; }

/* ---- フッター ---- */
footer.site {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 1.6rem 1.2rem 2.2rem;
}
footer.site > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
footer.site p { font-size: 0.92rem; }
footer .links { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; margin-top: 0.8rem; }
footer .links a { text-decoration: none; }

@media (max-width: 560px) {
  .hero h1 { font-size: 1.8rem; }
  .card { flex-direction: column; }
}
