@charset "UTF-8";
@font-face {
  font-family: "PixelMplus10";
  src: url("../fonts/PixelMplus10-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "PixelMplus10";
  src: url("../fonts/PixelMplus10-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-snap-type: y mandatory;
}

html.is-section-scrolling {
  scroll-snap-type: none;
}

body {
  margin: 0;
  background: #e60012;
  color: #fff;
  font-family: "PixelMplus10", monospace;
  font-size: clamp(1.6rem, 1.3227513228vw, 2rem);
}

h1, h2, p, figure, dl, dd {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: clamp(0.2rem, 0.1984126984vw, 0.3rem) dashed #fff;
  outline-offset: 0.4rem;
}

[hidden] {
  display: none !important;
}

.pixel-art {
  image-rendering: pixelated;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 1rem;
  background: #000;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.hero, .intro, .contents {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: clip;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero__scene, .intro__scene, .contents__scene {
  position: relative;
  width: min(100%, 153.9714867617svh);
  height: 100%;
  margin-inline: auto;
  container-type: inline-size;
}

@media (width < 768px) {
  html {
    scroll-snap-type: none;
    overflow-anchor: none;
  }
  .hero__scene {
    width: min(100%, 46.2085308057svh);
  }
  .intro__scene {
    width: 100%;
  }
}
.hero {
  --hero-background: #e60012;
  background: #e60012;
}
.hero__logo {
  position: absolute;
  left: 40.7407407407%;
  top: 1.6293279022%;
  width: 18.5185185185%;
  height: auto;
}
.hero__catch {
  position: absolute;
  left: 40.4100529101%;
  top: 33.1975560081%;
  width: 55.4357142857%;
  height: auto;
}
.hero__catch svg {
  display: block;
  width: 100%;
  height: auto;
}
.hero__wani {
  position: absolute;
  left: 1.9841269841%;
  top: 26.5784114053%;
  width: 35.7142857143%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: center bottom;
}
.hero__wani.is-sitting {
  scale: 0.9090969485;
}
.hero__bird {
  position: absolute;
  left: 74.2724867725%;
  top: 62.8309572301%;
  width: 6.4814814815%;
  height: auto;
}
.hero__label {
  transform-origin: center;
}
.hero__label--wani {
  position: absolute;
  left: 24.9338624339%;
  top: 16.9042769857%;
  width: 13.2275132275%;
  height: auto;
}
.hero__label--bird {
  position: absolute;
  left: 70.8333333333%;
  top: 83.299389002%;
  width: 13.2936507937%;
  height: auto;
}
.hero__note--one {
  position: absolute;
  left: 84.8544973545%;
  top: 62.016293279%;
  width: 5.1177248677%;
  height: auto;
}
.hero__note--two {
  position: absolute;
  left: 41.335978836%;
  top: 75.3564154786%;
  width: 5.1177248677%;
  height: auto;
}
.hero__note--three {
  position: absolute;
  left: 65.1455026455%;
  top: 11.2016293279%;
  width: 6.3220899471%;
  height: auto;
}
.hero__start {
  position: absolute;
  top: 91.548%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: clamp(2rem, 2.381cqw, 3.6rem);
  line-height: 1.1;
  animation: hero-start-blink 1s steps(1, end) infinite;
}
.hero__start:focus-visible {
  animation: none;
}

html.is-loading {
  overflow: hidden;
}
html.is-loading .skip-link {
  visibility: hidden;
}
html.is-loading .hero {
  background: #000;
}
html.is-loading .hero__logo {
  opacity: 0;
  transform: translate(var(--hero-logo-x, 0rem), var(--hero-logo-y, calc(48.37svh - 50%)));
}
html.is-loading .hero__wani {
  transform: translateX(var(--hero-wani-x, calc(-100vw - 100%)));
}
html.is-loading .hero__bird {
  transform: translateY(var(--hero-bird-y, 100svh));
}
html.is-loading .hero__label, html.is-loading .hero__note, html.is-loading .hero__start, html.is-loading .hero__letter {
  opacity: 0;
  animation: none;
  pointer-events: none;
}
html.is-loading .hero__label {
  scale: 0;
}
html.is-loading .hero__label.is-revealed, html.is-loading .hero__note.is-revealed, html.is-loading .hero__letter.is-revealed {
  opacity: 1;
}

@keyframes hero-start-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__start {
    animation: none;
  }
}
@media (width < 768px) {
  .hero__logo {
    position: absolute;
    left: 14.1025641026%;
    top: 1.8957345972%;
    width: 71.7948717949%;
    height: auto;
  }
  .hero__catch {
    position: absolute;
    left: 3.0769230769%;
    top: 14.9289099526%;
    width: 93.0338461538%;
    height: auto;
  }
  .hero__wani {
    position: absolute;
    left: 9.4871794872%;
    top: 45.2606635071%;
    width: 80.7692307692%;
    height: auto;
  }
  .hero__bird {
    position: absolute;
    left: 4.6153846154%;
    top: 36.1374407583%;
    width: 15.3846153846%;
    height: auto;
  }
  .hero__label--wani {
    position: absolute;
    left: 61.2820512821%;
    top: 40.4028436019%;
    width: 25.641025641%;
    height: auto;
  }
  .hero__label--bird {
    position: absolute;
    left: 21.7948717949%;
    top: 37.7962085308%;
    width: 25.641025641%;
    height: auto;
  }
  .hero__note--one {
    position: absolute;
    left: 84.1269230769%;
    top: 79.7707345972%;
    width: 9.9205128205%;
    height: auto;
  }
  .hero__note--two {
    position: absolute;
    left: 2.5641025641%;
    top: 59.1232227488%;
    width: 9.9205128205%;
    height: auto;
  }
  .hero__note--three {
    position: absolute;
    left: 57.7166666667%;
    top: 30.9555687204%;
    width: 12.2551282051%;
    height: auto;
  }
  .hero__start {
    top: 90.877%;
    font-size: clamp(2rem, 8.205cqw, 3.2rem);
  }
}
.contents__photo {
  transform-origin: center;
  scale: 0;
}
.contents__photo.is-opening {
  animation: message-window-open 0.5s linear forwards;
}
.contents__photo.is-open {
  scale: 1;
}

.message-window {
  position: relative;
  transform-origin: center;
  scale: 0;
}
.message-window.is-opening {
  animation: message-window-open 0.5s linear forwards;
}
.message-window.is-open {
  scale: 1;
}
.message-window {
  background: #000;
  border: clamp(0.3rem, 0.2645502646vw, 0.4rem) solid #fff;
  border-radius: clamp(0.1rem, 0.1322751323vw, 0.2rem);
}
.message-window__title {
  position: absolute;
  top: -1rem;
  left: 2.9rem;
  padding-inline: 0.3rem;
  background: #000;
  font-weight: 700;
  font-size: clamp(1.6rem, 1.5873015873vw, 2.4rem);
  line-height: 1.1;
}
.message-window__viewport {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 3.2rem;
  height: 100%;
  overflow: hidden;
  touch-action: pinch-zoom;
  overscroll-behavior: contain;
}
.message-window__viewport > [data-message-text] {
  overflow: hidden;
}
.message-window__controls {
  position: relative;
  grid-row: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.message-window__next, .message-window__previous {
  padding: 0 1.2rem;
  min-width: 4.4rem;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: clamp(1.6rem, 1.3227513228vw, 2rem);
  line-height: 1;
  touch-action: manipulation;
}
.message-window__next:disabled, .message-window__previous:disabled {
  visibility: hidden;
}
.message-window__previous {
  position: absolute;
  left: 0;
}
.message-window__next:not(:disabled) {
  animation: menu-cursor 0.8s steps(1, end) infinite;
}
.message-window__text {
  font-size: clamp(1.6rem, 1.1904761905vw, 2rem);
  line-height: 2;
  line-break: strict;
  overflow-wrap: anywhere;
}
.message-window__visual-links {
  margin-top: 0.6rem;
}
.message-window__visual-links button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0.1rem 0;
  background: none;
  text-align: left;
  font-size: clamp(1.2rem, 0.9259259259vw, 1.4rem);
  line-height: 1.3;
}
.message-window__visual-links button[aria-pressed=true] {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}
.message-window__measure {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  height: auto;
}
.message-window__accessible {
  position: absolute;
  width: 0.1rem;
  height: 0.1rem;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes message-window-open {
  from {
    scale: 0;
  }
  to {
    scale: 1;
  }
}
.contents__profile.is-opening {
  animation-duration: 0.25s;
}
.contents__profile.is-closing > * {
  visibility: hidden;
}

.game-menu {
  position: absolute;
  z-index: 5;
  width: 15.608%;
  padding-top: 10.2rem;
  font-size: clamp(1.4rem, 1.3227513228vw, 2rem);
}
.game-menu__bird {
  position: absolute;
  width: 34.339%;
  top: 0;
  right: 1.3rem;
}
.game-menu__toggle {
  position: absolute;
  top: 9.25rem;
  left: 1.5rem;
  border: 0;
  padding: 0 0.4rem;
  background: #000;
  font-size: clamp(1.6rem, 1.5873015873vw, 2.4rem);
  line-height: 1.1;
  cursor: default;
  z-index: 1;
}
.game-menu__list {
  list-style: none;
  margin: 0;
  padding: 2.2rem 1rem 2.6rem 4.8rem;
  background: #000;
  border: clamp(0.3rem, 0.2645502646vw, 0.4rem) solid #fff;
  border-radius: clamp(0.1rem, 0.1322751323vw, 0.2rem);
}
.game-menu__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  white-space: nowrap;
  line-height: 2;
}
.game-menu__item.is-selected::before {
  content: "▶";
  position: absolute;
  right: calc(100% + 1.4rem);
  animation: menu-cursor 0.8s steps(1, end) infinite;
}
.game-menu__item--pending {
  cursor: default;
}
.game-menu__item[data-menu-action=visual] {
  white-space: normal;
  line-height: 1.5;
}

@keyframes menu-cursor {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}
@media (768px <= width < 1200px) {
  .game-menu {
    width: 20%;
    padding-top: 7rem;
  }
  .game-menu__toggle {
    top: 5.3rem;
  }
  .game-menu__list {
    padding-left: 3.2rem;
  }
}
@media (width < 768px) {
  .message-window {
    border-width: clamp(0.3rem, 1.0256410256vw, 0.4rem);
  }
  .message-window__title {
    top: -1rem;
    left: 0.6rem;
    font-size: clamp(1.4rem, 4.1025641026vw, 1.6rem);
  }
  .message-window__text {
    font-size: clamp(1.4rem, 3.8461538462vw, 1.6rem);
  }
  .game-menu {
    width: 35.897%;
    padding-top: 6rem;
    font-size: clamp(1.2rem, 3.6505128205vw, 1.424rem);
  }
  .game-menu__bird {
    width: 34.339%;
    right: 0.7rem;
  }
  .game-menu__toggle {
    top: 2.3rem;
    left: 1.2rem;
    width: 9rem;
    min-height: 3rem;
    padding: 0.4rem;
    border: clamp(0.2rem, 0.7692307692vw, 0.3rem) solid #fff;
    border-radius: clamp(0.1rem, 0.5128205128vw, 0.2rem);
    font-size: clamp(1.2rem, 3.5897435897vw, 1.4rem);
    cursor: pointer;
  }
  .game-menu__list {
    padding: 1rem 0.8rem 1rem 2.7rem;
    border-width: clamp(0.3rem, 1.0256410256vw, 0.4rem);
  }
  .game-menu__item.is-selected::before {
    right: calc(100% + 0.8rem);
  }
  .game-menu.is-open .game-menu__toggle {
    top: 5rem;
    left: 2.5rem;
    width: auto;
    min-height: 0;
    border: 0;
    padding: 0 0.4rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .message-window__next:not(:disabled) {
    animation: none;
  }
  .message-window.is-opening, .contents__photo.is-opening {
    animation-duration: 0.001s;
  }
  .game-menu__item.is-selected::before {
    animation: none;
  }
}
.intro {
  background: #1499ce;
}
.intro__blackout {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
.intro__clouds {
  position: absolute;
  top: 6.212%;
  left: calc(min(0rem, 50% - 104rem) - 63rem);
  display: flex;
  gap: 15rem;
  width: max-content;
  animation: intro-cloud-drift 60s linear infinite;
  pointer-events: none;
}
.intro__clouds img {
  flex: 0 0 48rem;
  width: 48rem;
}
.intro__tower {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 100%;
  max-width: none;
}
.intro__wani {
  position: absolute;
  left: 46.7592592593%;
  top: 13.0346232179%;
  width: 7.7619047619%;
  height: auto;
  left: 50%;
  transform: translate(-50%, var(--intro-wani-offset, calc(-100svh - 100%)));
}
.intro__message {
  position: absolute;
  left: 23.545%;
  bottom: 3.666%;
  width: 52.91%;
  height: 26.986%;
  padding: 2.9rem 2.5rem 1.8rem;
}
.intro .game-menu--intro {
  left: 67.1296%;
  top: 3.768%;
}

@keyframes intro-cloud-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-63rem);
  }
}
@media (width >= 1512px) {
  .intro__clouds {
    left: calc(min(0rem, 50% - 104rem) - 63rem);
  }
}
@media (768px <= width < 1200px) {
  .intro__message {
    left: 15%;
    width: 70%;
    padding: 1.6rem 2rem;
    height: 31%;
  }
  .intro .game-menu--intro {
    left: 74%;
  }
}
@media (width < 768px) {
  .intro__clouds {
    top: 0;
    left: calc(50% - 87rem);
  }
  .intro__tower {
    height: 87.322%;
    width: auto;
  }
  .intro__wani {
    position: absolute;
    left: 38.9743589744%;
    top: 9.2417061611%;
    width: 24.8717948718%;
    height: auto;
    left: 50%;
    width: min(24.872%, 11.4928909953svh);
  }
  .intro__message {
    left: 5.128%;
    bottom: 2.962%;
    width: 89.744%;
    height: 28.436%;
    padding: 1.4rem 1.175rem 1.3rem;
  }
  .intro__message .message-window__title {
    font-weight: 400;
  }
  .intro .game-menu--intro {
    left: 59.231%;
    top: 1.066%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .intro__clouds {
    animation: none;
  }
  .intro__wani {
    transform: translateX(-50%);
  }
}
.contents {
  background: #1499ce;
}
.contents__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.contents__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.contents__mascot {
  position: absolute;
  left: 1.984%;
  top: 39.919%;
  width: 28.638%;
  height: 18.432%;
}
.contents__wani {
  cursor: pointer;
  position: absolute;
  left: -0.6613756614vw;
  top: 2.8%;
  width: 40.6556299044%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: left center;
  transform: translateX(var(--contents-wani-offset, calc(-100vw - 100%)));
}
.contents__map-title {
  display: block;
  position: absolute;
  left: calc(37.413% + 0.6613756614vw);
  top: 0;
  width: 62.587%;
  height: auto;
}
.contents__title-letter {
  opacity: 0;
}
.contents__title-letter.is-visible {
  opacity: 1;
}
.contents .game-menu--contents {
  left: 67.063%;
  top: 4.582%;
}
.contents__profile {
  position: absolute;
  z-index: 2;
  left: 16.931%;
  left: 10%;
  top: 15.377%;
  top: 10%;
  width: 40.542%;
  min-height: 21.079%;
  padding: 2.5rem 2rem;
}
.contents__profile .message-window__title {
  font-weight: 400;
}
.contents__stats {
  font-size: clamp(1.6rem, 1.1904761905vw, 2rem);
  line-height: 1.5;
}
.contents__stats > div {
  display: grid;
  grid-template-columns: 7.6rem 1fr;
  gap: 0.9rem;
}
.contents__photo {
  position: absolute;
  left: 32.804%;
  top: 32.281%;
  width: 34.391%;
  aspect-ratio: 4/3;
  border: clamp(0.3rem, 0.2645502646vw, 0.4rem) solid #fff;
  border-radius: clamp(0.6rem, 0.6613756614vw, 1rem);
  overflow: hidden;
}
.contents__photo.is-gallery {
  background: #fff;
  cursor: pointer;
  touch-action: pan-y pinch-zoom;
}
.contents__photo .contents__slide-incoming {
  position: absolute;
  inset: 0;
}
.contents__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contents__photo img[data-fit=contain] {
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.contents__theme {
  position: absolute;
  z-index: 3;
  left: 22.751%;
  bottom: 6.925%;
  width: 54.233%;
  height: 24.44%;
  padding: 3.4rem 3.3rem 1.8rem;
}
.contents__theme .message-window__text {
  line-height: calc(1em + 2rem);
}
.contents__theme .message-window__text p + p {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .contents__wani {
    transform: none;
  }
}
@media (768px <= width < 1200px) {
  .contents__profile {
    left: 4%;
    width: 61%;
  }
  .contents__theme {
    left: 12%;
    width: 76%;
  }
  .contents .game-menu--contents {
    left: 73%;
  }
}
@media (width < 768px) {
  .contents {
    height: auto;
  }
  .contents__scene {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 34.6153846154vw 5.1282051282vw 11.0256410256vw;
    gap: 0;
  }
  .contents__map {
    object-position: 66.3% center;
  }
  .contents__mascot {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 45.3846153846vw;
    margin-top: 6.6666666667vw;
    margin-bottom: 2.3076923077vw;
    grid-row: 3;
  }
  .contents__wani {
    top: 1.0256410256vw;
    left: -5.1282051282vw;
    width: 41.8892500488%;
  }
  .contents__map-title {
    left: calc(35.429% + 2.5641025641vw);
    width: 64.571%;
  }
  .contents .game-menu--contents {
    left: auto;
    right: 3.59%;
    top: 3.0769230769vw;
  }
  .contents__photo {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    grid-row: 1;
    margin: 0;
    aspect-ratio: 350/263;
  }
  .contents__theme {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    height: 61.5384615385vw;
    padding: 1.4rem 1.175rem 1.3rem;
    grid-row: 2;
    margin-top: -2.3076923077vw;
  }
  .contents__theme .message-window__text {
    line-height: calc(1em + 2rem);
  }
  .contents__theme .message-window__text p + p {
    margin-top: 0;
  }
  .contents__profile {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-height: 84.1025641026vw;
    grid-row: 4;
    padding: 1rem 1.3rem 4rem;
  }
  .contents__profile .message-window__title {
    left: 2.9rem;
    top: -2.5rem;
    font-size: clamp(2rem, 6.1538461538vw, 2.4rem);
  }
  .contents__stats {
    font-size: clamp(1.6rem, 4.6153846154vw, 2rem);
  }
  .contents__stats > div {
    grid-template-columns: 7.6rem 1fr;
    gap: 0.9rem;
  }
  .contents [data-content-panel][hidden] {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
  }
}
