/* Style for PC */
@media screen and (min-width: 1025px) {

  /* Menu botton*/
  .menubn {
    display: none;
  }

  .menubn span {
    display: none;
  }

  .menubn span:nth-child(1) {
    display: none;
  }

  .menubn span:nth-child(2) {
    display: none;
  }

  .menubn span:nth-child(3) {
    display: none;
  }

  /* ナビ開いてる時のボタン */
  .menubn.active span:nth-child(1) {
    display: none;
  }

  .menubn.active span:nth-child(2),
  .menubn.active span:nth-child(3) {
    display: none;
  }

  nav.globalmenu {
    width: calc(100% - 40%);
    height: 70px;
    display: block;
    position: fixed;
    z-index: 19500;
    top: 0;
    right: 5%;
    text-align: center;
    padding:0;
    overflow: hidden;
    transition: .4s all;
  }

  nav.globalmenu ul {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
  }

  nav.globalmenu ul li {
    list-style-type: none;
    padding: 0;
    flex: 1;
    height: 70px;
    display: flex;
    align-items: center;
    margin:0 0;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: -0.5px;
    transition: .4s all;
  }

  nav.globalmenu ul li a {
    width: 100%;
    height: 40px;
    display: block;
    line-height: 40px;
    color:var(--color-white);
    text-decoration: none;
    background-image: url(../img/header/box-red.webp);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 0% 1px;
    transition: .4s all;
  }
  nav.globalmenu ul li a:hover {
    color:var(--color-white);
    background-size: 100% 1px;
  }


}

/* Style for Smartphone */
@media screen and (max-width: 1024px) {

  /* Menu botton*/
  .menubn {
    display: block;
    position: fixed;
    z-index: 21500;
    right: 5%;
    top: 15px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    text-align: center;
    transition: .4s all;
  }

  .menubn.site_active {
    display: block;
    position: fixed;
    z-index: 21500;
    right: 5%;
    top: 15px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    text-align: center;
  }

  .menubn span {
    display: block;
    position: absolute;
    width: 40px;
    height: 2px!important;
    left: 6px;
    background: var(--color-white);
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
  }

  .menubn span:nth-child(1) {
    top: 10px;
  }

  .menubn span:nth-child(2) {
    top: 20px;
  }

  .menubn span:nth-child(3) {
    top: 30px;
  }

  /* ナビ開いてる時のボタン */
  .menubn.active {
    background-image: url(../img/header/ic-menu_close.webp);
  }
  .menubn.active span:nth-child(1) {
    top: 16px;
    left: 6px;
    background: var(--color-white);
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  .menubn.active span:nth-child(2),
  .menubn.active span:nth-child(3) {
    top: 16px;
    background: var(--color-white);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  nav.globalmenu {
    position: fixed;
    z-index: 20000;
    top: 0;
    left:-9999px;
    color: var(--color-white);
    background: rgba(18, 20, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: .4s all;
  }

  nav.globalmenu ul {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0 8%;
  }

  nav.globalmenu ul li {
    width: 100%;
    height: auto;
    display: block;
    font-size:14px;
    font-weight: 300;
    background-color: rgba(0,0,0,0.12);
    background-image: url(../img/header/box-red.webp);
    background-repeat: no-repeat;
    background-position: 0 bottom;
    background-size: 0% 1px;
    transition: .4s all;
    margin-bottom: 5px;
  }

  nav.globalmenu ul li a {
    width: 100%;
    height: 80px;
    display: block;
    line-height: 80px;
    text-decoration: none;
    color: var(--color-white);
    padding-left:1.5em;
    background-image: url(../img/header/ic-ar_h_g.webp);
    background-repeat: no-repeat;
    background-position: 97% center;
    background-size: auto 14px;
    transition: .4s all;
  }

  nav.globalmenu ul li:hover {
    background-size: 100% 1px;
  }

/* このクラスを、jQueryで付与・削除する */
nav.globalmenu.active {
  opacity: 100;
  left:0;
}

}
