@charset "utf-8";

* {
  box-sizing: border-box;
}
#globalNav {
  width: 100%;
}
.gnav {
  background-color: #80cbc4;
  padding: 0;
  text-align: center;
  margin: 0;
}
.menu_item {
  display: inline-block;
  position: relative;
  padding: 5px 10px;
}
.menu_item::after {
  content: '';
  display: block;
  width: 1px;
  height: 20px;
  background-color: #ffffff;
  position: absolute;
  right: -1px;
  top: calc((100% - 20px) / 2);
}
.menu_item:last-child::after {
  content: none;
}
.menu_item a {
  display: block;
  padding: 1em;
  color: white;
  text-decoration: none;
  transition: 0.5s ease-out;
}
.menu_item a::first-line {
  font-weight: bold;
  font-size: 16px;
}
.menu_item a:hover {
  letter-spacing: 0.2em;
  opacity: 0.5;
}
@media only screen and (max-width: 768px) {
  nav {
    position: fixed;
    right: -320px; /* 右から出てくる */
    top: 0;
    width: 250px; /* スマホに収まるサイズ */
    height: 100vh;
    padding-top: 60px;
    background-color: #80cbc4;
    transition: all 0.6s;
    z-index: 1500;
    overflow-y: auto; /* メニューが多くなったらスクロールできるように */
  }
  #hamburgerMenu {
    top: 12px;
    right: 15px;
    transition: 0.3s;
    cursor: pointer;
    position: fixed;
    z-index: 9999;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .gnav {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .menu_item {
    text-align: center;
    padding: 0 14px;
    width: 100%;
  }
  .menu_item::after {
    content: none;
  }
  .menu_item a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid white;
    text-decoration: none;
    color: white;
  }
  .menu_item a:visited {
    color: white;
  }
  .menu_trigger {
    width: 18px;
    height: 16px;
    position: relative;
  }
  .menu_trigger span {
    display: inline-block;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2c2c2c;
    transition: all 0.5s;
  }
  .menu_trigger span:nth-of-type(1) {
    top: 0;
  }
  .menu_trigger span:nth-of-type(2) {
    top: 7px;
  }
  .menu_trigger span:nth-of-type(3) {
    bottom: 0;
  }
  .black_bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1350;
    background-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s;
    cursor: pointer;
  }
  .nav-open nav {
    right: 0;
  }
  .nav-open .black_bg {
    opacity: 0.8;
    visibility: visible;
  }
  .nav-open .menu_trigger span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 7px;
  }
  .nav-open .menu_trigger span:nth-of-type(2) {
    width: 0;
    left: 50%;
  }
  .nav-open .menu_trigger span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 7px;
  }
}
