/* Style for iPad Pro */
@media screen and (min-width: 769px) and (max-width: 1024px) {

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

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

  .menubn span {
    display: block;
    position: absolute;
    width: 40px;
    height: 2px;
    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.scr_active span {
    background: var(--color-white);
  }

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

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

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

  /* ナビ開いてる時のボタン */
  .menubn.active span:nth-child(1) {
    top: 16px;
    left: 6px;
    background: var(--color-black);
    -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-black);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  nav.globalmenu {
    position: fixed;
    z-index: 20000;
    top:  -100%;
    left:0;
    color: var(--color-black);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    opacity: 0;
    transition: .4s all;
  }

  nav.globalmenu ul {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
  }

  nav.globalmenu ul li {
    list-style-type: none;
    padding: 0;
    width: 100%;
    font-size: 16px;
    transition: .4s all;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.5);
  }

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

  nav.globalmenu ul li a {
    display: block;
    color: var(--color-black);
    padding: 1.5em 1em;
    text-align: left;
    text-decoration: none;
    background-image: url(../img/header/ic-ar_hr_c.webp);
    background-position: 98% center;
    background-repeat: no-repeat;
    background-size: auto 30px;
    transition: .4s all;
  }

  nav.globalmenu ul li a:hover {
    color:var(--color-white);
    background-image: url(../img/header/ic-ar_hr_w.webp);
    background-color: var(--color-1st);
    background-position: 100% center;
  }

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


}

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

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

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

  .menubn span {
    display: block;
    position: absolute;
    width: 40px;
    height: 2px;
    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.scr_active span {
    background: var(--color-white);
  }

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

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

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

  /* ナビ開いてる時のボタン */
  .menubn.active span:nth-child(1) {
    top: 16px;
    left: 6px;
    background: var(--color-black);
    -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-black);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  nav.globalmenu {
    position: fixed;
    z-index: 20000;
    top:  -100%;
    left:0;
    color: var(--color-black);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    opacity: 0;
    transition: .4s all;
  }

  nav.globalmenu ul {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
  }

  nav.globalmenu ul li {
    list-style-type: none;
    padding: 0;
    width: 100%;
    font-size: 16px;
    transition: .4s all;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.5);
  }

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

  nav.globalmenu ul li a {
    display: block;
    color: var(--color-black);
    padding: 1.5em 1em;
    text-align: left;
    text-decoration: none;
    background-image: url(../img/header/ic-ar_hr_c.webp);
    background-position: 98% center;
    background-repeat: no-repeat;
    background-size: auto 30px;
    transition: .4s all;
  }

  nav.globalmenu ul li a:hover {
    color:var(--color-white);
    background-image: url(../img/header/ic-ar_hr_w.webp);
    background-color: var(--color-1st);
    background-position: 100% center;
  }

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

}
