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

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

  .menubn span {
    display: block;
    position: absolute;
    width: 30px;
    height: 2px;
    left: 6px;
    background: #555;
    -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: 16px;
    left: 6px;
    background: #fff;
    -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: #fff;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  nav.globalmenu {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    text-align: center;
    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 10%;
  }

  nav.globalmenu ul li:first-child {
    border-top: 1px dotted rgba(255, 255, 255, 0.5);
  }

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

  nav.globalmenu ul li:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  nav.globalmenu ul li a {
    display: block;
    color: #fff;
    padding: 2em 0;
    text-decoration: none;
  }

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

  }
}

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

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

  .menubn span {
    display: block;
    position: absolute;
    width: 30px;
    height: 2px;
    left: 6px;
    background: #555;
    -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: 16px;
    left: 6px;
    background: #fff;
    -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: #fff;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  nav.globalmenu {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    text-align: center;
    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 10%;
  }

  nav.globalmenu ul li:first-child {
    border-top: 1px dotted rgba(255, 255, 255, 0.5);
  }

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

  nav.globalmenu ul li:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  nav.globalmenu ul li a {
    display: block;
    color: #fff;
    padding: 2em 0;
    text-decoration: none;
  }

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

  }

}
