@charset "UTF-8";

.section-clinic-gallery {
  background: bottom center/100% 100% no-repeat;
}
/* -------------------------------
* ▼ SP表示
* -------------------------------- */

@media only screen and (max-width: 767.98px) {
  .section-clinic-gallery {
    padding: 0.4rem 0 0.6rem;
    background-image: url(../img/clinic/sp/background_gallery_01.jpg);
  }

  .section-clinic-gallery .title-common-secondary {
    margin-bottom: 0.54rem;
  }
}

/* -------------------------------
* ▼ PC表示
* -------------------------------- */
@media print, (min-width: 768px) {
  .section-clinic-gallery {
    padding: 60px 0 100px;
    background-image: url(../img/clinic/background_gallery_01.jpg);
  }

  .section-clinic-gallery .title-common-secondary {
    margin-bottom: 39px;
  }
}

.slider-clinic-gallery {
  position: relative;
}

.slider-clinic-gallery .slide-title {
  position: relative;
  z-index: 1;
  margin-bottom: -0.01rem;
  background-color: #005fc8;
}

.slider-clinic-gallery .slider-main,
.slider-clinic-gallery .slider-thumbnail {
  position: relative;
  overflow: hidden;
}

.slider-clinic-gallery .slider-main:not(.swiper-initialized) .main-wrapper,
.slider-clinic-gallery .slider-main:not(.swiper-initialized) .thumbnail-wrapper,
.slider-clinic-gallery .slider-thumbnail:not(.swiper-initialized) .main-wrapper,
.slider-clinic-gallery .slider-thumbnail:not(.swiper-initialized) .thumbnail-wrapper {
  overflow: hidden;
}

.slider-clinic-gallery .slider-arrow-previous,
.slider-clinic-gallery .slider-arrow-next {
  display: block;
  position: absolute;
  z-index: 1;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  cursor: pointer;
}

.slider-clinic-gallery .slider-arrow-previous {
  left: 0;
  -ms-transform: scale(-1, 1) translateY(-50%);
  transform: scale(-1, 1) translateY(-50%);
}

.slider-clinic-gallery .slider-arrow-next {
  right: 0;
}

.slider-clinic-gallery .slider-pagination {
  display: -ms-flexbox;
  display: flex;
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  -ms-flex-pack: center;
  justify-content: center;
  color: #fff;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 0 0.03rem rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.slider-clinic-gallery .slider-main:not(.swiper-initialized) .main-slide {
  width: 100%;
}

.slider-clinic-gallery .main-wrapper,
.slider-clinic-gallery .thumbnail-wrapper {
  display: -ms-flexbox;
  display: flex;
  position: relative;
  z-index: 0;
}

.slider-clinic-gallery .main-slide,
.slider-clinic-gallery .thumbnail-slide {
  position: relative;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.slider-clinic-gallery .main-slide .slide-wrapper {
  position: relative;
}

.slider-clinic-gallery .main-slide .slide-wrapper img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-clinic-gallery .slide-title {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 0;
  color: #fff;
  font-size: 0.16rem;
  text-align: center;
}

.slider-clinic-gallery .slide-title .title-wrapper {
  display: block;
  position: relative;
  top: 0.01rem;
}

.slider-clinic-gallery .thumbnail-slide.swiper-slide-thumb-active .slide-wrapper {
  opacity: 1;
}

.slider-clinic-gallery .thumbnail-slide img {
  width: auto;
  height: 100%;
  object-fit: cover;
}

.slider-clinic-gallery .thumbnail-slide .slide-wrapper {
  height: 100%;
  transition: opacity 0.3s ease;
  opacity: 0.4;
  cursor: pointer;
}

/* -------------------------------
* ▼ SP表示
* -------------------------------- */
@media only screen and (max-width: 767.98px) {
  .slider-clinic-gallery .slider-arrow-previous,
  .slider-clinic-gallery .slider-arrow-next {
    top: 55%;
    width: 0.31rem;
    height: 0.37rem;
    background: url(../img/clinic/sp/icon_arrow_01.svg) center center/contain no-repeat;
  }

  .slider-clinic-gallery .slider-arrow-previous {
    left: -0.05rem;
  }

  .slider-clinic-gallery .slider-arrow-next {
    right: -0.05rem;
  }

  .slider-clinic-gallery .slider-pagination {
    bottom: 0.16rem;
    font-size: 0.16rem;
  }

  .slider-clinic-gallery .main-slide .slide-wrapper {
    padding-top: calc(188 / 300 * 100%);
  }

  .slider-clinic-gallery .slide-title {
    padding: 0.02rem 0.1rem;
    line-height: 1;
  }

  .slider-clinic-gallery .slider-thumbnail {
    margin-top: 0.05rem;
  }

  .slider-clinic-gallery .thumbnail-slide {
    width: 0.8rem;
    height: 0.47rem;
  }

  .slider-clinic-gallery .thumbnail-slide:not(:last-child) {
    padding-right: 0.05rem;
  }

  .slider-clinic-gallery .thumbnail-slide img {
    width: 100%;
  }
}

/* -------------------------------
* ▼ PC表示
* -------------------------------- */
@media print, (min-width: 768px) {
  .slider-clinic-gallery {
    max-width: 852px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
  }

  .slider-clinic-gallery .slider-arrow-previous,
  .slider-clinic-gallery .slider-arrow-next {
    top: 53.6%;
    width: 60px;
    height: 70px;
    background: url(../img/clinic/icon_arrow_01.svg) center center/contain no-repeat;
  }

  .slider-clinic-gallery .slider-arrow-previous {
    left: -2px;
  }

  .slider-clinic-gallery .slider-arrow-next {
    right: -2px;
  }

  .slider-clinic-gallery .slider-pagination {
    bottom: 14px;
    font-size: 0.2rem;
  }

  .slider-clinic-gallery .main-slide .slide-wrapper {
    padding-top: calc(1028 / 1642 * 100%);
  }

  .slider-clinic-gallery .slide-title {
    min-height: 40px;
    padding: 4px 20px;
  }

  .slider-clinic-gallery .slider-thumbnail {
    margin-top: 10px;
  }

  .slider-clinic-gallery .thumbnail-slide {
    width: auto;
    height: 73px;
  }

  .slider-clinic-gallery .thumbnail-slide:not(:last-child) {
    padding-right: 10px;
  }
}
