@charset "UTF-8";

/* =============================================
  HIGHLIGHT — 共通見出しパーツ（EXHIBITION/SPECIAL TRAINING ROOM/MISSIONS）
============================================= */
#highlight main {
  overflow-x: hidden;
}

.highlight-intro__label {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  color: rgba(214, 23, 24, .5);
  letter-spacing: .01em;
  line-height: 1.5;
}

.highlight-intro__title {
  font-family: var(--font-jp-heading);
  font-weight: 900;
  font-size: var(--fs-heading);
  line-height: 1.5;
  margin-bottom: .25em;
  letter-spacing: 7.5%;
}

.highlight-intro__text {
  font-size: var(--fs-body);
  line-height: 2;
  font-weight: bold;
  letter-spacing: 5%;
  width: 100%;
}

/* =============================================
  EXHIBITION
============================================= */
.highlight-intro__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
}

.highlight-intro__gallery {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: clamp(2rem, 5vw, 5rem);
}

.highlight-intro__track {
  display: flex;
  width: max-content;
  height: 300px;
  animation: highlight-gallery-loop 48s linear infinite;
  gap: max(2vw, 30px);
}

.highlight-intro__photo {
  position: relative;
  display: block;
  flex: none;
  overflow: hidden;
  height: 100%;
  width: auto;
  aspect-ratio: 500 / 335;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

@keyframes highlight-gallery-loop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 992px) {
  .highlight-intro__row {
    grid-template-columns: auto 1fr;
    gap: 5rem;
  }

  .highlight-intro__text {
    margin-top: 0;
  }
}

/* =============================================
  SPECIAL TRAINING ROOM
============================================= */

.highlight-training {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: .5rem;
}

span.highlight-training__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: black;
}

.highlight-training__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 7vw, 6rem) 0;
  gap: 1.25em;
  width: var(--container-width);
  margin: auto;
}

.highlight-training .highlight-intro__text {
  max-width: 900px;
}

.highlight-intro__cast-name {
  white-space: nowrap;
}

/* =============================================
  MISSIONS 見出し
============================================= */

.highlight-missions-intro {
  position: relative;
}

.highlight-missions-intro .highlight-intro__label {
  margin-bottom: .25em;
}

.highlight-missions-intro .highlight-intro__text {
  line-height: 1.8;
}

.highlight-missions-intro::before,
.highlight-course--kouan .highlight-course__characters::before,
.highlight-hayato::after {
  content: '';
  position: absolute;
  z-index: -3;
  width: 80vw;
  aspect-ratio: 1440 / 1029;
  background: url('../highlight/img/highlight-bg.webp') no-repeat center / contain;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: .8;
}

.highlight-missions-intro::before {
  left: 0;
  top: clamp(-5rem, -7.5vw, -3rem);
}

.highlight-course--kouan .highlight-course__characters::before {
  top: calc(30% + 6rem);
  right: 0;
  transform: scaleX(-1);
}

.highlight-hayato::after {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

/* =============================================
  コース紹介（別班/公安/テント/ドラム 共通）
============================================= */
.highlight-course {
  position: relative;
}

.highlight-course__banner {
  position: relative;
  z-index: 0;
  padding: clamp(.5rem, 2vw, 1rem) 0;
  margin-bottom: calc(var(--fs-body) + 3rem);
  width: 50vw;
  min-width: fit-content;
}

.highlight-course__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(214, 23, 24, 0.25) 37.98%, rgba(214, 23, 24, 0) 100%);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s ease;
}

.page-section.is-inview .highlight-course__banner::after {
  clip-path: inset(0 0 0 0);
}

.highlight-course__banner::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 100vw;
  background: rgba(214, 23, 24, 0.25);
  z-index: -1;
}

.highlight-course__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: var(--fs-subheading);
  line-height: 2;
}

.highlight-course__title .char-reveal {
  animation-play-state: paused;
}

.page-section.is-inview .highlight-course__title .char-reveal {
  animation-play-state: running;
}

.highlight-course__name {
  display: inline-block;
  font-size: var(--fs-heading);
  font-weight: 900;
  color: var(--color-red);
  line-height: 1;
  margin-right: .25em;
}

.highlight-course__emblem {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(10rem, 25vw, 22.25rem);
  aspect-ratio: 1 / 1;
  background: no-repeat center / contain;
  opacity: .5;
  pointer-events: none;
}

.highlight-course--tent .highlight-course__emblem {
  background-image: url('../highlight/img/tent-emblem.svg');
}

.highlight-course--beppan .highlight-course__emblem {
  background-image: url('../highlight/img/beppan-emblem.png');
}

.highlight-course__mission {
  position: relative;
  border: 1px solid var(--color-red);
  padding: 1.25em 1.5em;
  margin: 0 0 3rem;
  width: fit-content;
}

.highlight-course__mission-label {
  position: absolute;
  left: -1px;
  top: 0;
  transform: translateY(-100%);
  display: inline-flex;
  align-items: center;
  padding: .5em 1.75em .5em .75em;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-bg);
  background: url('../highlight/img/banner-ribbon.svg') no-repeat left center / 100% 100%;
}

.highlight-course__mission-text {
  font-size: var(--fs-body-l);
  font-weight: 700;
}

.highlight-course__lead {
  display: flex;
  align-items: center;
  gap: .6em;
  font-size: var(--fs-subheading);
  font-weight: 600;
  margin-bottom: 2rem;
}

@media (max-width: 991.98px) {
  .highlight-course__lead {
    margin-bottom: calc(clamp(2em, 5vw, 5rem) / 2);
  }
  .highlight-training .highlight-intro__text {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

.highlight-course__check {
  display: inline-block;
  width: 1em;
  height: 1em;
  background: url('../highlight/img/icon-check.svg') no-repeat center / contain;
}

.highlight-course__characters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem) clamp(.75rem, 2vw, 1.5rem);
  margin-bottom: 12.5rem;
}


@media (min-width: 992px) {
  .highlight-course__characters {
    max-width: calc(4 * clamp(9rem, 20vw, 18.25rem) + 3 * clamp(.75rem, 2vw, 1.5rem));
    margin-inline: auto;
    flex-wrap: nowrap;
  }
}

@media (max-width: 991.98px) {
  .highlight-course__characters .highlight-course__photo {
    width: calc((100% - clamp(.75rem, 2vw, 1.5rem)) / 2);
  }

  .highlight-course__characters:not(.highlight-course__characters--single) .highlight-course__photo:nth-child(3):last-child {
    margin-right: auto;
  }
}

.highlight-course__characters::after {
  content: '';
  position: absolute;
  right: calc(50% - 50vw);
  bottom: -6rem;
  z-index: -1;
  width: 80vw;
  height: 70%;
  background: rgba(214, 23, 24, 0.25);
  pointer-events: none;
}

.highlight-course--drum .highlight-course__characters::after {
  bottom: -3rem;
}

.highlight-course__characters--single {
  max-width: 20rem;
  margin-inline: auto;
}

@media (max-width: 991.98px) {
  .highlight-course__characters--single {
    max-width: none;
  }
}


.highlight-course__photo {
  position: relative;
  display: block;
  overflow: hidden;
  width: clamp(9rem, 20vw, 18.25rem);
  aspect-ratio: 292 / 427.5;
  border-radius: .25rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

span.highlight-course__photo {
  transform: translateY(2.5rem);
  opacity: 0;
  transition: all .5s ease;
}

.page-section.is-inview span.highlight-course__photo {
  transform: translateY(0);
  opacity: 1;
}

.highlight-course__photo:nth-child(1) { transition-delay: 1.2s; }
.highlight-course__photo:nth-child(2) { transition-delay: 1.5s; }
.highlight-course__photo:nth-child(3) { transition-delay: 1.8s; }
.highlight-course__photo:nth-child(4) { transition-delay: 2.1s; }

.highlight-course__characters:not(.highlight-course__characters--single) span.highlight-course__photo:nth-child(even) {
  transform: translateY(calc(2.5rem + clamp(2em, 5vw, 5rem)));
}

.page-section.is-inview .highlight-course__characters:not(.highlight-course__characters--single) span.highlight-course__photo:nth-child(even) {
  transform: translateY(clamp(2em, 5vw, 5rem));
}

/* =============================================
  AIハヤト
============================================= */
.highlight-hayato {
  position: relative;
  z-index: -1;
  display: flex;
  justify-content: center;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.highlight-hayato__photo {
  display: block;
  width: 100vw;
  max-width: 600px;
  aspect-ratio: 730 / 318;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}


@media (max-width: 998.91px) {
  .highlight-hayato__photo {
    width: 80%;
  }
  .highlight-intro__track {
    height: 180px;
  }
  .highlight-training__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
  }
  .highlight-intro__text {
    line-height: 1.8;
  }
  .highlight-missions-intro::before, .highlight-course--kouan .highlight-course__characters::before, .highlight-hayato::after{
    width: 180%;
  }
  .highlight-course__mission-label {
    padding: .25em 1.75em .25em .75em;
  }
  .highlight-course__mission {
    padding: .5em 1em;
  }

  .highlight-missions-intro::before {
    left: -50%;
  }
  .highlight-course--kouan .highlight-course__characters::before{
    right: -50%;
  }
  .highlight-hayato::after {
    bottom: 0;
    left: -50%;
    transform: scaleY(-1);
  }
  span.highlight-training__bg {
    background-size: 150% auto;
  }
  .highlight-intro__row {
    gap: .75em;
    text-align: center;
  }
  .highlight-course__banner {
    margin-bottom: calc(var(--fs-body) + 2rem);
  }
  .highlight-course__mission {
    padding: .75em 1em;
    margin-bottom: 1.5rem;
    width: 100%;
    
  }
  .highlight-course__characters::after {
    bottom: -2rem;
  }
  .highlight-course--beppan .highlight-course__characters::after {
    bottom: -4rem;
  }
  .highlight-course--drum .highlight-course__characters::after {
    bottom: -1rem;
  }
  .highlight-course--kouan .highlight-course__characters::before {
    top: calc(20% + 2rem);
  }
  .highlight-course__characters {
    margin-bottom: 6rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  .highlight-course__characters::after {
    height: 80%;
  }
  
}