/**
 * Flow Tech Lab shared SWELL footer.
 *
 * The footer widgets and menus are global WordPress content. Keep their
 * presentation global as well, while inheriting SWELL's footer colors.
 */

.l-footer {
	--ftl-footer-bg: var(--color_footer_bg, #183443);
	--ftl-footer-color: var(--color_footer_text, #ffffff);
	--ftl-footer-text: color-mix(in srgb, var(--ftl-footer-color) 82%, transparent);
	--ftl-footer-line: color-mix(in srgb, var(--ftl-footer-color) 18%, transparent);
	position: relative;
	margin-top: 0;
	color: var(--ftl-footer-text);
	background: var(--ftl-footer-bg);
	font-family: "Meiryo", "メイリオ", sans-serif;
}

.l-footer,
.l-footer * {
	box-sizing: border-box;
}

.l-footer a {
	color: inherit;
	text-decoration: none;
	text-underline-offset: .2em;
	transition: color .2s ease, opacity .2s ease;
}

.l-footer a:hover {
	color: var(--ftl-header-cta-bg, #ddfc54);
}

.l-footer a:focus-visible {
	outline: 3px solid var(--ftl-header-cta-bg, #ddfc54);
	outline-offset: 4px;
}

.l-footer__widgetArea {
	max-width: 1240px;
	margin-right: auto;
	margin-left: auto;
	padding: clamp(72px, 8vw, 112px) clamp(20px, 4vw, 40px) 64px;
}

.l-footer__widgetArea .w-footer {
	display: grid;
	grid-template-columns: minmax(280px, 1.35fr) repeat(2, minmax(180px, 1fr));
	gap: 52px clamp(26px, 4vw, 58px);
}

.l-footer__widgetArea .w-footer__box {
	width: auto;
	margin: 0;
	padding: 0;
}

.l-footer__widgetArea .c-widget {
	margin: 0;
}

.l-footer__widgetArea .c-widget + .c-widget {
	margin-top: 32px;
}

.l-footer .c-widget__title,
.l-footer .wp-block-heading {
	margin: 0 0 22px;
	padding: 0 0 14px;
	border: 0;
	border-bottom: 1px solid var(--ftl-footer-line);
	color: var(--ftl-footer-color);
	background: transparent;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.6;
}

.l-footer .c-widget__title::before,
.l-footer .c-widget__title::after,
.l-footer .wp-block-heading::before,
.l-footer .wp-block-heading::after {
	display: none;
}

.l-footer .menu,
.l-footer .wp-block-navigation__container {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.l-footer .menu a,
.l-footer .wp-block-navigation-item__content,
.l-footer .wp-block-list a {
	display: inline-flex;
	padding: 2px 0;
	font-size: 14px;
	line-height: 1.7;
}

.l-footer .menu a::before {
	display: none;
}

.l-footer .ftl-footer-brand {
	display: block;
	margin-bottom: 20px;
	color: var(--ftl-footer-color);
}

.l-footer .ftl-footer-brand > .wp-block-heading {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	color: var(--ftl-footer-color);
	font-size: clamp(25px, 2.4vw, 34px);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.35;
}

.l-footer .ftl-footer-tagline {
	margin: 0;
	color: var(--ftl-footer-color);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.8;
}

.l-footer .ftl-footer-description {
	max-width: 34em;
	margin: 12px 0 0;
	color: var(--ftl-footer-text);
	font-size: 14px;
	line-height: 1.9;
}

.l-footer .ftl-footer-contact {
	display: inline-block;
	margin-top: 26px;
	font-size: 14px;
	font-weight: 700;
}

.l-footer .ftl-footer-contact a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid color-mix(in srgb, var(--ftl-footer-color) 38%, transparent);
	border-radius: 999px;
	color: var(--ftl-footer-color);
	line-height: 1.4;
}

.l-footer__nav {
	max-width: 1160px;
	margin-right: auto;
	margin-left: auto;
	padding: 24px clamp(20px, 4vw, 40px);
	border-top: 1px solid var(--ftl-footer-line);
}

.l-footer__nav .c-listMenu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 9px 28px;
}

.l-footer__nav .c-listMenu a {
	padding: 0;
	border: 0;
	font-size: 14px;
}

.l-footer__foot,
.l-footer .copyright {
	border-top: 1px solid var(--ftl-footer-line);
	color: color-mix(in srgb, var(--ftl-footer-color) 72%, transparent);
	background: transparent;
}

.l-footer__foot {
	padding: 20px clamp(20px, 4vw, 40px);
}

.l-footer .copyright {
	margin: 0;
	padding: 20px clamp(20px, 4vw, 40px);
	font-size: 14px;
	letter-spacing: .04em;
	text-align: left;
}

@media (max-width: 1099px) {
	.l-footer__widgetArea .w-footer {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.l-footer__widgetArea {
		padding-top: 70px;
		padding-bottom: 48px;
	}

	.l-footer__widgetArea .w-footer {
		grid-template-columns: 1fr;
		gap: 38px;
	}

	.l-footer__nav .c-listMenu {
		gap: 8px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.l-footer *,
	.l-footer *::before,
	.l-footer *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
