@charset "UTF-8";

/* プラン詳細_メイン画面 */
.planDetailMainPanel__mainImage {
  padding: 0 20px;
  margin-top: 10px;
}

.planDetailMainPanel__slideImageThumbnail {
  margin-top: 10px;
}

.slideImage .slick-next::before,
.slideImage .slick-prev::before {
  content: '';
}

.slideImage .slick-prev,
.slideImage .slick-next {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 46px;
  height: 88px;
  color: transparent;
  cursor: pointer;
  border: none;
  transform: translate(0, -50%);
}

.slideImage .slick-prev {
  left: 0;
  background: url('../../../img/common/gallery_left.png') no-repeat center / 26px 48px;
}

.slideImage .slick-next {
  right: 0;
  background: url('../../../img/common/gallery_right.png') no-repeat center / 26px 48px;
}

.slideImage .slick-prev:hover,
.slideImage .slick-next:hover {
  opacity: 0.6;
}

.slideImage__item {
  position: relative;
  height: 518px;
  background-color: #f4f4f4;
}

.slideImage__image {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

.slideImage__imageCaptionWrap {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.slideImage__caption {
  display: flex;
  gap: 10px;
  padding: 10px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
}

.slideImage__captionText {
  overflow-wrap: anywhere;
}

.slideImageThumbnail {
  width: 100%;
  max-width: 690px;
  height: auto;
  max-height: 68px;
}

.slideImageThumbnail .slick-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  transform: unset !important; /* サムネイルの固定 (ループさせない) */
}

.slideImageThumbnail__item {
  width: 100%;
  max-width: calc((100% - 60px) / 7); /* max-width: (最大幅 - 余白数) / 最大コンテンツ数 */
  margin-right: 10px;
  cursor: pointer;
  opacity: 0.5;
}

.slideImageThumbnail__item.slick-current {
  cursor: default;
  opacity: 1;
}

.slideImageThumbnail__item:last-child {
  margin-right: 0;
}

.slideImageThumbnail__item:hover {
  opacity: 1;
}

.slideImageThumbnail__image {
  width: 100%;
  max-width: 90px;
  max-height: 68px;
  object-fit: scale-down;
}

.isHedden {
  display: none;
}

@media screen and (max-width: 767px) {
  .planDetailMainPanel__slideImageThumbnail {
    display: none;
  }

  .planDetailMainPanel {
    min-width: calc(320px - 20px);  /* bodyと合わせる(bodyのmin-width - 要素のmargin) */
    margin: 0 10px;
  }

  .planDetailMainPanel__mainImage {
    display: flex;
    justify-content: center;
    padding: 0 0 20px;
    margin: 0;
    background-color: #fff;
  }

  .slideImage {
    position: relative;
    width: calc(100% - 20px);   /* コンテンツ最小値以下は可変(全体 - 親要素のmargin) */
    max-width: 336px;
    max-height: 252px;
  }

  .slideImage .slick-prev,
  .slideImage .slick-next {
    width: 30px;
    height: 30px;
  }

  .slideImage .slick-prev {
    background: url('../../../img/common/gallery_left_sp.png') no-repeat center / 10px 15px rgba(0, 0, 0, 0.5);
  }

  .slideImage .slick-next {
    background: url('../../../img/common/gallery_right_sp.png') no-repeat center / 10px 15px rgba(0, 0, 0, 0.5);
  }

  .slideImage .slick-prev:hover,
  .slideImage .slick-next:hover {
    opacity: 1;
  }

  .slideImage__item {
    width: 336px;
    height: 252px;
  }

  .slideImage__caption {
    gap: 5px;
    padding: 5px 10px;
  }
}