/*
 * properties-single.css
 *
 *  version --- 1.0
 *  updated --- 2025/10/06
 */
/* ------------------------------------------------
  管理物件詳細ページのギャラリー：メインスライダー
------------------------------------------------ */
.properties-gallery {
  padding: 5.8rem 0 8rem;
}

.properties-gallery .properties-gallery-main {
  position: relative;
  max-width: 965px;
  width: 90%;
  margin: 0 auto 36px;
}

.gallery-slider .swiper-slide {
  aspect-ratio: 965 / 580;
  /* background: #333; */
}

.gallery-slider .swiper-slide img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

/* ---------------------------------------------------
  管理物件詳細ページのギャラリー：サムネイルスライダー
--------------------------------------------------- */
.gallery-slider-thumbnail {
  width: 100%;
  margin: auto;
}

@media screen and (max-width: 380px) {
  .gallery-slider-thumbnail {
    width: 95%;
  }
}

.gallery-slider-thumbnail .swiper-wrapper {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  width: 100%;
}

.gallery-slider-thumbnail .swiper-slide {
  padding: 5px;
  opacity: 0.5;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  width: calc(20% - 10px);
  position: relative;
}

.gallery-slider-thumbnail .swiper-slide .gallery-slider-thumbnail_img {
  aspect-ratio: 965 / 580;
}

.gallery-slider-thumbnail .swiper-slide .gallery-slider-thumbnail_img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  background: #000;
}

.gallery-slider-thumbnail .swiper-slide .thumb-caption {}

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

.properties-gallery .properties-gallery-main .swiper-button-next,
.properties-gallery .properties-gallery-main .swiper-button-prev {
  width: 50px;
  height: 50px;
  top: 50%;
}

.properties-gallery .properties-gallery-main .swiper-button-next {
  right: 0;
}

.properties-gallery .properties-gallery-main .swiper-button-prev {
  left: 0;
}

.properties-gallery .properties-gallery-main .swiper-button-next::before,
.properties-gallery .properties-gallery-main .swiper-button-prev::before,
.properties-gallery .properties-gallery-main .swiper-button-next::after,
.properties-gallery .properties-gallery-main .swiper-button-prev::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  top: 0;
  left: 0;
  transition: all .3s;
}

.properties-gallery .properties-gallery-main .swiper-button-next::before {
  background: url(../img/common/next-arrow.svg) no-repeat center center/cover;
}

.properties-gallery .properties-gallery-main .swiper-button-next::after {
  background: url(../img/common/next-arrow-active.svg) no-repeat center center/cover;
  opacity: 0;
}

.properties-gallery .properties-gallery-main .swiper-button-prev::before {
  background: url(../img/common/prev-arrow.svg) no-repeat center center/cover;
}

.properties-gallery .properties-gallery-main .swiper-button-prev::after {
  background: url(../img/common/prev-arrow-active.svg) no-repeat center center/cover;
  opacity: 0;
}

.properties-gallery .properties-gallery-main .swiper-button-next:hover::before {
  opacity: 0;
}

.properties-gallery .properties-gallery-main .swiper-button-next:hover::after {
  opacity: 1;
}

.properties-gallery .properties-gallery-main .swiper-button-prev:hover::before {
  opacity: 0;
}

.properties-gallery .properties-gallery-main .swiper-button-prev:hover::after {
  opacity: 1;
}

.post-properties .property_btn {
  display: flex;
}

.post-properties .property_btn .btn_link01 {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  height: 5.8rem;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.07em;
  color: rgb(255, 255, 255);
  padding: 0px 1.8rem 0px 2.5rem;
  background: rgb(230, 0, 19);
  transition: .5s;
  margin: 50px auto 0;
}

/*** スマホ ~ 750px***/
@media screen and (max-width: 767px) {

  /* ------------------------------------------------
    管理物件詳細ページのギャラリー：メインスライダー
  ------------------------------------------------ */
  .properties-gallery {
    padding: 20px 0 38px;
  }

  .gallery-slider-thumbnail .swiper-slide .thumb-caption {
    font-size: 10px;
  }

  /* ---------------------------------------------------
    管理物件詳細ページのギャラリー：サムネイルスライダー
  --------------------------------------------------- */
  .gallery-slider-thumbnail .swiper-slide {
    width: calc(25% - 10px);
  }

  .properties-gallery .properties-gallery-main .swiper-button-next,
  .properties-gallery .properties-gallery-main .swiper-button-prev {
    width: 15px;
    height: 15px;
  }

  .properties-gallery .properties-gallery-main .swiper-button-next::before,
  .properties-gallery .properties-gallery-main .swiper-button-prev::before,
  .properties-gallery .properties-gallery-main .swiper-button-next::after,
  .properties-gallery .properties-gallery-main .swiper-button-prev::after {
    width: 15px;
    height: 15px;
  }
}