#gnb {
  position: fixed;
  z-index: 99;
  width: 100%;
  height: 110px;
}

#gnb.open {
  z-index: 999;
}

#gnb.open::after {
  content: "";
  display: block;
  width: 100%;
  height: 100vh;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.50);
  left: 0;
  top: 0;
  z-index: -1;
  transition: all 0.4s ease-in-out;
}

#gnb .gnb_top {
  width: 100%;
  height: 110px;
  display: flex;
  padding: 0px 220px;
  justify-content: space-between;
  align-items: center;
  flex: 1 0 0;
  background: rgba(0, 0, 0, 0.10);
  mix-blend-mode: luminosity;
  position: fixed;
  z-index: 999;
}

#gnb.down .gnb_top {
  background-color: rgba(15, 12, 45, 0.8);
  mix-blend-mode: normal;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#gnb.sub .gnb_top {
  background-color: rgba(15, 12, 45, 0.95);
}

#gnb.open .gnb_top {
  background-color: #fff;
  border-bottom: 1px solid #EFEFEF;
  mix-blend-mode: normal;
}

#gnb.open .gnb_top div, #gnb.open .gnb_top div a {
  color: #000;
}

#gnb .gnb_top div, #gnb .gnb_top div a {
  font-size: 18px;
  font-weight: 500;
  display: block;
  color: #fff;
}

#gnb .gnb_top .contact {
  border-bottom: 1px solid #fff;
}

#gnb.open .gnb_top .contact {
  border-bottom: 1px solid #000;
}

#gnb .gnb_top .menu_btn {
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
}

#gnb .gnb_top .menu_btn::before {
  content: "";
  display: block;
  width: 45px;
  height: 45px;
  background-image: url(../img/menu_bar.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transition: all 0.3s ease-in-out;
}

#gnb.open .gnb_top .menu_btn::before {
  background-image: url(../img/menu_close.svg);
}

#gnb .gnb_wrap {
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  width: 100%;
  padding: 40px 220px;
  transition: all 0.5s ease-in-out;
  position: relative;
  top: -300px;
  opacity: 0;

}

#gnb.open .gnb_wrap {
  display: flex;
  top: 110px;
  opacity: 1;
  border-bottom: 1px solid #f4f4f4;
  align-items: stretch;
  width: 100%;
}

#gnb .gnb_wrap .left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#gnb .gnb_wrap .right {
  width: 440px;
}

#gnb .gnb_wrap .m_sns {
  display: flex;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

#gnb .gnb_wrap .m_sns a {
  color: #5C5C5C;
  font-size: 14px;
}

#gnb .gnb_wrap .m_sns a:hover {
  color: #979797;
  text-decoration: underline;
  mix-blend-mode: unset;
}

#gnb .gnb_wrap ul#gnb_1dul {
  display: flex;
  gap: 100px;
  padding-bottom: 30px;
}

#gnb .gnb_wrap ul#gnb_1dul li {
  display: flex;
  gap: 20px;
  flex-direction: column;
}

#gnb .gnb_wrap ul#gnb_1dul .gnb_1da {
  color: #000;
  font-size: 22px;
  font-weight: 600;
}

#gnb .gnb_wrap ul li span.bg {
  display: none;
}

#gnb .gnb_wrap ul.gnb_2dul_box {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

#gnb .gnb_wrap ul.gnb_2dul_box a {
  color: #5C5C5C;
  font-size: 16px;
}

#gnb .gnb_wrap ul.gnb_2dul_box a:hover {
  color: #253783;
}

@media screen and (max-width: 1500px) {
  #gnb .gnb_top, #gnb .gnb_wrap {
    padding-left: 80px;
    padding-right: 80px;
  }
}

@media screen and (max-width: 1024px) {
  #gnb .gnb_top, #gnb .gnb_wrap {
    padding-left: 80px;
    padding-right: 80px;
  }

  .m_least {
    display: none;
  }
}

@media screen and (max-width: 800px) {
  #gnb.open {
    z-index: 99999;
  }

  #gnb .gnb_top, #gnb .gnb_wrap {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  #gnb .gnb_top {
    height: 60px;
    box-sizing: content-box;
  }

  #gnb .gnb_top h1 {
    width: 120px;
    position: absolute;
    left: 52%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  #gnb.open .gnb_top h1 {
    left: 20%;
  }

  #gnb .gnb_top h1 img {
    width: 100%;
  }

  #gnb .gnb_top .menu_btn::before,
  #gnb.open .gnb_top .menu_btn::before {
    width: 20px;
    height: 20px;
  }

  #gnb .gnb_top .contact {
    display: none;
  }

  #gnb .gnb_wrap {
    height: 100vh;
    top: 60px;
    left: -300px;
    padding: 30px;
    box-sizing: content-box;
    z-index: 9;
    visibility: hidden;
  }

  #gnb .gnb_wrap .left {
    width: 100%;
  }

  #gnb .gnb_wrap .m_sns {
    box-sizing: border-box;
    padding: 12px 30px;
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
  }

  #gnb.open .gnb_wrap {
    top: 60px;
    left: 0;
    visibility: visible;
    height: calc(100vh - 60px);
    box-sizing: border-box;
    padding-bottom: 10px;
  }

  #gnb .gnb_wrap ul#gnb_1dul {
    flex-direction: column;
    gap: 20px;
  }

  #gnb .gnb_wrap ul#gnb_1dul li {
    gap: 12px;
  }

  #gnb .gnb_wrap ul#gnb_1dul .gnb_1da {
    font-size: 20px;
  }

  #gnb .gnb_wrap ul.gnb_2dul_box a {
    font-size: 16px;
  }

  #gnb .gnb_top .menu_btn {
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
  }

  #gnb.open .gnb_top .menu_btn {
    right: 60px;
    position: absolute;
    background-color: #eee;
    width: 30px;
    height: 30px;
    border-radius: 50px;
    background-image: url(../img/menu_close.svg);
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
  }
  
}