/* スライダー左右に余白を持たせる */
.swiper-outer {
  position: relative;
  width: 100%;
}

.slider-title {
  width: 100%;
  height: 1.6em;
  margin: .5em 0;
  font-size: min(1.4vw, 22px);
  font-weight: 600;
  color: #fff;
  line-height: 1;
  text-align: center;
  background-color: #ec2d00;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* スライダー左右に余白を持たせる */
.swiper {
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* スマホ時は中央に見せたいので、画像のサイズを調整する */
@media screen and (max-width: 743px) {
  .swiper-slide img {
    width: 90%;
    height: auto;
  }
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.swiper-slide p {
  margin: .5em 0 0;
  font-size: min(1.8vw, 24px);
  font-weight: 600;
  color: #ec2d00;
  line-height: 1.4;
}

.swiper-slide p span {
  display: block;
  font-size: 14px;
  font-weight: 400;
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 48% !important;
  width: 60px !important;
  height: 60px !important;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  background: none !important;
  color: transparent !important;
  transition: transform 0.3s ease;
}

.swiper-button-prev {
  left: -50px !important;
}

.swiper-button-next {
  right: -70px !important;
}


.swiper-button-prev img,
.swiper-button-next img {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (min-width: 1px) and (max-width: 743px) {
  .slider-title {
    width: 100%;
    height: 1.6em;
    margin: .6em 0;
    font-size: 4.2vw;
  }

  .swiper-slide p {
    margin: .5em 0 0;
    font-size: 4.4vw;
  }

  .swiper-slide p span {
    font-size: 3.4vw;
  }

  .swiper-button-prev,
  .swiper-button-next {
    position: absolute;
    top: 48% !important;
    width: 55px !important;
    height: 55px !important;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    background: none !important;
    color: transparent !important;
  }

  .swiper-button-prev {
    left: -20px !important;
  }

  .swiper-button-next {
    right: -40px !important;
  }

}

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

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

  .swiper-button-prev {
    left: -40px !important;
  }

  .swiper-button-next {
    right: -60px !important;
  }
}

@media screen and (min-width: 1025px) {
  .swiper-button-prev:hover {
    transform: translate(-4px, -50%);
  }

  .swiper-button-next:hover {
    transform: translate(4px, -50%);
  }

}