#header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  transform: translateY(-100px);
  opacity: 0;
  background-color: transparent;
  transition: background-color .5s, box-shadow .5s;
  animation: show_down .7s linear forwards;
}

@keyframes show_down {
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

#header {
  transition: background-color .5s, box-shadow .5s;
}

#header.scrolled {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

#header.on {
  background-color: #fff;
}

#header .center1 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

#header .center1>a {
  height: 100px;
}

a.logo p {
  color: #fff;
}

#header.on a.logo p {
  color: #111;
}

.main_menu {
  gap: 0 5vw;
}

.main_menu>li {
  width: max-content;
  position: relative;
}

.main_menu>li a {
  height: 100px;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
  transition: color .3s;
}

#header.dark-text .main_menu>li a {
  color: #111 !important;
}

#header.on ul.main_menu>li a,
#header.shadow ul.main_menu>li a {
  color: #111;
}

#header.scrolled .main_menu>li>a,
#header.gnb_open .main_menu>li>a {
  color: #111;
}

#header.gnb_open {
  background-color: #fff;
}

/* 서브메뉴 - 박스 형태로만 */
.sub_menu {
  display: none;
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  width: max-content;
  background-color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.sub_menu li {
  color: #111;
  text-align: center;
  padding: 15px 35px;
  margin-bottom: 0;
  cursor: pointer;
  transition: color 0.3s;
}

.sub_menu li:hover {
  background-color: rgba(238, 238, 238, 1);
  color: rgba(0, 44, 95, 1);
}

/* gnb_bg 미사용 */
.gnb_bg {
  display: none !important;
}

.menu_box {
  gap: 0 1vw;
  height: 100px;
  align-items: flex-start;
  margin-right: 10px;
}

.st_icon {
  position: relative;
  height: 15px;
  width: 20px;
}

.st_icon span {
  position: absolute;
  background-color: #fff;
  height: 2px;
  left: 0;
  width: 100%;
  transition: width .3s, background-color .3s;
}

.st_icon span:nth-child(1) {
  top: 0;
  width: 33px;
}

.st_icon span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.st_icon span:nth-child(3) {
  bottom: 0;
  width: 23px;
}

.st_icon:hover span {
  width: 100% !important;
}

#header.scrolled .st_icon span,
#header.gnb_open .st_icon span {
  background-color: rgba(0, 0, 0, 1);
}

span.full_bg1 {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

span.full_bg1.on {
  opacity: 1;
  visibility: visible;
}

/* sitemap */
.sitemap {
  position: fixed;
  top: 0;
  right: -500px;
  width: 500px;
  height: 100vh;
  background-color: #fff;
  z-index: 9999;
  transition: right 0.4s ease;
  overflow-y: auto;
  padding: 50px;
  box-sizing: border-box;
  background-image: url(../images/PENTA\ ASSET.png);
  background-position: center right;
  background-size: auto;
  background-repeat: no-repeat;

}

.sitemap.show {
  right: 0;
}

.close_btn {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 30px;
}

.close_btn i {
  color: #0e2354;
  cursor: pointer;
}

.st_main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px 0;
  align-items: flex-start;
  justify-content: flex-start;
}

.st_main>li {
  width: 100%;
}

.st_main>li>p {
  color: rgba(0, 44, 95, 1);
  margin-bottom: 16px;
  cursor: pointer;
  transition: color .3s;

}

.st_sub {
  display: flex;
  flex-direction: column;
  gap: 12px 0;
  padding-left: 10px;
}

.st_sub li {
  display: inline-flex;
  color: rgba(102, 102, 102, 1);
  cursor: pointer;
  transition: color .3s;
  text-align: left;
  padding: 0;
  background-color: transparent;
}

.st_sub li:hover {
  color: rgba(0, 44, 95, 1);
  background-color: transparent;
}

span.full_bg2 {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

span.full_bg2.on {
  opacity: 1;
  visibility: visible;
}

/* mobile */
@media screen and (max-width: 767px) {
  .logo img {
    content: url(../images/logo_black.png);
  }

  .st_icon {
    color: #111 !important;
  }
  .st_icon span{
    background-color: #111 !important;
  }

  #header .center1 {
    width: 90%;
    min-width: unset;
  }

  #header .center1>a {
    height: 70px;
  }

  .main_menu {
    display: none !important;
  }

  .menu_box {
    height: 70px;
  }

  .st_icon span:nth-child(1) {
    width: 15px;
  }

  .st_icon span:nth-child(3) {
    width: 10px;
  }

  .sitemap {
    width: 100%;
    right: -100%;
  }

  .sitemap.show {
    right: 0;
  }

  .st_main {
    flex-direction: column;
    gap: 0;
    padding: 20px 0 50px;
  }

  .st_main>li {
    border-bottom: 1px solid rgba(0, 44, 95, 0.1);
    padding: 15px 0;
  }

  .st_main>li>p {
    font-size: 20px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .st_sub {
    margin-top: 12px;
    padding-left: 10px;
  }

  #header.scrolled {
    background-color: #fff;
  }

  #header.gnb_open {
    background-color: transparent;
  }
}

/* tablet */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  #header .center1 {
    width: 90%;
    min-width: unset;
  }

  #header .center1>a {
    height: 80px;
  }

  .main_menu {
    display: none !important;
  }

  .menu_box {
    height: 80px;
  }

  .st_icon span:nth-child(1) {
    width: 18px;
  }

  .st_icon span:nth-child(3) {
    width: 13px;
  }

  .sitemap {
    width: 100%;
    right: -100%;
  }

  .sitemap.show {
    right: 0;
  }

  .st_main>li>p {
    font-size: 22px;
  }

  #header.scrolled {
    background-color: #fff;
  }
}