/* index.css
 * Page-specific overrides for index page.
 */

/* migrated from common.css: index page */

/* index main visual */
.index-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  pointer-events: none;
}

.index-page .site-header .global-nav,
.index-page .site-header .global-nav * {
  pointer-events: auto;
}

.index-page .page-main {
  min-height: 0;
}

.index-page .mv {
  width: min(100%, 1280px);
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 1417 / 2000;
  position: relative;
  overflow: hidden;
}

.index-page .mv::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../image/top/mv.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: calc(100% + 8px) calc(100% + 8px);
  transform: scale(1);
  opacity: 0;
  animation: mvFadeZoom 10s ease-out forwards;
  transform-origin: center center;
}

@keyframes mvFadeZoom {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  35% {
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .index-page .mv::before {
    animation: none;
    opacity: 1;
  }
}

.index-page .mv-demo-button {
  position: absolute;
  left: clamp(18px, 4.5vw, 54px);
  top: clamp(96px, 13vw, 180px);
  display: block;
  width: 410px;
  aspect-ratio: 410 / 267;
  background-image: url("../image/top/demo_button.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 24;
  filter:
    drop-shadow(0 0 5px rgba(255, 145, 230, 0.72))
    drop-shadow(0 0 14px rgba(255, 95, 210, 0.45));
  opacity: 0;
  animation: mvDemoButtonFadeIn 1.8s ease 1.1s forwards;
  transform-origin: center;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.index-page .mv-demo-button:hover,
.index-page .mv-demo-button:focus-visible {
  transform: scale(1.04);
  filter:
    drop-shadow(0 0 6px rgba(130, 255, 180, 0.9))
    drop-shadow(0 0 16px rgba(70, 255, 145, 0.58));
}

.index-page .mv-logo {
  position: absolute;
  left: 50%;
  top: 82%;
  transform: translate(-50%, -50%);
  width: min(72%, 760px);
  aspect-ratio: 1040 / 639;
  background-image: url("../image/common/logo.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  animation: mvLogoFadeUp 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

@media (min-width: 1025px) {
  .index-page .mv-logo {
    width: min(78vw, 1004px);
    top: calc(82% - 40px);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .index-page .mv-logo {
    width: min(75.6%, 798px);
    top: calc(82% - 22px);
  }

  .index-page .mv-demo-button {
    top: clamp(145px, 18vw, 220px);
    width: min(34vw, 300px);
  }
}

@media (max-width: 767px) {
  .index-page .mv-logo {
    top: 78%;
  }

  .index-page .mv-demo-button {
    left: 10px;
    top: 48px;
    width: min(36%, 180px);
  }
}

@keyframes mvLogoFadeUp {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 28px));
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes mvDemoButtonFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes mvReserveTextFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .index-page .mv-logo,
  .index-page .mv-demo-button,
  .index-page .mv-reserve-text {
    animation: none;
    opacity: 1;
  }
}

.index-page .mv-reserve-text {
  position: absolute;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  margin: 0;
  width: min(92%, 1100px);
  text-align: center;
  font-family: "Oxanium", "M PLUS 1p", "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(26px, 2.8vw, 48px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow:
    0 0 5px rgba(255, 145, 230, 0.92),
    0 0 12px rgba(255, 95, 210, 0.72),
    0 0 22px rgba(255, 55, 190, 0.44);
  z-index: 16;
  opacity: 0;
  animation: mvReserveTextFadeIn 1.8s ease 1.1s forwards;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .index-page .mv-reserve-text {
    font-size: clamp(22px, 3vw, 34px);
  }
}

@media (max-width: 767px) {
  .index-page .mv-reserve-text {
    bottom: 12px;
    width: min(94%, 460px);
    font-size: clamp(17px, 5vw, 24px);
    letter-spacing: 0.03em;
  }
}

.index-page .mv-nameplate {
  width: min(100%, 1280px);
  height: 25px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Oxanium", "M PLUS 1p", "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: clamp(12px, 1.1vw, 16px);
  color: #fff;
  background: linear-gradient(100deg, rgb(59, 44, 143) 0%, rgb(125, 45, 151) 35%, rgb(217, 77, 158) 68%, rgb(240, 106, 169) 100%);
  position: relative;
  z-index: 1;
}

.index-page .updates-section {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.index-page .updates-title {
  margin: 0 0 16px;
  font-family: "Oxanium", "M PLUS 1p", "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 120, 220, 0.5);
}

.index-page .updates-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.index-page .update-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 140, 225, 0.65);
  background: rgba(0, 0, 0, 0.58);
  padding: 14px 14px 13px;
  box-shadow:
    0 0 10px rgba(255, 110, 215, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.index-page .update-card time {
  display: block;
  margin-bottom: 6px;
  font-family: "Oxanium", "M PLUS 1p", "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(15px, 1.15vw, 18px);
  letter-spacing: 0.08em;
  color: #ffd8f5;
}

.index-page .update-card p {
  margin: 0;
  font-size: clamp(15px, 1.12vw, 17px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
}

.reveal-pop {
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transition: opacity 0.46s ease, transform 0.52s cubic-bezier(0.2, 0.9, 0.2, 1.15);
}

.reveal-pop.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (min-width: 768px) and (max-width: 1024px) {
  .index-page .updates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .index-page .updates-section {
    padding: 20px 12px 28px;
  }

  .index-page .updates-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-pop {
    opacity: 1;
    transition: none;
  }
}

.index-page .updates-toggle {
  display: none;
  margin: 6px auto 0;
  min-width: 122px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 170, 230, 0.85);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(95, 32, 124, 0.9) 0%, rgba(214, 78, 161, 0.9) 100%);
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 0 10px rgba(255, 110, 215, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.index-page .updates-toggle:hover {
  filter: brightness(1.08);
  box-shadow:
    0 0 12px rgba(120, 255, 170, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.index-page .updates-toggle__text {
  display: inline-flex;
  align-items: center;
  height: 100%;
  line-height: 1;
  font-family: "Oxanium", "M PLUS 1p", "Zen Kaku Gothic New", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.index-page .updates-toggle__chevron {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease;
}

.index-page .updates-toggle.is-open .updates-toggle__chevron {
  transform: rotate(-135deg) translateY(-1px);
}

@media (max-width: 767px) {
  .index-page .updates-section.is-collapsed .updates-grid .update-card:nth-child(n + 4) {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    border-width: 0;
    overflow: hidden;
  }

}

/* updates collapse: shared for pc/tablet/mobile */
.index-page .updates-grid .update-card {
  max-height: 260px;
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1.1),
    padding 0.35s ease,
    margin 0.35s ease,
    border-width 0.25s ease;
}

.index-page .updates-section.is-collapsed .updates-grid .update-card.is-extra {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  border-width: 0;
  overflow: hidden;
}

.index-page .updates-section.has-toggle .updates-toggle {
  display: flex;
  margin-left: auto;
  margin-right: auto;
}
