/************************************************
* 달구름터 헤더 · 메가 메뉴
************************************************/
.dg-sticky.sticked .header {
	box-shadow: 0 2px 14px rgba(31, 26, 23, .08);
}
.header {
	position: relative;
	left: 0;
	top: 0;
	width: 100% !important;
	transition: box-shadow .3s ease;
	z-index: 1030;
}
.header.absolute {
	position: absolute;
}
.header > .container {
	min-height: 84px;
}

/* 로고 */
.header .logo a {
	gap: 10px;
	color: rgb(var(--dark-rgb));
}
.header .logo img {
	max-height: 56px;
	vertical-align: middle;
}
.dg-logo-symbol {
	width: 46px;
	height: 46px;
}
.dg-logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}
.dg-logo-text strong {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -.04em;
	color: rgb(var(--dark-rgb));
}
.dg-logo-text small {
	margin-top: 3px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .02em;
	color: rgb(var(--main-rgb));
}

/* 오른쪽 버튼 */
.header-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-left: auto;
}
.dg-tel {
	align-items: center;
	gap: 6px;
	height: 42px;
	padding: 0 18px;
	border-radius: 21px;
	background: rgb(var(--dark-rgb));
	color: #fff !important;
	font-weight: 700;
	white-space: nowrap;
}
.dg-tel:hover {
	background: rgb(var(--main-rgb));
}
.header-right .icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	font-size: 1.05rem;
	color: rgb(var(--dark-rgb));
	background: var(--dg-cream);
	border: 1px solid #ebe3d8;
	border-radius: 50%;
	transition: all .2s ease;
}
.header-right .icon-btn:hover {
	color: #fff;
	background: rgb(var(--main-rgb));
	border-color: rgb(var(--main-rgb));
}
.header-right .open-menu-btn {
	display: none;
}

.header .main-menu .head,
.dg-menu-tel {
	display: none;
}
.header .main-menu a {
	display: block;
	color: #222;
}


/* ---------- PC (1200px 이상): 가로 메뉴 + 메가 메뉴 ---------- */
@media (min-width: 1200px) {
	.header .main-menu > ul {
		display: flex;
	}
	.header .main-menu > ul > li {
		position: static;
	}
	.header .gnb-link {
		position: relative;
		padding: 18px 2.2rem 16px;
		text-align: center;
	}
	.header .gnb-link strong {
		display: block;
		font-size: 21px;
		font-weight: 700;
		color: rgb(var(--dark-rgb));
		transition: color .2s ease;
	}
	.header .gnb-link small {
		display: block;
		margin-top: 2px;
		font-size: 13px;
		color: #8a7f76;
	}
	/* 선택 · 호버 표시 (아래 삼각형) */
	.header .gnb-item > .gnb-link:after {
		content: '';
		position: absolute;
		left: 50%;
		bottom: -1px;
		margin-left: -9px;
		border: 9px solid transparent;
		border-bottom-color: var(--dg-ink);
		opacity: 0;
		transition: opacity .2s ease;
	}
	.header .gnb-item.has-mega:hover > .gnb-link:after {
		opacity: 1;
	}
	.header .gnb-item:hover > .gnb-link strong,
	.header .gnb-item.active > .gnb-link strong {
		color: rgb(var(--main-rgb));
	}
	.header .main-menu > ul > li > i {
		display: none;
	}

	/* 메가 패널 */
	.header .mega {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		padding: 32px 0 36px;
		background: var(--dg-ink);
		box-shadow: 0 18px 30px rgba(0, 0, 0, .18);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-6px);
		transition: all .2s ease;
	}
	.header .gnb-item:hover > .mega,
	.header .gnb-item:focus-within > .mega {
		visibility: visible;
		opacity: 1;
		transform: none;
	}
	.mega-grid {
		display: flex;
		justify-content: center;
		gap: 0 44px;
	}
	.mega-col {
		min-width: 150px;
		max-width: 260px;
	}
	.mega-title {
		margin-bottom: 12px;
		padding-bottom: 10px;
		border-bottom: 1px solid rgba(255, 255, 255, .14);
		font-size: 16px;
		font-weight: 700;
		color: #fff !important;
	}
	.mega-title em {
		margin-left: 4px;
		font-style: normal;
		font-size: 12px;
		font-weight: 500;
		color: var(--dg-sand);
	}
	.mega-col.active .mega-title,
	.mega-title:hover {
		color: rgb(var(--main-rgb)) !important;
	}
	.mega-list li a {
		padding: 3px 0;
		font-size: 14px;
		line-height: 1.6;
		color: #cfc6bd !important;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.mega-list li a:hover,
	.mega-list li.active a {
		color: var(--dg-sand) !important;
	}
	.mega-more {
		display: inline-flex !important;
		align-items: center;
		gap: 4px;
		margin-top: 8px;
		font-size: 13px;
		color: rgb(var(--main-rgb)) !important;
	}
	.mega-more:hover {
		color: #fff !important;
	}
	.dg-sticky.sticked .header .gnb-link {
		padding-top: 14px;
		padding-bottom: 12px;
	}
}


/* ---------- 모바일 · 태블릿 (1199px 이하): 오른쪽 슬라이드 메뉴 ---------- */
@media (max-width: 1199px) {
	.header > .container {
		min-height: 70px;
	}
	.dg-logo-symbol {
		width: 38px;
		height: 38px;
	}
	.dg-logo-text strong {
		font-size: 20px;
	}
	.header .main-menu {
		position: fixed;
		right: 0;
		top: 0;
		padding: 0 0 30px;
		width: 320px;
		max-width: 86vw;
		height: 100%;
		background-color: #fff;
		box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
		overflow-y: auto;
		transform: translateX(110%);
		z-index: 1050;
	}
	.header .main-menu.open {
		transform: none;
	}
	.dg-menu-dim {
		position: fixed;
		inset: 0;
		background: rgba(31, 26, 23, .45);
		opacity: 0;
		visibility: hidden;
		transition: opacity .3s ease;
		z-index: 1040;
	}
	.dg-menu-dim.on {
		opacity: 1;
		visibility: visible;
	}
	.header .main-menu .head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 18px 12px 18px 25px;
		margin-bottom: 8px;
		background: var(--dg-ink);
	}
	.dg-menu-title {
		font-size: 18px;
		font-weight: 800;
		color: #fff;
	}
	.header .main-menu .close-menu-btn {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		background-color: transparent;
		border: none;
		cursor: pointer;
	}
	.header .main-menu .close-menu-btn:before,
	.header .main-menu .close-menu-btn:after {
		content: '';
		position: absolute;
		width: 60%;
		height: 2px;
		background-color: #fff;
	}
	.header .main-menu .close-menu-btn:before {
		transform: rotate(45deg);
	}
	.header .main-menu .close-menu-btn:after {
		transform: rotate(-45deg);
	}
	.header .main-menu > ul > li {
		position: relative;
		display: block;
		border-bottom: 1px solid #f0ebe4;
	}
	.header .gnb-link {
		padding: 14px 60px 14px 25px;
	}
	.header .gnb-link strong {
		display: block;
		font-size: 18px;
		font-weight: 700;
		color: rgb(var(--dark-rgb));
	}
	.header .gnb-link small {
		display: block;
		font-size: 12px;
		color: #8a7f76;
	}
	.header .gnb-item.active > .gnb-link strong {
		color: rgb(var(--main-rgb));
	}
	.header .main-menu > ul > li > i {
		position: absolute;
		top: 8px;
		right: 12px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		font-size: 1rem;
		color: #555;
		cursor: pointer;
		transition: transform .2s ease;
	}
	.header .main-menu .dropdown.active > i {
		transform: rotate(180deg);
	}
	/* 모바일은 2차(지역)까지만 */
	.header .mega {
		display: none;
		padding: 4px 0 12px;
		background: var(--dg-cream);
	}
	.header .dropdown.active > .mega {
		display: block;
	}
	.header .mega .container {
		padding: 0;
	}
	.mega-title {
		padding: 9px 25px 9px 38px;
		font-size: 15px;
		color: #444 !important;
	}
	.mega-title em {
		margin-left: 4px;
		font-style: normal;
		font-size: 12px;
		color: rgb(var(--main-rgb));
	}
	.mega-col.active .mega-title {
		color: rgb(var(--main-rgb)) !important;
		font-weight: 700;
	}
	.mega-list,
	.mega-more {
		display: none !important;
	}
	.dg-menu-tel {
		display: flex !important;
		align-items: center;
		justify-content: center;
		gap: 8px;
		margin: 24px 25px 0;
		padding: 13px 0;
		border-radius: 10px;
		background: rgb(var(--dark-rgb));
		color: #fff !important;
		font-weight: 700;
	}

	.header .open-menu-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		position: relative;
		background-color: transparent;
		border: none;
		cursor: pointer;
	}
	.header .open-menu-btn .line {
		position: absolute;
		width: 22px;
		height: 2px;
		background-color: rgb(var(--dark-rgb));
	}
	.header .open-menu-btn .line-1 {
		transform: translateY(-7px);
	}
	.header .open-menu-btn .line-3 {
		transform: translateY(7px);
	}
}

@media (max-width: 575px) {
	.dg-logo-text small {
		display: none;
	}
}
