@charset "utf-8";

/* ========================================
  MAIN
======================================== */
.main {
  padding: 180px 0 80px;
  background: #fffeea;
}

/* ========================================
  TITLE
======================================== */
.main-title__number {
  font-size: var(--font-size-12);
  line-height: 1;
  color: #A32025;
  text-align: center;
}

.main-title h2 {
  margin: 20px auto 0;
  font-size: var(--font-size-24);
  line-height: 1;
  color: #A32025;
  text-align: center;
}

.main-title__text {
  margin: 20px auto 0;
  font-size: var(--font-size-16);
  line-height: 1;
  color: #A32025;
  text-align: center;
}

/* ========================================
  LEAD
======================================== */
.main-lead {
  margin: 125px auto 0;
}

.main-lead p {
  font-size: var(--font-size-14);
  line-height: 2;
  color: #000000;
  text-align: center;
}

/* ========================================
  CARD
======================================== */
.card-section {
  margin: 80px auto 0;
}

.card {
  width: 72.09%;
  aspect-ratio: 620 / 1053;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  margin: 0 auto;
}

.card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(-180deg);
  transition: transform 1.2s cubic-bezier(.45, .05, .2, 1);
}

.card.is-active .card__inner, 
.chapter-lineup__image.is-active .card__inner {
  transform: rotateY(0deg);
}

.card__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card__front {
  transform: rotateY(0deg);
}

.card__back {
  transform: rotateY(180deg);
}

/* PC：右側を1秒遅らせる */
@media only screen and (min-width: 768px) {
  .chapter-lineup__image.is-delay .card__inner {
    transition-delay: 1s;
  }
}

/* SP：時間差なし */
@media only screen and (max-width: 767px) {
  .chapter-lineup__image .card__inner {
    transition-delay: 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card__inner {
    transition-duration: 0.01ms;
    transition-delay: 0s;
  }
}

@media only screen and (min-width: 768px) {
  .card-section {
    width: 100%;
    max-width: 900px;
  }

  .card {
    width: 34.44%;
  }
}

/* ========================================
  CHAPTER TITLE
======================================== */
.chapter-title {
  margin: 80px auto 0;
}

.chapter-title__number {
  background: #A32025;
  font-size: var(--font-size-30);
  line-height: 1;
  color: #C9B55D;
  text-align: center;
}

.chapter-title h3 {
  margin: 30px auto 0;
  font-size: var(--font-size-20);
  line-height: 1;
  color: #A32025;
  text-align: center;
}

.chapter-title__text {
  margin: 30px auto 0;
  font-size: var(--font-size-14);
  line-height: 2;
  color: #000000;
  text-align: center;
}

/* ========================================
  CHAPTER LINE UP
======================================== */
.chapter-lineup {
  margin: 80px auto;
}

/* TAB */
.chapter-lineup__tabs {
  position: sticky;
  top: 55px;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: calc(100% - 40px * 2);
  margin: 0 auto;
}

.chapter-lineup__tab {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0;
  border: 1px solid #A32025;
  background: #ffffff;
  font-size: var(--font-size-18);
  line-height: 1;
  color: #A32025;
  text-align: center;
  cursor: pointer;
}

.chapter-lineup__arrow {
  position: relative;
  display: inline-block;
  width: 6.7px;
  height: 3.8px;
}

.chapter-lineup__arrow::before, 
.chapter-lineup__arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 0.5px);
  width: 1px;
  height: 5px;
  border-radius: 9999px;
  background-color: #A32025;
  transform-origin: 50% calc(100% - 0.5px);
}

.chapter-lineup__arrow::before {
  transform: rotate(45deg);
}

.chapter-lineup__arrow::after {
  transform: rotate(-45deg);
}

/* for HIM */
#him.chapter-lineup__items {
  margin: 80px auto 0;
  padding: 50px 0 60px;
  background: #82945C;
}

/* for HER */
#her.chapter-lineup__items {
  margin: 0;
  padding: 50px 0 60px;
  background: #A42025;
}

.chapter-lineup__items h4 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.chapter-lineup__items h4 span {
  font-size: var(--font-size-30);
  line-height: 1;
  color: #C9B55D;
  text-align: center;
}

.chapter-lineup__item {
  margin: 50px auto 0;
}

.chapter-lineup__item + .chapter-lineup__item {
  margin: 60px auto 0;
}

.chapter-lineup__image {
  width: calc(100% - 20px * 2);
  aspect-ratio: 780 / 975;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  margin: 0 auto;
}

.chapter-lineup__text {
  width: calc(100% - 30px * 2);
  margin: 30px auto 0;
}

.chapter-lineup__number {
  width: 50px;
  margin-left: auto;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #C9B55D;
  border-radius: 50%;
  font-size: var(--font-size-28);
  line-height: 1;
  color: #C9B55D;
  text-align: center;
}

.chapter-lineup__text h5 {
  margin: 10px auto 0;
  font-size: var(--font-size-20);
  line-height: 1;
  color: #ffffff;
  text-align: right;
}

.chapter-lineup__caption {
  margin: 30px auto 0;
  font-size: var(--font-size-14);
  line-height: 2;
  color: #ffffff;
  text-align: left;
}

.chapter-lineup__credits {
  margin: 30px 30px 0 0;
  padding: 30px 0 0;
  border-top: 1px solid #C9B55D;
}

.chapter-lineup__credit {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.chapter-lineup__credit + .chapter-lineup__credit {
  margin: 10px auto 0;
}

.chapter-lineup__credit a {
  font-size: var(--font-size-12);
  line-height: 1;
  color: #ffffff;
  text-align: left;
  transition: all 0.4s ease;
}

.chapter-lineup__credit a:hover {
  color: #C9B55D;
}

.chapter-lineup__credit a + a {
  padding: 0 8px;
  background: #C9B55D;
  border: 1px solid #C9B55D;
  color: #ffffff;
  transition: all 0.4s ease;
}

.chapter-lineup__credit a + a:hover {
  background: none;
}

.chapter-lineup__link {
  margin: 60px auto 0;
}

.chapter-lineup__link a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 46.51%;
  max-width: 200px;
  height: 40px;
  margin: 0 auto;
  padding: 0;
  border: 1px solid #C9B55D;
  background: #C9B55D;
  font-size: var(--font-size-14);
  line-height: 1;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease;
}

.chapter-lineup__link a:hover {
  color: #C9B55D;
  background: none;
}

@media only screen and (min-width: 768px) {
  .chapter-lineup__tabs {
    width: 100%;
    max-width: 900px;
  }

  .chapter-lineup__inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-start;
    gap: 20px;
  }

  .chapter-lineup__item + .chapter-lineup__item {
    margin: 50px auto 0;
  }

  .chapter-lineup__credits {
    margin: 30px 30px 0 30px;
  }
}