.episode {
  margin-top: 15rem;
}
@media (max-width: 767px) {
  .episode {
    margin-top: 5.6rem;
  }
}
.sec-title__en_text.sec-title__en_text--episode {
  line-height: 1.4;
}
.sec-title__en.sec-title__en--episode::before,
.sec-title__en.sec-title__en--episode::after {
  margin-bottom: 4rem;
}
@media (max-width: 767px) {
  .sec-title__en.sec-title__en--episode::before,
  .sec-title__en.sec-title__en--episode::after {
    margin-bottom: 2rem;
  }
}
.episode__contents .episode__navigation {
  padding-bottom: 8rem;
}
@media (max-width: 767px) {
  .episode__contents .episode__navigation {
    padding-bottom: 4rem;
  }
}
.sec-intro.sec-intro--episode {
  padding-bottom: 12rem;
}
@media (max-width: 767px) {
  .sec-intro.sec-intro--episode {
    margin-top: 0;
    padding-bottom: 4rem;
  }
  .sec-intro--episode .sec-intro__text03::after {
    width: 8rem;
    height: 8rem;
    bottom: -8rem;
  }
}
.episode__number {
  padding-bottom: 5.6rem;
  border-bottom: 1px solid #9366F6;
}
@media (max-width: 767px) {
  .episode__number {
    padding-bottom: 4rem;
  }
}
.episode__number-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  column-gap: .8rem;
  row-gap: .8rem;
}

@media (max-width: 767px) {
  .episode__number-list {
    column-gap: 0.4rem;
    row-gap: 0.6rem;
    width: 100%;
  }
}

.episode__number-title {
  font-size: 1.8rem;
  font-weight: 500;
}
.episode__number-title a {
  font-size: 1.8rem;
  font-weight: 500;
}

@media (max-width: 767px) {
  .episode__number-title {
    font-size: 1.5rem;
  }
  .episode__number-title a {
    font-size: 1.5rem;
  }
}

.episode__number-item {
  font-size: 1.8rem;
}
.episode__number-item a {
  font-size: 1.8rem;
  font-weight: 500;
}

@media (max-width: 767px) {
  .episode__number-item {
    font-size: 1.5rem;
  }
  .episode__number-item a {
    font-size: 1.5rem;
  }
}

.episode__number-link {
  text-decoration: none;
  display: inline-block;
  opacity: 1;
  transition: all 300ms ease;
  cursor: pointer;
  color: #4A4ADC;
  border: 1px solid #2D21F3;
  padding: .8rem 2rem;
  border-radius: 10rem;
}
@media (max-width: 767px) {
  .episode__number-link {
    white-space: nowrap;
    padding: .4rem 1.4rem;
  }
}

.episode__number-link.active {
  color: #fff;
  background: linear-gradient(123deg, #1C1DF3 14.39%, #EB52F2 87.33%);
}

@media (max-width: 767px) {
  .episode__number-link:hover {
    opacity: 1;
  }
}

.episode__contents-wrap {
  margin-top: 4rem;
}

@media (max-width: 767px) {
  .episode__contents-wrap {
    margin-top: 4rem;
  }
}

.episode__contents {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: none;
  /* デフォルトで非表示 */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.episode__contents.active {
  display: block;
  opacity: 1;
}

@media (max-width: 767px) {
  .episode__contents {
    width: 100%;
  }
}

.episode__contents-title {
  display: flex;
  justify-content: left;
  column-gap: 2.4rem;
  font-size: 2.8rem;
  color: #4A4ADC;
  position: relative;
  padding-left: 8rem;
}
.episode__contents-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 7rem;
  height: 7rem;
  background-image: url(../img/episode/butterfly.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
@media (max-width: 767px) {
  .episode__contents-title {
    column-gap: 0.8rem;
    font-size: 2rem;
    padding-left: 4.8rem;
  }
  .episode__contents-title::before {
    width: 4.2rem;
    height: 4.2rem;
  }
}

.episode__contents-titleNumber {
  flex-shrink: 0;
}

.episode__contents-slider {
  margin-top: 4rem;
}

@media (max-width: 767px) {
  .episode__contents-slider {
    margin-top: 1.6rem;
  }
}

.episode__contents-sliderItem {
  position: relative;
  width: 100%;
}

.episode__contents-text {
  margin-top: 2.4rem;
  font-size: 1.8rem;
  line-height: 1.6;
  word-break: break-all;
  font-family: "メイリオ", "Meiryo", sans-serif;
}

@media (max-width: 767px) {
  .episode__contents-text {
    margin-top: 1.6rem;
    font-size: 1.6rem;
  }
}

/* サムネイルスライダーのスタイル */
.slick-list {
  margin: 0 -0.4rem;
}
.slick-slide {
  margin: 0 0.4rem;
}
.episode__contents-slider-thumb {
  width: 100%;
  margin-top: 0.8rem;
}
@media (max-width: 767px) {
  .slick-list {
    margin: 0 -0.2rem;
  }
  .slick-slide {
    margin: 0 0.2rem;
  }
  .episode__contents-slider-thumb {
    margin-top: .4rem;
  }
}
.episode__contents-sliderThumbItem {
  cursor: pointer;
  opacity: 1;
}

.episode__contents-sliderThumbItem:hover,
.episode__contents-sliderThumbItem.slick-current {
  opacity: 0.6;
}

.episode__contents-sliderThumbItem img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* サムネイルスライダーのトラックを固定 */
.episode__contents-slider-thumb .slick-track {
  transform: none !important;
}

.episode__number-title a {
  text-decoration: none;
}

.page-episode__wrap .introduction {
  margin-bottom: 12rem;
}

@media (max-width: 767px) {
  .page-episode__wrap .introduction {
    margin-bottom: 9.6rem;
  }
}

/* introductionセクションの表示制御 */
.sec-intro {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sec-intro.active {
  display: block;
  opacity: 1;
}

/* エピソードナビゲーション */
.episode__navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  border-top: 1px solid #9366F6;
  padding-top: 4.8rem;
}

.episode__nav-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2.4rem;
  color: #4A4ADC;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.episode__nav-button:hover {
  transform: translateY(-2px);
}

.episode__nav-button.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.episode__nav-button.disabled:hover {
  transform: none;
  box-shadow: none;
}

.episode__nav-arrow {
  font-size: 1.8rem;
}

@media (max-width: 767px) {
  .episode__navigation {
    margin-top: 4rem;
    padding: 5.6rem 0 0;
  }

  .episode__nav-button {
    padding: 0;
    font-size: 1.4rem;
  }

  .episode__nav-arrow {
    font-size: 1.4rem;
  }
}