html {
  scroll-behavior: smooth;
}

body.page-index {
  --brand: #0f172a;
  --accent: #3b82f6;
  --soft: #f1f5f9;
  font-family: 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.aos-in {
  opacity: 1;
  transform: translateY(0);
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-card {
  min-width: 100%;
}

#rococoro-logo-main .word {
  font: 800 86px/1.1 'Inter', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial;
  letter-spacing: 1.5px;
}

body.page-motion {
  --bg: #010313;
  --fg: #e2e8f0;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --glass: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(148, 163, 184, 0.15);
  font-family: 'Space Grotesk', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.gradient-grid {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.25), transparent 45%), radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.25), transparent 35%), radial-gradient(circle at 50% 80%, rgba(14, 165, 233, 0.3), transparent 40%);
  pointer-events: none;
  z-index: -2;
  animation: gridPulse 12s ease-in-out infinite alternate;
}

@keyframes gridPulse {
  from {
    filter: blur(0px);
    opacity: 0.75;
  }
  to {
    filter: blur(4px);
    opacity: 0.45;
  }
}

.noise-mask {
  position: fixed;
  inset: 0;
  background-image: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}

body.page-motion header {
  backdrop-filter: blur(24px);
  background: rgba(2, 6, 23, 0.8);
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: 0.35s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 140px 140px;
  animation: heroGrid 16s linear infinite;
  pointer-events: none;
}

@keyframes heroGrid {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-140px);
  }
}

.orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 9999px;
  filter: blur(40px);
  opacity: 0.65;
  animation: float 18s ease-in-out infinite;
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.85), rgba(59, 130, 246, 0.6));
}

.orb-2 {
  width: 260px;
  height: 260px;
  animation-duration: 22s;
  animation-delay: -4s;
  background: linear-gradient(120deg, rgba(248, 250, 252, 0.6), rgba(14, 165, 233, 0.4));
}

.orb-3 {
  width: 180px;
  height: 180px;
  animation-duration: 14s;
  animation-delay: -2s;
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.65), rgba(14, 165, 233, 0.4));
}

@keyframes float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(40px, -60px, 0) scale(1.1);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 200px;
  background: url('data:image/svg+xml,%3Csvg width="1200" height="200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200" preserveAspectRatio="none"%3E%3Cpath d="M0,100 C200,50 400,150 600,100 C800,50 1000,150 1200,100 L1200,200 L0,200 Z" fill="%23011323"/%3E%3C/svg%3E');
  background-size: 1200px 200px;
  animation: waveMove 14s linear infinite;
  opacity: 0.85;
}

@keyframes waveMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -1200px 0;
  }
}

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.65);
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  background: rgba(8, 24, 61, 0.6);
}

.marquee-track {
  display: inline-flex;
  gap: 3rem;
  padding: 1rem 2rem;
  animation: marquee 22s linear infinite;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

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

.fade {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

.tilt-card {
  perspective: 1000px;
}

.tilt-card > div {
  transition: transform 0.25s ease;
  transform-style: preserve-3d;
}

.tilt-card:hover > div {
  transform: translateY(-8px);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0.7));
}

.timeline li {
  position: relative;
  padding-left: 2.5rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.15);
}

.news-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0.14, 0.15, 1);
}

.news-card {
  min-width: 100%;
}

@media (min-width: 768px) {
  .news-card {
    min-width: 50%;
  }
}
