a {text-decoration: none;}
a:hover { color: #214298; text-decoration: none; }

#header_wrapper{width:100%; max-width: 1920px; border-bottom:1px solid #e8e8e8; margin: 0px auto;}

#header{width: auto; margin:0 auto;}

.top_nav{
	width:100%;
	float:left; 
	padding:10px 0px 0px 0px;
	font-family:dotum;
	text-align:start;
	clear:both;
}
.top_nav:after{content:""; display:block; clear:both;}

.top_nav ul {
  background-color: #feba32;
  margin-left: 55%;
  margin-bottom: 0px;
  padding: 5px 0;
  padding-left: 30px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.top_nav li{
	display: inline-block;
	text-align:right;
	padding:0px;
}
.top_nav li a{font-size:14px;font-weight: bolder;padding:3px 10px 0px 0px; color:#fff;}

.top_nav li:last-child{
	border-right:0px;
	padding-right:30px;
}

.logo{
	float:left;
	width: 23%;
	padding-bottom:5px;
}


.menu { 
	 display: flex;
	 float:right;
	 width:45%;
	 text-align:right;
	 margin-top:45px;
	 margin-bottom: 0px;
	 z-index:998;
	 gap: 15px;
  height: 50px;
}

.menu > li {
  display: inline-block;
  position: relative;
  z-index: 100;
  text-align:left;
  border-top-right-radius: 50px;
  border-top-left-radius: 50px;
  width: 180px;
  height: 50px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px -1px 5px, rgba(0, 0, 0, 0.23) 0px -1px 5px;
}
.tap_nav_line{padding:0px 0px 0px 10px;}

.menu li a {
  text-decoration: none;
  text-align: center;
  padding: 20px 30px;
  display: block;
  color: #feba32;
  height: 50px;
  font-size: 17px;
  font-weight: bolder;
  line-height: 15px;
  cursor: pointer;
}

.menu li a:last-child{padding-right:0px;}

.menu li a:hover {
  color: #fff;
  background: #feba32;
  border-top-right-radius: 50px;
  border-top-left-radius: 50px;
  cursor: pointer;
}


/* sub-menu */
.menu ul {
  display: none;
  /* visibility: hidden; */
  /* opacity: 0; */
  margin: 0;
  padding: 10% 0px;
  gap: 60px;
  width: 1920px;
  height: 86px;
  position: absolute;
  top: 50px;
  background: #feba32;
  z-index: 999;
  border-top:0px;
}

.menu > li:nth-child(1).active {
  transform: translateY(-15px);
  height: 65px;
  background: #feba32;
  border-top-right-radius: 50px;
  border-top-left-radius: 50px;
}

.menu > li:nth-child(1).active a {
  color: #fff;
}

.menu > li:nth-child(2).active {
  transform: translateY(-15px);
  height: 65px;
  background: #feba32;
  border-top-right-radius: 50px;
  border-top-left-radius: 50px;
}

.menu > li:nth-child(2).active a {
  color: #fff;
}

.menu > li:nth-child(3).active {
  transform: translateY(-15px);
  height: 65px;
  background: #feba32;
  border-top-right-radius: 50px;
  border-top-left-radius: 50px;
}

.menu > li:nth-child(3).active a {
  color: #fff;
}

.menu > li.active > ul {
  top: 65px;
}

/* sub-menu list 정렬 */
.menu li:nth-child(1) > ul {
  right: -685px;
  padding-left: 1102px;
  box-shadow: 0px 4px 8px -5px;
}
.menu li:nth-child(2) > ul {
  right: -490px;
  padding-left: 1143px;
  box-shadow: 0px 4px 8px -5px;
}
.menu li:nth-child(3) > ul {
  right: -295px;
  padding-left: 669px;
  box-shadow: 0px 4px 8px -5px;
}

.menu ul li {
  display: block;
  float: none;
  background: none;
  margin: 0;
  padding: 0;
  
}

.menu ul li a {
  font-weight: 600;
  align-items: center;
  padding: 20px 0px;
  width: 100%;
  display: block;
  color: #fff;
  background: #feba32;
}

.menu li.active ul li a:hover {
  text-decoration: underline;
  color: #34529a;
  box-shadow: none;
  transition: 0.2s ease;
}

.menu ul ul {
  left: 169px;
  top: 0px;
  visibility: hidden;
  opacity: 0;
  transform: translate(20px, 20px);
  transition: all 0.2s ease-in-out;
}

.menu ul ul:after {
  left: -6px;
  top: 10%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0);
  border-right-color: #fff;
  border-width: 6px;
  margin-top: -6px;
}

.menu li>ul ul:hover {
  visibility: visible;
  opacity: 1;
  transform: translate(0, 0);
}


/* 사이즈 줄었을때 */
.responsive-menu {
  display: none;
  width: 100%;
  padding: 22px 30px;
  text-transform: uppercase;
  font-weight: 600;
  text-align:right;
  font-size:24px;
}

.responsive-menu:hover {

  text-decoration: none;
}

.nav-top {
  display: none;
}
.nav-drill {
  display: none;
}


/* 사이즈 줄었을때 */
.responsive-menu {
  display: none;
  width: 100%;
  padding: 22px 30px;
  text-transform: uppercase;
  font-weight: 600;
  text-align:right;
  font-size:24px;
}

.responsive-menu:hover {

  text-decoration: none;
}

a.homer { background: #34529a; }

.logo img {
  margin-left: 70px;
  height: 65px;
}

/*반응형*/

@media (min-width: 1201px) and (max-width: 1400px) { 
	.logo img{margin-left: 70px;}
}


@media (min-width: 992px) and (max-width: 1200px) { 
	.logo img{margin-left: 70px;}
}

@media (min-width: 901px) and (max-width: 991px) { 
	.logo img{margin-left: 70px;}
	.menu li a {font-size:12px;}
}



/* 모바일 적용 */
@media (max-width: 1020px) {
	.top_nav li a{font-size:10px;padding:3px 0px}
	.logo{width:200px;}
	.logo img{margin-left: 20px;}
	.menu{display: none; width:100%; margin-top:0px; gap: 0px; height: 0px; }
  #header > div.nav {padding-bottom: 10px;}



  /*  */
  .top_nav ul {margin-left: 55%; margin-bottom: 10px; padding-top: 2px; padding-bottom: 2px;}
	.menu li {
	  width:100%;
	  margin: 0;
	  text-align:left;
	}

  .menu > li.active > ul {
    top: 0px;
  }

  .menu li:nth-child(1) > ul {
    right: 0px;
    padding-left: 0px;
  }
  .menu li:nth-child(2) > ul {
    right: 0px;
    padding-left: 0px;
  }
  .menu li:nth-child(3) > ul {
    right: 0px;
    padding-left: 0px;
  }

  .menu > li:nth-child(1).active {
    height: 0px;
    background: #feba32;
    transform: translateY(0px);
  }
  .menu > li:nth-child(2).active {
    height: 0px;
    background: #feba32;
    transform: translateY(0px);
  }
  .menu > li:nth-child(3).active {
    height: 0px;
    background: #feba32;
    transform: translateY(0px);
  }

	.menu li:last-child{border-bottom:1px solid #e0e0e0}
	
	.menu li a {
	  width:100%;
	  background: #fff;
	  color: #797979;
	  font-size:12px;
	}
	.tap_nav_line{padding:0px 10px 0px 10px;}
	.menu li a:hover,
	.menu li:hover>a {
	}

  .menu > li {
    border-top-right-radius: 0px;
    border-top-left-radius: 0px;
    width: 180px;
    height: 50px;
    box-shadow: none;
    text-align: center;
  }

	.menu ul {
    flex-direction: column;
	  visibility: hidden;
	  opacity: 0;
	  top: 0;
	  left: 0;
	  width: 100%;
	  transform: initial;
    padding: 0px 0px;
    gap: 0px;
	}

	.menu li:hover>ul {
	  visibility: visible;
	  opacity: 1;
	  position: relative;
	  transform: initial;
	}

	.menu ul ul {
	  left: 0;
	  transform: initial;
	}

	.menu li>ul ul:hover { transform: initial; }
}

@media only screen and (max-width: 580px){
  .top_nav {padding-top: 10px;}
  .top_nav ul {padding-left: 30px;}
	.top_nav li a{font-size:8px;padding:3px 0px;}
	.top_nav li:last-child{padding-right:0px;}

	.responsive-menu {
		margin-top:60px;
    width: 40px;
    margin-left: auto; 
    margin-right: 20px;
	}
  .top_nav ul {margin-left: 45%; margin-bottom: 10px; padding-top: 2px; padding-bottom: 2px;}
  #tnb > li:nth-child(3) {display: none;}
}
@media only screen and (max-width: 420px){
  .top_nav {padding-top: 10px;}
	.top_nav li a{font-size:8px;padding:3px 0px;}
	.tap_nav_line{padding:0px 5px 0px 5px;}
	.top_nav li:last-child{padding-right:0px;}
  .top_nav ul {padding-left: 20px; margin-left: 50%; margin-bottom: 10px; padding-top: 2px; padding-bottom: 2px;}
  #tnb > li:nth-child(3) {display: none;}
}


/* hamburger */
.hamburger > span {
  display:block;
  width:40px;
  height:5px;
  margin-top:10px;
  margin-bottom:10px;
  background-color: #feba32;
}


/* mobile */
@media only screen and (max-width: 1020px) {
  body {
    position: relative;
  }
  body::after {
    content: '';
    position: absolute;
    z-index: 998;
    height: auto;
    width: auto;
    transition: 0.4s;
    opacity: 0;
    visibility: hidden;
  }
  a:link, a:visited {color: #fff;} 

    /* hamburger style */
	.nav-top {
    display: flex;
    align-items: center;
    position: absolute;
    top: 60px;
    z-index: 101;
    padding: 10px 20px;
    width: 100%;
    height: 50px; 
  }
  .nav-top .hamburger {
    margin-left: auto;
    color: #34529a;
    cursor: pointer;
  }
  .nav-drill {
    margin-top: 120px;
    transform: translateX(100%);
  }
  .nav-is-toggled .nav-drill {
    transform: translateX(0);
  }
  .nav-is-toggled::after {
    opacity: 1;
    visibility: visible;
  }

  /* mobile nav style */
  .nav-drill {
    display: flex;
    position: absolute;
    z-index: 999;
    top: 0;
    right: 0;
    width: 100%;
    height: auto;
    background-color: #feba32;
    overflow-y: hidden;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transition: 0.45s;
    box-shadow: 0 10px 10px -5px;
  }
  .nav-items {
    flex: 0 0 100%;
  }
  .nav-item:not(:last-child) {
    border-bottom: solid 1px #feba32;
  }
  .nav-link {
    display: block;
    padding: 0.875em 1em;
    background-color: #feba32;
    color: #fff;
    font-size: 18px;
    font-weight: bolder;
  }

  .nav-expand-content {
    display: none;
    transition: 0.3s ease-in;
  }

  .nav-item.nav-expand.active > .nav-expand-content {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
  }
  .nav-expand-content .nav-item:not(:last-child) {
    border-bottom: solid 1px #797979;
  }
  
  .nav-expand-content .nav-link {
    background-color: #fff;
    color: #000000b3;
  }
  
  .nav-expand-content .nav-back-link {
    display: flex;
    align-items: center;
    background-color: #34529a !important;
    color: #fff;
  }
  
  .nav-expand-link {
    display: flex;
    justify-content: center;
  }

  .nav-expand-link.active > .nav-expand-content {
    transform: translateX(0);
    visibility: visible;
  }

}