/**
 * Reusable custom site footer.
 */

.khc-footer {
	border-top: 1px solid #333;
	background: #fff;
}

.khc-footer__grid {
	display: grid;
	grid-template-columns: 1.9fr repeat(4, minmax(0, 1fr));
	gap: 18px;
	padding-top: 48px;
	padding-bottom: 42px;
}

.khc-footer__brand img {
	width: 360px;
	margin-bottom: 15px;
}

.khc-footer p,
.khc-footer address {
	margin: 4px 0;
	font-size: 16px;
	font-style: normal;
}

.khc-footer__brand p {
	font-size: clamp(12px, 1vw, 16px);
	white-space: nowrap;
}

.khc-footer h3 {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: var(--khc-weight-medium);
	white-space: nowrap;
}

.khc-footer__grid > div:not(.khc-footer__brand) a {
	display: block;
	margin: 7px 0;
	font-size: 14px;
	white-space: normal;
	overflow-wrap: anywhere;
	padding-left: 1em;
	text-indent: -1em;
}

.khc-footer__grid > div:not(.khc-footer__brand) a::before {
	content: "・";
}

.khc-footer__copyright {
	padding: 16px;
	color: #fff;
	background: #090909;
	font-size: 16px;
	text-align: center;
}

.khc-back-to-top {
	position: fixed;
	right: 4vw;
	bottom: 45px;
	z-index: 20;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	color: #fff !important;
	background: var(--khc-orange);
	border-radius: 9px;
	font-size: 28px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

@media (max-width: 1200px) {
	.khc-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	.khc-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 780px) {
	.khc-footer__grid {
		grid-template-columns: 1fr;
		padding-top: 38px;
	}

	.khc-footer__grid > div:not(.khc-footer__brand) {
		padding-top: 20px;
		border-top: 1px solid #ddd;
	}

	.khc-footer h3,
	.khc-footer__grid > div:not(.khc-footer__brand) a {
		white-space: normal;
	}
}
