@charset "UTF-8";

/* ===================================
   遅らせる
=================================== */
.h2_wrap,
.innner {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1s ease,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ディレイ後に表示 */
body.is-page-ready .h2_wrap,
body.is-page-ready .innner {
  opacity: 1;
  transform: translateY(0);
}

/* h2を先に表示 */
body.is-page-ready .h2_wrap {
  transition-delay: 0s;
}

/* スライダーを少し遅らせる */
body.is-page-ready .innner {
  transition-delay: 0.25s;
}
/* ===================================
   レイアウト
=================================== */
.site-wrap,
.content-wrap {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}
main {
  display: flex;
  background: url(../_img/bg.png);
  background-size: 20px;
}

.h2_wrap {
  width: 15%;
  display: flex;
  justify-content: center;
  padding-top: 40px;
  z-index: 10;
}
h2 {
  max-width: 110px;
  width: 70%;
}
h2 img {
  width: 100%;
}

.innner {
  width: 75%;
  background: #fff;
  margin: 0 auto;
  padding: 0 0 50px;
  overflow: hidden;
}
.innner2 {
  width: 10%;
}
.lv2_moon {
  position: absolute;
  top: -360px;
  right: -100px;
  width: 1200px;
  z-index: 1;
  pointer-events: none;
}
.content-wrap {
  overflow: hidden;
}
/* ===================================
   キャラクタースライダー
=================================== */

.character-slider {
  position: relative;
  width: 100%;
  margin-top: 10px;
}

/* ===================================
   キャラクタースライダー
=================================== */
.character-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 150px auto 40px;
  width: 60%;
  position: relative;
  z-index: 100;
}

.character-nav__btn {
  position: relative;
  width: min(140px, 13vw);
  aspect-ratio: 2 / 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #fbe9eb;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.character-nav__btn img {
  display: block;
  padding: 5px;
  width: 120%;
  height: 120%;
  object-fit: contain;
  object-position: center top;
}

.character-nav__btn:hover {
  transform: translateY(-4px);
}

.character-nav__btn.is-active {
  background: #df4d5c;
}

.character-nav__btn.is-active::after {
  position: absolute;
  bottom: -19px;
  left: 50%;
  width: 10px;
  height: 10px;
  content: '';
  border-radius: 50%;
  background: #df4d5c;
  transform: translateX(-50%);
}
.character-group {
  display: none;
}

.character-group.is-active {
  display: block;
  position: relative;
}

.character-group .character-slide {
  position: absolute;
  inset: 0;
}

.character-group .character-slide.is-active {
  position: relative;
}
/* スライダー本体 */

.character-slider__body {
  position: relative;
}

.character-slides {
  position: relative;
  min-height: 670px;
}

.character-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns:
    minmax(80px, 0.5fr)
    minmax(0, 2fr)
    minmax(150px, 0.8fr);
  align-items: center;
  gap: clamp(10px, 2vw, 35px);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    visibility 0s linear 0.55s;
}

.character-slide.is-active {
  position: relative;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

/* 左：人物動画 */

.character-slide__movie {
  width: 120px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  align-self: end;
  transform: translateX(7vw);
  z-index: 2;
}

.character-slide__movie-title {
  margin-bottom: -6px;
  z-index: 100;
  width: 22%;
}

.character-movie-btn {
  width: min(140px, 100%);
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid #df4d5c;
  background: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.character-movie-btn:hover {
  transform: scale(1.05);
}

.character-movie-btn img {
  display: block;
  width: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.character-slide__visual img {
  pointer-events: none;
  -webkit-user-drag: none;
}

/* 中央：立ち絵 */
.character-slide__visual {
  transform: translateX(clamp(20px, 4vw, 60px));

  position: relative;
  height: min(650px, 55vw);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: url(../contents/character/_img/character_bg.jpg) no-repeat center bottom;
  background-size: contain;

  touch-action: pan-y;
  user-select: none;
}

/* 立ち絵だけ切り替え */
.character-slide__visual .visual {
  left: calc(50% + 240px);

  position: absolute;
  left: 50%;
  bottom: 0;
  top: auto;
  width: auto;
  max-width: 100%;
  height: var(--visual-height, 100%);
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.4s;
  bottom: -50px;
}

.character-slide__visual .visual.is-active {
  opacity: 1;
}

/* キャラ別の立ち絵サイズ */
.character-group[data-character-group='koyo'] {
  --visual-height: 88%;
}

.character-group[data-character-group='keiun'] {
  --visual-height: 100%;
}

.character-group[data-character-group='shingdam'] {
  --visual-height: 100%;
}

.character-group[data-character-group='jie'] {
  --visual-height: 95%;
}

/* 右：プロフィール */
.character-slide__profile {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 20px;
  margin-right: 50%;
  z-index: 10;
}
.character-slide__name-wrap {
  display: flex;
  flex-direction: column;
}
.character-slide__description {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  z-index: 11;
  width: min(700px, 80%);
  box-sizing: border-box;
  margin: 50px auto 0;
  padding: 10px 12px;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  writing-mode: horizontal-tb;
}

.character-slide__name {
  display: flex;
  align-items: center;
  gap: 8px;
  writing-mode: vertical-rl;
}

.character-slide__name h3 {
  margin: 0;
  color: #df4d5c;
  font-size: clamp(52px, 5vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
}

.character-slide__name-en {
  position: relative;
  margin: 0;
  padding-bottom: 28px;
  font-size: 15px;
}

.character-slide__cv {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  writing-mode: vertical-rl;
  color: #999;
}
.character-slide__name h3.tume {
  letter-spacing: -0.15em;
}
.character-slide__cv::before {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 2px;
  height: 2px;
  content: '';
  border-radius: 50%;
  background: #df4d5c;
  box-shadow:
    -16px 0 0 #df4d5c,
    -8px 0 0 #df4d5c,
    8px 0 0 #df4d5c,
    16px 0 0 #df4d5c;
  transform: translateX(-50%);
}

.character-slide__cv span {
  font-size: clamp(20px, 2vw, 30px);
}

.character-slide__cv-name a {
  color: #df4d5c;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.25s ease;
  padding-bottom: 38px;
}

.character-slide__cv-name a:hover {
  opacity: 0.65;
}
.character-slide__cv-name a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;

  background: url('../_img/icon_comment.svg') center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
  border: none;
  border-radius: 0;
}

/* 左右矢印 */

.character-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 50px;
  height: 70px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translateY(-50%);
}

.character-arrow--prev {
  left: 30px;
}

.character-arrow--next {
  right: 5px;
}

.character-arrow span {
  display: block;
  width: 28px;
  height: 28px;
  border-top: 2px solid #aaa;
  border-left: 2px solid #aaa;
}

.character-arrow--prev span {
  transform: rotate(-45deg);
}

.character-arrow--next span {
  transform: rotate(135deg);
}

/* ===================================
   SVGアニメ
=================================== */
.line-anime {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.line-anime .cls-1 {
  fill: none;
}

.line-anime .cls-2 {
  fill: #fff;
  stroke: #eba7b8;
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-anime .cls-3 {
  fill: #fff;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ===================================
   YouTube モーダル
=================================== */

.movie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.35s ease,
    visibility 0s linear 0.35s;
}

.movie-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transition:
    opacity 0.35s ease,
    visibility 0s;
}

/* 背景 */
.movie-modal__bg {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.9);
}

/* 中身 */
.movie-modal__inner {
  position: relative;
  z-index: 2;

  width: min(90%, 1100px);

  opacity: 0;
  transform: scale(0.97);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.movie-modal.is-open .movie-modal__inner {
  opacity: 1;
  transform: scale(1);
}

/* YouTube */
.movie-modal__youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.movie-modal__youtube iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* 閉じるボタン */
.movie-modal__close {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 10;

  width: 50px;
  height: 50px;

  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.movie-modal__close span {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 40px;
  height: 2px;

  background: #fff;
}

.movie-modal__close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.movie-modal__close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* モーダル中はスクロール禁止 */
body.is-movie-open {
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .movie-modal__inner {
    width: 92%;
  }

  .movie-modal__close {
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
  }

  .movie-modal__close span {
    width: 32px;
  }
}
/* =====================================================
========================================================
========================================================
   スマホ
======================================================== 
========================================================
===================================================== */

@media screen and (max-width: 767px) {
  /* ===================================
   レイアウト
=================================== */

  main {
    display: flex;
    flex-direction: column;
  }

  .h2_wrap {
    order: 1;
    width: 100%;
    justify-content: center;
    padding: 30px 0 15px;
  }
  h2 {
    width: 15%;
    margin-bottom: 4%;
  }
  .innner {
    order: 2;
    width: 100%;
  }

  .innner2 {
    order: 3;
    width: 100%;
  }
  .lv2_moon {
    position: absolute;
    top: -13%;
    right: -35%;
    width: 140%;
    z-index: 0;
  }
  /* ===================================
   キャラクタースライダー
=================================== */
  .character-slider {
    margin-top: 20%;
  }
  .character-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 90%;
    margin: 50px auto 20%;
    gap: 6px;
    overflow: visible;
  }
  .character-nav__btn {
    width: 100%;
    min-width: 0;
    flex: none;
  }
  .character-nav__btn img {
    width: 100%;
    height: 100%;
    padding: 3px;
    object-fit: contain;
  }

  .character-slides {
    min-height: auto;
  }

  .character-slide {
    grid-template-columns: 1fr;
    gap: 10px;
    position: relative;
  }

  .character-slide__visual {
    position: relative;
    grid-row: 1;
    justify-self: stretch;

    width: 100%;
    height: 480px;
    min-height: 0;
    margin: 0;
    transform: none;

    background-position: center bottom;
  }

  .character-slide__visual .visual {
    position: absolute;
    left: 50%;
    bottom: -50px;

    width: auto;
    max-width: 100%;
    height: var(--visual-height-sp, var(--visual-height, 100%));

    object-fit: contain;
    object-position: center bottom;
    transform: translateX(-50%);
  }
  .character-slide__bg {
    width: 90vw;
  }

  .character-slide__profile {
    position: absolute;
    top: 0;
    right: 3%;
    gap: 8px;
    margin-right: 1%;
  }

  .character-slide__name h3 {
    font-size: 12vw;
  }

  .character-slide__description {
    width: 90%;
    margin-top: 70px;
    padding: 10px;
  }

  .character-slide__cv {
    font-size: 15px;
  }

  .character-slide__movie {
    position: absolute;
    top: 15px;
    left: 0px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    width: 90px;
    transform: none;
    z-index: 20;
  }

  .character-slide__movie-title {
    width: 20%;
    margin: 0;
  }

  .character-slide__movie-title img {
    display: block;
    width: 100%;
  }

  .character-movie-btn {
    width: 55px;
  }
  .character-arrow {
    top: 440px;
    width: 35px;
  }

  .character-arrow--prev {
    left: 5%;
  }

  .character-arrow--next {
    right: 2%;
  }

  .character-arrow span {
    width: 20px;
    height: 20px;
  }
}
