/* ©Nintendo */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック  Medium', meiryo, sans-serif;
}
p {
  margin: 0;
  padding: 0;
}
hr {
  height: 1px;
  border: none;
}

/* common */
.contents {
  display: flex;
  flex-direction: column;
}
/* logo */
.logoHeader {
  background-color: #E60012;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  min-height: 60px;
}
.nintendoLogo {
  width: 78px;
  height: 20px;
}
.arrowImgWrapper {
  width: 16px;
  height: 16px;
}
.arrowImg {
  width: 16px;
  height: 16px;
}
.arrowImg {
  filter: invert(45%) sepia(99%) saturate(7497%) hue-rotate(204deg) brightness(98%) contrast(98%);
}

/* join */
.openItemWrapper {
  text-align: center;
  margin: 32px 0 0;
}
.openButton {
  text-align: center;
  justify-content: center;
  text-decoration: none;
  background-color: #0266d8;
  color: #FFFFFF;
  font-size: clamp(10px, 4vw, 17px);
  font-weight: bold;
  border-radius: 6px;
  padding: 16px;
  display: block;
  min-width: 184px;
  max-width: 320px;
  margin: 0 20px;
  cursor: pointer;
}

.openAppText {
  margin: 16px 0;
  color: rgba(5, 5, 5, 0.5);
  font-size: 11px;
  white-space: pre-line;
}
.joinButton:active {
  background-color: #FFFFFF;
  color: #1E1E1E;
}
/* scrollLink */
.scrollLinkWrapper {
  text-align: center;
  padding: 0 6px;
}
.scrollLink {
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1px;
  max-width: 80%;
}
.scrollLink img {
  flex: 1;
  width: 16px;
  height: 16px;
}
.scrollLinkText {
  margin: 24px 0 0;
  font-size: 13px;
  font-weight: bold;
  color: #050505;
  display:inline-block;
  white-space: pre-line;
  text-align: center;
}

/* error */
.errorMessageWrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 365px;
  background-color: #1E1E1E;
}
.errorMessage {
  text-align: center;
  color: #A0A0A0;
  font-size: 14px;
  white-space: pre-line;
}

/* footer */
.footer {
  text-align: center;
  background-color: #E60012;
  min-height: 118px;
  color: #FFFFFF;
  font-size: 12px;
}
.footerContents {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* appLink */
.appLinkWrapper {
  margin-bottom: 16px;
}
.bannerWrapper {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 28px;
}
.bannerWrapper a img {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
  max-width: 100%;
}

/* friend code */
.friendCodeBody {
  min-width: 288px;
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
}
.friendCodeContents {
  text-align: center;
  margin: 0 auto;
  padding: 0 16px;
  min-width: 256px;
  max-width: 400px;
}
.friendCodeWrapper {
  color: #A0A0A0;
}
.friendCodeTitle {
  margin: 24px 0px 0px;
  align: center;
  color: #050505;
  font-size: 17px;
  white-space: pre-line;
}
.friendCodeDescription {
  margin: 12px 0px 0px;
  align: center;
  color: rgba(5, 5, 5, 0.5);
  font-size: 13px;
  white-space: pre-line;
}
.friendCodeRequestImageWrapper {
  margin: 16px 0px 0px;
  position: relative;
  padding-top: 56.25%;
  width: 100%;
  border-radius: 24px;
  background: #E6E6E6;
}
.friendCodeRequestImage {
  position: absolute;
  display: block;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
}

/* legal */
.legalTextWrapper {
  margin: 0 0 12px;
}
.legalText {
  align: center;
  color: rgba(5, 5, 5, 0.5);
  font-size: 11px;
  white-space: pre-line;
}

/* sitePolicy */
.sitePolicyLinkWrapper {
  margin: 32px 6px;
}
.sitePolicyLinkWrapperInner {
  display: inline-flex;
  flex-direction: column;
}
.sitePolicyLink {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1px;
  text-decoration: none;
  color: #0266d8;
  max-width: 80%;
  white-space: nowrap;
}
.sitePolicyLink + .sitePolicyLink {
  margin-top: 16px;
}
.sitePolicyText {
  font-size: 11px;
  text-align: left;
  margin-left: 4px;
}

/* copyright */
.nintendoCopyright {
  display: inline-flex;
  color: rgba(5, 5, 5, 0.5);
  font-size: 11px;
  margin-bottom: 44px;
}

/* IE対応 */
@media all and (-ms-high-contrast:none){
  body {
    background-color: #E60012;
  }
  .gameInfo {
    flex: auto;
  }
}
