@charset "UTF-8";
/* ==========================================================================
MV (Main Visual) styles
========================================================================== */
.mvHdr {
  background-color: var(--black);
}
.mv {
  max-width: 144rem;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
.mv_inner {
  display: flex;
}
.mv_side {
  flex: 1;
  overflow: hidden;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 9 / 16;
  }
}
.mv_center {
  flex: 1;
}
.mv_ytWrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
}
.mv_ytWrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media screen and (max-width: 670px) {
  .mv_side {
    display: none;
  }
}

/* ==========================================================================
商品プロモ＋CMギャラリー styles
========================================================================== */

.prmCmSct {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    'prmTop    cm'
    'prmBottom cm';
}
.prmCmSct_inr {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: 100%;
  max-width: 144rem;
  justify-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    'prm cm'
    'prm cm';
  z-index: 1;
}
.prmCmSct_prm {
  position: relative;
  padding-inline: 3rem;
  grid-area: prm;
  display: grid;
  grid-template-rows: 1fr 1fr;
}
.prmCmSct_ttl {
  & img {
    width: auto;
    height: 100%;
  }
  &._left {
    position: absolute;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
    height: 86%;
  }
  &._right {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    height: 86%;
  }
}
.prmCmSct_prm_block {
  padding-block: 10% 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  .prmCmSct_prm_block_inr {
    position: relative;
    width: 70%;
  }
  .prmCmSct_prm_block_img {
    width: 56%;
  }
  .prmCmSct_prm_block_deco {
    position: absolute;
    top: -13%;
    right: 4%;
    width: 68%;
  }
}

/* 右: 1カラム（CMギャラリー） */
.prmCmSct_cm {
  grid-area: cm;
}
@media screen and (min-width: 671px) {
  /* 背景エリア（画面幅いっぱい・Gridで配置） */
  .prmCmSct_bg_prmTop {
    grid-area: prmTop;
    background-color: var(--bb);
  }
  .prmCmSct_bg_prmBottom {
    grid-area: prmBottom;
    background-color: var(--str);
  }
  .prmCmSct_bg_cm {
    grid-area: cm;
    background-color: var(--black);
  }
}
@media screen and (max-width: 670px) {
  .prmCmSct {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .prmCmSct_bg_prmTop {
    grid-row: 1;
  }
  .prmCmSct_bg_prmBottom {
    grid-row: 2;
  }
  .prmCmSct_bg_cm {
    grid-row: 3;
  }
  .prmCmSct_inr {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .prmCmSct_prm {
    grid-area: auto;
    grid-row: 1 / span 2;
    padding-inline: 0;
  }
  .prmCmSct_cm {
    grid-area: auto;
    grid-row: 3;
    background-color: var(--black);
  }
  .prmCmSct_prm_block {
    &._bb {
      background-color: var(--bb);
    }
    &._str {
      background-color: var(--str);
    }
  }
}

/* ==========================================================================
CMスライダー styles
========================================================================== */

.prmCmSct_cm_inr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5%;
  height: 100%;
  padding: 10% 0;
}
.prmCmSct_cm_ttl {
  width: 34%;
}
.prmCmSct_cm_txt {
  display: block;
  margin: 5% auto 0;
  width: 50%;
}
.cmSplide-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
}
.cmSplide {
  position: relative;
}
.cmSlide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  opacity: 0.85;
  transition: opacity 0.05s ease;
  pointer-events: auto;
}
.cmSlide-btn:hover {
  opacity: 1;
}
/* 矢印ボタンのサイズを画面幅に応じて可変に */
.cmSlide-btn {
  width: clamp(1.8rem, 4vw, 2.4rem);
}
.cmSlide-btn img {
  width: 100%;
  height: auto;
}
/* トラック（表示領域）の左右端を基準に配置 */
.cmSlide-prev {
  left: 22%;
  transform: translateY(-50%) translateX(-50%) rotate(180deg);
}
.cmSlide-next {
  right: 22%;
  transform: translateY(-50%) translateX(50%);
}
@media screen and (max-width: 670px) {
  .prmCmSct_cm_inr {
    padding: 10% 0 20%;
  }
  .prmCmSct_cm_ttl {
    width: 50%;
  }
  .cmSlide-prev {
    left: 12%;
  }
  .cmSlide-next {
    right: 12%;
  }
}

/* --- サムネイルボタン --- */
.cmThumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #1a1a1a;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
}
.cmThumb_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
  transition: transform 0.3s ease;
}

.cmThumb:hover .cmThumb_img,
.cmThumb:focus-visible .cmThumb_img {
  transform: scale(1.06);
}

/* 再生ボタンオーバーレイ */
.cmThumb_play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  pointer-events: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cmThumb_play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #111;
}

.cmThumb:hover .cmThumb_play,
.cmThumb:focus-visible .cmThumb_play {
  background: var(--str);
  transform: translate(-50%, -50%);
}

.cmThumb:hover .cmThumb_play::after,
.cmThumb:focus-visible .cmThumb_play::after {
  border-color: transparent transparent transparent #fff;
}

/* 篇名ラベル */
.cmThumb_label {
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-align: center;
  margin: 0.5rem 0 0;
}

/* --- Splide テーマ上書き（ダーク背景用） --- */
.cmSplide .splide__arrow {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.cmSplide .splide__arrow svg {
  fill: #fff;
}

.cmSplide .splide__arrow:hover {
  background: rgba(255, 255, 255, 0.45);
}

.cmSplide .splide__arrow:disabled {
  opacity: 0.3;
}

.cmSplide .splide__pagination__page {
  background: rgba(255, 255, 255, 0.35);
}

.cmSplide .splide__pagination__page.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* ==========================================================================
CM ダイアログ モーダル styles
========================================================================== */

.cmDialog {
  border: none;
  padding: 0;
  background: transparent;
  /* 縦型動画（9:16）に合わせた幅: 75vhの9/16 か 90vw か 380px の小さい方 */
  width: min(calc(75vh * 9 / 16), 90vw, 380px);
  margin: auto;
  overflow: visible;
}

.cmDialog::backdrop {
  background: rgba(0, 0, 0, 0.87);
}

.cmDialog_inr {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.cmDialog_ytWrap {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.cmDialog_ytWrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cmDialog_footer {
  padding: 0.75rem 0;
  text-align: center;
}

.cmDialog_close {
  display: inline-block;
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.cmDialog_close:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
