@charset "utf-8";

/* ========================================
   CRE 스타일 헤더 메뉴 (서브 페이지에서만 적용)
   ======================================== */

/* -------------------- 헤더 기본 설정 -------------------- */
body.sub #header {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
  width: 100%;
  background: #fff;
  transition: all 0.3s;
  border-bottom: 1px solid #eee;
  box-sizing: content-box;
}

body.sub .headerWrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  background: #fff;
  position: relative;
}
body.sub .headLogo a {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}

/* -------------------- 탑메뉴 (GNB) -------------------- */
body.sub .headGnb {
  display: flex;
  height: 100%;
  margin-left:150px
 justify-content: left;
}

body.sub .headGnb .extension {
  display: flex;
  position: absolute;
  margin: auto;
  height: 91px;
  list-style: none;
  padding: 0;
}

/* 1depth 메뉴 */
body.sub .headGnb .extension > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding:0 !important;
}

body.sub .headGnb .extension > li > a {
  display: block;
  padding: 0 50px;
  color: #222;
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

/* 활성 메뉴 하단 파란색 바 */
body.sub .headGnb .extension > li > a:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  border-radius: 5px 5px 0 0;
  background: #307bcb;
  transition: all 0.3s;
}

body.sub .headGnb .extension > li.active > a:after,
body.sub .headGnb .extension > li.on > a:after {
  height: 4px;
}

body.sub .headGnb .extension > li.on > a,
body.sub .headGnb .extension > li.active > a {
  color: #307bcb;
}

/* -------------------- 2depth 서브메뉴 (기본 숨김) -------------------- */
body.sub .headGnb .extension > li .headSubMenu {
  display: block !important; /* common.css의 display:none 오버라이드 */
  visibility: hidden !important;
  opacity: 0 !important;
  text-align: center;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: 100%;
  padding: 30px 0;
  transition: all 0.3s;
  z-index: 1100;
}

body.sub .headGnb .extension > li .headSubMenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.sub .headGnb .extension > li .headSubMenu ul li {
  margin-bottom: 2px;
}

body.sub .headGnb .extension > li .headSubMenu ul li a {
  position: relative;
  display: block;
  color: #222;
  font-weight: 600;
  line-height: 40px;
  padding: 0 7px;
  font-size: 15px;
  opacity: 0.4;
  height:40px;
  text-decoration: none;
  transition: all 0.3s;
}

body.sub .headGnb .extension > li .headSubMenu ul li a span {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
}

body.sub .headGnb .extension > li .headSubMenu ul li a:hover {
  opacity: 1;
}

body.sub .headGnb .extension > li .headSubMenu ul li a:hover span {
  text-decoration: underline;
}

/* -------------------- 메뉴 배경 (gnbBg) -------------------- */
body.sub .gnbBg {
  position: absolute;
  left: 0;
  right: 0;
  top: 90px;
  height: 0;
  background: #fff;
  visibility: hidden;
  opacity: 0;
  z-index: 9;
  overflow: hidden;
  transition: all 0.3s;
  border-top: 1px solid #eee;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05);
}

/* -------------------- 헤더 open 상태 (마우스 호버 시) -------------------- */
body.sub #header.open .headGnb .extension > li .headSubMenu {
  visibility: visible !important;
  opacity: 1 !important;
  top: 90px !important;
}

body.sub #header.open .gnbBg {
  visibility: visible !important;
  opacity: 1 !important;
}

body.sub #header.open .headGnb .extension > li > .headSubMenu {
  border-left: 1px solid #eee;
  transition-delay: 0.2s;
}

/* 마지막 메뉴 오른쪽 경계선 */
body.sub .headGnb .extension > li:last-child .headSubMenu {
  border-right: 1px solid #eee;
}

/* -------------------- 유틸 메뉴 (로그인, 회원가입 등) -------------------- */
body.sub .headerWrap .util {
  display: flex;
  align-items: center;
  margin-left: auto;
  font-size: 1.5rem;
  font-weight: 700;
  gap: 15px;
  list-style: none;
  padding: 0;
  position: absolute;
  right: 60px;
}

body.sub .headerWrap .util li a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

body.sub .headerWrap .util li a:hover {
  transform: scale(1.1);
}

/* -------------------- 반응형 -------------------- */
@media only screen and (max-width: 1599px) {
  body.sub .headGnb .extension > li > a {
    padding: 0 25px;
  }
  
  body.sub .headerWrap {
    padding: 0 30px;
  }
  
  body.sub .headLogo {
    left: 30px;
  }
  
  body.sub .headerWrap .util {
    right: 30px;
  }
}

@media only screen and (max-width: 1299px) {
  body.sub .headGnb .extension > li > a {
    padding: 0 20px;
    font-size: 15px;
    min-width: 100px;
    text-align: center;
  }
}

@media only screen and (max-width: 1199px) {
  body.sub .headGnb .extension {
    display: none;
  }
}

@media only screen and (max-width: 1025px) {
  body.sub .headerWrap {
    height: 90px;
  }
}

@media only screen and (max-width: 767px) {
  body.sub .headerWrap {
    padding: 0 15px;
  }
  
  body.sub .headLogo {
    left: 15px;
  }
  
  body.sub .headerWrap .util {
    right: 15px;
  }

  body.sub #header{
      width:93% !important;
  }
}

