.section-character {
  margin-top: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.character-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.content-main {
  height: min(697px, calc(var(--aspect-base) * 697));
  min-height: 387px;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
  justify-content: center;
  background-image: url('/images/chara-background.png');
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  margin-top: clamp(40px, calc(var(--aspect-base) * 60), 60px);
}

.character-movie {
  height: 100%;
  margin-top: auto;
  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 {
  height: min(697px, calc(var(--aspect-base) * 697));
  min-height: 387px;
  width: 100%;
  margin: auto;
}

.slide-wrapper {
  display: flex;
  height: min(697px, calc(var(--aspect-base) * 697));
  min-height: 387px;
  align-items: flex-end;
  width: 100%;
}

.character-image {
  cursor: pointer;
  height: min(697px, calc(var(--aspect-base) * 697));
  min-height: 387px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: absolute;
  bottom: 0;
}
.character-image img {
  height: min(697px, calc(var(--aspect-base) * 697));
  min-height: 387px;
  overflow: hidden;
  position: relative
}
.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 {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: absolute;
  left: calc(50% + 20px);
  top: calc(var(--aspect-base) * 5%);
}
.character-overview {
  width: clamp(416px, calc(var(--aspect-base) * 510), 510px); /*510px;*/
  height: clamp(375px, calc(var(--aspect-base) * 475), 475px); /*410px;*/
  /* margin: 20px auto auto 20px; */

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;

  background-color: rgba(0, 0, 0, .6);
  position: relative;
}
.character-overview::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  display: block;
  border: 2px solid rgba(130, 130, 130, 1);
  border-image: linear-gradient(to top, rgba(130, 130, 130, 1) 0%, rgba(216, 216, 216, 1) 100%);
  border-image-slice: 1;
}
.character-overview p {
  margin-right: 40px;
  margin-left: 40px;
}
.character-name {
  margin-top: 24px;
  font-size: clamp(18px, calc(var(--aspect-base) * 32), 32px);
  line-height: clamp(27px, calc(var(--aspect-base) * 48), 48px);
  font-weight: bold;
}
.character-cv {
  margin-top: clamp(4px, calc(var(--aspect-base) * 8), 8px);
  font-size: clamp(14px, calc(var(--aspect-base) * 18), 18px);
  line-height: clamp(21px, calc(var(--aspect-base) * 26), 26px);
}
.character-description {
  margin-top: clamp(16px, calc(var(--aspect-base) * 24), 24px);
  font-size: clamp(14px, calc(var(--aspect-base) * 18), 18px);
  line-height: clamp(21px, calc(var(--aspect-base) * 27), 27px);
}

/* pc-thumbnail */
.content-thumb-pc {
  margin-top: 80px;
  width: 100%;
  justify-content: center;
  align-items: center;
}
.thumb-pc-wrapper {
  --content-width: 100vw / 1070;
  width: 100%;
  max-width: 1070px;
  margin: 0 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, calc(var(--aspect-base) * 40), 40px);
}
.slide-thumb-pc img {
  cursor: pointer;
  --content-width: 100vw / 1070;
  width: clamp(90px, min(180px, calc(var(--content-width) * 180)), 180px);
  height: clamp(90px, min(180px, calc(var(--content-width) * 180)), 180px);
  border: 1px solid rgba(0, 0, 0, 1);
}
.slide-thumb-pc.pc-thumb-active img {
  cursor: default;
  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;
}

/* 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;
}
.thumb-sp {
  display: none;
}


@media only screen and (max-width: 960px) {

  .thumb-pc {
    display: none;
  }
  .thumb-sp {
    display: flex;
  }

  .content-thumb {
    margin: 28px 0 0 0;
  }

  .character-image {
    --slide-base: calc(100vw / 960);
    left: calc(100vw - 960px);
  }

  .section-character {
    margin-top: 80px;
  }  

  .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 {
    right: 40px;
    left: auto;
  }

  .character-swiper-navigate .swiper-button-prev {
    display: none;
    /*
    width: 24px;
    height: 24px;
    left: 8px;
    right: auto;
    */
  }
  .character-swiper-navigate .swiper-button-next {
    display: none;
    /*
    width: 24px;
    height: 24px;
    left: auto;
    right: 8px;
    */
  }  
  .character-swiper-navigate .swiper-button-prev svg,
  .character-swiper-navigate .swiper-button-next svg 
  {
    width: 24px;
    height: 24px;
  }

}

@media only screen and (max-width: 760px) {
  .character-pc {
    display: none; /**/
  }
  .character-sp {
    display: flex; /**/
  }

  .system-image-content.content-left {
    flex-direction: column-reverse;
  }
  .system-image-content.content-right {
    flex-direction: column;
  }

  .content-thumb {
    width: 100%;
  }

  .character-overview-wrap {
    /* display: none; */
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
  }
  .character-overview {
    width: 100%;
    margin-left: 0;
    margin: 0 16px;
    padding: 24px 16px 24px 16px;
    justify-content: flex-start;
    height: auto;
  }

  .character-overview p {
    margin-left: 0;
    margin-right: 0;
  }

  .character-movie {
    margin: 32px 0 0 0;
    width: 100%;
    justify-content: center;
  }
  .character-movie-button {
    width: 295px;
    height: 56px;
  }
  .character-movie-inner div {
    font-size: 14px;
    line-height: 18px;
  }
  .character-movie-inner svg {
    width: 14px;
    height: 18px;
  }
  
  .character-image {
    --left-base: calc(100vw - 375px);
    left: calc(calc(var(--left-base) * 0.51) - 156px);
  }
  
  .swiper-slide.slide-thumb img {
    --slide-base: calc(100vw / 760);
    width: clamp(90px, min(180px, calc(var(--slide-base) * 180)), 180px);
    height: clamp(90px, min(180px, calc(var(--slide-base) * 180)), 180px);
  }

  .slide-active {
    display: flex !important;
    animation-name:fadeInAnime !important;
    animation-duration:0.5s !important;
    animation-fill-mode:forwards !important;
    opacity:1 !important;
  }
  .slide-deactive {
    display: none;
    animation-name:fadeOutAnime;
    animation-duration:0.5s;
    animation-fill-mode:forwards;
    opacity:0;
  }
  .character-content.character-sp {
    margin-top: 24px;
  }
  .character-content.character-sp p {
    width: 100%;
    text-align: center;
  }
  .character-content.character-sp .character-description {
    margin-top: 24px;
    text-align: left;
  }

  @keyframes fadeInAnime{
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }
  @keyframes fadeOutAnime{
    from {
      opacity: 1;
    }

    to {
      opacity: 0;
    }
  }
}