:root {
  --bg: #0d1420;
  --bg-2: #18222f;
  --panel: rgba(20, 30, 42, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f1f4f2;
  --muted: #aab6b8;
  --mint: #f2a65a;      /* 朝日の色（リンクとボタン） */
  --amber: #e9c46a;
  --red: #d9534f;
  --blue: #9cc3d5;
  --pine: #5f8f6b;
  --radius: 14px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, -apple-system, 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(1000px 520px at 85% -8%, rgba(242, 166, 90, 0.16), transparent 70%),
    radial-gradient(900px 700px at -10% 30%, rgba(156, 195, 213, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: #ffc48a; }
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: #2a1600; padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

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

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

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(13, 20, 32, 0.82);
  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: #2a1600; font-weight: 800; text-decoration: none;
}
.button:hover { color: #2a1600; background: #ffc48a; }
.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; }

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

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(242, 166, 90, 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(242, 166, 90, 0.14), rgba(11, 16, 34, 0.72));
  border: 1px solid rgba(242, 166, 90, 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; }

.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(242, 166, 90, 0.35); background: rgba(242, 166, 90, 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; }
}
@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 { padding: 22px; }
  .page .panel { padding: 4px 16px 16px; }
  .specs, .credits .specs { grid-template-columns: 1fr; }
  .specs dd { margin-bottom: 8px; }
}

/* ---------- 英語の節 ---------- */

.lang-en { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 8px; }
.lang-switch { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
