@charset "utf-8";

.swiper {
  position: relative;
}

.swiper-slide {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.swiper-image {
  width: 30%;
  padding: 0 0 0 10%;
  text-align: center;
}

.swiper-image img {
  width: 100%;
}

.swiper-text {
  width: 65%;
  margin-top: 3rem;
}

.swiper-text h2 {
  width: 100%;
  font-size: 24px;
  font-weight: 600;
}

.swiper-text h2 span {
  font-size: 16px;
}

.swiper-text p {
  padding: 0 10% 0 0;
  font-size: 14px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

.swiper-button-prev,
.swiper-button-next {
  width: 30px !important;
  /* 既存値 */
  height: 30px !important;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.swiper-button-prev {
  background-image: url("../img/character/prev.png");
  /* パスはプロジェクトに合わせる */
}

.swiper-button-next {
  background-image: url("../img/character/next.png");
}

.swiper-pagination {
  position: absolute !important;
  bottom: 20px !important;
  left: 35% !important;
  display: flex !important;
  gap: 15px !important;
  justify-content: flex-start !important;
  z-index: 10 !important;
}

/* サムネ共通 */
.swiper-pagination-bullet {
  width: 12% !important;
  aspect-ratio: 1 / 1;
  height: auto !important;
  border: none !important;
  outline: none !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-sizing: border-box !important;
  border-radius: 15px !important;
  opacity: 1 !important;
  transform: scale(1) !important;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease !important;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.swiper-pagination-bullet {
    background-color: transparent !important;
}

@media screen and (min-width: 1px) and (max-width: 743px) {}

/* ホバー演出（任意） */
.swiper-pagination-bullet:hover {
  transform: scale(1.02);
}

/* アクティブ：106%拡大＋赤枠 */
.swiper-pagination-bullet-active {
  transform: scale(1.1) !important;
  border-color: #d9232a;
  box-shadow: 0 0 0 3px rgba(217, 35, 42, 1);
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* 初期は非表示（JSでアクティブだけ発火させる） */
.swiper-text {
  opacity: 0;
}

/* 発火用クラス：.swiper-text に付与 */
.fade-in {
  animation: fade-in .4s ease forwards;
  animation-delay: 0s;
  /* 遅延が要らなければ削除 */
  will-change: opacity, transform;
}


@media screen and (min-width: 1px) and (max-width: 743px) {

  .swiper {
    padding-top: 30% !important;
  }

  .swiper-image {
    width: 100%;
    padding: 0;
  }

  .swiper-image img {
    width: 40%;
  }

  .swiper-text {
    width: 100%;
    margin: 1rem 0 0;
  }

  .swiper-text h2 {
    width: 100%;
    font-size: 5vw;
    margin: 0 0 .5rem;
  }

  .swiper-text h2 span {
    font-size: 2.8vw;
  }

  .swiper-text p {
    font-size: 3vw;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 30px !important;
    height: 30px !important;
  }

  .swiper-pagination {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: flex !important;
    gap: 5px !important;
    justify-content: flex-start !important;
    z-index: 10 !important;
    width: 100%;
    padding: 2%;
  }

  .swiper-pagination-bullet {
    width: 21% !important;
    height: 10.5% !important;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  }

  .swiper-pagination-bullet-active {
    transform: scale(1.06) !important;
    box-shadow: 0 0 0 2px rgba(217, 35, 42, 1);
  }

}

@media screen and (min-width: 744px) and (max-width: 1024px) {

  .swiper-button-prev,
  .swiper-button-next {
    width: 20px !important;
    height: 20px !important;
  }

  .swiper-text p {
    padding: 0 10% 0 0;
    font-size: 1.5vw;
  }

}

@media screen and (min-width: 1025px) {}