@charset "utf-8";
/* nav *********************************************************/
#nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: solid 1px rgba(0, 0, 0, 0.07);
  z-index: 999;
}
.nav-wrap {
  display: flex;
  height: 80px;
  justify-content: space-between;
  align-items: center;
  row-gap: 0;
  column-gap: 2rem;
}
.nav-logo {
  width: 120px;
  align-items: center;
}
.nav-logo a {
  margin: 0;
}
.nav-linkBox {
  width: calc(100% - 120px);
}
.nav-links {
  display: flex;
  column-gap: 2rem;
  justify-content: flex-end;
}
.nav-links a {
  position: relative;
}
.nav-links a.nav-active::before {
  position: absolute;
  left: 0;
  content: "";
  width: 20px;
  height: 1px;
  background: #212121;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
}
.hamburger,
.mobile-menu,
.overLay {
  display: none;
}
@media screen and (max-width: 768px) {
  /* nav *********************************************************/
  .nav-wrap {
    column-gap: 1.5rem;
  }
  .nav-links {
    column-gap: 1.5rem;
  }
  .nav-links a {
    position: relative;
  }
  a.nav-active::before {
    width: 15px;
  }
}
@media screen and (max-width: 550px) {
  /* nav *********************************************************/
  .nav-linkBox {
    display: none;
  }
  .hamburger,
  .mobile-menu {
    display: block;
  }
  .nav-wrap {
    height: 60px;
  }
  /* hamburger */
  .hamburger {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: auto;
    cursor: pointer;
  }
  .hamburger li {
    margin: 6px 0;
    transition: 0.5s ease-in-out;
  }
  .hamburger li:first-child {
    margin: 0 0 6px;
  }
  .hamburger li:last-child {
    margin: 6px 0 0;
  }
  .hamburger li span {
    display: block;
    height: 1px;
    background: #212121;
    border-radius: 3px;
  }
  .hamburger.active {
    top: 27px;
  }
  .hamburger.active li:nth-child(2) {
    display: none;
  }
  .hamburger.active li:first-child {
    transform: rotate(-45deg) translateY(1px);
    margin: 0;
  }
  .hamburger.active li:last-child {
    transform: rotate(45deg) translateY(-1px);
    margin: 0;
  }
  /* mobile */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 340px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: right 0.5s ease-in-out;
    padding: 60px 1.5rem 1.5rem;
  }
  .mobile-menu.active {
    right: 0;
  }
  .mobile-links {
    display: flex;
    flex-wrap: wrap;
    row-gap: 1rem;
    column-gap: 1rem;
  }
  .mobile-links li {
    width: 100%;
    padding-bottom: 0.1rem;
    border-bottom: solid 1px rgba(0, 0, 0, 0.07);
  }
  .mobile-links li a {
    display: block;
    margin: 0;
  }
  .nav-active {
    position: relative;
    padding-left: 0.9rem;
  }
  .mobile-links .nav-active::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: #212121;
  }
  /* overLay */
  .overLay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: right 0.5s ease-in-out;
  }
  .overLay.active {
    display: block;
  }
}
