.site-footer {
	margin-top: 4rem;
	padding: 3rem 2rem 1.5rem;
	background-color: #111;
	color: #ccc;
}

.footer-inner {
	max-width: 1280px;
	margin: 0 auto;
}

.footer-top {
	display: grid;
	/* 왼쪽은 연락처, 남는 폭을 사이트 지도가 쓴다 */
	grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
	gap: 2rem 3rem;
	padding-bottom: 2rem;
}

.footer-site-name {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

.footer-logo {
	display: block;
	width: auto;
	height: 44px;
	max-width: 100%;
}

.footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.9rem;
	line-height: 1.9;
	color: #aaa;
}

.footer-contact a {
	color: #aaa;
	text-decoration: none;
}

.footer-contact a:hover {
	color: #fff;
	text-decoration: underline;
}

/* ---------------------------- 사이트 지도 ----------------------------
   푸터 메뉴는 3단까지 들어온다. 예전에는 모든 단계를 한 줄 flex 로 늘어놓아
   상위·하위가 구분되지 않고 한 줄로 쏟아졌다. 최상위를 칸(열)으로 세우고
   그 아래를 목록으로 둔다. */
.footer-menu {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
	gap: 1.75rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu > li {
	min-width: 0;
}

/* 칸의 머리 — 최상위 항목 */
.footer-menu > li > a {
	display: block;
	padding-bottom: 0.55rem;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	word-break: keep-all;
}

.footer-menu .sub-menu {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu .sub-menu a {
	display: block;
	color: #999;
	font-size: 0.84rem;
	line-height: 1.5;
	text-decoration: none;
	word-break: keep-all;
}

/* 3단째는 한 칸 들여 어디에 딸린 것인지 보이게 */
.footer-menu .sub-menu .sub-menu {
	gap: 0.3rem;
	margin: 0.4rem 0 0.2rem 0.15rem;
	padding-left: 0.65rem;
	border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-menu .sub-menu .sub-menu a {
	font-size: 0.8rem;
	color: #808080;
}

.footer-navigation a:hover {
	color: #fff;
	text-decoration: underline;
}

/* 주소가 아주 긴 외부 링크(구글 캘린더)가 칸을 밀어내지 않게 */
.footer-menu a {
	overflow-wrap: anywhere;
}

.footer-bottom {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-legal {
	margin: 0;
	order: 2;   /* 저작권을 왼쪽에 두고 이쪽을 오른쪽으로 */
	font-size: 0.8rem;
}

.footer-legal a {
	color: #aaa;
	text-decoration: none;
}

.footer-legal a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-info {
	margin: 0;
	font-size: 0.8rem;
	color: #888;
}

.footer-text {
	margin-left: 0.5rem;
}

@media (max-width: 900px) {
	/* 지도가 좁아지면 연락처를 위로 올린다 */
	.footer-top {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}
}

@media (max-width: 640px) {
	.site-footer {
		padding: 2.5rem 1.25rem 1.25rem;
	}

	.footer-menu {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
		gap: 1.5rem 1.25rem;
	}
}

/* ---------------------------- 오른쪽 아래 바로가기 ---------------------------- */
.suji-quick {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	/* 팝업(210)보다 위에 둔다. 좁은 화면에서 팝업이 떠 있어도 눌려야 한다 */
	z-index: 220;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.5rem;
}

.suji-quick-items {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* 여닫이 단추는 좁은 화면에서만 쓴다 */
.suji-quick-toggle {
	display: none;
}

/* 움직임 없이 아이콘만 고정으로 둔다 (hover 로 커지거나 이름이 펼쳐지지 않는다) */
.suji-quick-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
	color: #444;
	text-decoration: none;
}

.suji-quick-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 이름은 화면에 보이지 않고 보조기기에만 읽힌다 */
.suji-quick-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* 서비스별 색 */
.suji-quick-link.is-youtube {
	color: #ff0000;
}

.suji-quick-link.is-kakao {
	background: #fee500;
	color: #3c1e1e;
}

.suji-quick-link.is-missa {
	color: #111;
}

/* -------------------- 좁은 화면: 눌러서 펼치는 묶음 -------------------- */
@media (max-width: 600px) {
	.suji-quick {
		right: 0.75rem;
		bottom: 0.75rem;
	}

	.suji-quick-link {
		width: 46px;
		height: 46px;
	}

	/* 항목을 단추 위에 겹쳐 둔다. 흐름에 두면 접었다 펼 때 화면이 밀린다 */
	.suji-quick-items {
		position: absolute;
		right: 0;
		bottom: calc(100% + 0.5rem);
		gap: 0.4rem;
	}

	.suji-quick-items .suji-quick-link {
		/* 접힌 상태 — 보이지도, 눌리지도, 탭으로 닿지도 않는다 */
		visibility: hidden;
		opacity: 0;
		transform: translateY(0.6rem) scale(0.8);
		transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
			visibility 0.24s;
	}

	.suji-quick.is-open .suji-quick-items .suji-quick-link {
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	/* 단추에 가까운 것부터 차례로 올라온다 */
	.suji-quick.is-open .suji-quick-link:nth-last-child(2) {
		transition-delay: 0.04s;
	}

	.suji-quick.is-open .suji-quick-link:nth-last-child(3) {
		transition-delay: 0.08s;
	}

	.suji-quick.is-open .suji-quick-link:nth-last-child(4) {
		transition-delay: 0.12s;
	}

	.suji-quick-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 52px;
		height: 52px;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: #111;
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
		color: #fff;
		cursor: pointer;
	}

	.suji-quick-toggle-icon {
		display: flex;
		transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
	}

	/* 더하기가 돌아 닫기 표가 된다 */
	.suji-quick.is-open .suji-quick-toggle-icon {
		transform: rotate(135deg);
	}
}

@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
	.suji-quick-items .suji-quick-link,
	.suji-quick-toggle-icon {
		transition: opacity 0.15s ease, visibility 0.15s;
		transform: none;
	}
}

/* ---------------------------- 맨 위로 ---------------------------- */
.suji-top {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid #ececE8;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
	color: #444;
	cursor: pointer;
	/* 자바스크립트가 is-on 을 붙일 때까지 숨어 있다 */
	visibility: hidden;
	opacity: 0;
	transform: translateY(0.5rem);
	transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0.24s;
}

.suji-top:hover {
	border-color: #c9c9c0;
	color: #111;
}

.suji-top.is-on {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

.suji-top-icon {
	display: flex;
}

@media (max-width: 600px) {
	/* 가운데 아래에 작게. 부모의 자리 배치에서 빠져나온다 */
	.suji-top {
		position: fixed;
		left: 50%;
		bottom: 0.75rem;
		width: 40px;
		height: 40px;
		transform: translateX(-50%) translateY(0.6rem);
	}

	.suji-top.is-on {
		transform: translateX(-50%) translateY(0);
	}

	.suji-top svg {
		width: 18px;
		height: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.suji-top {
		transition: opacity 0.15s ease, visibility 0.15s;
	}
}

@media print {
	.suji-quick {
		display: none;
	}
}
