/* =============================================
   Service Carousel — shared component
   ============================================= */

/* Swiper overrides */
#js-service-carousel {
  overflow: hidden;
  width: 100%;
}

#js-service-carousel .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
}

/* --- Container --- */
.service-carousel {
  margin: 0;
  width: 100%;
  max-width: 100%;
  position: relative;
  padding: 80px 0 100px 0;
}
@media screen and (max-width: 480px) {
  .service-carousel {
    width: 100%;
    padding: 80px 20px 100px 20px;
  }
}

/* --- Slide width --- */
.service-carousel .swiper-slide {
  width: 400px;
  height: auto;
}

/* --- Slide inner --- */
.service-carousel__slide {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: 100%;
}

/* --- Image --- */
.service-carousel__img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Text box --- */
.service-carousel__text-box {
  background: #fff;
  height: 182px;
  padding: 27px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Text --- */
.service-carousel__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #000;
  margin: 0;
  text-align: left;
}

/* --- Nav buttons --- */
.service-carousel__nav {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  margin-right: 50px;
  bottom: 50px;
}
@media screen and (max-width: 480px) {
  .service-carousel__nav {
  }
}

.service-carousel__btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s;
}

.service-carousel__btn:hover {
  opacity: 0.5;
}

.service-carousel__btn .material-icons {
  font-size: 36px;
  color: #222;
  line-height: 1;
}

.service-carousel__btn--pause .material-icons {
  font-size: 28px;
}
.service-carousel__btn.service-carousel__btn--pause .material-icons {
  font-size: 28px;
}

/* --- Responsive: Tablet --- */
@media screen and (max-width: 768px) {
  .service-carousel .swiper-slide {
    width: 300px;
  }

  .service-carousel__text-box {
    align-items: flex-start;
    justify-content: space-between;
    height: 174px;
    padding: 20px;
  }

  .service-carousel__text {
    font-size: 14px;
  }
}

/* --- Responsive: SP --- */
@media screen and (max-width: 480px) {
  .service-carousel .swiper-slide {
    width: 100%;
  }

  .service-carousel__text-box {
    height: 150px;
  }

  .service-carousel__text {
    font-size: 14px;
  }

  .service-carousel__nav {
    margin-right: 0;
  }

  .service-carousel__btn .material-icons {
    font-size: 40px;
  }
}
