/**
 * main.css — Pattern C asuzac
 * ページ固有スタイル・SP 対応・fine-tuning
 */

/* ================================================================
   SP Hero 調整
================================================================ */

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-bottom: 300px;
  }

  .hero__h1 {
    max-width: 100%;
  }

  .hero__badge {
    position: static;
    width: 100px;
    margin-top: 20px;
  }

  .hero__collage {
    height: 280px;
  }

  .hero__person {
    bottom: 40px;
  }

  .hero__person--1 { left: 2%;  width: 120px; }
  .hero__person--2 { left: 33%; width: 100px; }
  .hero__person--3 { right: 2%; width: 100px; }

  .hero__illust--1 { display: none; }
  .hero__illust--2 { display: none; }

  .hero__town-back {
    height: 120px;
  }

  .hero__town-front {
    height: 80px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================================================
   SP Hero Message
================================================================ */

@media (max-width: 767px) {
  .hero-message__inner {
    flex-direction: column;
    gap: 20px;
  }

  .hero-message__item::after {
    display: none;
  }
}

/* ================================================================
   About Section — SP
================================================================ */

@media (max-width: 767px) {
  .hotspot-figure {
    display: none;
  }
}

/* ================================================================
   Pricing Section
================================================================ */

.pricing-detail-link {
  display: block;
  text-align: center;
  margin-top: 32px;
  font-size: var(--fz-sm);
  color: var(--cl-main);
  font-weight: var(--fw-bold);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.pricing-detail-link:hover {
  color: var(--cl-cyan);
}

/* ================================================================
   Site header scroll behavior
================================================================ */

@media (max-width: 1023px) {
  .site-header__cta {
    display: none;
  }
}

/* ================================================================
   Float animations for hero decorations (weak)
================================================================ */

.hero-deco-sun {
  animation: sun-float 4s ease-in-out infinite;
}

.hero-deco-bird {
  animation: bird-float 5s ease-in-out infinite;
}

.hero-deco-bird-2 {
  animation: bird-float 6.5s ease-in-out infinite 1.2s;
}

@keyframes sun-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-8px) scale(1.02); }
}

@keyframes bird-float {
  0%, 100% { transform: translate(0, 0); }
  25%       { transform: translate(4px, -6px); }
  50%       { transform: translate(8px, -3px); }
  75%       { transform: translate(3px, -8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-deco-sun,
  .hero-deco-bird,
  .hero-deco-bird-2,
  .hero__badge {
    animation: none;
  }
}

/* ================================================================
   Page top button
================================================================ */

.pagetop {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 800;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cl-main);
  color: var(--cl-white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
  font-size: 20px;
  font-weight: var(--fw-bold);
  text-decoration: none;
}

.pagetop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.pagetop:hover {
  transform: translateY(-4px);
}

/* ================================================================
   Inline link utility
================================================================ */

.inline-link {
  color: var(--cl-main);
  font-weight: var(--fw-bold);
  font-size: var(--fz-sm);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.inline-link:hover {
  color: var(--cl-cyan);
}

/* ================================================================
   Scroll indicator
================================================================ */

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 7;
  pointer-events: none;
}

.scroll-indicator__label {
  font-size: 10px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--cl-ink);
  opacity: 0.6;
}

.scroll-indicator__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cl-main), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator__line {
    animation: none;
  }
}

/* ================================================================
   Print 簡易対応
================================================================ */

@media print {
  .demo-banner,
  .site-header,
  .hamburger,
  .drawer,
  .pagetop,
  .scroll-indicator {
    display: none !important;
  }
}
