.crousel-wrap.media {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  width: 100vw;
  max-width: 1248px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 0 120px;
  position: relative;
}

.crousel-wrap.media .swiper {
  width: 400px;
  overflow: visible !important;
}

@media screen and (max-width: 768px) {
  .crousel-wrap.media .swiper {
    width: 64%;
    height: auto;
  }
}

.crousel-wrap .swiper-wrapper {
  overflow: visible;
}

.crousel-wrap .swiper-slide {
  width: 800px;
  min-height: 250px;
  height: auto;
  transition:
    transform 0.3s ease-in-out,
    transform-origin 0.3s ease-in-out;
}

.crousel-wrap .swiper-slide a {
  width: fit-content;
  height: -webkit-fill-available;
}

.crousel-wrap .swiper-slide:not(.swiper-slide-active) {
  transform: scale(0.8);
}

.crousel-wrap .swiper-slide-prev {
  transform-origin: right;
}

.crousel-wrap .swiper-slide-next {
  transform-origin: left;
}

@media screen and (max-width: 768px) {
  .crousel-wrap .swiper-slide {
    transform: none !important;
  }
}

.crousel-wrap .swiper-button,
.crousel-wrap .swiper-button-prev,
.crousel-wrap .swiper-button-next {
  z-index: 1;
  background-color: #fff;
  border: 1px solid #3aafc5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

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

  .crousel-wrap .swiper-button-prev,
  .crousel-wrap .swiper-button-next {
    transform: scale(0.8);
  }
}

.crousel-wrap .swiper-button-prev::after,
.crousel-wrap .swiper-button-next::after {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid #3aafc5;
  border-width: 0 1.6px 1.6px 0;
  transform-origin: center;
  display: block;
}

.crousel-wrap .swiper-button-prev:hover,
.crousel-wrap .swiper-button-next:hover {
  background: #ebf7f9;
}

.crousel-wrap .swiper-button-prev {
  left: -60px;
}

.crousel-wrap .swiper-button-prev::after {
  transform: rotate(135deg);
  margin-left: 3px;
}

@media screen and (max-width: 768px) {
  .crousel-wrap .swiper-button-prev {
    left: -44px;
  }
}

.crousel-wrap .swiper-button-next {
  right: -60px;
}

.crousel-wrap .swiper-button-next::after {
  transform: rotate(-45deg);
  margin-right: 3px;
}

@media screen and (max-width: 768px) {
  .crousel-wrap .swiper-button-next {
    right: -44px;
  }
}

.crousel-wrap .swiper-pagination {
  display: flex;
  align-items: center;
  position: unset !important;
  column-gap: 8px;
}

@media screen and (max-width: 768px) {
  .crousel-wrap .swiper-pagination {
    column-gap: 5.88px;
  }
}

.crousel-wrap .swiper-pagination-wrap {
  bottom: -58px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  background: #fff;
  padding: 1px 24px;
  border-radius: 100px;
  left: 50% !important;
  transform: translateX(-50%);
  height: 24px;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .crousel-wrap .swiper-pagination-wrap {
    bottom: -68px !important;
    transform: translateX(-50%) scale(0.7);
    padding: 14px 16px;
  }
}

.crousel-wrap .swiper-pagination-bullet {
  opacity: 1;
  border-radius: 0;
  width: 16px;
  height: 2px;
  background: #b0dfe8;
}

.crousel-wrap .swiper-pagination-bullet-active {
  width: 80px;
  background: #d8eff3;
  position: relative;
}

.crousel-wrap .swiper-pagination-bullet-active::after {
  position: absolute;
  display: block;
  content: "";
  background: #3aafc5;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  animation: progress 5.8s linear infinite;
}

@keyframes progress {
  0% {
    width: 0px;
  }

  100% {
    width: 100%;
  }
}

.crousel-wrap .play-pause-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 16px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease-in-out;
}

.crousel-wrap .play-pause-button::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background: url("/template/img/icon-pause.svg") no-repeat;
}

.crousel-wrap .play-pause-button:hover {
  opacity: 0.4;
}

/* .-play, .-pause 状態の切り替え */
.crousel-wrap.-play .play-pause-button::after {
  background: url("/template/img/icon-pause.svg") no-repeat;
}

.crousel-wrap.-play .swiper-pagination-bullet-active::after {
  animation: progress 5.8s linear infinite;
}

.crousel-wrap.-pause .play-pause-button::after {
  background: url("/template/img/icon-play.svg") no-repeat;
}

.crousel-wrap.-pause .swiper-pagination-bullet-active::after {
  animation: none;
}

/* 16個以上の時の調整 */
.swiper-pagination:has(> :nth-child(16)) {
  column-gap: 8px !important;
}

.swiper-pagination:has(> :nth-child(16)) .swiper-pagination-bullet {
  margin: 0 !important;
  width: 8px !important;
}

.swiper-pagination:has(> :nth-child(16)) .swiper-pagination-bullet-active {
  width: 24px !important;
}

.articleCard {
  display: block;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  border-radius: 8px;
  align-items: center;

  &:hover {
    box-shadow: 0px 0px 15px 0px #101D311A;
  }

  .articleImage {
    width: 100%;
    height: auto;
  }

  .articleTitle {
    background: #3AAFC5;
    border-radius: 4px;
    margin: 24px 0 16px 0;
    padding: 4px 12px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    width: fit-content;
    line-height: 1.8;
    text-align: center;
  }

  .articleDescription {
    text-align: center;
    line-height: 1.8;
    .icon-after {
      margin-left: 0.5em;
      position: relative;
      top: -0.1em;
      i {
        font-size: 0.8em;
      }
    }
  }

  @media screen and (max-width:768px) {
    .articleTitle {
      font-size: 16px;
    }

    .articleDescription {
      font-size: 14px;
    }
  }

  @media screen and (max-width:480px) {
    .articleTitle {
      font-size: 14px;
    }

    .articleDescription {
      font-size: 12px;
    }
  }
}