@charset "utf-8";

/* =======================================
	言語プルダウン
======================================= */
.languages select {display:none !important;} 

/* =======================================
	loading screen
======================================= */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.loading-text {
  color: #fbecc7;
  font-size: 16px;
  margin: 0;
  opacity: 0.8;
}

.loading-dots {
  display: inline-block;
  min-width: 1.5em;
  text-align: left;
}

@media screen and (min-width: 768px) {
  .loading-logo {
    width: 300px;
    margin-bottom: 30px;
  }

  .loading-text {
    font-size: 18px;
  }
}

/* =======================================
	common
======================================= */
.pc {
  display: none;
}
.sp {
  display: block;
}

body {
  position: relative;
  width: 100%;
  min-height: 100lvh;
  margin: 0 auto;
  text-align: center;
  color: #fbecc7;
  background: black;
  line-height: 1;
  font-family: "Noto Sans JP", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  background-image: url("../img/grid_ptn.png");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  width: 100%;
}

tr,
td {
  vertical-align: top;
}

a {
  outline: none;
  text-decoration: underline;
}

a:link {
  color: #fff460;
  text-decoration: none;
}
a:visited {
  color: #fff460;
  text-decoration: none;
}
a:hover {
  color: #fff460;
  text-decoration: none;
}
a:active {
  text-decoration: none;
}

/* =======================================
	text
======================================= */
h1 {
  width: 90%;
  margin: 0 auto 4%;
  position: relative;
  z-index: 1;
}

/* =======================================
	layout
======================================= */
main {
  width: 100%;
  min-height: 100%;
  padding-top: 80px;
}

#bg-video-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: url("../img/bg.jpg") no-repeat center center;
  background-size: cover;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =======================================
	navigation
======================================= */
.pc-nav {
  display: none;
}

.mobile-nav {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1002;
}

.mobile-nav-header {
  height: 60px;
  background: rgba(58, 10, 13, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.hamburger-btn {
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #fbecc7;
  margin: 2px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1),
.hamburger-btn.active .hamburger-line:nth-child(2),
.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: none;
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: #3a0a0d;
  transition: right 0.3s ease;
  overflow-y: auto;
  z-index: 1001;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-content {
  padding: 80px 30px 40px 30px;
}

.mobile-menu-header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  z-index: 1003;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active .mobile-menu-header {
  opacity: 1;
  visibility: visible;
}

.close-btn {
  background: none;
  border: none;
  color: #fbecc7;
  font-size: 32px;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(2.5rem, 1.605rem + 4.47vw, 3.75rem) 0;
}

.mobile-nav-menu li {
  border-bottom: 1px solid gray;
}

.mobile-nav-menu a {
  color: #fbecc7;
  font-weight: bold;
  text-decoration: none;
  font-size: clamp(1rem, 0.642rem + 1.79vw, 1.5rem);
  line-height: 1.4;
  display: block;
  padding: clamp(1.563rem, 1.249rem + 1.57vw, 2rem) 0;
  width: 100%;
  transition: color 0.3s ease;
}

.mobile-nav-menu a:hover {
  color: #ccc;
}

.mobile-nav-sns {
  width: 80%;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 5%;
}

.mobile-nav-sns a {
  display: block;
  transition: opacity 0.3s ease;
}

.mobile-nav-sns a:hover {
  opacity: 0.7;
}

.mobile-nav-sns img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.mobile-nav .languages {
  margin-right: auto;
}

.mobile-nav .languages select {
  background: #3a0a0d;
  color: #fbecc7;
  border: 2px solid #fbecc7;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
}

/* =======================================
	platforms
======================================= */
.platforms {
  width: 100%;
  height: 0;
  position: relative;
  margin: 0 auto 10%;
  padding-top: calc(965 / 750 * 100%);
  background: url("../img/frame_sp.png") center top no-repeat;
  background-size: cover;
}

.platforms ul {
  width: 80%;
  position: absolute;
  top: 28%;
  left: 0;
  right: 0;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
}

.platforms ul li {
  border-radius: 10px;
}

.platforms ul li a {
  display: inline-flex;
}

.platforms ul li a img {
  filter: drop-shadow(5px 5px 0px rgba(0, 0, 0, 0.4));
}

/* 3つのとき */
.platforms ul li {
  width: 68%;
  margin: 5% auto 8%;
}
/* 3つのとき */

/* 4つのとき */
/* .platforms ul li {
  width: 64%;
  margin: 0 auto 6%;
} */
/* 4つのとき */

/* 5～6つのとき */
/* .platforms ul li {
  width: 47%;
  margin-top: 8%;
  margin-bottom: 10%;
}
.platforms ul li:nth-child(odd) {
  margin-right: 6%;
} */
/* 5～6つのとき */

/* 7～8つのとき */
/* .platforms ul li {
  width: 47%;
  margin-top: 5%;
  margin-bottom: 6%;
}
.platforms ul li:nth-child(odd) {
  margin-right: 6%;
} */
/* 7～8つのとき */

/* 9つのとき */
/* .platforms ul li {
  width: 47%;
  margin-bottom: 6%;
}
.platforms ul li:nth-child(odd) {
  margin-right: 6%;
} */
/* 9つのとき */

/* =======================================
	spec
======================================= */
.spec {
  position: relative;
  width: 80%;
  z-index: 1;
  margin: 0 auto;
  font-size: clamp(0.5rem, 0.142rem + 1.79vw, 1rem);
  line-height: 1.5;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
}

/* =======================================
	footer
======================================= */
footer {
  position: relative;
  width: 100%;
  margin: 10% auto 0;
}

.foot-sns {
  display: block;
  width: 50%;
  margin: 0 auto 4%;
  display: flex;
  justify-content: center;
  gap: 5%;
  position: relative;
  z-index: 1;
}

.copyright {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding: 0.6em 0;
  background: #3b0a0d;
}

.copyright-asobism {
  display: block;
  font-size: clamp(0.375rem, 0.107rem + 1.34vw, 0.75rem);
  margin-bottom: 0.8em;
}

.copyright-note {
  display: block;
  font-size: clamp(0.375rem, 0.107rem + 1.34vw, 0.75rem);
}

@keyframes infinity-scroll-right {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes character-run-fade {
  0% {
    left: -60px;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: calc(100vw + 60px);
    opacity: 0;
  }
}

.convair-wrap {
  position: relative;
  display: flex;
  overflow: hidden;
  padding-top: 30px;
  margin-top: -30px;
  z-index: 1;
}
.convair-list {
  display: flex;
  list-style: none;
  padding: 0;
}

.convair-item > img {
  width: 100%;
  display: block;
}

.character-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  overflow: visible;
}

.character-runner {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  opacity: 0;
}

.character-runner img {
  width: auto;
  height: clamp(2.5rem, 1.426rem + 5.37vw, 4rem);
  object-fit: contain;
  image-rendering: pixelated;
}

@media screen and (min-width: 768px) {
  .sp {
    display: none;
  }
  .pc {
    display: block;
  }

  h1 {
    width: 72%;
    margin: 0 auto;
  }

  main {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
    padding-top: 90px;
  }

  .mobile-nav {
    display: none;
  }

  .pc-nav {
    display: block;
    width: 100%;
    height: 72px;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(0.313rem, -0.313rem + 1.3vw, 1.25rem);
    background: rgba(58, 10, 13, 0.8);
    z-index: 999;
  }

  .pc-nav .languages {
    margin-left: 20px;
  }

  .pc-nav .languages select {
    background: rgba(0, 0, 0, 0.7);
    color: #fbecc7;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
  }

  ul.nav-menu {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 0;
  }

  .nav-menu li {
    position: relative;
    display: flex;
    align-items: center;
  }

  .nav-menu li:not(:last-child)::after {
    content: "｜";
    color: #fbecc7;
    font-size: 16px;
    margin: 0 clamp(0.125rem, 0.042rem + 0.17vw, 0.25rem);
    display: inline-block;
  }

  .nav-menu li a {
    font-size: clamp(0.625rem, 0.375rem + 0.52vw, 1rem);
  }

  .nav-menu li a:link,
  .nav-menu li a:visited,
  .nav-menu li a:hover,
  .nav-menu li a:active {
    color: #fbecc7;
    text-decoration: none;
  }

  .nav-right {
    display: flex;
    align-items: center;
  }

  ul.nav-sns {
    height: 72px;
    display: flex;
    align-items: center;
    margin: 0;
  }

  .nav-sns li:not(:last-child) {
    margin-right: clamp(0.375rem, 0.125rem + 0.52vw, 0.75rem);
  }

  .nav-sns img {
    width: clamp(1rem, 0.333rem + 1.39vw, 2rem);
    height: clamp(1rem, 0.333rem + 1.39vw, 2rem);
    object-fit: contain;
  }

  .nav-sns a {
    display: block;
    transition: opacity 0.3s ease;
  }

  .nav-sns a:hover {
    opacity: 0.7;
  }

  .platforms {
    width: 100%;
    margin: 0 auto 2em;
    padding-top: calc(480 / 1390 * 100%);
    background: url("../img/frame.png") center top no-repeat;
    background-size: cover;
  }

  .platforms ul {
    display: flex;
    flex-wrap: wrap;
  }

  .platforms ul li {
    margin: 0 auto;
    transition: 0.2s ease-in-out;
    box-shadow: 5px 5px 0px 0px rgba(0, 0, 0, 0.4);
  }

  .platforms ul li:nth-child(odd) {
    margin-right: 0;
  }

  .platforms ul li a img {
    filter: none;
  }

  /* 3つのとき */
  .platforms ul {
    top: 50%;
  }
  .platforms ul li {
    width: 26%;
  }
  .platforms ul li:not(:last-child) {
    margin-right: 6%;
  }
  /* 3つのとき */

  /* 4つのとき */
  /* .platforms ul {
    top: 50%;
  }
  .platforms ul li {
    width: 22%;
  }
  .platforms ul li:not(:last-child) {
    margin-right: 4%;
  } */
  /* 4つのとき */

  /* 5つのとき */
  /* .platforms ul {
    top: 55%;
  }
  .platforms ul li {
    width: 18%;
  }
  .platforms ul li:not(:last-child) {
    margin-right: 2.5%;
  } */
  /* 5つのとき */

  /* 6つ以上のとき */
  /* .platforms ul {
    top: 45%;
    gap: 2.5%;
    justify-content: flex-start;
  }
  .platforms ul li {
    width: 18%;
    transition: 0.2s ease-in-out;
    margin: 0;
  }
  .platforms ul li:nth-child(-n + 5) {
    margin-bottom: 2.5%;
  } */
  /* 6つ以上のとき */

  .platforms ul li:hover {
    box-shadow: none;
  }

  .platforms ul li a {
    position: relative;
    top: 0;
    display: block;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: 0.2s ease-in-out;
  }
  .platforms ul li a:hover {
    top: 4px;
  }

  footer {
    margin: 4% auto 0;
  }

  .foot-sns {
    display: none;
  }

  .character-runner {
    width: 69px;
    height: 80px;
    transform: translateY(-65%);
  }

  .spec {
    font-size: 12px;
  }
}

@media screen and (min-width: 1280px) {
  .copyright {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1em 1em;
  }

  .copyright-asobism {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
  }

  .copyright-note {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
  }
}
