/* 色・フォント・大きさは、ここの変数でまとめて変える。 */
:root {
  color-scheme: light dark;
  --bg: #f8f4ed;          /* アプリのアイコンの背景 */
  --surface: #ffffff;     /* カードなど */
  --text: #2b2a33;
  --muted: #6b6875;
  --line: #e6dfd3;
  --accent: #525ca5;      /* アプリの藍色（仮） */
  --accent-soft: #e9e8f4; /* 藍色の薄い面 */
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --font-heading: var(--font);
  --radius: 16px;
  --width: 960px;         /* トップページの幅 */
  --prose-width: 720px;   /* 規約などの本文の幅 */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1c22;
    --surface: #28262d;
    --text: #ece9f2;
    --muted: #a19eab;
    --line: #38353f;
    --accent: #8c94e0;
    --accent-soft: #2e2e45;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.4; }
img { max-width: 100%; }

/* ヘッダー・フッター */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .inner {
  max-width: var(--width); margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; text-decoration: none; }
.brand img { border-radius: 8px; }
.site-header nav { display: flex; gap: 16px; font-size: 0.9rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }
.site-footer { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 24px 16px; border-top: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 8px 0 0; }

/* 規約・お知らせなどの本文 */
.prose { max-width: var(--prose-width); margin: 0 auto; padding: 32px 16px 64px; overflow-wrap: anywhere; }
.prose h1 { font-size: 1.6rem; }
.prose h2 { font-size: 1.2rem; margin-top: 2.2em; }
.prose h3 { font-size: 1rem; margin-top: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.prose .date { color: var(--muted); margin: 0; }

/* トップページ */
.hero { text-align: center; padding: 56px 16px 48px; }
.hero-icon { border-radius: 28px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.08); }
.hero h1 { font-size: 2.2rem; margin: 20px 0 0; letter-spacing: 0.08em; }
.hero .reading { display: block; font-size: 0.85rem; font-weight: 400; color: var(--muted); letter-spacing: 0.2em; }
.hero .catch { font-size: 1.35rem; font-weight: 700; margin: 24px 0 8px; }
.hero .lead { color: var(--muted); max-width: 32em; margin: 0 auto; }
.stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 150px;
  padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 700; line-height: 1.4;
}
.store small { font-weight: 400; font-size: 0.75rem; color: var(--muted); }

.section { max-width: var(--width); margin: 0 auto; padding: 40px 16px; }
.section h2 { font-size: 1.4rem; text-align: center; margin: 0 0 24px; }
.section > p { max-width: var(--prose-width); margin-left: auto; margin-right: auto; }
.section .note { color: var(--muted); font-size: 0.9rem; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 20px 24px; }
.card h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--accent); }
.card p { margin: 0; }
#creators { background: var(--accent-soft); border-radius: var(--radius); margin-top: 24px; margin-bottom: 24px; max-width: calc(var(--width) - 32px); }
@media (max-width: 991px) { #creators { margin-left: 16px; margin-right: 16px; } }
#creators p:last-child, #contact p { text-align: center; }
.mail { font-size: 1.15rem; font-weight: 700; }

.news-list { list-style: none; padding: 0; max-width: var(--prose-width); margin: 0 auto; }
.news-list li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--muted); flex: none; }
.news .more { text-align: center; }

@media (max-width: 480px) {
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 1.9rem; }
  .hero .catch { font-size: 1.15rem; }
  .news-list li { flex-direction: column; gap: 0; }
}
