/* Swiper基本CSSは公式CDNを読み込むので省略 */

/* モーダル */
.modal2 {
  display: none; /* 最初は非表示 */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}
.modal-content {
  position: relative;
  background: #fbf6ea;
  background: linear-gradient(270deg, #fbf6ea 0%, #fff 50%, #fbf6ea 100%);
  margin: 20% auto;
  padding: 32rem;
  width: 80%;
  max-width: 500px;
}
.modal-close {
  position: absolute;
  top: 20rem;
  right: 20rem;
  font-size: 28rem;
  cursor: pointer;
}
.modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 24rem;
  gap: 24rem;
}
.modal-header-text {
  margin: 0 auto;
}
.modal-header h2 {
  font-size: 30rem;
  font-weight: 700;
  color: #1b2668;
  margin: 0;
  text-align: center;
  flex: 1;
}
.modal-header h2 span {
  color: #e42444;
  font-weight: 700;
  position: relative;
  display: inline-block;
  font-size: 36rem;
  padding: 0 45rem; /* 擬似要素分の余白 */
}
.modal-header h2 span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0%;
  width: 40rem;
  height: 100%;
  transform: translateY(-50%);
  background: url("../../assets/image/sz_sk_cherry-01.webp") no-repeat center/contain;
}
.modal-header h2 span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0%;
  width: 40rem;
  height: 100%;
  transform: translateY(-50%);
  background: url("../../assets/image/sz_sk_cherry-02.webp") no-repeat center/contain;
}
.modal-header-image {
  width: 35%;
  text-align: center;
}
.modal-header-image img {
  width: 100%;
  height: auto;
  margin-bottom: 10rem;
}
.modal-header-image p {
  font-size: 20rem;
  color: #1b2668;
  font-weight: 600;
  display: inline;
}
.modal-header-image span {
  font-size: 12rem;
  color: #1b2668;
  font-weight: 300;
  display: inline;
}
.modal-content > p {
  font-size: 28rem;
  font-weight: 700;
  line-height: 1.5;
  color: #1b2668;
  margin-bottom: 24rem;
}
.modal-content .modal-description p {
  font-size: 23rem;
  font-family: noto-sans-jp, sans-serif;
  line-height: 1.9;
  font-weight: 700;
  color: #2e2e2e;
  padding: 36rem 28rem;
  border-radius: 16rem;
  background-color: #fff;
}
.modal-content .modal-description p span {
  color: #e42444;
  font-weight: 700;
}
#modalSub2 {
  display: none;
}
/* スライド全体 */
.swiper-slide {
  display: flex;
  justify-content: center;
}

/* 中身をカード風に */
.slide-content {
  position: relative;
  color: #1b2668;
  overflow: hidden;
  background: #fbf6ea;
  background: linear-gradient(270deg, #fbf6ea 0%, #fff 50%, #fbf6ea 100%);
  display: flex;
  margin-top: 48rem;
  gap: 16rem;
  padding: 40rem 4rem;
  width: 540rem;
  border-radius: 10rem;
  box-shadow: 5rem 5rem 5rem rgba(129, 129, 129, 0.35);
  flex-direction: column;
  align-items: center;
}
.corner-deco {
  position: absolute;
  width: 80rem;
  height: 80rem;
  pointer-events: none; /* 装飾がクリックの邪魔をしない */
  z-index: 2;
}

/* 各隅の位置 */
.top-left {
  top: 10rem;
  left: 10rem;
}
.top-right {
  top: 10rem;
  right: 10rem;
  transform: rotate(90deg);
}
.bottom-right {
  bottom: 10rem;
  right: 10rem;
  transform: rotate(180deg);
}
.bottom-left {
  bottom: 10rem;
  left: 10rem;
  transform: rotate(270deg);
}
.slide-content > .slide-image {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 28rem;
}
.slide-content > .slide-image p span {
  font-size: 18rem;
}
.image-square {
  position: relative;
  width: 60%;
  margin-top: 12rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.image-square p {
  font-size: 28rem;
}
.slide-text {
  width: 100%;
  font-size: 24rem;
  line-height: 1.5;
  text-align: center;
}
.slide-text h3 {
  font-size: 44rem;
  font-weight: 600;
  margin-bottom: 24rem;
}
.slide-text h3 span {
  color: #e42444;
  font-weight: 700;
  position: relative;
  display: inline-block;
  font-size: 48rem;
  padding: 0 40rem; /* 擬似要素分の余白 */
}
.slide-text h3 span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0%;
  width: 40rem;
  height: 100%;
  transform: translateY(-50%);
  background: url("../../assets/image/sz_sk_cherry-01.webp") no-repeat center/contain;
}
.slide-text h3 span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0%;
  width: 40rem;
  height: 100%;
  transform: translateY(-50%);
  background: url("../../assets/image/sz_sk_cherry-02.webp") no-repeat center/contain;
}

/* クリック領域 */
.click-area {
  font-size: 30rem;
  width: 85%;
  color: #fbf6ea;
  background: linear-gradient(270deg, #1b2667 14.6%, #00399e 50.34%, #1b2667 85.4%);
  text-align: center;
  cursor: pointer;
  padding: 20rem;
  margin-bottom: 40rem;
  border-radius: 50rem;
  box-shadow: 5rem 5rem 5rem rgba(129, 129, 129, 0.35);
}

.swiper.mySwiper {
  width: 90%;
  height: 100%;
}
/* 色をグレー */
.mySwiper {
  --swiper-navigation-color: #888;
}

/* サイズを調整 */
.swiper-button-next,
.swiper-button-prev {
  width: 80rem;
  height: 80rem;
}

/* 縦位置を中央より下に */
.swiper-button-next,
.swiper-button-prev {
  top: 60%;
}

/* 横のオフセットを大きくする（左右に離す） */
.swiper-button-prev {
  left: -10rem;
}

.swiper-button-next {
  right: -10rem;
}
.preview > h3 {
  width: 540rem;
  margin: 0 auto;
  text-align: center;
  font-size: 28rem;
  margin-top: 36rem;
  background: #fff;
  padding: 10rem;
}
.preview > h3 span.blue {
  color: #1b2668;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.preview > h3 span.red {
  color: #e42444;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.carousel {
  display: none; /* デフォルトは非表示 */
}
.results_notation_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40rem;
  margin: 36rem;
  color: #876a0d;
  border: 1px solid #baa151;
  border-radius: 16rem;
  padding: 32rem;
  width: 72%;
  max-width: 750rem;
  margin: 36rem auto 0rem;
}
.results_notation_container h4 {
  font-size: 21rem;
  font-weight: 300;
  margin-bottom: 8rem;
}
.results_notation_container img {
  width: 100%;
  max-width: 200px;
  margin-bottom: 16rem;
}
.results_notation_container p {
  font-size: 18rem;
  color: #bca867;
  line-height: 1.6;
}
@media screen and (min-width: 768px) {
  #modalSub {
    display: none;
  }
  #modalSub2 {
    display: block;
    font-size: 22rem;
    color: #1b2668;
    margin-top: 16rem;
  }
  .modal-content {
    display: flex;
    flex-direction: column;
    max-width: 960px;
    margin: 10% auto;
  }
  .modal-header {
    align-items: center;
  }
  .modal-header-image {
    width: 25%;
  }
  .modal-header-text {
    flex: 1;
    text-align: center;
  }
  .modal-header-text h2 {
    font-size: 38rem;
  }
  .modal-header-text h2 span {
    font-size: 42rem;
    padding: 0 40rem; /* 擬似要素分の余白 */
  }
  .slide-content {
    width: 920rem;
    flex-direction: row;
    padding: 40rem 54rem;
    gap: 0;
  }
  .slide-content > .slide-image {
    width: 50%;
    font-size: 18rem;
  }
  .slide-content > .slide-image p span {
    font-size: 14rem;
  }
  .slide-text {
    width: 100%;
    line-height: 1.5;
  }
  .slide-text h3 {
    line-height: 1.2;
  }
  .click-area {
    width: 65%;
    font-size: 24rem;
    padding: 12rem;
    margin-bottom: 0;
  }
  /* 横のオフセットを大きくする（左右に離す） */
  .swiper-button-prev {
    left: 40rem;
  }

  .swiper-button-next {
    right: 40rem;
  }
  .swiper-button-next,
  .swiper-button-prev {
    top: 50%;
  }

  .preview > h3 {
    width: 920rem;
  }
  .image-square {
    width: 80%;
  }
  .results_notation_container p {
    font-size: 12rem;
  }
}
@media screen and (min-width: 1200px) {
  .swiper-button-prev {
    left: 80rem;
  }

  .swiper-button-next {
    right: 80rem;
  }
}
