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

  /* Menu botton*/
  .menubn {
    display: block;
    position: absolute;
    z-index: 3;
    right: 13px;
    top: 20px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    text-align: center;
  }

  .menubn span {
    display: block;
    position: absolute;
    width: 40px;
    height: 2px;
    left: 6px;
    background: var(--color-black);
    -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 span:nth-child(1) {
    top: 19px;
    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: 19px;
    background: var(--color-black);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  nav.globalmenu {
    position: fixed;
    z-index: 2;
    top: -100%;
    left: 0;
    color: var(--color-black);
    background: rgba(243, 243, 239,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    min-height: 100%;
    opacity: 0;
    transition: opacity .6s ease, visibility .6s ease;
  }

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

  nav.globalmenu ul li {
    list-style-type: none;
    padding: 0;
    width: 100%;
    font-size: 18px;
    font-family: var(--font-min);
    transition: .4s all;
    border-bottom: 1px dotted var(--color-1st);
  }
  nav.globalmenu ul li:last-child {
    border-bottom: none;
  }

  nav.globalmenu ul li a {
    display: block;
    color: var(--color-black);
    padding: 2em 0 2em 1em;
    text-decoration: none;
    background-image: url(../img/ic-ar_h_r_c.png);
    background-repeat: no-repeat;
    background-position: 98% center;
    background-size: auto 30%;
    transition: .4s all;
  }
  nav.globalmenu ul li a:hover {
    background-color: rgba(149, 116, 93,0.1);
  }

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

}

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

 /* Menu botton*/
  .menubn {
    display: block;
    position: absolute;
    z-index: 3;
    right: 13px;
    top: 20px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    text-align: center;
  }

  .menubn span {
    display: block;
    position: absolute;
    width: 40px;
    height: 2px;
    left: 6px;
    background: var(--color-black);
    -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 span:nth-child(1) {
    top: 19px;
    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: 19px;
    background: var(--color-black);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  nav.globalmenu {
    position: fixed;
    z-index: 2;
    top: -100%;
    left: 0;
    color: var(--color-black);
    background: rgba(243, 243, 239,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    min-height: 100%;
    opacity: 0;
    transition: opacity .6s ease, visibility .6s ease;
  }

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

  nav.globalmenu ul li {
    list-style-type: none;
    padding: 0;
    width: 100%;
    font-size: 16px;
    font-family: var(--font-min);
    transition: .4s all;
    border-bottom: 1px dotted var(--color-1st);
  }
  nav.globalmenu ul li:last-child {
    border-bottom: none;
  }

  nav.globalmenu ul li a {
    display: block;
    color: var(--color-black);
    padding: 1em 0 1em 1em;
    text-decoration: none;
    background-image: url(../img/ic-ar_h_r_c.png);
    background-repeat: no-repeat;
    background-position: 98% center;
    background-size: auto 30%;
    transition: .4s all;
  }
  nav.globalmenu ul li a:hover {
    background-color: rgba(149, 116, 93,0.1);
  }

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

}
