:root {
  color-scheme: dark;
  --night: #070819;
  --navy: #10123a;
  --indigo: #21155a;
  --plum: #421d63;
  --violet: #8b63db;
  --gold: #d7b458;
  --gold-light: #f4df9c;
  --ivory: #fffaf0;
  --ink: #21192d;
  --muted: #756d7f;
  --line: rgba(215, 180, 88, 0.32);
  --glass: rgba(17, 16, 48, 0.82);
  --shadow: 0 28px 80px rgba(3, 2, 16, 0.38);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  min-height: 100vh;
  color: rgba(255,255,255,0.9);
  line-height: 1.9;
  background:
    radial-gradient(circle at 83% 8%, rgba(139, 99, 219, 0.42), transparent 31rem),
    radial-gradient(circle at 7% 78%, rgba(102, 52, 145, 0.30), transparent 31rem),
    linear-gradient(150deg, var(--navy), var(--indigo) 42%, var(--plum) 72%, var(--night));
  background-attachment: fixed;
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border: 1px solid rgba(215, 180, 88, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
body::before { width: 430px; height: 430px; right: -210px; top: 95px; box-shadow: 0 0 80px rgba(139,99,219,0.15); }
body::after { width: 320px; height: 320px; left: -190px; bottom: 8%; }

a { color: #6d43be; text-underline-offset: 0.2em; }
a:hover { color: #43247e; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 8, 25, 0.76);
  border-bottom: 1px solid rgba(215, 180, 88, 0.20);
  backdrop-filter: blur(22px);
}
.nav-wrap {
  width: min(1120px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.brand:hover { color: var(--gold-light); }
.brand img { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 0 22px rgba(215,180,88,0.25); }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name small { margin-top: 4px; color: var(--gold-light); font-family: inherit; font-size: 0.65rem; letter-spacing: 0.08em; }
ruby rt { font-size: 0.38em; letter-spacing: 0.16em; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.92rem; font-weight: 700; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-light); }
.language-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.07); }
.language-switch button { border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,0.7); cursor: pointer; min-width: 42px; padding: 6px 10px; font: inherit; font-size: 0.8rem; font-weight: 800; }
.language-switch button[aria-pressed="true"] { background: linear-gradient(120deg, #31258f, #8545be); color: white; }

main { width: min(940px, calc(100% - 32px)); margin: 0 auto; padding: 68px 0 100px; }
.hero { text-align: center; padding: 38px 24px 62px; position: relative; }
.hero::after { content: "✦  ·  ☾  ·  ✦"; display: block; margin-top: 28px; color: var(--gold); letter-spacing: 0.38em; opacity: 0.88; }
.eyebrow { color: var(--gold-light); font-weight: 800; letter-spacing: 0.18em; font-size: 0.78rem; text-transform: uppercase; }
h1, h2, h3 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
}
h1 { margin: 13px 0 18px; color: white; font-size: clamp(2.15rem, 6vw, 4.5rem); line-height: 1.2; letter-spacing: 0.055em; text-shadow: 0 0 28px rgba(139,99,219,0.5); }
.lead { max-width: 720px; margin: 0 auto; color: rgba(255,255,255,0.7); font-size: clamp(1rem, 2vw, 1.17rem); }
.platforms { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 24px; }
.platforms span { padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-light); background: rgba(255,255,255,0.06); font-size: 0.78rem; font-weight: 750; }
.moon-mark {
  width: 96px; height: 96px; margin: 0 auto 25px; display: grid; place-items: center;
  border: 1px solid rgba(215,180,88,0.65); border-radius: 50%; color: var(--gold-light);
  background: radial-gradient(circle at 36% 30%, rgba(255,255,255,0.22), rgba(89,57,148,0.34) 55%, rgba(7,8,25,0.85));
  box-shadow: 0 0 38px rgba(139,99,219,0.48), inset 0 0 26px rgba(215,180,88,0.10); font-size: 2.25rem;
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 30px; text-decoration: none; color: var(--ink); transition: transform 180ms ease, border-color 180ms ease; }
.card, .content-panel {
  background: linear-gradient(145deg, rgba(255,250,240,0.98), rgba(248,240,229,0.95));
  border: 1px solid rgba(244,223,156,0.72); border-radius: 25px; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-5px); border-color: var(--gold); color: var(--ink); }
.card-icon { color: #9b7123; font-size: 1.55rem; }
.card h2 { margin: 12px 0 8px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.content-panel { position: relative; overflow: hidden; color: var(--ink); padding: clamp(27px, 5vw, 62px); }
.content-panel::before, .content-panel::after { content: "✦"; position: absolute; color: rgba(169,126,40,0.38); font-size: 1.1rem; }
.content-panel::before { top: 20px; left: 24px; }
.content-panel::after { right: 24px; bottom: 20px; }
.content-panel section + section { margin-top: 45px; padding-top: 39px; border-top: 1px solid rgba(102,73,122,0.17); }
.content-panel h2 { margin: 0 0 14px; color: #2b2036; font-size: clamp(1.35rem, 3vw, 1.85rem); letter-spacing: 0.035em; }
.content-panel h3 { margin: 25px 0 7px; font-size: 1.07rem; }
.content-panel p { margin: 0.55em 0; }
.content-panel ul { padding-left: 1.45em; }
.content-panel li + li { margin-top: 0.5em; }
.content-panel strong { color: #332440; }
.notice { margin: 25px 0; padding: 19px 21px; border-left: 4px solid var(--gold); border-radius: 4px 15px 15px 4px; background: rgba(215,180,88,0.11); }
.meta { color: rgba(255,255,255,0.67); font-size: 0.9rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: 11px 23px; border-radius: 999px; color: white; background: linear-gradient(100deg, #3936a9, #8740bd); box-shadow: 0 12px 28px rgba(82,50,157,0.25); text-decoration: none; font-weight: 780; }
.button:hover { color: white; filter: brightness(1.09); }
.button.secondary { color: #5e359e; background: white; border: 1px solid rgba(94,53,158,0.22); box-shadow: none; }
.faq details { border-top: 1px solid rgba(102,73,122,0.18); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid rgba(102,73,122,0.18); }
.faq summary { cursor: pointer; font-weight: 780; color: #30213d; }
.faq details p { color: var(--muted); padding-right: 20px; }
.platform-note { margin-top: 18px; padding: 16px 18px; border: 1px solid rgba(94,53,158,0.16); border-radius: 16px; background: rgba(93,52,157,0.06); }
.guidance-flow { margin: 0 0 34px; padding: clamp(24px, 5vw, 44px); border: 1px solid rgba(215,180,88,0.34); border-radius: 25px; background: rgba(12,10,38,0.72); box-shadow: var(--shadow); }
.guidance-flow h2 { margin: 0 0 18px; color: white; text-align: center; }
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flow-step { padding: 17px 14px; border: 1px solid rgba(244,223,156,0.25); border-radius: 16px; background: rgba(255,255,255,0.06); text-align: center; }
.flow-step strong { display: block; color: var(--gold-light); }
.flow-step span { color: rgba(255,255,255,0.76); font-size: 0.9rem; }

.site-footer { background: rgba(4,5,19,0.84); border-top: 1px solid rgba(215,180,88,0.18); color: rgba(255,255,255,0.72); }
.footer-wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0; display: flex; gap: 24px; align-items: center; }
.footer-wrap nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-wrap a { color: var(--gold-light); }
.lang-en { display: none; }
html[data-language="en"] .lang-ja { display: none !important; }
html[data-language="en"] .lang-en { display: revert; }
html[data-language="en"] span.lang-en { display: inline; }

@media (max-width: 760px) {
  .nav-wrap { min-height: 68px; flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .nav-links { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 8px; overflow-x: auto; }
  .language-switch { margin-left: auto; }
  main { padding-top: 35px; }
  .hero { padding: 24px 8px 44px; }
  .grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .content-panel { border-radius: 19px; }
  .footer-wrap { align-items: flex-start; flex-direction: column; }
  .footer-wrap nav { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
