/* =======================================
   共通：スクロール時にアニメーション表示
======================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: opacity 1s ease, transform 1s ease, visibility 0s 1s;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}
/* =======================================
   アニメーション初期状態まとめ
======================================= */
.animate-on-scroll,
.fade-in,
.fade-in-up,
.fade-in-left,
.fade-in-right,
.slide-in-left,
.slide-in-right,
.invisible,
.section-about,
.section-about h2,
.section-about p,
.gift-container,
.strawberry-text,
.strawberry-image,
.picking-info .plan-block,
.picking-info .info-box,
.picking-info h2,
.picking-info .section-subtitle,
.reservation-section .reservation-left,
.reservation-section .reservation-center,
.reservation-section .reservation-right,
.access-map .section-title,
.access-map .section-subtitle,
.access-map .access-left,
.access-map .access-right,
.qa-section .section-title,
.qa-section .section-subtitle,
.qa-section .qa-image,
.qa-section .accordion-item,
.contact-section .section-title,
.contact-section .section-subtitle,
.contact-section .form-group,
.contact-section .form-button,
.gift-container,
.gift-button,
.gift-thumbnail,
.gift-content,
.gift-text

 {
  opacity: 0;
}

.invisible {
  pointer-events: none;
  opacity: 0 !important;
}

/* =======================================
   セクション本体のフェード表示
======================================= */
.strawberry-section,
.gift-container,
.picking-info,
.auto-slider-section,
.reservation-section,
.access-map {
  transition: opacity 1s ease-out;
}

.strawberry-section.fade-in,
.picking-info.fade-in,
.reservation-section.fade-in,
.access-map.fade-in
{
  opacity: 1;
}


/* =======================================
   フェードイン系アニメーション
======================================= */
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =======================================
   スライドイン系アニメーション
======================================= */
.fade-in-left,
.slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

.fade-in-right,
.slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* =======================================
   特殊：section-about 専用アニメ
======================================= */
.section-about {
  filter: blur(8px);
  transition: filter 1.5s ease, opacity 1.5s ease;
}

.section-about.animate {
  filter: blur(0);
  opacity: 1;
}

.section-about h2,
.section-about p {
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.section-about.animate h2 {
  transition-delay: 1.5s;
  opacity: 1;
  transform: translateY(0);
}

.section-about.animate p {
  transition-delay: 2s;
  opacity: 1;
  transform: translateY(0);
}

.auto-slide {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.auto-slide.fade-in-left {
  opacity: 1;
  transform: translateX(0);
}

/* -------------------------------------
   Instagram & What's New タイトル演出
------------------------------------- */

/* アニメーション初期状態 */
.section-title.fade-trigger,
.section-subtitle.fade-trigger {
  opacity: 0;
  transform: translateY(30px);
}

/* h2 タイトル：0.5秒遅れでフェードアップ */
.section-title.fade-in-up {
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

/* サブタイトル p：1秒遅れでフェードアップ */
.section-subtitle.fade-in-up {
  animation: fadeInUp 0.8s ease-out 1s forwards;
}

/* キーフレーム定義 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contactセクション専用の初期非表示スタイル */
.contact-section .section-title,
.contact-section .section-subtitle,
.contact-section .wpcf7-form p,
.contact-section .wpcf7-submit {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
