:root {
  --header-height: 130px; /* menu.js에 있는 height 같이 수정하기 */
  --mobile-height: 60px;
  --inwrap-width: 100%;
  --color1: #0e6e60;
  --color3: #159946;
}

.notScroll {
  overflow: hidden;
  touch-action: none;
}

header {
  width: 100%;
  position: relative;
  height: var(--header-height);
  z-index: 10;
  transition: 0.85s cubic-bezier(0.77, 0, 0.175, 1);
}

header .header_inwrap {
  width: 100%;
  position: relative;
  top: 0;
  left: 0;
  height: var(--header-height);
  transition: 0.85s;
  overflow: hidden;
  z-index: 101;
  border-top: 1px solid #eaeaea;
  background: #fff;
}

header .header_inwrap:before {
  content: "";
  position: absolute;
  top: var(--header-height);
  left: 0;
  display: block;
  width: 100%;
  background: #fff;
}

header .header_inwrap:after {
  content: "";
  display: block;
  background: #edf5f7;
  height: 100%;
  width: 25%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

header.active .header_inwrap {
  background: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

header.active .header_inwrap:before {
  border-top: 1px solid #ddd;
}

header .gnb_util {
  width: var(--inwrap-width);
  height: 50px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #fff;
  border-bottom: 1px solid #cfe2ee;
}

header .gnb_util ul {
  display: flex;
  height: 100%;
}
header .gnb_util ul li {
  border-left: 1px solid #cfe2ee;
  border-right: 1px solid #cfe2ee;
  background: #f4f7ff;
  color: #1c3d88;
}
header .gnb_util ul li:last-child {
  margin-left: -1px;
}

header .gnb_util ul li a {
  display: flex;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 15px;
}

header .gnb_util ul li.ntis {
  background: #f27221;
  border-left: 1px solid #cfe2ee;
  border-right: 1px solid #cfe2ee;
  color: #fff;
  width: 150px;
}

header .gnb_util ul li.gbsa {
  background: #203656;
  border-left: 1px solid #203656;
  border-right: 1px solid #203656;
  color: #fff;
  width: 150px;
}

header .gnb_wrap {
  width: var(--inwrap-width);
  height: 80px;
  margin: 0 auto;
  /* position: relative; */
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

header .gnb_wrap h1 {
  /*  width: 200px; */
  height: 100%;
}

header .gnb_wrap h1 a {
  display: flex;
  /* margin-top: 15px; */
  align-items: center;
  height: 100%;
}

header .gnb_wrap h1 a img {
  display: block;
}

header .gnb {
  padding: 0;
  /* width: calc(100% - 430px); */
  display: flex;
  justify-content: center;
  height: 100%;
}

header .gnb > ul {
  display: flex;
}

header .gnb ul > li .dep1 a {
  display: flex;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #000;
  padding: 0 20px;
  transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* line-height: var(--header-height); */
  height: 100%;
  align-items: center;
}

header .gnb ul li:last-child .dep1 a:before {
  background: none;
  width: 0;
  height: 0;
}

header.active .gnb ul > li:hover .dep1 a {
  color: var(--color3);
}

header .gnb ul > li:last-child .dep1 a {
  border-right: none;
}

header .gnb ul > li .lnb {
  position: absolute;
  top: calc(var(--header-height) + 1);
  left: 0;
  width: 100%;
  z-index: 9999;
  overflow: hidden;
  /*  transition: 250ms ease; */
  transition: none;
}

header .gnb ul > li .dep2 {
  transition: cubic-bezier(0.55, 0.085, 0.68, 0.53);
  /* opacity: 0; */
  width: 100%;
  margin-top: -50%;
}

header .gnb ul > li .dep2 a {
  position: relative;
  color: #000;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.05em;
  display: inline-block;
  text-align: left;
}

/* header .gnb ul > li .dep2 a:hover:after {
  color: #fff;
  transform: rotate(90deg);
  opacity: 1;
} */

header .gnb ul > li .dep2.active {
  margin-top: 0;
  opacity: 1;
  transition: opacity 1s 0.15s, margin 0.8s 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

header .gnb > ul > li .lnb {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
}

header .gnb > ul > li .lnb.active {
  height: 100%;
}

header .gnb > ul > li .lnb .dep2_head {
  width: 1400px;
  margin: 0 auto;
  position: absolute;
  height: 100%;
  left: 50%;
  top: 1px;
  transform: translateX(-50%);
}

header .gnb > ul > li .lnb .dep2_head::before {
  content: "";
  display: block;
  background: #edf5f7;
  height: 100%;
  width: 25%;
  position: absolute;
  top: 0;
  left: 0;
}

header .gnb > ul > li .lnb .dep2_head::after {
  content: "";
  display: block;
  /*  background: url("../images/common/gnb_bg.png") center center no-repeat; */
  background-size: 75%;
  width: 267px;
  height: 173px;
  position: absolute;
  bottom: 0;
  right: 0;
}

header .gnb > ul > li .lnb .dep2_head strong {
  font-size: 30px;
  font-weight: 600;
  position: absolute;
  left: 0;
  top: 55px;
}

header .gnb > ul > li .lnb .dep2_head span {
  font-size: 14px;
  font-weight: 400;
  color: #000000cc;
  position: absolute;
  left: 1px;
  top: 100px;
}

header .gnb > ul > li .lnb .dep2_body {
  width: 1400px;
  margin: 0 auto;
  padding: 50px 300px 50px 425px;
}

header .gnb > ul > li .lnb .dep2_body .dep2 {
  opacity: 0;
  overflow: hidden;
  transition: cubic-bezier(0.55, 0.085, 0.68, 0.53);
  width: 100%;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

header .gnb > ul > li .lnb.active .dep2_body .dep2 {
  opacity: 1;
}

header .gnb > ul > li .lnb .dep2_body .dep2 > li {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  width: 100%;
}

header .gnb > ul > li .lnb .dep2_body .dep2 > li > div {
  position: relative;
  width: 100%;
  padding: 0 10px 20px;
}

header .gnb > ul > li .lnb .dep2_body .dep2 > li > div > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  text-align: left;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  border: 1px solid #a5a9b1;
  border-radius: 5px;
  position: relative;
}

header .gnb > ul > li .lnb .dep2_body .dep2 > li > div > a:hover {
  color: var(--color1);
  font-weight: 500;
  border-color: var(--color1);
  background: rgba(192, 231, 225, 0.2);
  position: relative;
}

header .gnb > ul > li .lnb .dep2_body .dep2 > li > div > a:hover:after {
  content: "";
  display: flex;
  width: 24px;
  height: 100%;
  background-image: url(../img/header_check.svg);
  background-position: center center;
  background-repeat: no-repeat;
  position: absolute;
  right: 10px;
}

header .gnb > ul > li .lnb .dep2_body .dep2 > li .dep3 {
  position: relative;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  padding: 30px 15px;
  padding-top: 0;
}

header .gnb > ul > li .lnb .dep2_body .dep2 > li .dep3 > li {
  width: 100%;
  margin: 3px 0;
}

header .gnb > ul > li .lnb .dep2_body .dep2 > li .dep3 > li > a {
  font-size: 14px;
  color: #555;
}

header .gnb > ul > li .lnb .dep2_body .dep2 > li .dep3 > li > a:hover {
  color: #000;
}

header .gnb > ul > li .lnb .dep2_body .dep2 > li .dep3 > li > a:focus {
  color: #000;
}

header .gnb ul > li .lnb .dep3 a:before {
  content: "";
  display: block;
  position: absolute;
  top: 20px;
  left: 0;
  transform: scale(0);
  width: 100%;
  height: 1px;
  background: var(--color3);
  opacity: 0;
  transition: 0.3s;
}

header .gnb ul > li .lnb .dep3 a:hover:before {
  color: var(--color3);
  transform: rotate(90deg);
  opacity: 1;
  transform: scale(1);
}

header .gnb ul > li .dep1 {
  position: relative;
  height: 100%;
}

header .gnb ul > li .dep1:after {
  display: block;
  content: "";
  position: absolute;
  left: 50%;
  margin-left: 0;
  width: 0;
  bottom: 0;
  height: 5px;
  background: var(--color3);
  z-index: 1;
  transition: 0.8s;
  transition-duration: 0.9s;
  transition-delay: 0.5s;
  transition: 0.8s;
}

header .gnb ul > li:hover > .dep1:after {
  left: 50%;
  margin-left: -25px;
  width: 50px;
  bottom: 0;
  transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

header.active .gnb ul > li .dep1 > a {
  top: 0;
  transition-delay: 0;
}

/*
header:before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: #ddd;
    position: absolute;
    top: 100px;
    left: 0
}
*/
header.on .gnb {
  display: none;
}

.top_util {
  display: flex;
  justify-content: space-between;
  width: auto;
}

.top_util ul {
  display: flex;
  align-items:center;
}

.top_util ul li {
  display: inline-block;
}

.top_util ul li:nth-of-type(1)::after {
  content: "";
  display: inline-block;
  /*  width: 1px;
  height: 10px;
  background: #8c8c8f; */
}

.top_util ul li a {
  display: inline-block;
  text-align: center;
  padding: 10px 15px;
  font-size: 14px;
  color: #000;
}

.top_util ul li a:hover {
  color: #fff;
  font-weight: 500;
  transition: 0.4s ease;
  -moz-transition: 0.4s ease;
  -webkit-transition: 0.4s ease;
  -o-transition: 0.4s ease;
  color: var(--color3);
}

header .Mgnb_wrap {
  display: none;
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  background: #fff;
}

/* mmenu */
.mMenu {
  display: none;
  
}

.mMenu i {
	font-size: 32px;
}

/*
.mMenu:before {
  content: "";
  display: block;
  height: 3px;
  background: #000;
  margin: 3px 0;
  transition: all 0.4s;
  width: 27px;
}

.mMenu:after {
  content: "";
  display: block;
  height: 3px;
  background: #000;
  margin: 3px 0;
  transition: all 0.4s;
  width: 20px;
}
*/

/* pcmenu */
.pcMenu span {
	display: block;
	font-size: 14px;
}

.pcMenu.on span {
	display: none;
}

.pcMenu img {
	display: none;
}
.pcMenu.on img {
	display: block;
}

.hidden {
	overflow:hidden;position:absolute;left:-9999px;width:0 !important;height:0 !important;font-size:0 !important;}

/*
header.on .mMenu:before {
  margin: -1px 0;
  transform: rotate(45deg);
  background: #333;
}

header.on .mMenu:after {
  margin: -2px 0;
  transform: rotate(-45deg);
  background: #333;
  width: 27px;
}
*/
header .Mgnb_wrap .inwrap {
  position: relative;
}

header .Mgnb_wrap .gnb_M {
  width: 100%;
  height: calc(100% - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* background: #f8f8f8; */
  margin: var(--header-height) 0 0;
  border-radius: 10px;
  padding: 30px;
}


header .Mgnb_wrap .gnb_M > ul{
  display: flex;
  justify-content: space-around;
  
}

header .Mgnb_wrap .gnb_M > ul > li {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  
}
header .Mgnb_wrap .gnb_M > ul > li .dep1{  padding-bottom: 20px;}



header .Mgnb_wrap .gnb_M > ul > li .dep1 a {
    font-size: 22px;
  font-weight: 600;
  color: var(--color1);
}

header .Mgnb_wrap .gnb_M > ul > li .lnb {
  position: static;
}

header .Mgnb_wrap .gnb_M > ul > li .dep2 {
  display: flex;
  flex-direction: column;
}

header .Mgnb_wrap .gnb_M > ul > li .dep2 li {
  padding-right: 30px;
}

header .Mgnb_wrap .gnb_M > ul > li .dep2 li a {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.025em;
  width: 100%;
  margin-bottom: 0;
  padding: 10px 0;
  display: inline-block;
  color: #002e56;
}

header .Mgnb_wrap .gnb_M ul > li .dep2 a:hover {
  color: #000 !important;
  text-decoration: underline;
  text-underline-position: under;
}

header .Mgnb_wrap .gnb_M ul > li .dep2 a:before {
  content: none;
}

header .Mgnb_wrap .gnb_M ul > li .dep2 a:after {
  content: none;
}

header .Mgnb_wrap .gnb_M ul > li .dep1:after {
  content: none;
}

header.on .header_top {
  display: none;
}

@media (max-width: 1480px) {
  header {
    min-width: 360px;
    height: var(--mobile-height);
  }

  header .Mgnb_wrap .menu_close {
    position: absolute;
    right: 5px;
    top: 20px;
    z-index: 9990;
    width: 40px;
    height: 40px;
    text-align: center;
  }

  header .Mgnb_wrap .menu_close a {
    font-size: 25px;
    color: #000 !important;
  }

  header .top_util ul {
    display: none !important;
  }

  header.on .header_inwrap {
    overflow: visible;
  }

  header.on .mem_util {
    display: flex !important;
    position: absolute;
    left: 0;
    top: var(--mobile-height);
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    gap: 10px;
    padding: 10px 16px 10px;
    background: #fff;
  }

  header.on .mem_util li {
    width: 50%;
    margin: 0;
    border: 0;
    background: #fff;
  }

  header.on .mem_util li a {
    border-radius: 5px;
    border: 1px solid #4e4e4e;
    display: block;
    text-align: center;
    padding: 15px;
  }

  header.on .mem_util li a:hover {
    border: 1px solid var(--color3);
  }

  header.on .Mgnb_wrap .gnb_M {
    margin: 0;
     margin-top: calc(var(--mobile-height) + 80px);
    height: auto /* calc(100vh - calc(var(--header-height) + 50px)) */;
  }

  header .gnb,
  header .header_inwrap:before {
    display: none;
  }

  header .Mgnb_wrapwrap .gnb {
    display: block;
    width: 100%;
  }

  header .Mgnb_wrap nav {
    margin: 0 0 30px;
    width: 100%;
  }

  header .Mgnb_wrap .gnb_M > ul {
    display: flex;
    flex-direction: column;
	gap: 20px;
  }

  header.active .Mgnb_wrap .gnb_M ul > li:hover .dep1 a {
    color: inherit;
  }

  header .header_inwrap .gnb_wrap {
    width: 100%;
    position: relative;
    z-index: 102;
    height: 100%;
  }

  header .header_inwrap {
    top: 0;
    width: 100%;
    height: var(--mobile-height) !important;
  }
  header .header_inwrap:after {
    background: #fff;
  }

  /*
    header:before {
        height: 1px;
        overflow: hidden
    }
	*/
  header.on .Mgnb_wrap .inwrap {
    width: 100%;
    padding: 0 16px 50px;
  }

  header.on .Mgnb_wrap .gnb_M > ul > li {
    flex-direction: column;
    align-items: center;
    height: auto;
    margin-bottom: 0;
  }

  header.on .Mgnb_wrap .gnb_M > ul > li:not(:last-of-type) {
    margin-bottom: 10px;
  }

  header.on .Mgnb_wrap .gnb_M > ul > li .dep1 {
    width: 100%;
	 padding-bottom: 0;
  }

  header.on .Mgnb_wrap .gnb_M > ul > li .dep1 a {
    display: block;
    padding: 10px 0;
	font-size:18px
  }

  header.on .Mgnb_wrap .gnb_M > ul > li .dep1 a:hover {
    text-decoration: underline;
    text-underline-position: under;
	
  }

  header.on .Mgnb_wrap .gnb_M > ul > li .lnb {
    width: 100%;
  }

  header.on .Mgnb_wrap .gnb_M > ul > li .dep2 {
    flex-wrap: wrap;
  }

  header.on .Mgnb_wrap .gnb_M > ul > li .dep2 li {
    flex-basis: auto;
	margin-left: 15px;
  }

  header .gnb_util {
    height: 0;
    margin-top: -1px;
  }

  .mMenu {
    display: block;
    height: 100%;
  }

  .top_util ul li:nth-of-type(1)::after {
    content: none;
  }

  .snb {
    display: none;
  }

  .content {
    margin-left: 0;
  }

  .container .inwrap {
    width: 100%;
  }

  .breadcrumb .inwrap {
    padding: 0;
    width: auto;
  }

  .breadcrumb_wrap > li {
    flex-grow: 1;
  }

  .breadcrumb_wrap > li.home {
    flex-grow: 0;
  }

  .breadcrumb_wrap > li.home > a:after {
    content: "";
  }
}

/* footer를 위한 미디어쿼리 768px ~ 1000px */
@media (max-width: 1000px) {
  /* footer */
  .footer_select {
    top: 27.5%;
  }
}

/* Mobile 500px ~ 768px */
@media (max-width: 768px) {
  header {
    height: var(--mobile-height);
  }

  header.on .top_util ul {
    top: calc(var(--mobile-height) + 10px);
  }
  header.on .Mgnb_wrap .gnb_M {
    margin-top: calc(var(--mobile-height) + 80px);
	    padding: 10px;
  }
  header .header_inwrap {
    height: var(--mobile-height) !important;
  }

  header .header_inwrap .gnb_wrap {
    height: var(--mobile-height);
    padding: 0 16px;
  }

  header .gnb_wrap h1 a {
    margin-top: 3px;
  }

  header .gnb_wrap h1 a img {
    height: 20px;
    width: auto;
  }
}
