* {
  box-sizing: border-box;
  font-family: "Pretendard-Regular";
  margin: 0;
  padding: 0;
}

.nav {
  width: 100%;
  max-height: 100%;
  height: 8vh;
  display: flex;
  text-align: left;
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  transition-duration: 0.4s;
  transition-timing-function: ease;
  background-color: #fff;
  position: fixed;
}

.menu-list {
  list-style-type: none;
  display: flex;
}

.menu-link {
  display: block;
  padding: 10px 20px;
  color: #000;
  text-decoration: none;
}

.one {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #444;
  list-style: none;
  white-space: nowrap;
}

.menu-item:hover .one {
  display: block;
}

.one-item {
  width: auto;
  padding: 5px;
  position: relative;
  word-break: keep-all;
}

.one-link,
.two-item,
.three-item {
  display: block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
}

.two {
  display: none;
  position: absolute;
  top: 0;
  left: 99.8%;
  background-color: #555;
  list-style: none;
  white-space: nowrap;
}

.one-item:hover .two {
  display: block;
}

/* .two-item {
  width: auto;
  padding: 5px;
  position: relative;
  word-break: keep-all;
  box-sizing: border-box;
} */

.two-link {
  display: block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
}

.three {
  display: none;
  position: absolute;
  top: 0%;
  left: 100%;
  background-color: #666;
  list-style: none;
  white-space: nowrap;
}

.two-item:hover .three {
  display: block;
}

/* .three-item {
  width: auto;
  padding: 5px;
  position: relative;
  word-break: keep-all;
  box-sizing: border-box;
} */

.three-link {
  display: block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
}

.menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
}

@media (max-width: 1000px) {
  .menu-toggle {
    display: block;
    position: fixed;
    top: 22px;
    right: 20px;
    z-index: 999;
  }

  .menu-checkbox {
    display: none;
  }

  .menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    cursor: pointer;
    position: relative;
  }

  .menu-icon {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s;
    display: block;
  }

  .menu-btn.open .menu-icon:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 0;
  }

  .menu-btn.open .menu-icon:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.open .menu-icon:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 0;
  }

  .menu-list {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: #333;
    z-index: 998;
    overflow-y: auto;
    padding-top: 50px;
  }

  .menu-list.open {
    display: block;
  }

  .menu-item {
    border-bottom: 1px solid #555;
    position: relative;
    text-align: left;
    margin-bottom: 10px;
  }

  .menu-item:last-child {
    margin-bottom: 0;
  }

  .menu-item.open > .one,
  .one-item.open > .two,
  .two-item.open > .three {
    display: block;
  }

  .one-item,
  .two-item,
  .three-item {
    border-bottom: 1px solid #555;
    padding: 10px 0px;
    box-sizing: border-box;
  }

  .one,
  .two,
  .three {
    display: none;
    text-align: left;
    position: relative;
  }

  .menu-link,
  .one-link,
  .two-link,
  .three-link {
    color: #fff;
    text-decoration: none;
    display: block;
  }

  .menu-link:hover,
  .one-link:hover,
  .two-link:hover,
  .three-link:hover {
    background-color: #555;
  }

  .one {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #444;
  }

  .two {
    top: 100%;
    left: 0%;
    transform: translateX(-50%, -50%);
    background-color: #666;
  }

  .three {
    top: 100%;
    left: 0%;
    transform: translateX(-50%, -50%);
    background-color: #666;
  }
}

@media (max-width: 768px) {
  .nav {
    height: 112px;
    justify-content: center;
    align-items: flex-start;
  }
  #header img {
    padding: 12px;
    width: 120px;
  }
}
