/* ------------------------------ */
/* 基本スタイル */
/* ------------------------------ */

.main-content {
  width: 100%;
}

@media screen and (min-width: 768px) {
  .main-content {
    max-width: 1920px;
    margin: 0 auto;
  }
}

.image-section {
  width: 100%;
  margin-bottom: 0;

  /* 画像間の余白なし */
}

.image-section picture,
.image-section .image-wrapper {
  display: block;
  width: 100%;
}

.image-section img {
  width: 100%;
  height: auto;
  display: block;
}

/* SPのみの画像の場合 */
.image-wrapper--sp-only {
  max-width: 600px;
  margin: 0 auto;
}

@media screen and (max-width: 767px) {
  .image-wrapper--sp-only {
    max-width: 100%;
    /* SP表示時は全幅 */
  }
}

/* ------------------------------ */
/* CTAボタン */
/* ------------------------------ */

/* CTAボタンを設置するセクション */
.image-section--cta {
  position: relative;
}

/* CTAボタン（基本配置: bottom 20px、中央寄せ） */
.cta-btn {
  position: absolute;
  display: block;
  z-index: 100;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.cta-btn__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

/* ふわふわアニメーション（中央寄せを維持） */
@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

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

/* アニメーション適用 */
.cta-btn {
  animation: float 3s ease-in-out infinite;
}

/* SP/PCで位置やサイズを調整する場合 */
@media screen and (max-width: 767px) {
  .cta-btn {
    /* SP用の位置調整（基本はbottom: 20pxを維持） */
    bottom: -60px;
  }

}

@media screen and (min-width: 768px) {
  .cta-btn {
    /* PC用の位置調整（基本はbottom: 20pxを維持） */
    bottom: 0px;
  }

  .cta-btn__img {
    /* PC用のサイズ調整 */
    max-width: 100%;
  }
}

/* ------------------------------ */
/* セクション02（背景＋フェードインアニメーション） */
/* ------------------------------ */

.image-section--02 {
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

/* 背景画像 */
.image-section--02__bg {
  position: relative;
  width: 100%;
  z-index: 1;
}

.image-section--02__bg picture,
.image-section--02__bg img {
  display: block;
  width: 100%;
  height: auto;
}

/* 重ねる画像のコンテナ */
.image-section--02__overlay {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  z-index: 2;
}

@media screen and (min-width: 1080px) {
  .image-section--02__overlay {
    top: 15%;
  }
}

.image-section--02__overlay picture {
  position: relative;
  display: block;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.image-section--02__overlay picture.fade-in-item {
  /* フェードイン対象の画像 */
  opacity: 0;
  width: 80%;
  margin: 0 auto;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

@media screen and (min-width: 1080px) {
  .image-section--02__overlay picture.fade-in-item {
    width: 50%;
  }
}

/* 左からフェードイン */
.image-section--02__overlay picture.fade-in-item.fade-in-from-left {
  transform: translateX(-100px);
}

.image-section--02__overlay picture.fade-in-item.fade-in-from-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* 右からフェードイン */
.image-section--02__overlay picture.fade-in-item.fade-in-from-right {
  transform: translateX(100px);
}

.image-section--02__overlay picture.fade-in-item.fade-in-from-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.image-section--02__overlay picture img {
  display: block;
  width: 100%;
  height: auto;
}


@media screen and (max-width: 480px) {
  #section-01 .cta-btn {
    bottom: -50px;
  }
}

#section-03 .cta-btn {
  bottom: -53px;
}

@media screen and (max-width: 480px) {
  #section-06 .cta-btn {
    bottom: -50px;
  }
}

a {
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}