:root {
  --bg: #05070f;
  --bg-2: #0b1022;
  --panel: rgba(11, 16, 34, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef2ff;
  --muted: #a9b2cc;
  --mint: #3fe6c5;
  --amber: #ffb547;
  --red: #ff5470;
  --blue: #7fc8ff;
  --radius: 14px;
  --font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  background-color: var(--bg);
  /* 星は画像を使わず、小さな点を重ねて描く */
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 64%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 88% 48%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 22% 82%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 34%, rgba(127, 200, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 94% 88%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(900px 600px at 80% -10%, rgba(63, 230, 197, 0.10), transparent 70%),
    radial-gradient(800px 700px at -10% 40%, rgba(127, 120, 255, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-size: 420px 420px, 380px 380px, 520px 520px, 460px 460px, 340px 340px,
    600px 600px, 300px 300px, 100% 100%, 100% 100%, 100% 100%;
}

a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: #8ff3df; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--mint); color: #001a14; padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { width: min(100% - 40px, 1040px); margin-inline: auto; }

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(5, 7, 15, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 60px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.02em;
}
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* ---------- ヒーロー ---------- */

.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center;
  gap: 32px; padding: 72px 0 56px;
}
.hero h1 {
  margin: 0; font-size: clamp(44px, 7vw, 76px); line-height: 1.05; letter-spacing: 0.01em;
}
.tagline { margin: 12px 0 0; color: var(--mint); font-weight: 700; font-size: clamp(18px, 2.4vw, 22px); }
.lead { margin: 20px 0 0; color: var(--text); font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li {
  border: 1px solid var(--line); background: var(--panel);
  border-radius: 999px; padding: 4px 14px; font-size: 14px; color: var(--muted);
}
.chips li strong { color: var(--text); font-weight: 700; }
.cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--mint); color: #00241c; font-weight: 800; text-decoration: none;
}
.button:hover { color: #00241c; background: #6ff0d6; }
.button.soon { background: transparent; color: var(--mint); border: 1px solid var(--mint); cursor: default; }
.hero-art { width: 100%; height: auto; max-width: 440px; justify-self: center; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art .meteor { animation: fly 6s ease-in infinite; }
}
@keyframes fly {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  70% { transform: translate(-120px, 120px); opacity: 1; }
  80%, 100% { transform: translate(-130px, 130px); opacity: 0; }
}

/* ---------- 本文 ---------- */

section { padding: 48px 0; }
section > .wrap > h2, .page h1 {
  margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.3;
}
.section-lead { margin: 0 0 28px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li, .card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(63, 230, 197, 0.14); color: var(--mint); font-weight: 800; margin-bottom: 8px;
}
.steps h3, .card h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.4; }
.steps p, .card p { margin: 0; color: var(--muted); font-size: 16px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card .icon { width: 36px; height: 36px; margin-bottom: 8px; color: var(--mint); }

.statement {
  background: linear-gradient(135deg, rgba(63, 230, 197, 0.14), rgba(11, 16, 34, 0.72));
  border: 1px solid rgba(63, 230, 197, 0.35); border-radius: var(--radius); padding: 32px;
}
.statement h2 { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 32px); }
.statement p { margin: 0; }
.statement p + p { margin-top: 10px; }

.pack {
  border: 1px solid rgba(255, 181, 71, 0.45); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.12), rgba(11, 16, 34, 0.72)); padding: 32px;
}
.pack h2 { margin: 0; font-size: clamp(24px, 3.4vw, 32px); }
.price { color: var(--amber); font-weight: 800; font-size: 20px; margin: 4px 0 18px; }
.pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pack h3 { margin: 0 0 8px; font-size: 17px; color: var(--amber); }
.pack ul { margin: 0; padding-left: 1.2em; }
.pack .note { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.pack + .pack { margin-top: 16px; }
.pack.removeads { border-color: rgba(63, 230, 197, 0.45);
  background: linear-gradient(135deg, rgba(63, 230, 197, 0.12), rgba(11, 16, 34, 0.72)); }
.pack.removeads .price { color: var(--mint); }
.pack.removeads p:not(.price) { margin: 0; }

.specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.credits { margin-top: 40px; }
.credits .specs { grid-template-columns: minmax(0, 15em) 1fr; gap: 10px 20px; margin: 16px 0; }
.caution {
  margin-top: 20px; padding: 14px 18px; border-left: 3px solid var(--amber);
  background: rgba(255, 181, 71, 0.08); border-radius: 0 10px 10px 0; font-size: 15px;
}

/* ---------- 規約などの文章ページ ---------- */

.page { padding: 48px 0 24px; }
.page .meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.page h2 { font-size: 21px; margin: 36px 0 8px; line-height: 1.4; }
.page p, .page li { color: #d9def0; }
.page ul, .page ol { padding-left: 1.4em; }
.page .panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 24px 20px;
}
/* 表は狭い画面で横に送れるようにする（文字を詰めて読めなくしない） */
.table-scroll { overflow-x: auto; margin: 12px 0; -webkit-overflow-scrolling: touch; }
.page table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: #d9def0; }
.page th { color: var(--text); background: rgba(255, 255, 255, 0.05); white-space: nowrap; }

.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 16px; color: #d9def0; }
.faq details > div p { margin: 0 0 8px; }

.contact {
  margin-top: 32px; padding: 22px; border-radius: var(--radius);
  border: 1px solid rgba(63, 230, 197, 0.35); background: rgba(63, 230, 197, 0.08);
}
.contact h2 { margin-top: 0; }
.contact p { margin: 0 0 6px; }

/* ---------- フッター ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 4px 0 0; }

/* ---------- 小さい画面 ---------- */

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 32px; text-align: left; }
  .hero-art { max-width: 300px; order: -1; }
  .steps { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* 狭い画面では表を 1 行ずつのカードにして、横に送らなくても全部の列が読めるようにする */
  .table-scroll { overflow-x: visible; }
  .page table { min-width: 0; }
  .page thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .page tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .page td { display: grid; grid-template-columns: 8em 1fr; gap: 10px; padding: 3px 0; border: 0; }
  .page td::before { content: attr(data-label); color: var(--muted); font-size: 14px; }
  .page td:first-child { display: block; color: var(--text); font-weight: 700; padding-bottom: 6px; }
  .page td:first-child::before { content: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 28px, 1040px); }
  .statement, .pack { padding: 22px; }
  .page .panel { padding: 4px 16px 16px; }
  .specs, .credits .specs { grid-template-columns: 1fr; }
  .specs dd { margin-bottom: 8px; }
}
