header {
  border-bottom: 1px solid #f5f5f5;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 100;
}
header::before {
  position: absolute;
  content: "";
  top: calc(100% + 1px);
  bottom: 1px;
  left: 0;
  right: 0;
  height: 200%;
  background: #fff;
  z-index: -1;
  border-bottom: 1px solid #f5f5f5;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
}
header:has(#gnb:hover)::before {
  opacity: 1;
  visibility: visible;
}
header .container {
  height: clamp(85px, 5.21vw, 100px);
}
header h1 {
  width: clamp(200px, 11.09vw, 213px);
  flex-shrink: 0;
}
header h1 a {
  position: relative;
}
header h1 a::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
}
header object {
  max-height: 48px;
  width: 100%;
}
header .util {
  font-size: clamp(14px, 0.73vw, 14px);
}
header .util a:first-child {
  margin-right: clamp(30px, 1.56vw, 30px);
}
header .ham_btn {
  width: 29px;
  height: 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url(../img/ham_ico.svg);
  margin-left: 2.6vw; /* 50px */
}

#gnb {
  height: 100%;
}
#gnb ul {
  display: flex;
  text-align: center;
  height: 100%;
}
#gnb li {
  position: relative;
  width: clamp(130px, 7.29vw, 140px);
  height: 100%;
}
#gnb li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: clamp(17px, 0.99vw, 19px);
  font-weight: 600;
}
#gnb li:first-child .sub_menu {
  border-left: 1px solid #f5f5f5;
}
#gnb .sub_menu {
  position: absolute;
  left: 50%;
  top: 105%;
  transform: translateX(-50%);
  width: 100%;
  height: 200%;
  white-space: nowrap;
  padding: clamp(30px, 1.56vw, 30px) 0;
  font-weight: 500;
  border-right: 1px solid #f5f5f5;
  transition: background-color 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
}
#gnb .sub_menu a {
  display: block;
  font-size: clamp(14px, 0.83vw, 16px);
}
#gnb .sub_menu a:not(:last-child) {
  margin-bottom: 0.78vw; /* 15px */
}
#gnb .sub_menu a span {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}
#gnb .sub_menu a span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #1c42d8;
  transition: transform 0.3s ease;
  transform: scaleX(0);
  transform-origin: right;
}
#gnb .sub_menu a:hover span, #gnb .sub_menu a.on span {
  color: #1c42d8;
}
#gnb .sub_menu a:hover span::after, #gnb .sub_menu a.on span::after {
  transform: scaleX(1);
  transform-origin: left;
}
#gnb .sub_menu:has(a.on), #gnb .sub_menu:hover {
  background: #f6f6f6;
}
#gnb:hover .sub_menu {
  opacity: 1;
  visibility: visible;
  top: 100%;
}

#hamMenu {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
#hamMenu h2 {
  width: clamp(200px, 11.09vw, 213px);
}
#hamMenu .bg {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}
#hamMenu .cont {
  background: #fff;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  padding: clamp(30px, 2.08vw, 40px);
  z-index: 2;
}
#hamMenu .close_btn {
  position: relative;
  width: 20px;
  height: 20px;
  overflow: hidden;
}
#hamMenu .close_btn::after, #hamMenu .close_btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
}
#hamMenu .close_btn::after {
  transform: translateY(-50%) rotate(-45deg);
}
#hamMenu .close_btn::before {
  transform: translateY(-50%) rotate(45deg);
}
#hamMenu .close_btn:hover::after {
  transform: translateY(-50%) rotate(45deg);
}
#hamMenu .close_btn:hover::before {
  transform: translateY(-50%) rotate(135deg);
}

#hamGnb {
  height: calc(100% - clamp(30px, 2.08vw, 40px) * 2);
  margin-top: 26px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-y: auto;
}
#hamGnb::-webkit-scrollbar {
  display: none;
}
#hamGnb ul {
  display: block;
}
#hamGnb li {
  display: flex;
  align-items: center;
  padding: clamp(35px, 2.08vw, 40px) clamp(20px, 1.04vw, 20px);
  transition: background-color 0.5s ease;
}
#hamGnb li > a {
  font-size: clamp(19px, 1.25vw, 24px);
  font-weight: 600;
  width: clamp(70px, 4.32vw, 83px);
  flex-shrink: 0;
}
#hamGnb .sub_menu {
  display: flex;
  align-items: center;
  margin-left: clamp(40px, 4.17vw, 80px);
}
#hamGnb .sub_menu a {
  display: block;
  font-size: clamp(16px, 0.89vw, 17px);
  font-weight: 500;
  width: clamp(130px, 7.29vw, 140px);
  white-space: nowrap;
}
#hamGnb .sub_menu a span {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}
#hamGnb .sub_menu a span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #1c42d8;
  transition: transform 0.3s ease;
  transform: scaleX(0);
  transform-origin: right;
}
#hamGnb .sub_menu a:hover span, #hamGnb .sub_menu a.on span {
  color: #1c42d8;
}
#hamGnb .sub_menu a:hover span::after, #hamGnb .sub_menu a.on span::after {
  transform: scaleX(1);
  transform-origin: left;
}
#hamGnb li:has(a.on), #hamGnb li:hover {
  background: #f6f6f6;
}

main {
  padding-top: clamp(85px, 5.21vw, 100px);
}

/* ----------------------------- */
/* --------------RWD------------ */
/* ----------------------------- */
@media (max-width: 1270px) {
  #gnb {
    display: none;
  }
}
@media (max-width: 750px) {
  header .container {
    height: unset;
    padding: clamp(10px, 3.33vw, 25px) 0;
  }
  header h1 {
    width: clamp(180px, 46.67vw, 350px);
  }
  header object {
    max-height: 80px;
  }
  header .ham_btn {
    width: clamp(25px, 5.07vw, 38px);
    height: clamp(20px, 4.8vw, 36px);
  }
  #hamMenu .bg {
    display: none;
  }
  #hamMenu .cont {
    width: 100%;
    padding: clamp(10px, 3.33vw, 25px) 5.33vw;
    overflow: hidden;
  }
  #hamMenu .head {
    padding-bottom: clamp(10px, 3.33vw, 25px);
    position: relative;
  }
  #hamMenu .head::after {
    position: absolute;
    content: "";
    width: 120%;
    height: 1px;
    background: #dedede;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  #hamMenu h2 {
    width: clamp(180px, 46.67vw, 350px);
  }
  #hamMenu .close_btn {
    width: clamp(25px, 5.33vw, 40px);
    height: clamp(25px, 5.33vw, 40px);
  }
  #hamMenu .close_btn::before, #hamMenu .close_btn::after {
    height: clamp(2px, 0.53vw, 4px);
  }
  #hamGnb {
    margin-top: 0;
    height: calc(100% - clamp(20px, 5.33vw, 40px) * 2);
  }
  #hamGnb li {
    display: block;
    border-bottom: 0.27vw solid #e9e9e9; /* 2px */
    padding: 0;
  }
  #hamGnb li:has(a.on), #hamGnb li:hover {
    background: transparent !important;
  }
  #hamGnb li > a {
    display: block;
    width: 100%;
    font-size: clamp(19px, 5.33vw, 40px);
    line-height: 1.4; /* 56px */
    font-weight: 700;
    position: relative;
    padding: clamp(20px, 5.33vw, 40px);
  }
  #hamGnb li > a::after {
    width: clamp(18px, 4.67vw, 35px);
    height: clamp(10px, 2.8vw, 21px);
    position: absolute;
    content: "";
    right: clamp(20px, 5.33vw, 40px);
    top: 50%;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: url(../img/down_arrow3.svg);
  }
  #hamGnb .sub_menu {
    margin-left: 0;
    display: none;
    padding: 0 clamp(30px, 6.67vw, 50px);
  }
  #hamGnb .sub_menu a {
    width: 100%;
    font-size: clamp(17px, 4.27vw, 32px);
    line-height: 1.19; /* 38px */
    font-weight: 700;
    color: #555;
  }
  #hamGnb .sub_menu a:not(:last-child) {
    margin-bottom: clamp(25px, 7.47vw, 56px);
  }
  #hamGnb .sub_menu a:last-child {
    margin-bottom: clamp(20px, 5.33vw, 40px);
  }
  #hamGnb .sub_menu a span::after {
    display: none;
  }
  #hamGnb .sub_menu a:hover span, #hamGnb .sub_menu a.on span {
    color: inherit;
  }
  main {
    padding-top: clamp(63px, 17.07vw, 128px);
  }
}