.section-character {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.character-content {
  max-width: 1300px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}
.content-main {
  height: 510px;
  min-height: 387px;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
  justify-content: center;
}

.character-movie {
  margin-right: 0;
  margin-left: 40px;
  margin-bottom: clamp(16px, calc(var(--aspect-base) * 24), 24px);
  display: flex;
  align-items: flex-end;
  position: relative;
  cursor: pointer;
  z-index: 9;
}
.character-movie-click {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.character-movie-click div {
  width: 100%;
  height: 100%;
}
.character-movie-button {
  width: clamp(182px, calc(var(--aspect-base) * 207), 207px);
  height: clamp(48px, calc(var(--aspect-base) * 56), 56px);
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.character-movie-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #303031 0%, rgba(48, 48, 49, 0) 100%);

  display: flex;
  justify-content: center;
  align-items: center;
  line-height: clamp(18px, calc(var(--aspect-base) * 21), 21px);
  font-size: clamp(14px, calc(var(--aspect-base) * 18), 18px);
  font-weight: normal;
}
.character-movie-inner div {
  margin-left: 8px;
}
.character-movie-inner svg {
  width: clamp(14px, calc(var(--aspect-base) * 16), 16px);
  height: clamp(18px, calc(var(--aspect-base) * 20), 20px);
}

/* swiper */
.swiper-main {
  min-height: 387px;
  width: 100%;
  margin: 0;
}

.slide-wrapper {
  display: flex;
  min-height: 387px;
  align-items: flex-end;
  width: 100%;
}

.character-image {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: clamp(320px, 40vw, 518px);
  min-height: clamp(260px, 30vw, 420px);
  padding: 15px clamp(20px, 4vw, 38px) 15px clamp(30px, 6vw, 114px);
  overflow: hidden;
  position: relative;
}

.character-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.character-linear {
  width: 100%;
  height: min(80px, calc(var(--aspect-base) * 80));
  background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 100%);
  position: absolute;
}

.character-overview-wrap {
  justify-content: center;
  height: 100%;
}
.character-overview {
  width: clamp(416px, calc(var(--aspect-base) * 510), 510px);
  min-height: clamp(375px, calc(var(--aspect-base) * 475), 475px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
}
.character-name {
  font-size: clamp(20px, calc(var(--aspect-base) * 32), 32px);
  line-height: clamp(27px, calc(var(--aspect-base) * 48), 48px);
  font-weight: bold;
}
.character-description {
  margin: 25px 0;
  font-size: clamp(14px, calc(var(--aspect-base) * 16), 16px);
  line-height: clamp(21px, calc(var(--aspect-base) * 24), 24px);
  max-width: 630px;
  min-height: calc(6 * 1lh);
}

/* pc-thumbnail */
.content-thumb-pc {
  margin-top: 32px;
  width: 100%;
  justify-content: center;
  align-items: center;
}
.thumb-pc-wrapper {
  --content-width: 100vw / 1172;
  max-width: 1172px;
  margin: 0 42px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: clamp(4px, calc(var(--aspect-base) * 6), 6px);
}
@media (max-width: 780px) {
  .thumb-pc-wrapper {
    grid-template-columns: repeat(5, 1fr);
  }
}
.slide-thumb-pc {
  position: relative;
  display: inline-block;
  width: clamp(64px, calc(var(--aspect-base) * 110), 110px);
  border: 2px solid #5d5d5d;
}

.slide-thumb-pc:hover {
  border: 2px solid #3aa162;
}

.slide-thumb-pc.pc-thumb-active {
  border: 2px solid #3aa162;
}

.slide-thumb-pc img {
  cursor: pointer;
  --content-width: 100vw / 1172;
  width: clamp(62px, calc(var(--aspect-base) * 110), 110px);
  height: clamp(62px, calc(var(--aspect-base) * 110), 110px);
  opacity: 0.5;
  background-color: rgba(0, 0, 0, 1);
}
.slide-thumb-pc.pc-thumb-active img {
  cursor: default;
  border-image-slice: 1;
  opacity: 1;
}

.slide-thumb-pc.pc-thumb-active::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: 0;
  bottom: 0;
  background: url(/images/character-active-effect.png) no-repeat center center;
  background-size: contain;
  pointer-events: none;
  gap: clamp(4px, calc(var(--aspect-base) * 8), 8px);
  z-index: 2;
  width: clamp(64px, calc(var(--aspect-base) * 114), 114px);
  height: clamp(64px, calc(var(--aspect-base) * 114), 114px);
}

/* swiper thumbnail */
.content-thumb {
  display: inline-flex;
  justify-content: center;
  flex-grow: 1;
  /* margin: 80px 0 0 16px; */
  max-width: 1920px;
}
.swiper-thumb {
  max-width: 1060px;
  margin: 0;
}

.swiper-thumb .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: auto !important;
}

.swiper-slide.slide-thumb img {
  width: 180px;
  height: 180px;
  border: 1px solid rgba(0, 0, 0, 1);
}

.slide-thumb {
  cursor: pointer;
}

.slide-thumb.swiper-slide-thumb-active img {
  opacity: 0.5;
  background-color: rgba(0, 0, 0, 1);
  border: 1px solid rgba(130, 130, 130, 1);
  border-image: linear-gradient(to bottom, rgba(130, 130, 130, 1) 0%, rgba(216, 216, 216, 1) 100%);
  border-image-slice: 1;
}

.character-swiper-navigate {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
}
.character-swiper-navigate .swiper-button-prev {
  width: 64px;
  height: 64px;
  left: auto;
  right: clamp(860px, 90%, 1526px);
}
.character-swiper-navigate .swiper-button-next {
  width: 64px;
  height: 64px;
  left: clamp(860px, 90%, 1526px);
  right: auto;
}
.character-swiper-navigate .swiper-button-prev:after,
.character-swiper-navigate .swiper-button-next:after {
  content: "" !important;
}

.character-pc {
  display: flex;
}
.character-sp {
  display: none;
}
.thumb-pc {
  display: flex;
}
.character-movie-wrap {
  width: clamp(416px, calc(var(--aspect-base) * 510), 510px);
  max-width: 510px;
  max-height: 290px;
  height: auto;
}
.character-movie-item .movie-icon-wrapper {
  width: 100%;
  height: 290px;
  position: absolute;
  top: 38%;
  left: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-bottom: 14px;
}
.movie-play-sp {
  display: none;
}

@media only screen and (max-width: 960px) {
  .swiper-slide .slide-wrapper {
    display: flex;
    position: relative;
  }

  .content-thumb {
    margin: 0;
  }

  .character-image {
    --slide-base: calc(100vw / 960);
    width: 90%;
    margin: 0 auto 0 0;
  }

  .section-character {
    margin-top: 0px;
  }

  .swiper-thumb .swiper-wrapper {
    flex-wrap: nowrap;
    margin-left: 16px;
  }

  .swiper-slide.slide-thumb img {
    --slide-base: calc(100vw / 960);
    width: clamp(90px, min(180px, calc(var(--slide-base) * 180)), 180px);
    height: clamp(90px, min(180px, calc(var(--slide-base) * 180)), 180px);
  }

  .character-overview-wrap {
    position: absolute;
    top: 0;
  }

  .character-swiper-navigate .swiper-button-prev {
    display: none;
  }
  .character-swiper-navigate .swiper-button-next {
    display: none;
  }
  .character-swiper-navigate .swiper-button-prev svg,
  .character-swiper-navigate .swiper-button-next svg {
    width: 24px;
    height: 24px;
  }

  .swiper-main .swiper-slide .slide-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 336px;
    margin: 0 auto;
  }
  .swiper-main .swiper-slide .character-overview-wrap {
    position: static;
  }
  .swiper-main .swiper-slide .character-overview {
    height: auto;
    min-height: auto;
  }
  .swiper-main .swiper-slide .character-description {
    margin: 12px 0;
    max-width: none;
    height: auto;
  }

  .swiper-main .swiper-slide .character-image {
    position: relative;
    order: 2;
    padding: 0;
  }
  .swiper-main .swiper-slide .character-overview .character-movie-item {
    display: none;
  }

  .movie-play-sp {
    display: block;
    position: absolute;
    right: 0px;
    bottom: 0px;
    width: 80px;
    height: 80px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0) url("/images/movie_play_sp.svg") no-repeat center / contain;
    cursor: pointer;
  }

  .movie-play-sp::before {
    content: "MOVIE";
    position: absolute;
    font-family: "Noto Serif JP";
    bottom: 86px;
    left: 15px;
    font-size: 12px;
    font-weight: bold;
    color: #3aa162;
    letter-spacing: 2.4px;
    pointer-events: none;
  }

  .character-description {
    font-size: 14px;
  }
  .character-overview-wrap {
    width: 340px;
  }
  .slide-thumb-pc.pc-thumb-active::after {
    top: 0px;
    left: 0px;
  }
}
