:root {
  --pink: #ec2fb0;
  --neon: #9b3ce0;
  --purple: #7a1fd6;
  --blue: #6a2fe0;
  --gradient: linear-gradient(90deg, var(--pink) 0%, var(--purple) 100%);
  --glow: 0 0 24px rgba(155, 60, 224, 0.45);
  --bg: #101010;
  --bg-soft: #1a1a1a;
  --text: #f5f5f5;
  --text-dim: #a8a8a8;
  --border: #333333;
  --header-h: 96px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Lenis handles smooth scrolling; native smooth-scroll is disabled to avoid double-easing */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Inter", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.wordmark {
  font-family: "Archivo Black", "Noto Sans JP", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 56px;
  transition: background 0.4s ease;
}

.site-header.scrolled {
  background: rgba(16, 16, 16, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  color: var(--text);
}

.logo img {
  height: 34px;
  width: auto;
}

.logo-full {
  height: 30px !important;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--neon);
}

.btn-contact {
  background: var(--gradient);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: 700;
  transition: box-shadow 0.3s ease;
}

.btn-contact:hover {
  box-shadow: var(--glow);
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }

.nav-toggle.open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ---------- Page header spacer ---------- */
.page-content {
  padding-top: var(--header-h);
}

/* ---------- Section eyebrow (shared) ---------- */
.section-eyebrow {
  color: var(--neon);
  font-size: 14px;
  letter-spacing: 0.3em;
  font-family: "Archivo Black", sans-serif;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.section-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: var(--glow);
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}

.section-eyebrow.in-view::before {
  transform: scale(1);
}

.section-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gradient);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.section-eyebrow.in-view::after {
  transform: scaleX(1);
}

/* ---------- Page title band (interior pages) ---------- */
.page-title {
  padding: 80px 0 40px;
  text-align: center;
}

.page-title h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 0.05em;
}

.page-title p {
  margin-top: 16px;
  color: var(--text-dim);
}

/* ---------- About ---------- */
.about-section {
  padding: 60px 0 120px;
}

.about-heading {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.5;
  margin-bottom: 32px;
}

.about-desc {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 640px;
  margin-bottom: 60px;
}

.about-wordmark-img {
  width: 100%;
  max-width: 720px;
  margin: 40px auto 100px;
  opacity: 0.25;
}

.rank-system {
  margin-bottom: 120px;
}

/* ---------- Rank pyramid diagram ---------- */
.rank-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 48px auto 0;
  filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.35));
}

.rank-tier {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 20px;
  font-family: "Archivo Black", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: filter 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.rank-tier:hover {
  filter: brightness(1.2) saturate(1.2);
  transform: scale(1.03);
}

.tier-top {
  width: 250px;
  height: 216px;
  background: linear-gradient(to bottom, #ff00ff, #aa0088);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  z-index: 2;
  animation: pyramid-float-a 4s infinite ease-in-out;
}

.tier-top .label {
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.tier-bottom {
  width: 500px;
  height: 216px;
  background: linear-gradient(to bottom, #0044ff, #001166);
  clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
  z-index: 1;
  animation: pyramid-float-b 4.5s infinite ease-in-out;
}

.tier-bottom .label {
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-bottom: 10px;
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 15px solid #fff;
  filter: drop-shadow(0 0 8px #0044ff);
  animation: arrow-shift 1.5s infinite;
}

@keyframes pyramid-float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pyramid-float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes arrow-shift {
  0% { transform: translateY(10px); opacity: 0; }
  50% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-10px); opacity: 0; }
}

@media (max-width: 540px) {
  .tier-top { width: 150px; height: 130px; }
  .tier-bottom { width: 300px; height: 130px; }
  .tier-top .label { font-size: 0.8rem; }
  .tier-bottom .label { font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tier-top, .tier-bottom, .arrow-up { animation: none; }
}

.rank-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.rank-card {
  border-radius: 16px;
  padding: 32px;
  color: #fff;
}

.rank-card.hi-g {
  background: linear-gradient(135deg, #e0219f, #7a1fc9);
  box-shadow: var(--glow);
}

.rank-card.new-g {
  background: linear-gradient(135deg, #7a1fd6, #4a1fc9);
}

.rank-card .tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 12px;
}

.rank-card h4 {
  font-family: "Archivo Black", sans-serif;
  font-size: 22px;
  margin-bottom: 16px;
}

.rank-card ul {
  font-size: 13px;
  line-height: 2;
  opacity: 0.95;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.sponsor-card {
  border: 1px dashed var(--neon);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.sponsor-card:hover {
  box-shadow: var(--glow);
}

.stat-card {
  transition: box-shadow 0.3s ease;
}

.stat-card:hover {
  box-shadow: var(--glow);
}

.sponsor-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  color: #fff;
}

.sponsor-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sponsor-card p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Streamer ---------- */
.streamer-section {
  padding: 40px 0 120px;
}

.member-group-title {
  font-family: "Archivo Black", sans-serif;
  font-size: 18px;
  margin: 48px 0 24px;
  color: var(--neon);
}

.hi-g-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.hi-g-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
    var(--gradient) border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hi-g-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
}

.hi-g-card:hover .card-img {
  transform: scale(1.06);
}

.hi-g-card .card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hi-g-card .rank-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-family: "Archivo Black", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 5px 16px;
  border-radius: 999px;
}

.hi-g-card .card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 22px 22px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
}

.hi-g-card .name {
  font-family: "Archivo Black", sans-serif;
  font-size: 19px;
  color: #fff;
  margin-bottom: 14px;
}

.hi-g-card .sns {
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.hi-g-card .sns a {
  display: inline-flex;
  transition: color 0.2s, transform 0.2s;
}

.hi-g-card .sns a:hover {
  color: var(--neon);
  transform: translateY(-2px);
}

.hi-g-card .sns svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.new-g-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px 16px;
}

.new-g-card {
  text-align: center;
}

.new-g-card img {
  width: 84px;
  height: 84px;
  margin: 0 auto 10px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  transition: box-shadow 0.2s;
}

.new-g-card a:hover img {
  box-shadow: 0 0 0 3px var(--neon);
}

.new-g-card .name {
  font-size: 12px;
  margin-bottom: 6px;
}

.new-g-card .sns {
  display: flex;
  justify-content: center;
  color: var(--text-dim);
}

.new-g-card .sns svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ---------- News ---------- */
.news-section {
  padding: 40px 0 120px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.news-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 40px;
}

.news-date {
  color: var(--neon);
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.news-item h3 {
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.news-item p {
  color: var(--text-dim);
  font-size: 14px;
  overflow-wrap: anywhere;
  margin-bottom: 20px;
}

.news-subhead {
  font-family: "Archivo Black", sans-serif;
  font-size: 15px;
  color: var(--neon);
  margin: 28px 0 12px;
}

/* ---------- Ad partner ---------- */
.ad-partner-section {
  padding: 40px 0 140px;
}

.ad-partner-lead {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.9;
}

.ad-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 100px;
}

.ad-partner-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ad-partner-card:hover {
  border-color: var(--neon);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.ad-partner-card h3 {
  font-family: "Archivo Black", sans-serif;
  font-size: 17px;
  margin-bottom: 14px;
  color: var(--neon);
}

.ad-partner-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.8;
}

.ad-partner-cta {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 32px;
  border-radius: 20px;
  background: linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
}

.ad-partner-cta h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 16px;
}

.ad-partner-cta p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 32px;
}

@media (max-width: 840px) {
  .ad-partner-grid { grid-template-columns: 1fr; }
}

/* ---------- Floating ad banner ---------- */
.floating-ad-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 230px;
  height: 230px;
  z-index: 60;
  display: block;
  animation: floating-banner-bob 3.5s ease-in-out infinite;
  transition: transform 0.25s ease;
}

.floating-ad-banner:hover {
  transform: scale(1.08);
}

.floating-ad-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(155, 60, 224, 0.5));
}

@keyframes floating-banner-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 540px) {
  .floating-ad-banner {
    width: 140px;
    height: 140px;
    right: 0;
    bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-ad-banner { animation: none; }
}

/* ---------- Company ---------- */
.company-section {
  padding: 40px 0 160px;
}

.company-table {
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.company-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.company-label {
  font-family: "Archivo Black", sans-serif;
  font-size: 13px;
  color: var(--neon);
  letter-spacing: 0.05em;
}

.company-value {
  font-size: 15px;
  line-height: 1.8;
}

.company-value a {
  color: var(--text);
  transition: color 0.2s;
}

.company-value a:hover {
  color: var(--neon);
}

@media (max-width: 540px) {
  .company-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }
}

/* ---------- Contact ---------- */
.contact-section {
  padding: 40px 0 120px;
}

.contact-form {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-field label {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 700;
}

.tag-required,
.tag-optional {
  display: inline-block;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 8px;
  font-weight: 700;
  vertical-align: middle;
}

.tag-required {
  background: var(--neon);
  color: #fff;
}

.tag-optional {
  background: #444;
  color: #ddd;
}

.form-field input:not([type="radio"]):not([type="checkbox"]),
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: none;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-family: inherit;
}

.form-field input[type="radio"],
.form-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--neon);
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  font-weight: 400;
}

.privacy-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.btn-submit {
  background: linear-gradient(90deg, #7a2fe0, #4a2fe0);
  color: #fff;
  border: none;
  padding: 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-submit:hover {
  opacity: 0.85;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gradient);
  padding: 80px 56px 40px;
}

.footer-logo {
  margin-bottom: 40px;
}

.footer-logo-img {
  width: min(100%, 320px);
  height: auto;
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  font-size: 14px;
}

.footer-sns {
  display: flex;
  gap: 18px;
  margin-bottom: 40px;
}

.footer-sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.footer-sns a:hover {
  color: var(--neon);
  border-color: var(--neon);
  box-shadow: var(--glow);
}

.footer-sns svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-meta {
  font-size: 12px;
  opacity: 0.85;
}

.footer-meta a {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .container { padding: 0 32px; }
  .site-header { padding: 0 32px; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .new-g-grid { grid-template-columns: repeat(4, 1fr); }
  .hi-g-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 840px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .rank-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .container { padding: 0 24px; }
  .site-header { padding: 0 24px; height: 80px; }
  :root { --header-h: 80px; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .new-g-grid { grid-template-columns: repeat(3, 1fr); }
  .hi-g-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 60px 24px 32px; }
}

/* ---------- Mobile nav drawer ---------- */
@media (max-width: 840px) {
  .main-nav.open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 32px;
    gap: 24px;
    z-index: 99;
  }
}

/* ---------- Noise overlay ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.in-view .reveal-child {
  transition-delay: calc(var(--stagger-i, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Marquee ticker ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: var(--bg-soft);
}

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

.marquee-item {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: "DotGothic16", "Archivo Black", sans-serif;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap;
  padding: 0 24px;
}

.marquee-item .dot {
  color: var(--neon);
  font-size: 14px;
  animation: dot-blink 1.4s ease-in-out infinite;
}

.marquee-item:nth-child(2n) .dot {
  animation-delay: 0.7s;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Opening loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.loader.loader-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.loader-marquee {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.loader-marquee .marquee-track {
  animation-duration: 14s;
}

.loader-logo {
  width: min(60vw, 220px);
  opacity: 0;
  transform: scale(0.9);
  animation: loader-logo-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes loader-logo-in {
  to { opacity: 1; transform: scale(1); }
}

.loader-count {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(48px, 10vw, 96px);
  color: var(--text);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.loader-count::after {
  content: "%";
  font-size: 0.4em;
  margin-left: 4px;
  color: var(--neon);
}

.loader-bottom-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.loader-bottom-marquee .marquee-track {
  animation-duration: 18s;
  animation-direction: reverse;
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
}

/* ==========================================================
   TOP page (index.html only)
   ========================================================== */

.top-page a.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--neon);
  font-size: 14px;
  font-weight: 700;
  margin-top: 32px;
  transition: color 0.2s, gap 0.2s;
}

.top-page a.text-link:hover {
  color: var(--purple);
  gap: 10px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/hero_bg_swirl.webp") no-repeat 78% 42% / 90% auto;
  opacity: 0.55;
  filter: blur(6px) saturate(1.2);
  animation: hero-wash-pulse 6s ease-in-out infinite;
}

@keyframes hero-wash-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.04); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(155, 60, 224, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 60, 224, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
}

/* Floating dot particles: "点は自由" made literal */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  bottom: -20px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: var(--glow);
  opacity: 0;
  animation: particle-float linear infinite;
}

.hero-particles span:nth-child(1) { left: 8%; width: 4px; height: 4px; animation-duration: 9s; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 18%; width: 6px; height: 6px; animation-duration: 12s; animation-delay: 1.5s; }
.hero-particles span:nth-child(3) { left: 27%; width: 3px; height: 3px; animation-duration: 8s; animation-delay: 3s; }
.hero-particles span:nth-child(4) { left: 39%; width: 5px; height: 5px; animation-duration: 14s; animation-delay: 0.8s; }
.hero-particles span:nth-child(5) { left: 51%; width: 4px; height: 4px; animation-duration: 10s; animation-delay: 4.5s; }
.hero-particles span:nth-child(6) { left: 63%; width: 7px; height: 7px; animation-duration: 13s; animation-delay: 2.2s; }
.hero-particles span:nth-child(7) { left: 72%; width: 3px; height: 3px; animation-duration: 9.5s; animation-delay: 5.5s; }
.hero-particles span:nth-child(8) { left: 81%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: 1s; }
.hero-particles span:nth-child(9) { left: 90%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: 3.8s; }
.hero-particles span:nth-child(10) { left: 95%; width: 6px; height: 6px; animation-duration: 10.5s; animation-delay: 6s; }

@keyframes particle-float {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-620px) scale(1.1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-particles span { animation: none; opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 160px 56px 120px;
  max-width: 900px;
}

.hero-tag {
  display: inline-block;
  border: 1px solid var(--neon);
  color: var(--neon);
  font-family: "Archivo Black", sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero-copy {
  position: relative;
  font-family: "Archivo Black", "Noto Sans JP", sans-serif;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.3;
}

.glitch-main {
  position: relative;
  z-index: 2;
}

.glitch-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  color: var(--pink);
  opacity: 0;
  overflow: hidden;
}

.glitch-layer:nth-child(1) { color: var(--pink); }
.glitch-layer:nth-child(2) { color: var(--purple); }

@keyframes glitch-anim-1 {
  0%, 92%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  93% { opacity: 0.8; transform: translate(-6px, 2px); clip-path: inset(10% 0 60% 0); }
  95% { opacity: 0.8; transform: translate(4px, -2px); clip-path: inset(60% 0 10% 0); }
  97% { opacity: 0; }
}

@keyframes glitch-anim-2 {
  0%, 92%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  93% { opacity: 0.8; transform: translate(6px, -2px); clip-path: inset(40% 0 30% 0); }
  95% { opacity: 0.8; transform: translate(-4px, 2px); clip-path: inset(20% 0 55% 0); }
  97% { opacity: 0; }
}

.glitch-layer:nth-child(1) { animation: glitch-anim-1 7s infinite; }
.glitch-layer:nth-child(2) { animation: glitch-anim-2 7s infinite; }

.hero-sub {
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 0.05em;
}

.dot-line-anim {
  display: flex;
  align-items: center;
  margin-top: 36px;
  height: 12px;
}

.dla-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: var(--glow);
  flex-shrink: 0;
  transform: scale(0);
  animation: dla-dot-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

.dla-line {
  height: 3px;
  width: 0;
  border-radius: 2px;
  background: var(--gradient);
  box-shadow: var(--glow);
  animation: dla-line-grow 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

@keyframes dla-dot-pop {
  to { transform: scale(1); }
}

@keyframes dla-line-grow {
  to { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .dla-dot, .dla-line { animation: none; transform: none; width: 140px; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.scroll-indicator {
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 3;
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 540px) {
  .hero-inner { padding: 120px 24px 80px; }
  .hero-bg-wash { background-position: 90% 30%; background-size: 160% auto; }
}

/* ---------- Scoreboard ---------- */
.scoreboard {
  padding: 100px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.scoreboard-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
}

.score-block {
  padding: 0 28px;
  border-left: 1px solid var(--border);
}

.score-block:first-child {
  border-left: none;
  padding-left: 0;
}

.score-label {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.score-value {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  animation: score-glow-pulse 3.4s ease-in-out infinite;
}

@keyframes score-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(155, 60, 224, 0)); }
  50% { filter: drop-shadow(0 0 14px rgba(155, 60, 224, 0.55)); }
}

@media (prefers-reduced-motion: reduce) {
  .score-value { animation: none; }
}

.score-value span {
  font-size: 0.4em;
  margin-left: 4px;
}

.score-value-text {
  font-size: clamp(22px, 3vw, 30px);
}

.score-list {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.8;
}

@media (max-width: 840px) {
  .scoreboard-row { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .score-block:nth-child(2) { border-left: 1px solid var(--border); }
  .score-block:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 540px) {
  .scoreboard { padding: 70px 0; }
  .scoreboard-row { grid-template-columns: 1fr; row-gap: 32px; }
  .score-block,
  .score-block:nth-child(2),
  .score-block:nth-child(3) { border-left: none; padding-left: 0; }
}

/* ---------- Featured Hi-G streamers ---------- */
.featured-streamers {
  padding: 120px 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.featured-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.featured-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-tile:hover img {
  transform: scale(1.08);
}

.featured-tile-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.featured-tag {
  align-self: flex-start;
  background: var(--gradient);
  color: #fff;
  font-family: "Archivo Black", sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
}

.featured-name {
  font-family: "Archivo Black", sans-serif;
  font-size: 18px;
  color: #fff;
}

@media (max-width: 840px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-tile:nth-child(3) { grid-column: span 2; }
}

@media (max-width: 540px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-tile:nth-child(3) { grid-column: span 1; }
}

/* ---------- Split teaser (About) ---------- */
.split-teaser {
  padding: 40px 0 120px;
}

.split-teaser-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.split-teaser-text h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.5;
  margin: 8px 0 20px;
}

.split-teaser-text p {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 480px;
}

.split-teaser-visual {
  position: relative;
  padding: 60px 20px;
  border-left: 2px solid var(--neon);
}

.split-teaser-visual img {
  opacity: 0.18;
}

.parallax-slow {
  will-change: transform;
  transition: transform 0.1s linear;
}

@media (max-width: 840px) {
  .split-teaser-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split-teaser-visual {
    border-left: none;
    border-top: 2px solid var(--neon);
    padding: 32px 0 0;
    order: -1;
  }
}

/* ---------- News teaser ---------- */
.news-teaser {
  padding: 0 0 120px;
}

.news-teaser-list {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.news-teaser-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.news-teaser-item:hover {
  color: var(--neon);
}

.news-teaser-date {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-dim);
  width: 90px;
}

.news-teaser-title {
  font-size: 15px;
}

@media (max-width: 540px) {
  .news-teaser-item { flex-direction: column; gap: 6px; }
  .news-teaser-date { width: auto; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--gradient);
  padding: 100px 0;
}

.cta-banner-inner {
  text-align: center;
}

.cta-banner h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-bottom: 36px;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--purple);
}

.cta-banner .btn-primary:hover {
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.5);
}

/* ---------- Wipe reveal (curtain effect on an inner wrapper, never on the observed element itself) ---------- */
.wipe-target {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view .wipe-target {
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  .wipe-target {
    clip-path: none;
  }
}

/* ---------- Cursor spotlight ---------- */
.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  margin-left: -280px;
  margin-top: -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 60, 224, 0.18) 0%, rgba(236, 47, 176, 0.08) 45%, transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.cursor-spotlight.active {
  opacity: 1;
}

@media (hover: none) {
  .cursor-spotlight { display: none; }
}

/* ---------- Magnetic buttons ---------- */
.magnetic {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.2s, color 0.2s;
}
