/* わくせいゲーム サイト共通スタイル。配色はゲームの宇宙(#0e0c2a)・金(#ffc857)・紫に合わせる。 */
/* TODO: アプリ側のテーマ色が確定したら、値をそろえる */

:root {
  --bg: #f4f2ff;
  --surface: #ffffff;
  --ink: #1f1b4d;
  --sub: #6b6690;
  --border: #e1dcf5;
  --primary: #5b3fc4;
  --accent: #ffc857;
  --soft: #ece7ff;
  --on-primary: #ffffff;
  --radius: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0c2a;
    --surface: #1a1742;
    --ink: #ece9ff;
    --sub: #a7a2cf;
    --border: #2d2961;
    --primary: #ffc857;
    --accent: #9b7bff;
    --soft: #25215a;
    --on-primary: #0e0c2a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ヘッダー */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
}

.brand small {
  color: var(--sub);
  font-weight: 600;
  font-size: 13px;
  margin-left: 6px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 14px;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

/* 本文 */
main {
  padding: 32px 0 48px;
}

h1 {
  font-size: 26px;
  line-height: 1.4;
  margin: 0 0 8px;
}

h2 {
  font-size: 18px;
  line-height: 1.5;
  margin: 32px 0 8px;
}

p {
  margin: 0 0 12px;
}

.meta {
  color: var(--sub);
  font-size: 14px;
  margin-bottom: 24px;
}

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

.card > h2:first-child {
  margin-top: 0;
}

.placeholder {
  background: var(--soft);
  border-radius: 6px;
  padding: 0 4px;
}

main ul,
main ol {
  padding-left: 1.4em;
  margin: 0 0 12px;
}

/* 表(プライバシーポリシー) */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--soft);
  font-weight: 700;
  white-space: nowrap;
}

/* トップページ */
.hero {
  text-align: center;
  padding: 24px 0 8px;
}

.hero .app-icon {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 16px;
  border-radius: 24px;
  background: var(--soft);
  box-shadow: 0 6px 24px rgba(14, 12, 42, 0.18);
}

.hero .logo {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1.25;
}

.hero .reading {
  color: var(--sub);
  font-size: 14px;
  margin: 4px 0 20px;
}

.hero .pitch {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 8px;
}

.store-link {
  display: inline-block;
  min-width: 200px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.note {
  color: var(--sub);
  font-size: 13px;
}

/* 惑星の並び */
.planets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.planets li {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

.planets li.sun {
  background: var(--accent);
  color: #0e0c2a;
}

.planets li.bh {
  background: #0e0c2a;
  color: #ffc857;
  border: 1px solid var(--border);
}

.features {
  padding-left: 1.2em;
  margin: 0;
}

.features li + li {
  margin-top: 6px;
}

/* よくある質問 */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style-position: outside;
}

.faq details[open] summary {
  margin-bottom: 8px;
}

/* フッター */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--sub);
  font-size: 13px;
  padding: 20px 0 32px;
}

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