/* ============================================
   Design Refinements (Waves, Hero, Interactions)
   ============================================ */

/* 1. Logo H1 Reset */
.logo-text {
  margin: 0;
  /* Reset default h1 margin */
  line-height: 1.2;
}

/* 2. Wave Separator */
.wave-separator {
  line-height: 0;
  width: 100%;
  overflow: hidden;
  margin-bottom: -1px;
  /* Prevent sub-pixel gap */
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: 60px;
  /* Default height */
}

@media (min-width: 768px) {
  .wave-separator svg {
    height: 100px;
  }
}

/* Fix: Footer Background to match Wave */
.footer {
  /* Changed from 135deg to 'to bottom' to ensure top edge is uniform color #5BA3B8 */
  background: linear-gradient(to bottom, #5BA3B8 0%, var(--primary) 40%, #2D5A6A 100%);
}

/* 3. Hero Animation (Floating Bubbles) */
.hero {
  position: relative;
  /* Ensure context */
}

/* Move overlay ABOVE content/logo */
.hero-overlay {
  overflow: hidden;
  z-index: 2;
  background: transparent !important;
  /* Remove dark bg from here */
  pointer-events: none;
  /* Let clicks pass through */
}

/* Re-add dark background BELOW content */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 0;
  /* Logo is z-index: 1 */
  pointer-events: none;
}

.hero-bubble {
  position: absolute;
  position: absolute;
  position: absolute;
  /* Iridescent Soap Bubble Effect - More Transparent Center */
  background: radial-gradient(circle at 30% 30%,
      rgba(255, 255, 255, 0.8) 0%,
      rgba(255, 230, 240, 0.1) 30%,
      rgba(230, 250, 255, 0.1) 60%,
      rgba(255, 255, 255, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  /* Stronger lens effect with inner shadows */
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.1),
    /* Shadow for depth */
    inset 0 0 15px rgba(255, 255, 255, 0.5),
    /* Inner glow */
    inset 2px 2px 5px rgba(255, 255, 255, 0.8);
  /* Sharp inner highlight */
  border-radius: 50%;
  /* Combine vertical float and horizontal sway */
  animation: floatUp 15s infinite linear, sway 3s infinite ease-in-out alternate;
  /* Slight blur for thickness without frosting */
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

.hero-bubble::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 15%;
  width: 25%;
  height: 15%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  transform: rotate(-45deg);
  filter: blur(1px);
}

/* 
   Reduced to 4 bubbles for a sparser, more elegant look.
   Durations increased to 40s-60s range for very slow movement.
   Delays spaced out to prevent clustering.
*/

.hero-bubble:nth-child(1) {
  width: 45px;
  height: 45px;
  left: 15%;
  bottom: -45px;
  animation-duration: 45s, 12s;
  /* Very slow float */
  animation-delay: 0s, 0s;
}

.hero-bubble:nth-child(2) {
  width: 30px;
  height: 30px;
  left: 40%;
  bottom: -30px;
  animation-duration: 35s, 9s;
  animation-delay: 18s, 4s;
  /* Start much later */
}

.hero-bubble:nth-child(3) {
  width: 50px;
  height: 50px;
  left: 65%;
  bottom: -50px;
  animation-duration: 50s, 15s;
  animation-delay: 8s, 2s;
}

.hero-bubble:nth-child(4) {
  width: 35px;
  height: 35px;
  left: 85%;
  bottom: -35px;
  animation-duration: 40s, 11s;
  animation-delay: 25s, 6s;
  /* Start much later */
}

/* Mobile Adjustments for Bubbles */
/* Mobile Adjustments for Bubbles */
@media (max-width: 768px) {

  /* Use explicit sizing because transform: scale is overridden by animation */
  .hero-bubble:nth-child(1) {
    width: 27px;
    height: 27px;
    bottom: -27px;
  }

  .hero-bubble:nth-child(2) {
    width: 18px;
    height: 18px;
    bottom: -18px;
  }

  .hero-bubble:nth-child(3) {
    width: 30px;
    height: 30px;
    bottom: -30px;
  }

  .hero-bubble:nth-child(4) {
    width: 21px;
    height: 21px;
    bottom: -21px;
  }
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.5;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-800px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes sway {
  0% {
    margin-left: -15px;
  }

  100% {
    margin-left: 15px;
  }
}

/* 4. Micro-interactions */

/* Buttons Bounce */
.btn:active {
  transform: scale(0.95);
}

.btn:hover {
  animation: gentleBounce 0.4s ease;
}

@keyframes gentleBounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Route Options Hover */
.route-link svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.route-link:hover svg {
  transform: translateY(-3px) scale(1.1);
}

/* Typography Enhancements - Soft Section Titles */
.section-title {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  /* Center align mostly for the English part */
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.8rem;
  /* Slightly larger */
  margin-bottom: var(--space-xs);
  padding-bottom: 0;
  border-bottom: none;
  /* Remove the hard line */
  text-shadow: 2px 2px 0px rgba(74, 144, 164, 0.1);
  /* Use primary color trace */
}

/* Container for the icon + Japanese text row */
.section-title-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* The English handwritten subtitle - REMOVED */

/* SVG Icon in Title */
.section-title-icon {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--primary);
  /* Same as text color */
}

/* Tighten Notice Spacing */
.notice {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
}

/* Pulse for Important Notice */
.notice-important {
  position: relative;
  overflow: hidden;
}

.notice-important::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.5);
  animation: sheen 3s infinite;
}

@keyframes sheen {

  0%,
  80% {
    transform: translateX(-100%);
    opacity: 0;
  }

  85% {
    opacity: 0.5;
  }

  100% {
    transform: translateX(200%);
    opacity: 0;
  }
}