.cmn-button {
  display: flex;
  justify-content: center;
}

.cmn-button .button {
  position: relative;
  display: flex;
  width: 100%;
  background: var(--grad-button);
  overflow: hidden;
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 1.6vw rgba(var(--color-white-rgb), 0.6);
  aspect-ratio: 500/100;
  border-radius: 10.6666666667vw;
  width: 66.6666666667vw;
  padding-left: 5.3333333333vw;
  padding-right: 2.6666666667vw;
}

.cmn-button .button-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  color: var(--color-white);
}

.cmn-button .button-icon {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-white);
  width: 8vw;
}

.cmn-button .button-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  aspect-ratio: 13/20;
  background-size: contain;
  background: url(../img/common/ic_arrow@sp.svg) no-repeat;
  width: 2.6666666667vw;
}

.cmn-button .button-text {
  flex: 1;
  text-align: center;
  letter-spacing: 0.05em;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
}

.cmn-button .button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-button-hover);
  opacity: 0;
  transition: opacity 0.3s;
}

html:has(body.menu-open) {
  overflow: hidden;
}

.global_header {
  position: relative;
  z-index: 9999;
}

.global_header .logo-za {
  position: absolute;
  top: 2.6666666667vw;
  left: 2.6666666667vw;
  width: 26.6666666667vw;
}

.global_header .logo {
  position: fixed;
  top: 2.6666666667vw;
  left: calc(50% - 13.3333333333vw);
  width: 26.6666666667vw;
}

.global_header .logo img {
  transition: transform 400ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.global_header .logo[data-visible=false] img {
  transform: translate3d(0, -15.7333333333vw, 0);
}

.global_header #menu-check {
  display: none;
}

.global_header .menu-button {
  position: fixed;
  top: 2.6666666667vw;
  right: 2.6666666667vw;
}

.global_header .menu-button label {
  position: relative;
  overflow: hidden;
  background: rgba(var(--color-white-rgb), 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  gap: 1.6vw;
  width: 12.8vw;
  border-radius: 2.6666666667vw;
  border: 0.5333333333vw solid #fff;
  box-shadow: 0 0 4vw 0 #fff inset, 0 0 2.6666666667vw 0 #fff inset, 0 0 2.6666666667vw 0 #fff inset, 0 0 1.3333333333vw 0 #fff inset;
  transform: translateZ(0);
  filter: drop-shadow(0 0 2.6666666667vw rgba(0, 0, 0, 0.15));
}

.global_header .menu-button label::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background: var(--grad-icon);
}

.global_header .menu-button label span {
  background: #3a3d3c;
  aspect-ratio: 48/6;
  width: 6.4vw;
}

.global_header .menu-button.open {
  transition: opacity 0.3s 0.2s;
}

.global_header .menu-button.close {
  opacity: 0;
  transition: opacity 0.3s 0.2s;
  pointer-events: none;
}

.global_header .menu-button.close label {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

.global_header .menu-button.close label::before {
  display: none !important;
}

.global_header .menu-button.close span {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-white);
}

.global_header .menu-button.close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.global_header .menu-button.close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.global_header .menu {
  position: fixed;
  top: 0;
  right: -100vw;
  width: 100vw;
  height: 100vh;
  color: var(--color-white);
  background: var(--color-dark-gray);
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.global_header .menu::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: linear-gradient(150deg, rgb(182, 72, 40), rgb(27, 32, 30) 60%, rgb(223, 105, 29));
}

.global_header .menu .menu-back {
  position: absolute;
  inset: 0;
  cursor: default;
}

.global_header .menu .menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  overscroll-behavior: none;
}

.global_header .menu .menu-panel .menu-scroller {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.global_header .menu .menu-panel .nav-logo {
  display: block;
  margin: 0 auto 10.6666666667vw auto;
  padding-top: 21.3333333333vw;
  width: 80vw;
}

.global_header .menu .menu-panel .nav {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(var(--color-white-rgb), 0.2);
  margin: 0 auto;
  width: 89.3333333333vw;
  padding-bottom: 10.6666666667vw;
}

.global_header .menu .menu-panel .nav li {
  border-bottom: 1px solid rgba(var(--color-white-rgb), 0.2);
}

.global_header .menu .menu-panel .nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-style: italic;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4vw 1.6vw 4vw 0;
  font-size: 24px;
}

.global_header .menu .menu-panel .nav a::after {
  content: "";
  background: var(--color-shadow);
  aspect-ratio: 13/20;
  background-size: contain;
  mask: url(../img/common/ic_arrow@sp.svg) no-repeat;
  mask-size: contain;
  width: 2.6666666667vw;
}

.global_header #menu-check:checked ~ .menu-button.open {
  opacity: 0;
  pointer-events: none;
}

.global_header #menu-check:checked ~ .menu-button.close {
  opacity: 1;
  pointer-events: auto;
}

.global_header #menu-check:checked ~ .menu {
  opacity: 1;
  right: 0;
  pointer-events: auto;
}

.global_header #menu-check:checked ~ .menu .menu-content {
  transform: translate3d(0, 0, 0);
}

.shares {
  position: relative;
  margin: 0 auto;
  background: rgba(var(--color-white-rgb), 0.5);
  max-width: 64vw;
  padding: 5.3333333333vw 0;
  border-radius: 37.3333333333vw;
  margin-top: 16vw;
  margin-bottom: 13.3333333333vw;
}

.shares .title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 2vw;
  font-size: 18px;
}

.shares ul {
  display: flex;
  justify-content: center;
  gap: 4vw;
}

.shares a {
  display: block;
  width: 12vw;
}

footer {
  position: relative;
  z-index: 1;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--color-white);
  background-image: url(../img/common/bg_footer@sp.webp);
  gap: 8vw;
  padding-top: 13.3333333333vw;
}

footer .official {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 3.3333333333vw;
}

footer .official a {
  position: relative;
  line-height: 1.5;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-white);
  gap: 1.3333333333vw;
  width: 77.3333333333vw;
  padding: 2.9333333333vw 0;
  border-radius: 6.6666666667vw;
  font-size: 16px;
}

footer .official a::after {
  content: "";
  display: block;
  aspect-ratio: 1;
  background: url(../img/common/ic_link.svg) no-repeat;
  background-size: contain;
  width: 0.8em;
}

footer .games {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(var(--color-white-rgb), 0.2);
}

footer .games li {
  border-bottom: 1px solid rgba(var(--color-white-rgb), 0.2);
}

footer .games a {
  position: relative;
  line-height: 1.5;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 1.3333333333vw;
  padding: 4.6666666667vw 5.3333333333vw;
  font-size: 14px;
}

footer .games a::after {
  content: "";
  display: block;
  aspect-ratio: 1;
  background: url(../img/common/ic_link.svg) no-repeat;
  background-size: contain;
  width: 0.8em;
}

footer a {
  transition: opacity 0.3s;
}

footer .copyright,
footer .caution {
  text-align: center;
  line-height: 1.8;
  font-size: 13px;
}

footer .caution {
  margin-top: -1.8em;
  margin-bottom: 5.3333333333vw;
}

footer .logo {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-dark-gray);
}

footer .logo img {
  width: auto;
}

footer .logo .switch img {
  height: 8vw;
}

footer .logo .company {
  display: flex;
  align-items: center;
}

footer .logo .company img {
  height: 2.6666666667vw;
}

footer .logo .nintendo img {
  height: 8vw;
}

html[lang=zh-cmn-Hant] footer .logo a,
html[lang=zh-cmn-Hans] footer .logo a {
  pointer-events: none;
}

.pagetop {
  position: fixed;
  z-index: 800;
  pointer-events: none;
  transition: transform 0.5s;
  transform: translateY(25.7333333333vw);
  right: 2.6666666667vw;
  bottom: 2.6666666667vw;
  width: 20.5333333333vw;
}

.pagetop[data-visible=true] {
  transform: translateY(0);
  pointer-events: auto;
}

:where(body) {
  overflow-x: clip;
  color: var(--color-black);
  background: var(--color-bg);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
}

.anywhere {
  overflow-wrap: anywhere;
}

.cmn-bg {
  position: fixed;
  z-index: -1;
  opacity: 1;
  width: 100%;
  height: 100%;
  inset: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.cmn-bg video {
  transform: translate3d(0, 0, 0);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

main:has(.page) .cmn-bg {
  opacity: 0;
  visibility: hidden;
}

@media print, screen and (min-width: 768px) {
  .cmn-button .button {
    box-shadow: 0 0 0 min(6px,  calc(6 / 1366 * 100vw)) rgba(var(--color-white-rgb), 0.6);
    aspect-ratio: 330/80;
    border-radius: min(40px,  calc(40 / 1366 * 100vw));
    width: min(330px,  calc(330 / 1366 * 100vw));
    padding-left: min(20px,  calc(20 / 1366 * 100vw));
    padding-right: min(20px,  calc(20 / 1366 * 100vw));
  }

  .cmn-button .button-icon {
    width: min(40px,  calc(40 / 1366 * 100vw));
  }

  .cmn-button .button-icon::after {
    background: url(../img/common/ic_arrow@pc.svg) no-repeat;
    width: min(13px,  calc(13 / 1366 * 100vw));
  }

  .global_header .logo-za {
    top: min(20px,  calc(20 / 1366 * 100vw));
    left: min(20px,  calc(20 / 1366 * 100vw));
    width: min(177px,  calc(177 / 1366 * 100vw));
  }

  .global_header .logo {
    top: min(30px,  calc(30 / 1366 * 100vw));
    left: calc(50% - min(137.5px,  calc(137.5 / 1366 * 100vw)));
    width: min(275px,  calc(275 / 1366 * 100vw));
  }

  .global_header .logo[data-visible=false] img {
    transform: translate3d(0, max(-164px,  calc(-164 / 1366 * 100vw)), 0);
  }

  .global_header .menu-button {
    top: min(20px,  calc(20 / 1366 * 100vw));
    right: min(20px,  calc(20 / 1366 * 100vw));
  }

  .global_header .menu-button label {
    gap: min(10px,  calc(10 / 1366 * 100vw));
    width: min(80px,  calc(80 / 1366 * 100vw));
    border-radius: min(10px,  calc(10 / 1366 * 100vw));
    border: min(3px,  calc(3 / 1366 * 100vw)) solid #fff;
    box-shadow: 0 0 min(30px,  calc(30 / 1366 * 100vw)) 0 #fff inset, 0 0 min(20px,  calc(20 / 1366 * 100vw)) 0 #fff inset, 0 0 min(20px,  calc(20 / 1366 * 100vw)) 0 #fff inset, 0 0 min(10px,  calc(10 / 1366 * 100vw)) 0 #fff inset;
    filter: drop-shadow(0 0 min(15px,  calc(15 / 1366 * 100vw)) rgba(0, 0, 0, 0.15));
  }

  .global_header .menu-button label span {
    aspect-ratio: 40/4;
    width: min(40px,  calc(40 / 1366 * 100vw));
  }

  .global_header .menu {
    right: max(-600px,  calc(-600 / 1366 * 100vw));
    width: min(600px,  calc(600 / 1366 * 100vw));
  }

  .global_header .menu .menu-panel .nav-logo {
    margin-bottom: min(50px,  calc(50 / 1366 * 100vw));
    padding-top: min(100px,  calc(100 / 1366 * 100vw));
    width: min(399px,  calc(399 / 1366 * 100vw));
  }

  .global_header .menu .menu-panel .nav {
    width: min(480px,  calc(480 / 1366 * 100vw));
    padding-bottom: min(50px,  calc(50 / 1366 * 100vw));
  }

  .global_header .menu .menu-panel .nav a {
    padding: min(20px,  calc(20 / 1366 * 100vw)) min(10px,  calc(10 / 1366 * 100vw)) min(20px,  calc(20 / 1366 * 100vw)) 0;
    transition: opacity 0.3s;
  }

  .global_header .menu .menu-panel .nav a::after {
    mask: url(../img/common/ic_arrow@pc.svg) no-repeat;
    mask-size: contain;
    width: min(13px,  calc(13 / 1366 * 100vw));
  }

  .shares {
    max-width: min(360px,  calc(360 / 1366 * 100vw));
    padding: min(20px,  calc(20 / 1366 * 100vw)) 0 min(30px,  calc(30 / 1366 * 100vw)) 0;
    border-radius: min(140px,  calc(140 / 1366 * 100vw));
    margin-top: min(90px,  calc(90 / 1366 * 100vw));
    margin-bottom: min(80px,  calc(80 / 1366 * 100vw));
  }

  .shares .title {
    margin-bottom: min(20px,  calc(20 / 1366 * 100vw));
  }

  .shares ul {
    gap: min(20px,  calc(20 / 1366 * 100vw));
  }

  .shares a {
    width: min(60px,  calc(60 / 1366 * 100vw));
    transition: transform 0.3s;
  }

  footer {
    background-image: url(../img/common/bg_footer@pc.webp);
    gap: min(50px,  calc(50 / 1366 * 100vw));
    padding-top: min(80px,  calc(80 / 1366 * 100vw));
  }

  footer .official {
    flex-direction: row;
    gap: min(20px,  calc(20 / 1366 * 100vw));
  }

  footer .official a {
    gap: min(10px,  calc(10 / 1366 * 100vw));
    width: min(400px,  calc(400 / 1366 * 100vw));
    padding: min(15px,  calc(15 / 1366 * 100vw)) 0;
    border-radius: min(30px,  calc(30 / 1366 * 100vw));
  }

  footer .games {
    margin: 0 auto;
    width: min(420px,  calc(420 / 1366 * 100vw));
  }

  footer .games a {
    justify-content: center;
    gap: min(10px,  calc(10 / 1366 * 100vw));
    padding: min(15px,  calc(15 / 1366 * 100vw)) 0;
  }

  footer .caution {
    margin-bottom: min(30px,  calc(30 / 1366 * 100vw));
  }

  footer .logo .switch img {
    height: 50px;
  }

  footer .logo .company img {
    height: 20px;
  }

  footer .logo .nintendo img {
    height: 50px;
  }

  .pagetop {
    transform: translateY(20.4vw);
    bottom: min(40px,  calc(40 / 1366 * 100vw));
    right: min(40px,  calc(40 / 1366 * 100vw));
    width: min(99px,  calc(99 / 1366 * 100vw));
  }

  ._only_sp {
    display: none;
  }
}

@media print and (hover: hover), screen and (min-width: 768px) and (hover: hover) {
  .global_header .menu .menu-panel .nav a:hover {
    opacity: 0.6;
  }

  .shares a:hover {
    transform: scale(1.1);
  }
}

@media screen and (min-width: 768px) and (-ms-high-contrast: active), screen and (min-width: 768px) and (-ms-high-contrast: none) {
  .global_header .menu .menu-panel .nav a:hover {
    opacity: 0.6;
  }

  .shares a:hover {
    transform: scale(1.1);
  }
}

@media only screen and (max-width: 767.8px) {
  .cmn-button .button-text {
    font-size: 2.8rem;
  }

  .global_header .menu .menu-panel .nav a {
    font-size: 3.6rem;
  }

  .shares .title {
    font-size: 3rem;
  }

  footer .official a {
    font-size: 2.8rem;
  }

  footer .games a {
    font-size: 2.4rem;
  }

  footer .copyright,
  footer .caution {
    font-size: 2rem;
  }

  ._only_pc {
    display: none;
  }
}

@media screen and (min-width: 768px) and (max-width: 1365.8px) {
  .cmn-button .button-text {
    font-size: 1.8rem;
  }

  .global_header .menu .menu-panel .nav a {
    font-size: 2.4rem;
  }

  .shares .title {
    font-size: 1.8rem;
  }

  footer .official a {
    font-size: 1.6rem;
  }

  footer .games a {
    font-size: 1.4rem;
  }

  footer .copyright,
  footer .caution {
    font-size: 1.3rem;
  }
}

@media (hover: hover) {
  .cmn-button .button:hover::before {
    opacity: 1;
  }

  .global_header .logo:hover img {
    transform: none;
  }

  footer a:hover {
    opacity: 0.6;
  }
}

@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
  .cmn-button .button:hover::before {
    opacity: 1;
  }

  .global_header .logo:hover img {
    transform: none;
  }

  footer a:hover {
    opacity: 0.6;
  }
}