/* ============================================
   オレバトラー LP
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #080b16;
  --bg-primary: #0c0f1e;
  --bg-secondary: #111528;
  --bg-card: #161a32;
  --text-primary: #f0f0f5;
  --text-secondary: #8892b0;
  --accent: #e8943a;
  --accent-hot: #ff5533;
  --accent-gradient: linear-gradient(135deg, #e8943a 0%, #ff5533 100%);
  --gold: #c8a84e;
  --gold-gradient: linear-gradient(135deg, #e8c84a 0%, #c8943a 100%);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(232, 148, 58, 0.2);
  --glow-accent: rgba(232, 148, 58, 0.3);
  --glow-gold: rgba(200, 168, 78, 0.35);
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-display: "Dela Gothic One", "Hiragino Kaku Gothic ProN", sans-serif;
  --max-w: 1080px;
  --radius: 16px;
  --radius-xl: 28px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.85; }

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

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* --- Section Titles --- */
.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 56px;
  overflow: hidden;
}

.title-text {
  background: linear-gradient(
    90deg,
    #e8943a 0%, #ff5533 35%,
    #fff 48%, #fff 52%,
    #e8943a 65%, #ff5533 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 100% 0; }
  50%      { background-position: 0% 0; }
}

/* ========================
   HEADER
   ======================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(8, 11, 22, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  width: 140px;
  height: auto;
}

.header-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.header-nav a {
  font-family: var(--font-display);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.3s;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s;
}

.header-nav a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.header-nav a:hover::after {
  width: 100%;
}

/* ========================
   HERO
   ======================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* --- Video Background --- */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(8, 11, 22, 0.35) 0%,
      rgba(8, 11, 22, 0.50) 35%,
      rgba(8, 11, 22, 0.78) 70%,
      var(--bg-deep) 100%
    ),
    radial-gradient(ellipse at 50% 30%, rgba(232, 148, 58, 0.08) 0%, transparent 50%);
}

/* --- Floating Embers --- */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  display: block;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: ember 8s ease-in-out infinite;
  box-shadow: 0 0 6px 1px rgba(232, 148, 58, 0.4);
}

.hero-particles span:nth-child(1)  { left:  8%; animation-delay: 0s;    animation-duration: 7s;   }
.hero-particles span:nth-child(2)  { left: 22%; animation-delay: 1.5s;  animation-duration: 9s;   }
.hero-particles span:nth-child(3)  { left: 38%; animation-delay: 0.8s;  animation-duration: 6s;   width: 2px; height: 2px; }
.hero-particles span:nth-child(4)  { left: 52%; animation-delay: 2.5s;  animation-duration: 8s;   }
.hero-particles span:nth-child(5)  { left: 68%; animation-delay: 0.3s;  animation-duration: 10s;  width: 4px; height: 4px; }
.hero-particles span:nth-child(6)  { left: 82%; animation-delay: 1.8s;  animation-duration: 7.5s; }
.hero-particles span:nth-child(7)  { left: 14%; animation-delay: 3s;    animation-duration: 8.5s; width: 2px; height: 2px; }
.hero-particles span:nth-child(8)  { left: 33%; animation-delay: 4s;    animation-duration: 6.5s; }
.hero-particles span:nth-child(9)  { left: 58%; animation-delay: 2s;    animation-duration: 9.5s; width: 4px; height: 4px; }
.hero-particles span:nth-child(10) { left: 75%; animation-delay: 3.5s;  animation-duration: 7s;   }
.hero-particles span:nth-child(11) { left: 90%; animation-delay: 1s;    animation-duration: 8s;   width: 2px; height: 2px; }
.hero-particles span:nth-child(12) { left: 46%; animation-delay: 5s;    animation-duration: 6s;   }

@keyframes ember {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  5%   { opacity: 0.7; }
  50%  { opacity: 0.35; }
  95%  { opacity: 0; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

/* --- Hero Content --- */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding: 120px 24px 100px;
}

.hero-logo {
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 40px rgba(232, 148, 58, 0.35));
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  letter-spacing: 0.12em;
}

.hero-catchcopy {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 44px;
  line-height: 2.2;
}

.hero-catchcopy strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* --- CTA Button --- */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--gold-gradient);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 28px var(--glow-gold);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px var(--glow-gold);
  opacity: 1;
}

.btn-primary svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator span {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  color: var(--text-secondary);
  opacity: 0.5;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(232, 148, 58, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ========================
   ABOUT
   ======================== */
.section-about {
  background: var(--bg-primary);
}

.section-about::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg-primary);
  transform: skewY(-1.5deg);
  z-index: 1;
}

.about-text {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 2.2;
  position: relative;
  z-index: 2;
}

.about-text strong {
  color: var(--accent);
  font-weight: 700;
}

/* ========================
   HOW TO PLAY
   ======================== */
.section-howto {
  background: var(--bg-deep);
}

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

.step {
  text-align: center;
  padding: 44px 24px 36px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
  position: relative;
}

.step:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 30px rgba(232, 148, 58, 0.06);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-gradient);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px var(--glow-accent);
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ========================
   SCREENSHOTS
   ======================== */
.section-screenshots {
  background: var(--bg-secondary);
  padding-bottom: 120px;
  overflow: hidden;
}

.gallery {
  display: flex;
  gap: 28px;
  justify-content: center;
  padding: 0 24px;
  perspective: 1200px;
}

.phone-frame {
  flex: 0 0 230px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
  border: 3px solid rgba(232, 148, 58, 0.12);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(232, 148, 58, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s, border-color 0.5s;
  position: relative;
}

.phone-frame:nth-child(1) { transform: rotate(-3deg) translateY(20px); }
.phone-frame:nth-child(2) { transform: rotate(2deg) translateY(-10px); }
.phone-frame:nth-child(3) { transform: rotate(-2deg) translateY(15px); }
.phone-frame:nth-child(4) { transform: rotate(3deg) translateY(-5px); }

.phone-frame:hover {
  transform: rotate(0deg) translateY(-12px) scale(1.05) !important;
  border-color: rgba(232, 148, 58, 0.4);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(232, 148, 58, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.phone-frame img {
  width: 100%;
  display: block;
}

.phone-label {
  text-align: center;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.7);
  letter-spacing: 0.12em;
}

/* ========================
   FEATURES
   ======================== */
.section-features {
  background: var(--bg-deep);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 40px 28px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-icon svg {
  width: 36px;
  height: 36px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ========================
   CTA SECTION
   ======================== */
.section-cta {
  text-align: center;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 50%, rgba(232, 148, 58, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.section-cta .section-title {
  margin-bottom: 16px;
}

.cta-tagline {
  color: var(--text-secondary);
  margin-bottom: 44px;
  font-size: 1.05rem;
  font-weight: 500;
}

/* ========================
   FOOTER
   ======================== */
.footer {
  padding: 52px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  width: 150px;
  height: auto;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: 32px;
  opacity: 0.6;
}

/* ========================
   SCROLL ANIMATIONS
   ======================== */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-animate="fade-down"] {
  transform: translateY(-32px);
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* btn-disabled should stay at 0.5 opacity even when in-view */
.btn-disabled.in-view,
[data-animate].in-view .btn-disabled {
  opacity: 0.5;
}

[data-delay="1"] { transition-delay: 0.15s; }
[data-delay="2"] { transition-delay: 0.3s; }
[data-delay="3"] { transition-delay: 0.45s; }
[data-delay="4"] { transition-delay: 0.6s; }

/* ========================
   LEGAL PAGES
   ======================== */
.legal-page {
  padding-top: 100px;
  padding-bottom: 80px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-page .legal-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 12px;
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}

.legal-page a {
  text-decoration: underline;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 36px;
  }

  .hero-content {
    padding: 120px 24px 80px;
  }

  .hero-logo {
    max-width: 420px;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .hero-catchcopy {
    font-size: 0.95rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step {
    padding: 32px 20px;
  }

  .gallery {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
  }

  .phone-frame {
    flex: 0 0 200px;
    scroll-snap-align: center;
  }

  .phone-frame:nth-child(1),
  .phone-frame:nth-child(2),
  .phone-frame:nth-child(3),
  .phone-frame:nth-child(4) {
    transform: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 28px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .header-nav {
    gap: 14px;
  }

  .header-nav a {
    font-size: 0.8rem;
  }

  .header-logo img {
    width: 110px;
  }

  .section-about::before {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  .section-screenshots {
    padding-bottom: 80px;
  }

  .legal-page h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    max-width: 340px;
  }

  .btn-primary {
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .header-nav {
    gap: 8px;
  }

  .header-nav a {
    font-size: 0.75rem;
  }

  .header-logo img {
    width: 90px;
  }

  .phone-frame {
    flex: 0 0 180px;
  }
}

/* Gallery scrollbar */
.gallery::-webkit-scrollbar { height: 4px; }
.gallery::-webkit-scrollbar-track { background: transparent; }
.gallery::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 2px; }
