
/* ---------------------------
Header
--------------------------- */

.header{
	position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 4px solid #007837;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transform: translateZ(0); /* 강제 레이어 */
}

.header::after{
	content:"";
	position:absolute;
	left:0;
	top:100px;
	width:100%;
	height:0;
	background:#fff;
	border-top:1px solid transparent;
	box-shadow:0 16px 30px rgba(0,0,0,0.06);
	opacity:0;
	visibility:hidden;
	transition:height .32s ease, opacity .25s ease, visibility .25s ease;
}

.header.menu_open::after{
	height:260px;
	opacity:1;
	visibility:visible;
	border-top:1px solid #eee;
}

.header_inner{
    position:relative;
    width:100%;
    max-width:1170px;
    margin:0 auto;
    height:100px;
    display:flex;
    align-items:center;
    justify-content:flex-end; /* 중앙 → 오른쪽 정렬 */
	z-index:10000;
}

/* ---------------------------
Logo
--------------------------- */

.logo{
	position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 490px;
}

/* ---------------------------
PC GNB
--------------------------- */

.gnb{
	position:relative;
	z-index:3;
	font-family:'Noto Sans KR',sans-serif;
	font-weight:700;
}

.gnb > ul{
	display:flex;
	align-items:center;
	justify-content:center;
	gap:50px; /* 여기로 메뉴 간격 조절 */
}

.gnb > ul > li{
	position:relative;

	text-align:center;
}

.gnb > ul > li > a{
	display: block;
    height: 70px;
    line-height: 70px;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    transition: color .25s ease;
}

.gnb > ul > li > a > img{
	display: block;
	position: absolute;
    width:25px;
	top: 50%;
    transform: translateY(-50%);
}

.gnb > ul > li:hover > a,
.header.menu_open .gnb > ul > li > a:hover{
	color:#007837;
}

/* ---------------------------
PC Sub Menu
--------------------------- */

.gnb > ul > li > .sub{
	position:absolute;
	top:85px;
	left:0;
	width:200px;

	background:#007837;

	opacity:0;
	visibility:hidden;

	transform:translateY(10px);
	transition:.2s ease;

	z-index:10;
}

.gnb > ul > li.active > .sub{
	opacity:1;
	visibility:visible;
	transform:translateY(0);
}

.gnb > ul > li > .sub li a{

	display:block;
	height:48px;
	line-height:48px;

	padding:0 16px;

	font-size:15px;
	color:#fff;

	border-bottom:1px solid rgba(255,255,255,0.15);

	transition:.2s;
}

.gnb > ul > li > .sub li:last-child a{
	border-bottom:none;
}

.gnb > ul > li > .sub li a:hover{
	background:#0b9445;
}

/* ---------------------------
Hamburger
--------------------------- */

.hamburger{
    display: none;
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 26px;
    cursor: pointer;
    z-index: 1201;
}

.hamburger span{
	display:block;
	width:100%;
	height:3px;
	background:#017f40;
	border-radius:3px;
	margin:5px 0;
	transition:.25s ease;
}

.hamburger.active span:nth-child(1){
	transform:translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2){
	opacity:0;
}

.hamburger.active span:nth-child(3){
	transform:translateY(-8px) rotate(-45deg);
}

/* ---------------------------
Mobile Overlay
--------------------------- */

.mobile_overlay{
    position: fixed;
    top: 104px;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
    z-index: 1198;
}

.mobile_overlay.active{
	opacity:1;
	visibility:visible;
}

/* ---------------------------
Mobile Menu
--------------------------- */

.mobile_menu{
    position: fixed;
    top: 103px;
    left: -400px;
    right: auto;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    padding: 0px 0px 30px;
    overflow-y: auto;
    transition: left .3s ease;
    z-index: 1199;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
    z-index: 10001;
}

.mobile_menu.active{
	left:0; /* 변경 */
}

.mobile_menu > ul > li{
	border-bottom:1px solid #eee;
}

.mobile_menu > ul > li > a{
	display: block;
    position: relative;
    padding: 18px 30px 18px 18px;
    font-size: 17px;
    font-weight: 600;
    color: #222;
}

.mobile_menu > ul > li > a.mobile_parent::after{
	content:"";
	position:absolute;
	right:18px;
	top:50%;
	transform:translateY(-50%);
	width:14px;
	height:14px;
	background:url("/images/arrow_down.png") no-repeat center/contain;
	transition:.2s ease;
}

.mobile_menu > ul > li.open > a.mobile_parent::after{
	background:url("/images/arrow_up.png") no-repeat center/contain;
}

.mobile_menu .sub{
	max-height:0;
	overflow:hidden;
	padding-left:8px;
	transition:max-height .3s ease;
	background:#017f40; /* 추가 */
}

.mobile_menu .sub li a{
	display:block;
	padding:18px 10px;
	font-size:14px;
	color:#fff; /* 변경 */
}

.mobile_menu .sub li a:hover{
	color:#eaeaea;
}

.mobile_menu > ul > li.open > a.mobile_parent{
	color:#017f40;
}



/* ---------------------------
Responsive
--------------------------- */

@media (max-width:1170px){

	.header::after{
		display:none;
	}

	.logo {
		margin-left:5%;
	 }

	.gnb{
		display:none;
	}

	.hamburger{
		display:block;
	}

	.mobile_menu_instagram > a{
		position:relative;
		padding-right:50px; /* 아이콘 자리 확보 */
	}

	/* 아이콘을 화살표 위치처럼 오른쪽 고정 */
	.mobile_menu_instagram > a::after{
		content:"";
		position:absolute;
		right:18px;
		top:50%;
		transform:translateY(-50%);
		width:22px;
		height:22px;
		background:url("/images/instagram.webp") no-repeat center/contain;
	}

}

@media (max-width:768px){



    .logo {
        width: 290px;
    }

}

@media (max-width:480px) {

	.mobile_menu{
		top: 64px;
	}

	.mobile_overlay{
		top: 64px;

	}
}