#header {
	z-index: 999;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 6.4rem;
	background-color: #FFF;
}

.header-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0 1rem;
	border-bottom: .1rem solid rgba(0,0,0,.2);
	transition: background-color 350ms ease;
}

.header-inner {
	height: 100%;
}

#header .header-logo {
	z-index: 99;
	position: absolute;
	top: 0;
	bottom: 0;
	height: fit-content;
	margin: auto 0;
}

#header h1 a,
#header h1 img {
	display: block;
	height: 2.4rem;
}

#header .gnb {
	position: absolute;
	top: 0;
}

.gnb.mobile {
	right: 0;
}

#header .gnb-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	background-color: #FFF;
	transition: 350ms ease;
	transition-property: height;
	transition-duration: .4s;
}

#header .gnb-list {
	display: flex;
}

#header .gnb-list > li {
	position: relative;
}

#header .gnb-list > li::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 0;
	height: .2rem;
	background-color: #003F7E;
	transition: 350ms ease;
	transition-property: width, left;
}

.gnb .dep1 {
	position: relative;
	display: flex;
	height: 6.4rem;
	align-items: center;
}

.gnb .dep1 a {
	padding: .2em 1.2em;
	transition: 350ms ease;
	transition-property: color, padding;
}

.mobile-contact {
	display: none;
}

.unit-box {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	height: fit-content;
	margin: auto;
}

.unit-box.mobile > a {
	display: none;
}

.unit-box > button {
	display: none;
}

/* 모바일 메뉴 버튼 */
.burger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: pointer;
  transition: 300ms;
  border-radius: 10px;
}
.burger input[type="checkbox"] {
  appearance: none;
  transition: 300ms;
}

.burger::before,
.burger::after {
  content: "";
  transition: 300ms;
  transform-origin: center center;
}

.burger::before {
  transform: translateY(8px);
}
.burger::after {
  transform: translateY(-8px);
}
.burger .line,
.burger::before,
.burger::after {
  width: 25px;
  height: 2.1px;
  display: block;
  background-color: black;
  border-radius: 5px;
  position: absolute;
}

.burger .line:checked {
  width: 0;
  transition-delay: 100ms;
}
.burger:has(.line:checked)::before {
  animation: animation1 400ms ease-out 0s 1 both;
}
.burger:has(.line:checked)::after {
  animation: animation2 400ms ease-out 0s 1 both;
}

.burger:hover {
  background: #aeaeae;
  border-radius: 50%;
}

.burger:hover .line,
.burger:hover::before,
.burger:hover::after {
  background: #e8e8e8;
}

.burger:active {
  scale: 0.95;
}

@keyframes animation1 {
  0% {
    transform: translateY(8px) rotate(0deg);
  }
  50% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(0px) rotate(45deg);
  }
}
@keyframes animation2 {
  0% {
    transform: translateY(-8px) rotate(0deg);
  }
  50% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(0px) rotate(-45deg);
  }
}

/* select */
select {
  -webkit-appearance: none;  /* 크롬 화살표 없애기 */
  -moz-appearance: none; /* 파이어폭스 화살표 없애기 */
  appearance: none;  /* 화살표 없애기 */
}

.sub .pagenation {
  height: 5rem;
  border-top: .1rem solid rgba(0, 0, 0, .1);
}

.sub .pagenation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.sub .pagenation .page {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.sub .pagenation .prev {
  transform: rotate(90deg);
}

.sub .pagenation button:hover {
  filter: invert(20%) sepia(83%) saturate(4219%) hue-rotate(199deg) brightness(92%) contrast(102%);
}

.sub .pagenation .next {
  transform: rotate(-90deg);
}

.sub .pagenation .num a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-size: 1.4rem;
  color: rgba(0, 0, 0, .48);
}

.sub .pagenation .num a.active,
.sub .pagenation .num a:hover {
  background-color: #e7f2ff;
  color: #0064C7;
}

/* desktop */
@media screen and (min-width:1281px) {
	#header {
		height: 10rem;	
		box-shadow: 0 -.4rem 1.6rem rgba(0,0,0,.2);
		transition: 350ms ease;
		transition-property: height;
	}
	
	.header-wrapper {
		padding: 0 2.4rem;
	}
	
	#header h1 a,
	#header h1 img {
		height: 3.2rem;
	}
	
	#header .gnb {
		position: absolute;
		top: 0;
		left: 50%;
		transform: translateX(-50%);
	}
	
	#header .gnb-bg {
		z-index: -1;
		top: 10rem;
		left: 50%;
		width: 100vw;
		box-shadow: 0 1rem .8rem rgba(0,0,0,.05);
		transform: translate(-50%, -100%);
		transition: 350ms ease;
	}
	
	#header .gnb.open .gnb-bg {
		min-height: 40rem;
		transform: translate(-50%, 0);
	}
	
	#header .gnb-list .hover::before {
		width: 100%;
		left: 0;
	}
	
	.gnb .dep1 {
		height: 10rem;
	}
	
	.gnb .dep1 a {
		width: 20rem;
		text-align: center;
		font-size: 2rem;
		font-weight: 500;
		transition: 350ms ease;
		transition-property: width;
	}

	.gnb.open .dep1 a,
	.gnb.open .dep2 {
		width: 24rem;
	}
	
	.gnb .dep2 {
		overflow: hidden;
		position: absolute;
		height: 0;
		transition: height 0.35s ease, padding 0.35s ease;
	}
	
	.gnb .dep2 ul {
		position: relative;
		width: 100%;
		padding: 2rem 2.4rem 0;
	}
	
	.gnb .dep2 ul::before {
		content: "";
		position: absolute;
		left: 0;
		top: 0;
		display: block;
		width: 24rem;
		background-color: transparent;	
		transition: 350ms ease;
		transition-property: min-height, color;
	}
	
	.gnb.open li:hover .dep2 ul::before {
		min-height: 40rem;		
		background-color: #f6f6f6;
	}
	
	.gnb .dep2 li {
		z-index: 99;
		position: relative;
	}
	
	.gnb .dep2 li a {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: .8rem;
		width: 100%;
		text-align: center;
		line-height:4.8rem;
		font-size: 1.6rem;
	}
	
	.gnb .dep2 li a:hover {
		font-weight: 500;
		color: #003F7E;
	}
	
	.unit-box {
		right: 6.4rem;
	}
	
	.unit-box > a {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: .8rem;
		height: 4.8rem;
		padding: 0 2rem;
		border-radius: 4rem;
		font-size: 1.8rem;
		color: #fff;
		background-color: #003F7E;
	}
	
	.unit-box > a:hover {
		background-color: #0064C7;
	}

	.unit-box > a ion-icon {
		color: #FFF;
	}
	
	.unit-box > a img {
		display: block;
		filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(67deg) brightness(100%) contrast(109%);
	}
	
}

/* mobile */
@media screen and (max-width:1280px) {
	.header-wrapper {
		padding: 0 2.4rem;
	}
	
	.unit-box {
		right: 1.2rem;
	}
	
	.gnb.mobile {
		visibility: hidden;
		display: none;
		width: 100vw;
		height: 100vh;
		transform: translateX(100%);
		transition: all 350ms ease;	
	}

	.gnb.mobile.open {
		visibility: visible;
		display: block;
		transform: translateX(0);
	}

	#header .gnb.mobile .gnb-bg {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: #FFF;
	}

	.gnb.mobile .gnb-list-wrap {
		overflow-y: scroll;
		position: absolute;
		top: 6.4rem;
		left: 0;
		width: 100%;
		height: calc(100vh - 6.4rem);
		padding: 0 1rem;
		border-top: .1rem solid rgba(0,0,0,.2);
		background-color: #FFF;
		transition: opacity .3s cubic-bezier(.16, .68, .43, .99);
	}

	.gnb.open {
		opacity: 1;
	}

	.gnb-list {
		flex-direction: column;
		width: 80%;
		margin: 0 auto;
	}

	.gnb-list li {
		position: relative;
	}

	.gnb-list > li:not(:last-child) {
		border-bottom: .1rem solid rgba(0,0,0,.2);
	}

	.gnb-list .dep1 {
		position: relative;
		height: auto;
		padding: 2.4rem 0;
	}

	.gnb-list .dep1 a {
		display: flex;
		justify-content: space-between;
		width: 100%;
		font-size: 2rem;
		font-weight: 500;
	}
	
	.gnb .dep1.active a,
	.gnb .dep1 a:hover {
		color: #0064C7;
	}

	.gnb-list .dep1 .icon {
		position: relative;
		display: flex;
		justify-content: center;
		align-items: center;
		width: 2.4rem;
		height: 2.4rem;
	}

	.gnb-list .dep1 .icon::before {
		content: "";
		position: absolute;
		display: block;
		width: .2rem;
		height: 2rem;
		border-radius: 1rem;
		background-color: #000;
		transition: all .2s ease;
	}

	.gnb-list .dep1 .icon::after {
		content: "";
		position: absolute;
		display: block;
		width: 2rem;
		height: .2rem;
		border-radius: 1rem;
		background-color: #000;
	}
	
	.gnb-list .dep1.active span:hover .icon::after,
	.gnb-list .dep1.active span:hover .icon::before,
	.gnb-list .dep1.active .icon::after,
	.gnb-list .dep1.active .icon::before {
		background-color: #0064C7;
	}

	.gnb-list .dep1.active .icon::before {
		transform: rotate(90deg);
	}

	.gnb-list .dep2 {
		position: relative;
		top: 0;
		overflow: hidden;
		height: 0;
		transition: all 350ms ease;
	}

	.gnb-list .dep2 li {
		padding-left: 1.6rem;
	}

	.gnb-list .dep2 li:last-child {
		margin-bottom: 1.6rem;
	}

	.gnb-list .dep2 a {
		display: flex;
		align-items: center;
		gap: .8rem;
		padding: 1rem 1.6rem;
		font-size: 1.6rem;
	}

	.mobile-contact {
		display: block;
		width: 80%;
		height: 7.2rem;
		margin: 0 auto;
		text-align: right;
	}
	
	.mobile-contact a {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 1rem;
		margin-top: 2rem;
		border-radius: .4rem;
		line-height: 7.2rem;
		text-align: center;
		font-size: 2rem;
		font-weight: 500;
		color: #212121;
		background-color: #EDEDED;
	}
	
	.mobile-contact a:hover {
		background-color: #BCBCBC;
	}
		
	.unit-box > button {
		display: block;
	}
	
	
}

@media screen and (max-width:769px) {
	.gnb-list {
		width: 100%;
	}	
}