/* Navigation styles */

@media (max-width: 768px) {
  .header__menu-btn {
    position: fixed;
    top: 0px;
    right: 0px;
    z-index: 3;
    width: 14%;
  }

  .header__menu-btn-inner {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    width: 100%;
  }

  .header__menu-btn-img {
    width: 100%;
    height: auto;
    display: block;
  }
}

.header__nav {
  position: fixed;
  top: -1px;
  left: 0;
  width: 100%;
  z-index: 10;
}

.header__nav-bg {
  width: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.header__nav-bg img,
.header__nav-bg picture {
  width: 100%;
  display: block;
}

.header__nav-list {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0 6% 0 7%;
  margin: 0;
  z-index: 1;
  pointer-events: auto;
}

.header__nav-item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transform: translateY(-10px);
  position: relative;
}

.header__nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease;
}
.header__nav-link picture {
  width: initial
}

.header__nav-link:hover {
  transform: translateY(3px);
}

.header__nav-link img {
  display: block;
  /* max-height: 80px; */
  width: auto;
  margin: 0 auto;
}

.header__nav-item,
.header__nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.nav-img--top     { max-width: 80%; width: 100%; display: block; margin: 0 auto; }
.nav-img--game    { max-width: 80%; width: 100%; display: block; margin: 0 auto; }
.nav-img--asobi   { max-width: 80%; width: 100%; display: block; margin: 0 auto; }
.nav-img--movie   { max-width: 80%; width: 100%; display: block; margin: 0 auto; }
.nav-img--special { max-width: 83%; width: 100%; display: block; margin: 0 auto; }
.nav-img--seihin  { max-width: 81%; width: 100%; display: block; margin: 0 auto; }

/* Coming Soon overlay */
.nav-img--comingsoon {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 70%;
  width: 100%;
  display: block;
  z-index: 10;
  pointer-events: none;
}

/* New overlay */
.nav-img--new {
  position: absolute;
  bottom: -35%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 43%;
  width: auto;
  display: block;
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    left: initial;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    transition: right 0.3s ease, transform 0.3s ease;
  }

  .header__nav.is-open {
    right: 0;
  }

  .header__nav.nav-open {
    right: 0;
  }

  .header__nav.nav-close {
    right: -100%;
  }

  .header__nav-sp-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 100%;
  }

  .header__nav-sp-bg img {
    width: 100%;
    height: 100%;
  }

  /* close button */
  .header__nav-sp-close {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 10;
    width: 15%;
  }

  .header__nav-sp-close-btn {
    cursor: pointer;
  }

  /* game title */
  .header__nav-sp-title {
    position: absolute;
    top: 10%;
    right: 0px;
    z-index: 5;
    width: 80%;
  }

  .header__nav-sp-title-main {
    margin-bottom: 10px;
    text-align: center;
    display: block;
    text-decoration: none;
  }

  .nav-sp-title-img {
    width: 70%;
    height: auto;
    margin: 0 auto;
    display: block;
    max-width: 370px;
  }

  .nav-sp-subtitle-img {
    width: 100%;
    height: auto;
  }

  /* menu list */
  .header__nav-sp-list {
    position: absolute;
    top: 27%;
    right: 0px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 5;
    width: 80%;
  }

  .header__nav-sp-item {
    margin-bottom: 20px;
  }

  .header__nav-sp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    transition: transform 0.2s ease;
  }

  .header__nav-sp-link:hover {
    transform: translateX(-5px);
  }

  .nav-sp-icon {
    width: 70%;
    height: auto;
    position: relative;
  }

  .nav-sp-icon-img--top {
    width: 65%;
  }

  .nav-sp-icon-img--game {
    width: 100%;
  }

  .nav-sp-icon-img--asobi {
    width: 85%;
  }

  .nav-sp-icon-img--movie {
    width: 70%;
  }

  .nav-sp-icon-img--special {
    width: 85%;
  }

  .nav-sp-icon-img--product {
    width: 80%;
  }

  .nav-sp-comingsoon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    z-index: 10;
  }

  @media (max-width: 768px) {
    .nav-sp-comingsoon {
      top: 63%;
    }
  }

  .nav-sp-comingsoon-img {
    width: 100%;
    height: 100%;
  }

  /* New overlay */
  .nav-sp-new {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    z-index: 10;
  }

  .nav-sp-new-img {
    width: 100%;
    height: 100%;
  }
}

.header {
  position: relative;
} 

