@charset "utf-8";

/* ==========================================================================
   コーディネートメイン画像スタイル (.coordinate-carousel, .coordinate-swiper)
   ========================================================================== */
.coordinate-carousel {
  position: relative;
}
.coordinate-swiper {
  overflow: hidden;
  position: relative;
  aspect-ratio: 5 / 6; /* コーディネート画像は縦長方形 (4:5) */
}
#cms-contents .coordinate-swiper figure {
  margin: 0;
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.coordinate-swiper figure > a {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.coordinate-swiper figure img {
  max-width: none;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}
.coordinate-thumbList figure {
  opacity: 0.6;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}
.coordinate-thumbList figure:hover {
  opacity: 0.8;
}
.coordinate-thumbList figure.active {
  opacity: 1;
  border-color: #000;
}

/* Swiperナビゲーションボタン調整 */
.coordinate-swiper :is(
  .swiper-button-next,
  .swiper-button-prev) {
  text-rendering: auto !important;
  color: #fff !important;
  background-color: rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  opacity: 0;
}
.coordinate-swiper :is(
  .swiper-button-next[aria-disabled="false"],
  .swiper-button-prev[aria-disabled="false"]){
  opacity: 1;
}
.coordinate-swiper :is(
  .swiper-button-next,
  .swiper-button-prev
):after {
  font-size: 16px !important;
  font-weight: 600;
}
.coordinate-swiper .swiper-button-disabled {
  opacity: 0 !important;
}

/* ==========================================================================
   コーディネートサムネイルリストスタイル (.coordinate-thumbList)
   ========================================================================== */
.coordinate-thumbList {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.coordinate-thumbList figure{
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  aspect-ratio: 5 / 6; /* サムネイルも縦長方形に合わせる (5 / 6) */
}
#cms-contents .coordinate-thumbList figure img {
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coordinate-thumbList figure.movie_thumbnail::before{
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.coordinate-thumbList figure.no-thumbnail::before{
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: rgb(160, 160, 160);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.coordinate-thumbList figure.movie_thumbnail::after{
  content: "";
  display: flex;
  width: 30px;
  height: 30px;
  background: url(https://media.aws.locondo.jp/_assets/img/icon-play.svg) no-repeat;
  background-size: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}


/* ==========================================================================
   メディアクエリ (ビューポートの整理)
   ========================================================================== */
/* デスクトップビューポート (769px以上) */
@media (min-width: 769px) {
  /* コーディネートメイン画像とサムネイル */
  .coordinate-detail {
    gap: 12px;
  }
  .coordinate-carousel {
    width: 440px;
  }
  .coordinate-swiper {
    width: 100%;
    margin-bottom: 5px;
  }
  /* コーディネートサムネイルリスト */
  .coordinate-thumbList {
    display: flex;
    /* flex-direction: column; */
    gap: 3px;
    max-height: 512px;
    overflow-y: auto;
  }
  .coordinate-thumbList figure {
    flex: 0 0 calc((100% - 15px) / 6);
    height: auto; 
  }
  /* Swiperナビゲーションボタンホバーエフェクト */
  .coordinate-swiper :is(
    .swiper-button-next,
    .swiper-button-prev
  ):hover {
    background-color: rgba(0, 0, 0, 0.5);
  }
  /* Swiperカウンター */
  .swiper-counter{
    display: none;
  }
}
/* モバイルビューポート (769px以下) */
@media (max-width: 769px) {
  /* コーディネート画像とサムネイル */
  .coordinate-detail {
    flex-direction: column;
  }
  .coordinate-carousel {
    width: 100%;
    order: 1;
  }
  /* コーディネートサムネイルリスト（SP時は非表示、モーダルで表示） */
  /* .coordinate-thumbList {
    flex-wrap: nowrap;
    overflow-x: auto;
  } */
  .coordinate-thumbList figure {
    cursor: pointer;
  }
  /* SPコーディネート画像一覧モーダル専用スタイル */
  #wrap_coordinate-thumbList {
    background-color: #fff;
    padding: 0;
    margin-top: 5px;
  }
  #btn_imgIndex-modal {
    z-index: 10;
  }
  .coordinate-thumbList.uk-modal-dialog {
    transform: translateY(0);
  }
  .coordinate-thumbList .heading {
    display: block !important;
    width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    color: #333;
    padding: 1.4em 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;
  }
  .coordinate-thumbList .heading button {
    all: unset;
    display: inline-block;
    position: absolute;
    left: 16px;
    color: #666;
    line-height: 15px;
    padding-left: 16px;
  }
  .coordinate-thumbList .heading button:after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
    border-right: 1px solid #666;
    border-bottom: 1px solid #666;
  }
  #cms-contents .coordinate-thumbList figure {
    box-sizing: border-box;
    flex: 0 0 calc((100% - 12px) / 5);
    margin: 0;
  }
  /* Swiperカウンター */
  .swiper-counter.swiper-pagination-fraction {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    width: 60px;
    height: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -18px);
    z-index: 10;
  }
}

/* コーディネート画像の右クリック禁止 */
.coordinate-swiper img {
  user-select: none;
  -webkit-user-drag: none;
}

/* サムネイル一覧表示ボタン (SP用) */
.coordinate-thumbs-button {
  display: none;
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 49px;
  height: 18px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 10px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  z-index: 10;
  align-items: center;
  justify-content: center;
}

@media (max-width: 769px) {
  .coordinate-thumbs-button {
    display: flex;
  }
}

/* その他の汎用スタイル */
#main {
  overflow-x: hidden;
}