.wrap {
  max-width: 1440px;
  margin: 0 auto;
}

.wave-area {
  position: relative;
}

.wave-area svg {
  display: block;
  width: 100%;
  height: 100%;
}

.text-ab {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

.text-ab img {
  max-width: 877px;
  width: 77vw;
}

.tl img {
  margin: 25px auto;
}

.flex-box {
  margin: 64px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 69px;
}

.flex-item h2 {
  font-size: 2.8rem;
  text-align: center;
  font-family: "Reggae One", system-ui;
  font-weight: 400;
  font-style: normal;
}

.mv-area {
  background-color: #00afec;
  padding-top: 30px;
  text-align: center;
}

.mv-area svg {
  max-width: 1191px;
  width: auto;
  height: auto;
  vertical-align: bottom;
}

.speech-bubble-1,
.speech-bubble-2,
.speech-bubble-3 {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.speech-bubble-1 {
  transition-delay: 0s;
}
.speech-bubble-2 {
  transition-delay: 0.3s;
}
.speech-bubble-3 {
  transition-delay: 0.6s;
}

.speech-bubble-1.visible,
.speech-bubble-2.visible,
.speech-bubble-3.visible {
  opacity: 1;
}

.blue-area {
  background-color: #00afec;
}

.box-area {
  background-color: #fff;
  padding: 64px 130px;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 30px;
}

.box-tl img {
  margin: 0 auto;
}

.flex-item-2 p {
  font-size: 49px;
  line-height: 2.3;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.flex-box-2 {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 103px;
}

.flex-item-2 {
  text-align: center;
}

.frame {
  position: relative;
  width: 376px;
  height: 376px;
}

#templateCanvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 376px;
  height: 376px;
}

#traceCanvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border: 7px solid #d51277;
  border-radius: 20px;
  width: 376px;
  height: 376px;
}

#clearBtn {
  background: #ffe4e4;
  border-radius: 50px;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 56px auto 0 auto !important;
  max-width: 281px;
  padding: 5.5px 25px;
  color: #d51277;
  transition: 0.3s ease-in-out;
  font-weight: 500;
  text-decoration: none;
  font-size: 30px;
  font-family: "Zen Maru Gothic", serif;
  font-weight: 700;
  font-style: normal;
  line-height: 1.6;
  width: 100%;
  border: 1px solid #d51277;
}

.slider-area {
  padding: 62px 0 104px 0;
}

.slider-tl {
  padding-bottom: 53px;
}

.slider-tl img {
  margin: 0 auto;
}

.swiper-slide {
  max-width: 890px;
}

.swiper .detail {
  padding: 32px 0 64px;
  font-size: 24px;
  color: #fff;
  max-width: 890px;
  margin: 0 auto;
  width: 100%;
}

.cmnt-area {
  padding: 147px 0 104px 0;
}

.cmnt-tl h3 {
  font-size: 0;
  text-align: center;
}

.cmnt-tl img {
  margin: 0 auto;
}

.cmnt-tl span {
  font-family: "Zen Maru Gothic", serif;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  text-align: center;
  font-size: 76px;
  color: #00afec;
}

.flex-box-3 {
  display: flex;
  gap: 36px;
  justify-content: center;
  padding-top: 60px;
}

.flex-item-3 p {
  font-family: "Zen Maru Gothic", serif;
  font-weight: 700;
  font-style: normal;
  line-height: 175%;
  letter-spacing: 0.08em;
  font-size: 22px;
}

.movie-area {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 137px;
}

.movie-box {
  display: flex;
  gap: 50px;
  justify-content: center;
}

.movie-item {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.movie-item iframe {
  width: 100%;
  height: 100%;
}

.purchase-button {
  padding-bottom: 81px;
}

.purchase-button a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 507px;
  padding: 20px 10px;
  color: #fff;
  transition: all 0.2s ease-in-out;
  background: #00afec;
  border-radius: 60px;
  box-shadow: 0 10px 0 rgba(0, 175, 236, 0.3);
  font-size: 50px;
  font-family: "Zen Maru Gothic", serif;
  font-weight: 700;
  font-style: normal;
  text-decoration: none;
  transform: translateY(0);
}

.purchase-button a:hover {
  transform: translateY(10px);
  box-shadow: 0 0 0 rgba(0, 175, 236, 0.3);
  border-bottom: none;
}

.green {
  background-color: #e7e9d4;
}

.banner {
  padding: 104px 0 80px 0;
}

.banner img {
  margin: 0 auto;
}

.social-flex {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.social-item {
  box-shadow: 0px 0px 3px 0px gray;
  display: inline-block;
  padding: 15px;
  border-radius: 50px;
  background-color: #fff;
}

.social-item img {
  width: 30px;
  height: 30px;
}

.copyright {
  padding: 120px 0 80px 0;
  text-align: center;
  font-size: 12px;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
}

#backToTop {
  position: fixed;
  bottom: 50%;
  right: 0;
  width: 200px;
  height: auto;
  cursor: pointer;
  z-index: 1000;
  transform: translate(0, 0);
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 2s ease-out, transform 2s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 調整 */
.mgt20 {
  margin-top: 20px;
}

.pgt57 {
  padding-top: 57px;
}

/*タブレット*/
@media screen and (min-width: 769px) and (max-width: 1100px) {
  .wrap {
    max-width: none;
    padding: 0 4%;
  }
  .tl img {
    margin: 25px auto;
    padding: 0 4%;
  }
  .mv-area {
    padding: 30px 4% 0 4%;
  }
  .box-area {
    max-width: none;
    padding: 30px 20px;
    margin-left: 4%;
    margin-right: 4%;
  }
  .flex-box-2 {
    gap: 50px;
    flex-direction: column-reverse;
    margin-top: 25px;
  }
  .flex-item-2 p {
    font-size: 50px;
  }
  .frame {
    width: 100%;
    height: 100%;
  }
  #templateCanvas {
    position: absolute;
    z-index: 0;
    width: 300px;
    height: 300px;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0%);
    -webkit-transform: translate(-50%, 0%);
    -ms-transform: translate(-50%, 0%);
  }
  #traceCanvas {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    border: 7px solid #d51277;
    border-radius: 20px;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    transform: translate(-50%, 0%);
    -webkit-transform: translate(-50%, 0%);
    -ms-transform: translate(-50%, 0%);
  }
  #clearBtn {
    margin: 325px auto 0 auto !important;
  }
  #backToTop {
    width: 18vw;
  }
}

/* スマホ */
@media screen and (max-width: 768px) {
  .wrap {
    max-width: none;
    padding: 0 4%;
  }
  .tl img {
    margin: 20px auto 10px auto;
  }
  .flex-box {
    flex-direction: column;
    margin: 30px 20px;
    gap: 25px;
  }
  .mv-area {
    padding-top: 10px;
  }
  .mv-area svg {
    max-width: none;
    width: 100%;
    padding: 0 4%;
  }
  .min-sp-img img {
    width: 250px;
  }
  .box-area {
    max-width: none;
    padding: 30px 20px;
    margin-left: 4%;
    margin-right: 4%;
  }
  .flex-box-2 {
    gap: 50px;
    flex-direction: column-reverse;
    margin-top: 25px;
  }
  .flex-item-2 p {
    font-size: 32px;
  }
  .frame {
    width: 100%;
    height: 100%;
  }
  #templateCanvas {
    position: absolute;
    z-index: 0;
    width: 300px;
    height: 300px;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0%);
    -webkit-transform: translate(-50%, 0%);
    -ms-transform: translate(-50%, 0%);
  }
  #traceCanvas {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    border: 7px solid #d51277;
    border-radius: 20px;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    transform: translate(-50%, 0%);
    -webkit-transform: translate(-50%, 0%);
    -ms-transform: translate(-50%, 0%);
  }
  #clearBtn {
    margin: 325px auto 0 auto !important;
  }
  .slider-area {
    padding: 30px 0 50px 0;
  }
  .slider-tl {
    padding-bottom: 25px;
  }
  .swiper .detail {
    padding: 15px 0 40px 0;
    max-width: none;
    font-size: 16px;
  }
  .cmnt-area {
    padding: 70px 0 50px 0;
  }
  .cmnt-tl span {
    font-size: 50px;
    line-height: 1.2;
  }
  .flex-box-3 {
    padding-top: 30px;
    flex-direction: column;
  }
  .flex-item-3 p {
    font-size: 15px;
    letter-spacing: normal;
  }
  .cmnt-area {
    padding: 35px 0 25px 0;
  }
  .movie-area {
    max-width: none;
    padding: 0 4% 65px 4%;
  }
  .pgt57 {
    padding-top: 30px;
  }
  .purchase-button {
    padding: 0 4% 40px 4%;
  }
  .purchase-button a {
    font-size: 30px;
  }
  .banner {
    padding: 50px 4% 40px 4%;
  }
  #backToTop {
    width: 20vw;
  }
  .movie-box {
    flex-direction: column;
  }
}
