/* 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:100%;
  height: 40px;
  display: flex;
  position: fixed;
  z-index: 18800;
  top: 110px;
  left: 0;
  text-align: center;
  padding:0 1%;
  overflow: hidden;
  transition: .4s all;
}
nav.globalmenu.site_active {
  width:calc(100% - 160px);
  top:0px;
  left:auto;
  right:0;
  height: 60px;
}

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

nav.globalmenu ul.gm02 {
  width: 45%;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-left:auto;
}


nav.globalmenu ul li {
  list-style-type: none;
  padding: 0;
  flex: 1;
  margin:0 0;
  font-size: clamp(10px, 1vw, 16px);
  font-weight: 400;
  letter-spacing: -0.5px;
  overflow: hidden;
  border-radius: 5px;
}

nav.globalmenu ul li a {
  width: 100%;
  height: auto;
  display: block;
  line-height: 40px;
  color:var(--color-white);
  text-decoration: none;
  transition: .4s all;
}
nav.globalmenu ul li a:hover {
  color:var(--color-white);
  background-color: var(--color-2nd);
}

nav.globalmenu.site_active ul.gm01 {
  width:50%;
}
nav.globalmenu.site_active ul.gm02 {
  width:50%;
}
nav.globalmenu.site_active ul li a {
  width: 100%;
  height: auto;
  display: block;
  line-height: 60px;
  color:var(--color-white);
  text-decoration: none;
  transition: .4s all;
}
nav.globalmenu.site_active ul li a:hover {
  color:var(--color-white);
  background-color: var(--color-2nd);
}


}

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

  /* Menu botton*/
  .menubn {
    display: block;
    position: fixed;
    z-index: 21550;
    right: 10px;
    top: 35px;
    width: 50px;
    height: 45px;
    cursor: pointer;
    text-align: center;
    background-image: url(../img/header/ic-menu_open-index.webp);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: auto 8px;
    transition: .4s all;
  }

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

  .menubn span {
    display: block;
    position: absolute;
    width: 40px;
    height: 1px;
    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-index.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: 16500;
  top:  -100%;
  left:0;
  background: rgba(82, 153, 153, 0.8);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  padding:0 5%;
  transition: .4s all;
}

  nav.globalmenu ul {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    margin:0 auto;
  }

  nav.globalmenu ul li {
    width:100%;
    height: auto;
    display: block;
    list-style-type: none;
    margin:0 1% 5px;
    font-size: 14px;
    line-height: 1em;
    transition: .4s all;
    border-radius: 3px;
    overflow: hidden;
    box-shadow:0px 5px 10px rgba(0,0,0,0.1);
  }

  nav.globalmenu ul li:last-child {
    border-bottom: none;
  }

  nav.globalmenu ul li a {
    width: 100%;
    height: auto;
    display: block;
    text-decoration: none;
    color: var(--color-1st);
    padding:1.5em 20px 1.5em 10px;
    background-color:var(--color-white);
    background-image: url(../img/header/ic-ar_h_b.webp);
    background-repeat: no-repeat;
    background-position: 98% center;
    background-size: auto 16px;
    transition: .4s all;
  }

  nav.globalmenu ul li a:hover {
    color:var(--color-white);
    background-color:var(--color-2nd);
    background-image: url(../img/header/ic-ar_h_w.webp);
  }

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

}
