/* ==========================================================================
  Project: Videos List (p-videos-list)
========================================================================== */

.p-videos-list {
  position: relative;
  width: 100%;
  padding: 6rem 0 14rem;
}

.p-videos-list__inner {
  max-width: 100rem;
  margin: 7.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 12rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.p-videos-list::before {
  content: "";
  position: absolute;
  top: 34rem;
  left: 0;
  right: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(76, 223, 223, 0.15) 0%, rgba(247, 255, 9, 0.15) 15%);
  border-radius: 0 85rem;
  height: 79%;
}

.p-videos-list__item {
  position: relative;
  width: 100%;
  display: flex;
}

/* 奇数行（1, 3, 5）は画像を左側に寄せる */
.p-videos-list__item--c1,
.p-videos-list__item--c3,
.p-videos-list__item--c5 {
  justify-content: flex-start;
}

/* 偶数行（2, 4）は画像を右側に寄せる */
.p-videos-list__item--c2,
.p-videos-list__item--c4 {
  justify-content: flex-end;
}

.p-videos-list__img-block {
  position: relative;
  width: 60rem;
}

.p-videos-list__video {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.p-videos-list__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 動画の背後に配置する装飾背景 */
.p-videos-list__img-block::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 12rem;
  width: 60rem;
  height: 28rem;
  background: linear-gradient(0deg, rgba(247, 255, 9, 0.75) 55%, rgba(76, 223, 223, 0.75) 100%);
}

/* 奇数番目（1, 3, 5）：動画から左に10rem、下に6.8remずらす */
.p-videos-list__item--c1 .p-videos-list__img-block::before,
.p-videos-list__item--c3 .p-videos-list__img-block::before,
.p-videos-list__item--c5 .p-videos-list__img-block::before {
  left: -10rem;
}

/* 偶数番目（2, 4）：動画から右に10rem、下に6.8remずらす */
.p-videos-list__item--c2 .p-videos-list__img-block::before,
.p-videos-list__item--c4 .p-videos-list__img-block::before {
  left: 10rem;
}

.p-videos-list__text-block {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-sizing: border-box;
  padding: 5rem 4rem;
  color: #000;
  z-index: 2;
}

.p-videos-list__txt-wrapper {
  position: relative;
}

.p-videos-list__text-num {
  position: absolute;
}

.p-videos-list__lead {
  font-size: 1.8rem;
  line-height: 1.6;
  position: absolute;
  text-align: center;
}

.p-videos-list__char {
  position: absolute;
  z-index: 2;
}

/* --------------------------------------------------------------------------
個別設定
-------------------------------------------------------------------------- */

/* --- Chapter 1 --- */
.p-videos-list__item--c1 .p-videos-list__text-block {
  background-image: url(../img/videos/videos_parts01.webp);
  width: 38rem;
  height: 30rem;
  top: 0rem;
  right: -1rem;
}

.p-videos-list__text-num--c1 {
  width: 20rem;
  top: -2rem;
  left: -1rem;
}

.p-videos-list__lead--c1 {
  top: 6rem;
  left: 7rem;
}

.p-videos-list__text-parts--c1 {
  position: absolute;
  width: 19rem;
  top: 12.5rem;
  right: -2.2rem;
}

/* --- Chapter 2 --- */
.p-videos-list__item--c2 .p-videos-list__text-block {
  background-image: url(../img/videos/videos_parts02.webp);
  width: 56rem;
  height: 49rem;
  top: -6rem;
  left: -10rem;
}

.p-videos-list__text-num--c2 {
  width: 20rem;
  top: 4rem;
  left: 6rem;
}

.p-videos-list__lead--c2 {
  top: 13rem;
  left: 14rem;
}

/* --- Chapter 3 --- */
.p-videos-list__item--c3 .p-videos-list__text-block {
  background-image: url(../img/videos/videos_parts01.webp);
  width: 48rem;
  height: 49rem;
  top: -4rem;
  right: -10rem;
}

.p-videos-list__text-num--c3 {
  width: 20rem;
  top: 5rem;
  left: 1rem;
}

.p-videos-list__lead--c3 {
  top: 13rem;
  left: 9rem;
}

/* --- Chapter 4 --- */
.p-videos-list__item--c4 .p-videos-list__text-block {
  background-image: url(../img/videos/videos_parts02.webp);
  width: 56rem;
  height: 49rem;
  top: -6rem;
  left: -10rem;
}

.p-videos-list__text-num--c4 {
  width: 20rem;
  top: .5rem;
  left: 6rem;
}

.p-videos-list__lead--c4 {
  top: 15rem;
  left: 9rem;
}

.p-videos-list__text-parts--c4 {
  position: absolute;
  width: 15.4rem;
  top: 22.5rem;
  left: -0.2rem;
}

/* --- Chapter 5 --- */
.p-videos-list__item--c5 .p-videos-list__text-block {
  background-image: url(../img/videos/videos_parts01.webp);
  width: 50rem;
  height: 49rem;
  top: -6rem;
  right: -10rem;
}

.p-videos-list__text-num--c5 {
  width: 25rem;
  top: 5rem;
  left: 0rem;
}

.p-videos-list__lead--c5 {
  top: 14rem;
  left: 10rem;
}

@media screen and (max-width: 768px) {

  .p-videos-list {
    padding: 0 0 24rem;
  }

  .p-videos-list__inner {
    gap: 28rem;
  }

  .p-videos-list::before {
    top: 13rem;
    height: 92%;
  }

  .p-videos-list__item {
    flex-direction: column;
    gap: 2rem;
  }

  .p-videos-list__item--c5 {
    margin-top: 2rem;
  }

  .p-videos-list__img-block {
    width: 33.5rem;
    margin: 0 auto;
  }

  .p-videos-list__img-block::before {
    top: 4rem;
    left: 50%;
    width: 100vw;
    height: 19rem;
    transform: translateX(-50%);
  }

  .p-videos-list__item--c1 .p-videos-list__img-block::before,
  .p-videos-list__item--c2 .p-videos-list__img-block::before,
  .p-videos-list__item--c3 .p-videos-list__img-block::before,
  .p-videos-list__item--c4 .p-videos-list__img-block::before,
  .p-videos-list__item--c5 .p-videos-list__img-block::before {
    left: 50%;
  }

  .p-videos-list__item--c1 .p-videos-list__text-block,
  .p-videos-list__item--c5 .p-videos-list__text-block {
    width: 38rem;
    height: 19rem;
    top: 20rem;
    right: auto;
  }

  .p-videos-list__item--c3 .p-videos-list__text-block {
    width: 36rem;
    height: 24rem;
    top: 20rem;
    right: auto;
  }

  .p-videos-list__item--c2 .p-videos-list__text-block,
  .p-videos-list__item--c4 .p-videos-list__text-block {
    background-image: url(../img/videos/videos_parts02_sp.webp);
    width: 41rem;
    height: 49rem;
  }

  .p-videos-list__text-num {
    width: 15rem;
    top: -4rem;
    left: -1rem;
  }

  .p-videos-list__lead {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  /* --------------------------------------------------------------------------
  個別設定
  -------------------------------------------------------------------------- */

  /* --- Chapter 1 --- */
  .p-videos-list__lead--c1 {
    top: 2rem;
    left: 8rem;
  }

  .p-videos-list__text-parts--c1 {
    width: 11rem;
    top: 1.5rem;
  }

  /* --- Chapter 2 --- */
  .p-videos-list__item--c2 .p-videos-list__text-block {
    top: 8rem;
    left: -1rem;
  }

  .p-videos-list__text-num--c2 {
    top: 8rem;
    left: 2rem;
    width: 14rem;
  }

  .p-videos-list__lead--c2 {
    top: 15.5rem;
    left: 5rem;
  }

  /* --- Chapter 3 --- */

  .p-videos-list__lead--c3 {
    top: 2rem;
    left: 6rem;
  }

  /* --- Chapter 4 --- */
  .p-videos-list__item--c4 .p-videos-list__text-block {
    top: 8.5rem;
    left: -2rem;
  }

  .p-videos-list__lead--c4 {
    top: 16.5rem;
    left: 5.5rem;
    letter-spacing: -.04em;
  }

  .p-videos-list__text-num--c4 {
    width: 16rem;
    top: 5rem;
    left: 2rem;
  }

  .p-videos-list__text-parts--c4 {
    position: absolute;
    width: 8rem;
    top: 21.5rem;
    right: 1.8rem;
    left: auto;
  }

  /* --- Chapter 5 --- */
  .p-videos-list__item--c5 .p-videos-list__text-block {
    width: 36rem;
    height: 22rem;
    top: 20rem;
    right: auto;
  }

  .p-videos-list__text-num--c5 {
    width: 18.6rem;
    top: -4rem;
    left: 1rem;
  }

  .p-videos-list__lead--c5 {
    top: 2rem;
    left: 7rem;
  }
}


.p-videos-bottom {
  padding-bottom: 20rem;
  position: relative;
}

.p-videos-bottom__parts {
  position: absolute;
  width: 18.6rem;
  bottom: 8rem;
  right: 27rem;
}

@media screen and (max-width: 768px) {
  .p-videos-bottom__parts {
    width: 17rem;
    bottom: 7.5rem;
    right: 3rem;
  }
}