:root {
  --color1: #ffde6d;
}
body {
  opacity: 0;
  transition: all .6s ease;
  font-family: "Meiryo", "Microsoft JhengHei", sans-serif;
  letter-spacing: .1em;
  color: #fff;
  background-image: url("img/cg07_00.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
a {
  color: #ffffff60;
}
::selection {
  color: #000;
  background-color: #ffffff;
}
body.loaded {
  opacity: 1;
}
header {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
}
header .logo {
  width: 190px;
}
header .nav-item a {
  display: inline-block;
  font-weight: 600;
  position: relative;
}
header .nav-item a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  left: 50%;
  bottom: 3px;
  background: #ffffff60;
  transform: translate(-50%);
  transition: all .3s ease;
}
header .nav-item a:hover:after,
header .nav-item a.active:after {
  width: 100%;
}
header .nav-item a.active:after {
  background: #fff;
}
.h-con {
  width: 300px;
  text-align: center;
}
.btns-lang .btn {
  font-size: .8rem;
}
body.en .btn-lang-en,
body.zh .btn-lang-zh,
body.jp .btn-lang-jp {
  background-color: #fff;
  color: #000;
}
footer {
  position: relative;
  text-align: center;
  background-color: #000;
  padding: 3em 0;
  margin-top: 3rem;
  z-index: 999;
}
.copyright {
  font-size: .6rem;
  letter-spacing: .3em;
}
overlap {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("img/overlap.webp");
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: left top;
  pointer-events: none;
}
section {
  position: relative;
  padding: 3rem 1.5rem 3rem 300px;
  font-size: .8rem;
  text-align: center;
  opacity: 0;
  transition: all .3s ease;
}
section.go {
  opacity: 1;
}
.s-title {
  font-size: 2rem;
  font-family: "Chango", sans-serif;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}
.s-title::after {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 1px solid;
  margin-top: .5rem;
}
.inner {
  position: relative;
  border-radius: 10px;
  background: #fff;
  padding: 2rem;
  max-width: 900px;
  margin: 0 0 0 auto;
  z-index: 11;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.i-1 {
  padding: 0;
}
.i-2 {
  min-height: 100vh;
  display: flex;
  align-items: end;
}
.i-2 .inner {
  background: #ffffff30;
  max-width: 600px;
}
.i-2 .inner .table {
  color: #fff;
}
#story .inner {
  background-image: url(img/cg04_00.webp);
}
#story .inner:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  opacity: .3;
  pointer-events: none;
}
.i-3 .s-title {
  margin-bottom: 1.5rem;
}
#story.ani p {
  position: relative;
  color: #ffffff00;
  transition: all .6s ease;
  white-space: nowrap;
}
#story.ani.go p {
  color: #000;
}
#story.ani p span {
  position: relative;
  display: inline-block;
}
#story.ani p > span:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  transition: all .6s ease;
  background-color: #fff;
}
#story.ani.go p > span:before {
  width: 100%;
}
.i-3 h5 {
  font-weight: 600;
}
.i-4 [class^=col]{
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-weight: 600;
}
.badge {
  font-family: "Chango", sans-serif;
  font-weight: 200;
}
#gallery .inner {
  background-color: #dddddd60;
}
#support .inner {
  background-color: #ddd;
}
.g-wp {
  font-size: 0;
  text-align: center;
}
.g-i {
  display: inline-block;
  width: 160px;
  height: 90px;
  margin: .5rem;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all .3s ease;
}
.g-i:hover {
  opacity: .5;
}
.btn-totop {
  display: block;
  position: absolute;
  top: calc(50% - 1rem);
  right: 2rem;
  width: 2rem;
  height: 2rem;
  background: #ffffff60;
  border-radius: 50%;
  color: #000;
  text-decoration: none;
  transition: all .3s ease;
}
.btn-totop:hover {
  color: #000;
  background: #ffffff;
}
.btn-totop:before {
  content: "▲";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.btn-menu {
  display: none;
}
#spec table th {
  background: #dddddd60;
}
#spec table tr.bg-dark td {
  letter-spacing: .5em;
}
.n-t {
  position: absolute;
  top: -50px;
  right: 0;
  width: 100%;
  text-align: center;
}
.n-t img {
  filter: drop-shadow(0 0 10px #ffffff60);
  vertical-align: middle;
}

@media screen and (max-width: 991px) {
  body {
    background-position: 30% center;
  }
  .btn-menu {
    display: block;
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    width: 2.6rem;
    height: 1.6rem;
    z-index: 1002;
  }
  .btn-menu span {
    display: block;
    width: 100%;
    height: .3rem;
    position: absolute;
    left: 0;
    transition: all .3s ease;
    transform-origin: center;
  }
  .btn-menu span:nth-child(1){
    top: 0;
    background: var(--color1);
  }
  .btn-menu span:nth-child(2){
    top: calc(100% - .3rem);
    background: #fff;
  }
  body.menu-open .btn-menu span {
    top: 50%;
    left: 50%;
  }
  body.menu-open .btn-menu span:nth-child(1){
    transform: translate(-50%, -50%) rotate(45deg);
  }
  body.menu-open .btn-menu span:nth-child(2){
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  header {
    display: block;
    right: 0;
    visibility: hidden;
    opacity: 0;
    transition: all .3s ease;
    background: #111;
    overflow: auto;
    z-index: 1001;
  }
  body.menu-open header {
    visibility: visible;
    opacity: 1;
  }
  .h-con-wp {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 0;
  }
  .h-con {
    width: 100%;
  }
  section {
    padding: 3rem 1.5rem;
  }
  .s-title {
    font-size: 1.5rem;
  }
  .inner {
    width: 100%;
    padding: 2rem 1rem;
  }
  #top {
    height: 100vh;
  }
  .i-2 {
    min-height: 0;
  }
  .i-2 .inner {
    max-width: none;
  }
  #story .inner:before {
    opacity: .7;
  }
  #story.ani p {
    white-space: unset;
    color: #fff !important;
  }
  #story.ani p > span:before {
    display: none;
  }
}

@media screen and (max-width: 575px) {
  :root {
    font-size: 12px;
  }
  body {
    background: #000;
  }
  .i-1 {
    background-image: url(img/cg07_00.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 30% center;
  }
  section {
    padding: 0;
  }
  .inner {
    border-radius: 0;
  }
  footer {
    margin: 0;
  }
}

@media screen and (orientation: portrait) and (max-width: 525px) {
  .i-1 {
    background-position: 20% center;
  }
}
