:root {
  color-scheme: dark;
  background: rgb(42, 42, 42);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background: rgb(42, 42, 42);
  cursor: url("Nico_pointer.png") 33 29, auto;
}

a,
button {
  cursor: url("Nico_pointer.png") 33 29, pointer;
}

main {
  min-height: 100vh;
}

.introduction {
  width: min(calc(100% - 48px), 1280px);
  margin: 0 auto;
  padding: clamp(36px, 4.5vw, 72px) 0 clamp(32px, 3.5vw, 56px);
  color: #fff;
  text-align: center;
}

.introduction h1 {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: fit-content;
  margin: 0 auto clamp(24px, 2.5vw, 40px);
  color: rgb(0, 186, 148);
  font-family: "M PLUS 1p", "M+ 1c", Arial, Helvetica, sans-serif;
  font-size: clamp(25px, 2.35vw, 45px);
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 1.25;
}

.introduction__title-text {
  position: relative;
  display: inline-block;
  color: rgb(0, 186, 148) !important;
}

.introduction p {
  margin: 0;
  font-family: "M PLUS 1p", "M+ 1c", Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.15vw, 21px);
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1.85;
  scale: 0.9;
}

.introduction.is-english {
  width: min(calc(100% - 48px), 1900px);
}

.introduction.is-english p {
  font-size: clamp(11px, 1.15vw, 20px);
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.gameplay-feature.is-english p {
  font-size: clamp(11px, 1.15vw, 20px);
  letter-spacing: 0.025em;
}

.introduction h1,
.introduction p {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.introduction p {
  transition-delay: 0s;
}

.introduction.is-visible h1,
.introduction.is-visible p {
  opacity: 1;
  transform: translateX(0);
}

.introduction.is-visible p {
  transition-delay: 0.45s;
}

.introduction.is-leaving h1,
.introduction.is-leaving p {
  opacity: 0;
  transform: translateX(-60px);
  transition-delay: 0s;
}

.introduction.is-leaving h1 {
  transition-delay: 0.35s;
}

.corner-logo {
  position: absolute;
  z-index: 20;
  right: clamp(14px, 3%, 48px);
  bottom: clamp(14px, 4%, 40px);
  width: clamp(90px, 7.55%, 145px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.hero {
  display: grid;
  width: 100%;
  height: auto;
  overflow: hidden;
  place-items: center;
}

.hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1000;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image--alternate {
  opacity: 0;
  animation: hero-image-second 40s linear infinite;
}

@keyframes hero-image-second {
  0%,
  15% {
    opacity: 0;
  }

  25%,
  50% {
    opacity: 1;
  }

  50.001%,
  100% {
    opacity: 0;
  }
}

.hero__image--third {
  opacity: 0;
  animation: hero-image-third 40s linear infinite;
}

@keyframes hero-image-third {
  0%,
  40% {
    opacity: 0;
  }

  50%,
  75% {
    opacity: 1;
  }

  75.001%,
  100% {
    opacity: 0;
  }
}

.hero__image--fourth {
  opacity: 0;
  animation: hero-image-fourth 40s linear infinite;
}

@keyframes hero-image-fourth {
  0%,
  65% {
    opacity: 0;
  }

  75%,
  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.hero__content {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__utilities {
  position: absolute;
  z-index: 10;
  top: clamp(16px, 3.2%, 40px);
  right: clamp(16px, 3.2%, 54px);
  display: flex;
  align-items: center;
  gap: 0;
}

.hero__utility-button {
  position: relative;
  display: grid;
  width: clamp(54px, 3.45vw, 66px);
  height: clamp(54px, 3.45vw, 66px);
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  place-items: center;
  transform: scale(1);
  transition: filter 180ms ease, transform 180ms ease;
}

.hero__utility-button img {
  display: block;
  width: clamp(25px, 2vw, 38px);
  height: clamp(25px, 2vw, 38px);
  object-fit: contain;
}

.hero__utility-button:hover,
.hero__utility-button.is-cursor-near {
  filter: brightness(1.15);
  transform: scale(1.14);
}

.hero__utility-button.is-bouncing {
  animation: utility-button-bounce 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.language-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 7px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  color: rgb(255 255 255 / 55%);
  background: rgb(10 14 16 / 82%);
  box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.language-menu[hidden] {
  display: none;
}

.language-menu__option {
  min-width: 42px;
  min-height: 38px;
  padding: 8px 9px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: inherit;
  transition: color 160ms ease, transform 160ms ease;
}

.language-menu__option:hover,
.language-menu__option.is-cursor-near {
  color: #fff;
  transform: scale(1.5);
}

.language-menu__option.is-active {
  color: rgb(56, 127, 130);
}

.language-menu__option.is-bouncing {
  animation: language-option-bounce 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes language-option-bounce {
  0% {
    transform: scale(1.5);
  }

  32% {
    transform: scale(0.82);
  }

  65% {
    transform: scale(1.65);
  }

  82% {
    transform: scale(1.38);
  }

  100% {
    transform: scale(1.5);
  }
}

@keyframes utility-button-bounce {
  0% {
    transform: scale(1.14);
  }

  32% {
    transform: scale(0.82);
  }

  65% {
    transform: scale(1.2);
  }

  82% {
    transform: scale(0.96);
  }

  100% {
    transform: scale(1.14);
  }
}

.hero__logo {
  position: absolute;
  top: 41.5%;
  left: 50%;
  width: min(27.4%, 526px);
  height: auto;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 30px));
  animation: logo-fade-in 2s ease 0.6s forwards;
}

@keyframes logo-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero__button {
  position: absolute;
  bottom: 5.4%;
  left: 50%;
  width: min(18.7%, 359px);
  min-width: 170px;
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
  transition: filter 180ms ease, transform 180ms ease;
}

.hero__button.is-entering {
  opacity: 0;
  transform: translateX(-50%) scale(0.35);
  animation: button-bounce-in 300ms cubic-bezier(0.22, 1, 0.36, 1) 2.3s forwards;
}

@keyframes button-bounce-in {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.35);
  }

  55% {
    opacity: 1;
    transform: translateX(-50%) scale(1.16);
  }

  75% {
    transform: translateX(-50%) scale(0.93);
  }

  90% {
    transform: translateX(-50%) scale(1.04);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

.hero__button img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 180ms ease;
}

.hero__button::before {
  position: absolute;
  inset: -29px -33px;
  content: "";
}

.hero__button span {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(12px, 1.15vw, 21px);
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: color 180ms ease;
}

.hero__button:hover,
.hero__button.is-cursor-near {
  transform: translateX(-50%) scale(1.06);
}

.hero__button:hover img,
.hero__button.is-cursor-near img {
  filter: brightness(0) invert(1);
}

.hero__button:hover span,
.hero__button.is-cursor-near span {
  color: #000;
}

.hero__button.is-bouncing {
  animation: button-click-bounce 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes button-click-bounce {
  0% {
    opacity: 1;
    transform: translateX(-50%) scale(1.06);
  }

  32% {
    transform: translateX(-50%) scale(0.88);
  }

  62% {
    transform: translateX(-50%) scale(1.14);
  }

  82% {
    transform: translateX(-50%) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.06);
  }
}

.hero__button:focus-visible {
  border-radius: 999px;
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.gallery {
  position: relative;
  width: calc(100% - 60px);
  margin: 0 auto;
}

.gallery__track {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.gallery--secondary {
  margin-top: clamp(60px, 6vw, 105px);
}

.gallery--secondary .gallery__track {
  flex-wrap: wrap;
}

.gallery__item {
  position: relative;
  flex: 0 0 calc(100% / 3);
  width: calc(100% / 3);
  aspect-ratio: 609 / 354;
  overflow: hidden;
  background: rgb(42, 42, 42);
}

.gallery__slide {
  position: absolute;
  inset: -2px;
  display: block;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  backface-visibility: hidden;
  object-fit: cover;
  transform: translateZ(0);
  user-select: none;
}

.gallery__slide--reveal {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.gallery__slide--reveal:nth-child(2) {
  transition-delay: 0.2s;
}

.gallery__slide--reveal:nth-child(3) {
  transition-delay: 0.4s;
}

.gallery__slide--reveal:nth-child(5) {
  transition-delay: 0.2s;
}

.gallery__slide--reveal:nth-child(6) {
  transition-delay: 0.4s;
}

.gallery__slide--reveal.is-visible {
  opacity: 1;
}

.gameplay-feature {
  width: min(calc(100% - 48px), 1420px);
  margin: clamp(60px, 6vw, 110px) auto 0;
  color: #fff;
  text-align: center;
}

.gameplay-feature__media {
  width: min(65.6%, 941px);
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 1176 / 662;
}

.gameplay-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gameplay-feature h2 {
  margin: clamp(42px, 4vw, 68px) 0 clamp(25px, 2.5vw, 42px);
  color: rgb(0, 186, 148);
  font-family: "M PLUS 1p", "M+ 1c", Arial, Helvetica, sans-serif;
  font-size: clamp(25px, 2.35vw, 45px);
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 1.25;
}

.gameplay-feature p {
  margin: 0;
  font-family: "M PLUS 1p", "M+ 1c", Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.15vw, 21px);
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1.85;
  scale: 0.9;
}

.gameplay-feature__title-mobile,
.gameplay-feature__copy-mobile {
  display: none;
}

.gameplay-feature h2,
.gameplay-feature p {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gameplay-feature p {
  transition-delay: 0s;
}

.gameplay-feature.is-visible h2,
.gameplay-feature.is-visible p {
  opacity: 1;
  transform: translateX(0);
}

.gameplay-feature.is-visible p {
  transition-delay: 0.45s;
}

.gameplay-feature.is-leaving h2,
.gameplay-feature.is-leaving p {
  opacity: 0;
  transform: translateX(-60px);
  transition-delay: 0s;
}

.gameplay-feature.is-leaving h2 {
  transition-delay: 0.35s;
}

.site-footer {
  padding: clamp(90px, 10vw, 170px) 24px clamp(70px, 8vw, 130px);
  color: #fff;
  font-family: "M PLUS 1p", "M+ 1c", Arial, Helvetica, sans-serif;
  font-size: clamp(11px, 0.9vw, 15px);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.65;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer__support-logo {
  display: block;
  width: clamp(76px, 5.7vw, 109px);
  height: auto;
  margin: 0 auto clamp(12px, 1.1vw, 20px);
}

.site-footer .site-footer__project {
  margin-bottom: clamp(42px, 4.5vw, 72px);
  font-family: "M PLUS 1p", "M+ 1c", Arial, Helvetica, sans-serif;
  font-size: 1.08em;
  font-weight: 400;
}

@media (min-width: 641px) and (hover: hover) and (pointer: fine) {
  .hero {
    width: 100%;
    height: 100svh;
    min-height: 480px;
  }

  .hero__stage {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .hero__image {
    object-fit: cover;
    object-position: center center;
  }

  .hero__logo {
    top: 41.5%;
    width: min(27.4vw, 48vh, 526px);
  }

  .hero__button {
    bottom: 5.4%;
    width: min(18.7vw, 34vh, 359px);
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .hero {
    height: 100svh;
    min-height: 620px;
  }

  .hero__stage {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .hero__image {
    object-fit: cover;
    object-position: center center;
  }

  .hero__logo {
    top: 42%;
    width: min(62%, 360px);
  }

  .hero__button {
    bottom: 12%;
    width: min(52%, 260px);
  }

  .gallery {
    width: calc(100% - 28px);
    padding-bottom: 24px;
  }

  .introduction {
    width: calc(100% - 36px);
    padding: 34px 0 30px;
    text-align: left;
  }

  .introduction h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(18px, 5vw, 22px);
    letter-spacing: -0.05em;
    white-space: nowrap;
    text-align: center;
  }

  .introduction p br {
    display: none;
  }

  .introduction.is-english p {
    white-space: normal;
  }

  .gallery__item {
    flex: 0 0 auto;
    width: 100%;
  }

  .gallery__track {
    flex-direction: column;
    overflow: hidden;
  }

  .corner-logo {
    right: 14px;
    bottom: 14px;
    width: 82px;
  }

  .hero__utilities {
    top: 14px;
    right: 14px;
  }

  .hero__utility-button {
    width: 38px;
    height: 48px;
  }

  .hero__utility-button img {
    width: 22px;
    height: 22px;
    filter: brightness(0);
    animation: mobile-utility-icon-color 40s steps(1, end) infinite;
  }

  .site-footer {
    padding: 70px 16px 28px;
    font-size: 9px;
    line-height: 1.7;
  }

  .site-footer .site-footer__project {
    margin-bottom: 38px;
  }

  .site-footer__support-logo {
    width: 68px;
    margin-bottom: 10px;
  }

  .gameplay-feature {
    width: calc(100% - 28px);
    margin-top: 54px;
  }

  .gameplay-feature__media {
    width: 80%;
  }

  .gameplay-feature h2 {
    margin: 32px 0 24px;
    font-size: clamp(18px, 5vw, 22px);
    letter-spacing: -0.025em;
  }

  .gameplay-feature p {
    width: 100%;
    font-size: clamp(14px, 1.15vw, 21px);
    letter-spacing: 0.025em;
    line-height: 1.9;
    text-align: center;
  }

  .gameplay-feature.is-english p {
    font-size: clamp(11px, 1.15vw, 20px);
  }

  .gameplay-feature__title-desktop,
  .gameplay-feature__copy-desktop {
    display: none;
  }

  .gameplay-feature__title-mobile,
  .gameplay-feature__copy-mobile {
    display: inline-block;
  }

  .gameplay-feature__copy-mobile {
    text-align: left;
    white-space: nowrap;
  }

  .gameplay-feature__copy-line {
    display: block;
  }

  .gameplay-feature.is-english .gameplay-feature__copy-desktop {
    display: inline;
  }

  .gameplay-feature.is-english .gameplay-feature__copy-desktop br {
    display: none;
  }

  .gameplay-feature.is-english .gameplay-feature__copy-mobile {
    display: none;
  }

  @keyframes mobile-utility-icon-color {
    0%,
    24.999% {
      filter: brightness(0);
    }

    25%,
    40% {
      filter: brightness(0) invert(1);
    }

    40.001%,
    100% {
      filter: brightness(0);
    }
  }
}

@media (max-width: 1200px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .introduction p,
  .introduction.is-english p,
  .gameplay-feature p,
  .gameplay-feature.is-english p {
    position: relative;
    left: 50%;
    width: max-content;
    max-width: none;
    font-size: clamp(8px, 1.15vw, 10px);
    letter-spacing: 0.025em;
    line-height: 1.85;
    scale: 0.765;
    translate: -50% 0;
    transform-origin: center center;
    text-align: center;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__image--alternate,
  .hero__image--third,
  .hero__image--fourth {
    opacity: 0;
    animation: none;
  }

  .hero__logo {
    opacity: 1;
    animation: none;
  }

  .hero__button {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    transition: none;
  }

  .hero__button.is-entering,
  .hero__button.is-bouncing {
    animation: none;
  }

  .hero__utility-button.is-bouncing {
    animation: none;
  }

  .hero__utility-button img {
    animation: none;
  }

  .language-menu__option.is-bouncing {
    animation: none;
  }

  .gallery__slide--reveal {
    opacity: 1;
    transition: none;
  }

  .introduction h1,
  .introduction p {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gameplay-feature h2,
  .gameplay-feature p {
    opacity: 1;
    transform: none;
    transition: none;
  }

}


/* 0903追加 */
.gameplay-feature__media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
}
.site-footer__cl{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 15px;
  line-height: 1;
  img{
    height: 20px;
    width: auto;
  }
}
@media (max-width: 640px) and (orientation: portrait) {
  .site-footer__cl{
    gap: 0 10px;
    img{
      height: 13px;
      width: auto;
    }
   }
}