/* ============================================
   Scroll Animations
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* 遅延バリアント */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ============================================
   Header Scroll State
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Card Hover
   ============================================ */
.card-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ============================================
   Scroll Indicator Bounce
   ============================================ */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

.scroll-indicator {
  animation: bounce 1.5s ease-in-out infinite;
}

/* ============================================
   Hero Fade In
   ============================================ */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-label  { animation: heroFadeIn 0.8s ease 0.2s both; }
.hero-title  { animation: heroFadeIn 0.8s ease 0.4s both; }
.hero-title-ja { animation: heroFadeIn 0.8s ease 0.6s both; }
.hero-cta    { animation: heroFadeIn 0.8s ease 0.8s both; }

/* ============================================
   Sticky Mobile CTA
   ============================================ */
.sticky-cta-mobile {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 999;
  display: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(26, 107, 90, 0.4);
}

.sticky-cta-mobile.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .sticky-cta-mobile {
    display: block;
  }
}

/* ============================================
   Pulse Animation (for CTA buttons)
   ============================================ */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212, 168, 87, 0.4); }
  70%  { box-shadow: 0 0 0 12px rgba(212, 168, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 168, 87, 0); }
}

.btn-accent {
  animation: pulse 2.5s ease-in-out infinite;
}

.btn-accent:hover {
  animation: none;
}
