/* ============================================================
   Front Page — geoAlpine Custom Styles
   ============================================================ */

/* ページタイトル非表示 */
.ga-front-page .entry-header,
.ga-front-page .page-header {
  display: none;
}

/* フルワイド対応 */
.ga-front-page .entry-body > .alignfull {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw;
}

.ga-front-page .main-section {
  padding: 0;
}

.ga-front-page #main {
  max-width: 100%;
  padding: 0;
}

.ga-front-page .entry-body {
  max-width: 100%;
}

/* ============================================================
   Hero — Scroll Indicator
   ============================================================ */
.ga-hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  text-align: center;
  animation: ga-bounce 2s ease infinite;
  letter-spacing: 0.1em;
}

.ga-hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.5);
  margin: 8px auto 0;
}

@keyframes ga-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   Fade-in Animations (on scroll)
   ============================================================ */
.ga-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.ga-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger effect for cards within a row */
.ga-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.ga-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.ga-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.ga-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.ga-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }

.ga-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Counter Animation Placeholder
   ============================================================ */
.ga-stat__number[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Responsive — Front Page Specific
   ============================================================ */
@media (max-width: 767.98px) {
  .ga-front-page .entry-body > .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }

  .ga-hero-scroll {
    display: none;
  }
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ga-fade-up,
  .ga-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ga-hero-scroll {
    animation: none;
  }
}
