/* ==========================================================================
   KCC 자체 푸터 (partials/kcc/footer.php)
   Elementor 푸터 템플릿 1847 의 실측값(2026-10-07):
   - 데스크톱: 컨테이너 1310px, 위 50px / 아래 100px, 좌: 로고 210×60 + 주소 14px/#555,
               우: 드롭다운 2개(307px, 간격 12px, 18px/600/#777, 배경 #d9d9d9) + 아이콘 6개(94×113, 간격 12px)
   - 모바일(767px 이하): 좌우 20px, 위 20px / 아래 50px, 로고 126×36 + 구분선, 주소 13px,
               드롭다운 세로 2개(16px, 간격 6px), 아이콘 4열(79×96, 간격 11px)
   ========================================================================== */

.kcc-footer {
	position: relative;
	background: transparent;
	color: #555;
	font-family: "Pretendard", sans-serif;
}

.kcc-footer__inner {
	box-sizing: border-box;
	max-width: 1310px;
	margin: 0 auto;
	padding: 60px 10px 110px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 626px;
	column-gap: 40px;
	align-items: start;
}

/* 좌측: 로고 + 회사 정보 */
/* 로고: 링크(a)에 준 크기 규칙이 적용되지 않는 현상이 있어 크기는 img 에 id 선택자로 직접 준다.
   간격은 주소 문단(.kcc-footer__addr)의 margin-top 으로 처리. */
.kcc-footer__logo {
	display: block;
	margin: 0;
	line-height: 0;
}
#footer.kcc-footer .kcc-footer__logo img {
	display: block;
	width: 210px;
	max-width: 100%;
	height: auto;
	margin: 0;
}
.kcc-footer__addr {
	margin: 52px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: #555;
}
.kcc-footer__addr a {
	color: #555;
	text-decoration: none;
}
.kcc-footer__addr .kcc-footer__privacy {
	font-weight: 700;
}

/* 우측: 드롭다운 */
.kcc-footer .kcc-sites {
	display: flex;
	gap: 12px;
	margin: 0 0 20px;
}
.kcc-footer .kcc-site {
	position: relative;
	width: 50%;
	box-sizing: border-box;
	padding: 15px 25px;
	background: url(/wp-content/uploads/2025/02/plus-grey.png) right 20px center / auto 16px no-repeat, #d9d9d9;
	color: #777;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
}
.kcc-footer .kcc-site:hover,
.kcc-footer .kcc-site.is-active {
	background: url(/wp-content/uploads/2025/02/plus-white.png) right 20px center / auto 16px no-repeat, #000;
}
.kcc-footer .kcc-site__btn {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none !important;
	box-shadow: none;
	text-align: left;
	font: inherit;
	line-height: 1.8;
	color: #777;
	cursor: pointer;
}
.kcc-footer .kcc-site:hover .kcc-site__btn,
.kcc-footer .kcc-site.is-active .kcc-site__btn {
	color: #fff;
}
.kcc-footer .kcc-site__menu {
	position: absolute;
	top: -280px;
	left: 0;
	box-sizing: border-box;
	width: 100%;
	height: 260px;
	margin: 0;
	padding: 20px 25px;
	overflow-y: scroll;
	background: #fff;
	border: 1px solid #eee;
	color: #777;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.8;
	cursor: default;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.kcc-footer .kcc-site__menu[hidden] {
	display: none;
}
.kcc-footer .kcc-site__menu.is-open {
	opacity: 1;
	transform: translateY(0);
}
.kcc-footer .kcc-site__menu p {
	margin: 0;
	font-size: 14px;
	color: #000;
}
.kcc-footer .kcc-site__menu ul {
	margin: 0;
	padding-left: 15px;
	list-style: none;
}
.kcc-footer ul.kcc-site__menu {
	padding-left: 30px;
	list-style: none;
}
.kcc-footer .kcc-site__menu li {
	margin: 0;
}
.kcc-footer .kcc-site__menu a {
	color: #777;
	text-decoration: none;
}
.kcc-footer .kcc-site__menu a:hover {
	color: #00357e;
	font-weight: 600;
}

/* 우측: 소셜 아이콘 (심볼 참조, 색은 fill 상속) */
.kcc-footer .kcc-social {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.kcc-footer .kcc-social li {
	margin: 0;
}
.kcc-footer .kcc-social a {
	display: block;
	line-height: 0;
}
.kcc-footer .kcc-social svg {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 6;
	background: #fff;
	fill: #777;
	fill-opacity: 0.55;
	transition: background 0.15s ease, fill 0.15s ease;
}
.kcc-footer .kcc-social a:hover svg,
.kcc-footer .kcc-social a:focus-visible svg {
	background: #000;
	fill: #fff;
	fill-opacity: 1;
}

/* ---------- 반응형 ---------- */
@media screen and (max-width: 1140px) {
	.kcc-footer__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media screen and (max-width: 767px) {
	.kcc-footer__inner {
		display: block;
		padding: 20px 20px 50px;
	}
	.kcc-footer__logo {
		position: relative;
	}
	#footer.kcc-footer .kcc-footer__logo img {
		width: 126px;
	}
	.kcc-footer__logo::after {
		content: "";
		position: absolute;
		left: -20px;
		bottom: -15px;
		width: 100vw;
		height: 1px;
		background: rgba(0, 0, 0, 0.2);
	}
	.kcc-footer__addr {
		font-size: 13px;
		line-height: 1.6;
		margin: 31px 0 20px;
	}
	.kcc-footer .kcc-sites {
		flex-direction: column;
		gap: 6px;
		margin-bottom: 19px;
	}
	.kcc-footer .kcc-site {
		width: 100%;
		font-size: 16px;
		padding: 10px 20px;
	}
	.kcc-footer .kcc-site__menu {
		padding: 15px 25px;
		font-size: 16px;
	}
	.kcc-footer .kcc-site__menu ul,
	.kcc-footer ul.kcc-site__menu {
		padding-left: 10px;
	}
	.kcc-footer .kcc-social {
		grid-template-columns: repeat(4, 1fr);
		gap: 11px;
	}
}
