#contents {
   width: auto;
}
#contents.swiper-slide.img:first-child {
   height: auto !important;
}
#contents .swiper .swiper-wrapper .swiper-slide.img {
   align-items: center;
   justify-content: center;
   padding-bottom: 15dvh;
   text-align: center;
   overflow: hidden;
}
#contents .swiper .swiper-wrapper .swiper-slide.img .inner {
   position: relative;
   width: auto;
}
#contents .swiper .swiper-wrapper .swiper-slide.img .inner img {
   width: 500px;
   height: auto;
}
#contents .swiper .swiper-wrapper .swiper-slide.form {
   overflow-y: scroll;
   width: 100%;
   padding-bottom: 0 !important;
   /* Swiperの余白をリセット */
   margin-bottom: 0 !important;
}
/* === フォームラップ === */

#formWrap {
   margin: 0;
   padding: 0;
}
#formWrap iframe {
   display: block;
   width: 100%;
   min-height: 1200px;
   /* モバイルは後で上書き */
   border: none;
   margin: 0;
   padding: 0;
}
/* === 固定CTA === */

#fixedCta {
   position: fixed;
   bottom: 0;
   left: 0;
   z-index: 100;
   display: flex;
   align-items: flex-end;
   width: 100%;
   height: 15vh;
   text-align: center;
   background: #fff;
   transition: transform .7s var(--easeOutCubic);
}

@supports not (height: 100dvh) {
  #fixedCta {
    height: 15vh;
  }
}

#fixedCta {
  height: 15vh; /* Safari フォールバック */
}

@supports (height: 15dvh) {
  #fixedCta {
    height: 15dvh; /* Chrome などモダンブラウザ */
  }
}

#fixedCta.is-hide {
   transform: translateY(100%);
}
#fixedCta .wrap {
   width: min(57.7dvh, 750px);
   max-width: 100%;
   padding: 0 min(3dvh, 40px) min(2dvh, 40px);
   margin: 0 auto;
}
#fixedCta p.btn span {
   position: relative;
   display: inline-block;
   filter: drop-shadow(0 min(.8vw, 6px) min(1.33vw, 10px) rgba(96, 96, 96, .3));
   cursor: pointer;
   animation: move_btn 2.4s ease infinite normal;
   transition: opacity .3s;
}

#fixedCta .wrap {
  display: flex;
  justify-content: center; /* Safariでも中央寄せ */
}
#fixedCta p.btn {
  margin: 0 auto;
  text-align: center;
}

#fixedCta p.btn span:hover {
   opacity: .7;
}
#fixedCta p.btn span i.shine {
   position: absolute;
   width: 100%;
   height: 100%;
   overflow: hidden;
   top: 0;
   left: 0;
   z-index: 5;
   pointer-events: none;
   border-radius: min(10.67vw, 80px);
   opacity: .5;
   mix-blend-mode: overlay;
}
#fixedCta p.btn span i.shine:before {
   content: '';
   width: 200%;
   height: 200%;
   background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 20%, #fff 35%, #fff 50%, #fff 65%, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 0) 100%);
   position: absolute;
   top: -50%;
   left: -50%;
   z-index: 1;
   animation: shine 2.4s linear infinite;
}
/* === サブカルーセル === */

.sub-swiper {
   width: 500px;
   padding: 0 0 30px 0;
   background-color: #00ad72;
   position: relative;
}
#contents .swiper .swiper-wrapper .swiper-slide.img .inner .sub-swiper img {
   width: 80%;
   height: auto;
}
/* === マルチカルーセル === */

.multi-swiper {
   width: 100%;
   max-width: 750px;
   margin: 20px auto;
   position: relative;
}
#contents .swiper .swiper-wrapper .swiper-slide.img .inner .multi-swiper img {
   width: 100%;
   height: auto;
   border-radius: 8px;
}
/* === フローカルーセル === */

.flowing-swiper {
   width: 100%;
   max-width: 500px;
   margin: 10px auto;
}
#contents .swiper .swiper-wrapper .swiper-slide.img .inner .flowing-swiper img {
   width: 95%;
   height: auto;
   border-radius: 8px;
}
/* === 動画 === */

.movie {
   background-size: cover;
   width: 100%;
}
.movie img {
   width: 100%;
   height: 100%;
   margin: auto;
}
html body main .movie .inner {
   margin: 0 auto;
   max-width: 20%;
   text-align: center; /* -webkit-center は不要 */
}
html body main .movie .YouTube {
   width: 100%;
   height: 100%;
   height: auto; /* Safari 用のフォールバック */
}

@supports (-webkit-touch-callout: none) {
  /* Safari 専用 */
  #contents .swiper .swiper-wrapper .swiper-slide.img {
     padding-bottom: 15vh; /* dvh → vh にフォールバック */
  }
}

/* === トップへ戻るボタン === */

.back-to-top {
   text-align: center;
   margin: 20px 0;
}
.back-to-top a {
   display: inline-block;
   background: #00ad72;
   color: #fff;
   padding: 10px 20px;
   border-radius: 6px;
   font-size: 14px;
   text-decoration: none;
   transition: background 0.3s;
}
.back-to-top a:hover {
   background: #008a5c;
}
/* === スマホ調整 === */

@media screen and (max-width: 767px) {
   /* 画像全般 */
   #contents .swiper .swiper-wrapper .swiper-slide.img .inner img {
      width: 100%;
      max-width: 85%;
      height: auto;
   }
   /* サブカルーセル */
   .sub-swiper {
      width: 85%;
      max-width: 100%;
      padding: 0 0 22px 0;
   }
   #contents .swiper .swiper-wrapper .swiper-slide.img .inner .sub-swiper img {
      width: 70%;
      height: auto;
   }
   /* フローカルーセル */
   .flowing-swiper {
      width: 100%;
      max-width: 100%;
      margin: 10px auto;
   }
   #contents .swiper .swiper-wrapper .swiper-slide.img .inner .flowing-swiper img {
      width: 100%;
      height: auto;
   }
   /* YouTube動画 */
   html body main .movie .inner {
      max-width: 100%;
      padding: 0 10px;
      text-align: center;
   }
   html body main .movie .YouTube {
      width: 60%;
      aspect-ratio: 16/9;
   }
   /* 固定CTA */
   #fixedCta {
      width: 100%;
      text-align: right;
      height: auto;
      padding: 0;
      display: block;
      background: none;
   }
   #fixedCta .wrap {
      width: min(57.7dvh, 750px);
      max-width: 80%;
      padding: 0 min(3dvh, 40px) min(2dvh, 40px);
      margin: 0 auto;
   }
   #fixedCta p.btn img {
      width: 100%;
      height: auto;
   }
   /* トップへ戻るボタン縮小 */
   .back-to-top a {
      font-size: 12px;
      padding: 8px 16px;
   }
   /* iframe高さ短縮 */
   #formWrap iframe {
      min-height: 1000px;
   }
}

@media screen and (max-width: 320px) {

    .sub-swiper {
        width: 95%;
        max-width: 100%;
        padding: 0 0 22px 0;
    }
    .swiper-slide {
        flex-shrink: 0;
        width: 87%;
        height: 100%;
        position: relative;
        transition-property: transform;
        margin: auto;
}