/* 基本フォント設定 */
body {
  font-family: 'Inter', '游ゴシック Medium', 'Yu Gothic Medium', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', sans-serif;
}

/* =================================================================
テーマカラー設定
================================================================== */
:root {
  --theme-color-base: #ff0265;
  --theme-color-dark: #c5004f;
  --theme-color-darker: #a30042;
  --theme-color-medium: #ff5c9d;
  --theme-color-light: #ff85b5;
  --theme-color-lighter: #ffcadf;
  --theme-color-lightest: #fff5f7;
}

/* =================================================================
アニメーション用スタイル
================================================================== */

/* フローティングアニメーションのキーフレーム */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* 背景の円のアニメーション */
@keyframes move-blob {
  0% {
    transform: scale(1) translate(0px, 0px);
  }

  33% {
    transform: scale(1.1) translate(30px, -50px);
  }

  66% {
    transform: scale(0.9) translate(-20px, 20px);
  }

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

/* お問い合わせセクションの背景グラデーションアニメーション */
@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.animated-gradient {
  background: linear-gradient(-45deg, var(--theme-color-dark), var(--theme-color-base), var(--theme-color-medium), var(--theme-color-light));
  background-size: 400% 400%;
  animation: gradient-animation 15s ease infinite;
}

/* アニメーションクラス */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-blob {
  animation: move-blob 20s ease-in-out infinite alternate;
}

/* スクロール連動アニメーションの準備 */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: var(--scroll-anim-delay, 0s);
}

.fade-in-up {
  transform: translateY(30px);
}

.fade-in-left {
  transform: translateX(-30px);
}

.fade-in-right {
  transform: translateX(30px);
}

/* 要素が画面内に入った時のスタイル */
.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ★ぴょこっと出る画像アニメーション */
.pop-up-image {
  opacity: 0;
  transform: translateY(100%);
  /* cubic-bezierで「ぴょこっ」というバウンス効果を表現 */
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--pop-up-delay, 0s);
}

/* ★トリガー用のクラスが付与されたらアニメーションを実行 */
.pets-visible .pop-up-image {
  opacity: 1;
  transform: translateY(0);
}


/* =================================================================
ハンバーガーメニュー アニメーション
================================================================== */

/* ハンバーガーアイコンの親 */
.hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* アイコンの3本線 */
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 開いた時：上の線を回転 */
.menu-open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

/* 開いた時：中の線を非表示 */
.menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

/* 開いた時：下の線を回転 */
.menu-open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* メニューのスライドダウン */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

.mobile-nav.menu-visible {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.4s ease-in, opacity 0.3s ease-in;
}

/* デスクトップでは常に表示・アニメーション無効 */
@media (min-width: 1024px) {
  .mobile-nav {
    max-height: none;
    overflow: visible;
    opacity: 1;
    transition: none;
  }
}

/* =================================================================
波アニメーションのスタイル
================================================================== */
.wave-separator-container {
  line-height: 0;
  margin-top: -1px;
  margin-bottom: -1px;
}

.wave-separator-inner {
  height: 150px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.wave-separator-inner .waves-svg {
  width: 200%;
  /* 高DPR画面での下端1pxの塗り残し対策：上下に1pxずつはみ出させ、overflow:hiddenでクリップ */
  height: calc(100% + 2px);
  position: absolute;
  bottom: -1px;
  left: 0;
}

@keyframes wave-move-anim {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* --- Wave Style 1 (Light to Dark) --- */
.wave-parallax-dark>use {
  animation: wave-move-anim linear infinite;
}

.wave-parallax-dark>use:nth-of-type(1) {
  fill: var(--theme-color-light);
}

.wave-parallax-dark>use:nth-of-type(2) {
  fill: var(--theme-color-base);
  animation-duration: 14s;
  animation-delay: -2s;
}

.wave-parallax-dark>use:nth-of-type(3) {
  fill: var(--theme-color-dark);
  animation-duration: 10s;
  animation-delay: -4s;
}

/* --- Wave Style 2 (Dark to Light) --- */
.wave-parallax-light>use {
  animation: wave-move-anim linear infinite;
}

.wave-parallax-light>use:nth-of-type(1) {
  fill: rgba(249, 250, 251, 0.5);
  /* bg-gray-50 with opacity */
  animation-duration: 18s;
}

.wave-parallax-light>use:nth-of-type(2) {
  fill: rgba(249, 250, 251, 0.7);
  /* bg-gray-50 with opacity */
  animation-duration: 14s;
  animation-delay: -2s;
}

.wave-parallax-light>use:nth-of-type(3) {
  fill: #f9fafb;
  /* bg-gray-50 */
  animation-duration: 10s;
  animation-delay: -4s;
}
