/* AURORA — night sky, glass, and a slow aurora. */

:root {
  --bg: #070a12;
  --ink: #f4f7fb;
  --muted: #d5deec;
  --soft: #b7c4d8;
  --line: rgba(255, 255, 255, 0.14);
  --teal: #5eead4;
  --violet: #c4b5fd;
  --pink: #fb7185;
  --glass: rgba(10, 14, 28, 0.72);
  --header: 72px;
  --wrap: 1120px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "WenQuanYi Micro Hei", Meiryo, sans-serif;
  --display: "Syne", "Noto Sans JP", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.85;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  color-scheme: dark;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

button, summary { font: inherit; }

::selection { background: #5eead4; color: #04221c; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.when-en { display: none; }

html[lang="en"] .when-ja { display: none; }

html[lang="en"] .when-en { display: inline; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: #f4f7fb;
  color: #10141c;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus { top: 12px; }

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

/* Sky ------------------------------------------------------------------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(88, 70, 180, 0.28), transparent 60%),
    var(--bg);
}

.ribbon {
  position: absolute;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.5;
  mix-blend-mode: screen;
  will-change: transform;
}

.r1 {
  background: #14b8a6;
  top: -18vh;
  left: -12vw;
  animation: drift 28s ease-in-out infinite alternate;
}

.r2 {
  background: #6d5efc;
  top: 8vh;
  right: -18vw;
  animation: drift 34s ease-in-out infinite alternate-reverse;
}

.r3 {
  background: #e11d48;
  bottom: -24vh;
  left: 18vw;
  width: 48vw;
  height: 48vw;
  opacity: 0.38;
  animation: drift 38s ease-in-out infinite alternate;
}

.r4 {
  background: #38bdf8;
  top: 58vh;
  left: 42vw;
  width: 28vw;
  height: 28vw;
  opacity: 0.32;
  animation: drift 24s ease-in-out infinite alternate-reverse;
}

.stars,
.stars::before {
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.85) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 140px 80px, rgba(255, 255, 255, 0.7) 50%, transparent 52%),
    radial-gradient(1px 1px at 80px 160px, rgba(255, 255, 255, 0.55) 50%, transparent 52%),
    radial-gradient(1px 1px at 200px 40px, rgba(255, 255, 255, 0.4) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 40px 220px, rgba(255, 255, 255, 0.65) 50%, transparent 52%),
    radial-gradient(1px 1px at 240px 180px, rgba(255, 255, 255, 0.5) 50%, transparent 52%);
  background-size: 280px 260px;
}

.stars::before {
  content: "";
  background-position: 90px 50px;
  opacity: 0.65;
  animation: twinkle 8s ease-in-out infinite;
}

.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(7, 10, 18, 0.78) 100%);
}

.grain {
  position: absolute;
  inset: -20%;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("../assets/noise.png");
  background-size: 140px 140px;
}

@keyframes drift {
  from { transform: translate3d(-6%, -4%, 0) rotate(-8deg) scale(1); }
  to { transform: translate3d(8%, 8%, 0) rotate(10deg) scale(1.12); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.spine {
  display: none;
}

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
}

.site-header.is-scrolled {
  background: rgba(7, 10, 18, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.logo svg { display: block; }

.logo-word {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.92rem;
}

.nav-toggle {
  display: inline-flex;
  order: 2;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
  cursor: pointer;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  position: relative;
  border-radius: 2px;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before { top: -6px; }
.burger::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .burger { background: transparent; }

.nav-toggle[aria-expanded="true"] .burger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { top: 0; transform: rotate(-45deg); }

.nav-panel {
  display: none;
}

.nav-panel.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: var(--header) 0 0 0;
  z-index: 25;
  padding: 28px 28px 48px;
  background: #070a12;
  gap: 4px;
  overflow-y: auto;
}

.nav-panel a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: 12px 4px;
  border-radius: 12px;
  font-size: 1.2rem;
}

.nav-panel a:hover { color: white; }

.lang {
  display: flex;
  order: 1;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  flex: none;
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--soft);
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
}

html:not([lang="en"]) .lang button[data-set-lang="ja"],
html[lang="en"] .lang button[data-set-lang="en"] {
  background: #f4f7fb;
  color: #10141c;
}

body.nav-open { overflow: hidden; }

/* Type ------------------------------------------------------------------ */

.kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

h1, h2, h3 { font-weight: 700; line-height: 1.25; letter-spacing: 0.01em; margin: 0; }

h1 {
  font-size: clamp(2.15rem, 3.5vw, 3.35rem);
  line-height: 1.22;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }

.grad {
  color: var(--teal);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad {
    background: linear-gradient(100deg, #5eead4 0%, #c4b5fd 48%, #fb7185 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.subhead {
  margin: 16px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.01em;
  color: var(--muted);
}

.lead {
  margin: 18px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section { padding: 84px 0; }

.section-head { max-width: 40rem; margin-bottom: 32px; }

.section-head p:last-child { margin: 12px 0 0; color: var(--muted); }

/* Hero ------------------------------------------------------------------- */

.hero { padding: 28px 0 20px; }

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #5eead4, #7dd3fc);
  color: #04221c;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.stage {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.shot {
  flex: none;
  width: min(78vw, 420px);
  scroll-snap-align: center;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  background: #0c101c;
  line-height: 0;
}

.shot img { display: block; width: 100%; height: auto; }

/* Marquee ---------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  margin-top: 18px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  color: var(--soft);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

/* Cards ------------------------------------------------------------------ */

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

@supports (backdrop-filter: blur(16px)) {
  .glass {
    background: rgba(12, 16, 32, 0.55);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
  }
}

.lines { display: grid; gap: 18px; }

.line {
  display: grid;
  gap: 22px;
  padding: 18px;
  align-items: center;
}

.line-copy h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); margin-bottom: 8px; }

.line-copy p { margin: 0; color: var(--muted); }

.num {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--teal);
  font-size: 0.78rem;
  margin: 0 0 8px;
}

.line-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
  align-items: center;
}

.text-link {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 4px;
}

.sheet {
  background: #e7eef2;
  color: #142033;
  border-radius: 16px;
  padding: 22px 22px 10px;
  border-left: 6px solid #0f766e;
}

.sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.sheet-brand {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.pill {
  background: #0f3f4c;
  color: #f4f7fb;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.sheet ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sheet li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(20, 32, 51, 0.12);
  font-weight: 500;
}

.sheet .idx {
  font-family: var(--display);
  color: #0f766e;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.feature-grid,
.store-grid,
.why-grid {
  display: grid;
  gap: 16px;
}

.product {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-height: 100%;
}

.product img { display: block; width: 100%; height: auto; }

.product-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.tag {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--teal);
}

.product h3 { font-size: 1.12rem; line-height: 1.45; }

.product p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.product .go {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 700;
  color: var(--ink);
}

.fine {
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 0.88rem;
}

.block-link + .block-link { margin-top: 28px; }

.store {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px 22px;
  text-decoration: none;
  min-height: 220px;
  color: inherit;
}

.store-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.store p { margin: 0; color: var(--muted); }

.store .go { margin-top: auto; font-weight: 700; padding-top: 12px; }

.why {
  padding: 22px 22px 20px;
}

.why h3 { font-size: 1.15rem; margin: 8px 0; }

.why p { margin: 0; color: var(--muted); }

.why .num { margin-bottom: 0; }

.split {
  display: grid;
  gap: 22px;
}

.about-card, .faq-card { padding: 28px 24px; }

.about-card p { margin: 0 0 14px; color: var(--muted); }

.about-card p strong { color: var(--ink); font-weight: 700; }

.note {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.note p { margin: 6px 0 0; }

.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.formats li {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 4px 12px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

details { border-top: 1px solid var(--line); }

details:last-of-type { border-bottom: 1px solid var(--line); }

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 2px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--ink);
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  flex: none;
  margin-top: -4px;
}

details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }

.faq-body { padding: 0 2px 16px; color: var(--muted); }

.faq-body p { margin: 0; }

/* Footer ----------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  gap: 28px;
  padding-bottom: 28px;
}

.footer-brand {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 6px;
}

.footer-grid p { margin: 0 0 8px; color: var(--muted); }

.footer-grid a { color: var(--ink); font-weight: 700; }

.footer-grid ul { list-style: none; margin: 0; padding: 0; }

.footer-grid li { margin: 6px 0; }

.copy {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 16px 0 20px;
  color: var(--soft);
  font-size: 0.92rem;
}

.watermark {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: clamp(4.2rem, 18vw, 11rem);
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.05);
  user-select: none;
  pointer-events: none;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .watermark {
    background: linear-gradient(90deg, rgba(94, 234, 212, 0.28), rgba(196, 181, 253, 0.28), rgba(251, 113, 133, 0.24));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* Motion ----------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transition: opacity 0.7s ease;
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in { opacity: 1; }

main section,
#faq { scroll-margin-top: 88px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .product:hover,
  .store:hover,
  .line:hover {
    border-color: rgba(94, 234, 212, 0.5);
    transform: translateY(-3px);
  }

  .product, .store, .line { transition: border-color 0.2s ease, transform 0.2s ease; }
}

/* Desktop ---------------------------------------------------------------- */

@media (min-width: 800px) {
  .line {
    grid-template-columns: 0.92fr 1.08fr;
    padding: 22px;
    gap: 32px;
  }

  .line.reverse .line-media { order: 2; }

  .feature-grid,
  .store-grid { grid-template-columns: repeat(3, 1fr); }

  .why-grid { grid-template-columns: 1fr 1fr; }

  .split { grid-template-columns: 0.9fr 1.1fr; align-items: start; }

  .footer-grid { grid-template-columns: 1.4fr 0.7fr 1.15fr; align-items: start; }
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }

  .nav-panel,
  .nav-panel.is-open {
    display: flex;
    flex-direction: row;
    position: static;
    inset: auto;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    gap: 2px;
    margin-left: auto;
  }

  .nav-panel a {
    font-size: 0.92rem;
    padding: 8px 10px;
  }

  .lang { margin-left: 8px; }

  body.nav-open { overflow: auto; }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    padding: 18px 0 8px;
  }

  .stage {
    display: block;
    position: relative;
    overflow: visible;
    min-height: 520px;
    scroll-snap-type: none;
    padding: 0;
  }

  .shot {
    position: absolute;
    width: auto;
    margin: 0;
    scroll-snap-align: none;
  }

  .shot-debut { width: 84%; left: 0; top: 0; z-index: 1; }
  .shot-notion { width: 48%; right: 0; bottom: 46px; z-index: 3; }
  .shot-ttrpg { width: 40%; left: 2%; bottom: 0; z-index: 2; }
}

.line-media a {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
}

.line-media img { display: block; width: 100%; height: auto; }

summary > .when-ja,
summary > .when-en { flex: 1; min-width: 0; }

.lang button { min-height: 40px; }

@media (min-width: 1040px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .spine {
    display: block;
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    letter-spacing: 0.32em;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.42);
    z-index: 2;
    margin: 0;
  }
}

@media (max-width: 380px) {
  .logo-word { letter-spacing: 0.12em; font-size: 0.8rem; }
  .lang button { padding: 0 9px; min-height: 36px; }
}

@media (max-width: 700px) {
  :root { --header: 64px; }
  .section { padding: 64px 0; }
  .wrap, .header-inner { width: min(var(--wrap), calc(100% - 32px)); }
  .ribbon { filter: blur(46px); opacity: 0.38; }
  .r4 { display: none; }
  h1 { font-size: clamp(1.95rem, 8vw, 2.55rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .ribbon,
  .stars::before,
  .marquee-track {
    animation: none !important;
  }

  .marquee-track {
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .marquee-group.dup { display: none; }

  .js .reveal,
  .js .reveal.is-in {
    opacity: 1;
    transition: none;
  }

  .product:hover,
  .store:hover,
  .line:hover { transform: none; }
}

@media (max-width: 380px) {
  .wrap, .header-inner { width: min(var(--wrap), calc(100% - 24px)); }
}

@media print {
  .sky, .site-header, .marquee, .spine, .watermark, .nav-toggle { display: none !important; }
  body { background: white; color: black; }
  .glass, .sheet { box-shadow: none; }
}
