:root {
  --bg: #090d16;
  --bg-soft: #0f1320;
  --panel: rgba(16, 21, 35, 0.92);
  --panel-strong: #121728;
  --line: rgba(123, 140, 194, 0.26);
  --line-strong: rgba(142, 161, 214, 0.45);
  --text: #eff3fb;
  --muted: #b2bdd5;
  --gold: #e5c16d;
  --teal: #8cb3c2;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --container: min(1160px, calc(100vw - 32px));
  --radius: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(50, 66, 113, 0.3), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(229, 193, 109, 0.14), transparent 22%),
    linear-gradient(180deg, #06080d 0%, var(--bg) 42%, #080a11 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
summary {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #13161f;
}

.skip-link:focus {
  top: 16px;
}

.page-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 18px 0 56px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  background: rgba(7, 10, 18, 0.74);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

.brand {
  width: min(340px, 50vw);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav a:hover,
.nav a.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transform: translateY(-1px);
}

.section {
  padding: 56px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 28px;
  align-items: stretch;
  padding-top: 44px;
}

.hero-copy,
.sigil-card,
.story-card,
.schedule-card,
.stream-card,
.character-card,
.faq-list details,
.footer {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
  border-radius: 32px;
}

.eyebrow,
.card-kicker,
.channel,
.badge {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.96;
}

h1,
h2 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 12ch;
}

h3 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.hero-subtitle {
  margin: 14px 0 0;
  color: var(--gold);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-dek,
.section-heading p,
.story-card p,
.schedule-card p,
.stream-card p,
.character-card p,
.faq-list p,
.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.76;
}

.hero-dek {
  margin-top: 24px;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: #12161f;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 0;
}

.hero-stats div {
  margin: 0;
}

.stat-card {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(132, 149, 204, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.stat-card dt {
  color: var(--teal);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stat-card dd {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.hero-visual {
  display: flex;
}

.sigil-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 100%;
  padding: 26px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 26%, rgba(229, 193, 109, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 55%),
    linear-gradient(180deg, #101424 0%, #0b0f19 100%);
}

.sigil-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

.sigil-grid span {
  position: absolute;
  border: 1px solid rgba(124, 144, 199, 0.14);
  border-radius: 24px;
}

.sigil-grid span:nth-child(1) {
  inset: 22px;
}

.sigil-grid span:nth-child(2) {
  inset: 72px 40px 180px;
}

.sigil-grid span:nth-child(3) {
  inset: 124px 82px 232px;
}

.sigil-grid span:nth-child(4) {
  inset: auto 26px 26px auto;
  width: 110px;
  height: 110px;
  border-radius: 999px;
}

.sigil-mark {
  position: absolute;
  top: 38px;
  left: 50%;
  width: min(74%, 380px);
  transform: translateX(-50%);
  filter: drop-shadow(0 28px 54px rgba(0, 0, 0, 0.38));
}

.sigil-copy {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(124, 144, 199, 0.16);
  background: rgba(8, 11, 20, 0.72);
}

.sigil-title {
  margin: 0 0 10px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.65rem;
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.story-grid,
.schedule-grid,
.stream-grid,
.character-grid {
  display: grid;
  gap: 18px;
}

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card,
.schedule-card,
.stream-card,
.character-card {
  padding: 24px;
  border-radius: var(--radius);
}

.credit-list,
.service-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
  line-height: 1.72;
}

.schedule-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stream-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.service-list.columns {
  columns: 2;
  column-gap: 28px;
}

.character-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.character-card {
  position: relative;
  overflow: hidden;
}

.character-card::before {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 148px;
  height: 148px;
  border: 1px solid rgba(229, 193, 109, 0.18);
  border-radius: 999px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(229, 193, 109, 0.24);
  background: rgba(229, 193, 109, 0.05);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 22px 24px;
  border-radius: 24px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.15rem;
  color: var(--text);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] summary {
  margin-bottom: 14px;
  color: var(--gold);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 32px;
  margin-top: 56px;
  padding: 28px;
  border-radius: 32px;
}

.footer-copy {
  max-width: 48ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(132, 149, 204, 0.22);
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease;
}

.footer-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 193, 109, 0.45);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topbar {
    border-radius: 28px;
  }

  .hero,
  .story-grid,
  .schedule-grid,
  .stream-grid,
  .character-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(1160px, calc(100vw - 20px));
  }

  .hero-copy,
  .sigil-card {
    min-height: auto;
  }

  .sigil-mark {
    position: relative;
    top: auto;
    left: auto;
    width: min(78%, 340px);
    margin: 8px auto 22px;
    transform: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    backdrop-filter: none;
    background: rgba(7, 10, 18, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  }

  .brand {
    width: min(100%, 320px);
  }

  .nav {
    justify-content: flex-start;
  }

  .section {
    padding-top: 46px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy,
  .story-card,
  .schedule-card,
  .stream-card,
  .character-card,
  .faq-list details,
  .footer {
    padding: 22px;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .service-list.columns {
    columns: 1;
  }

  .sigil-mark {
    filter: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
