/**
 * Footer styles.
 *
 * Footer CTA, footer brand, footer navigation, and copyright rules.
 */

.footer-body,
.footer-body__inner {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.footer-contact-cards .wp-block-tiptip-hyperlink-group-block {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	height: 100%;
}

.footer-contact-cards .wp-block-tiptip-hyperlink-group-block::after {
	position: absolute;
	top: 50%;
	right: 34px;
	width: 18px;
	height: 18px;
	content: "";
	background: url("../img/footer_card_arrow.svg") center / contain no-repeat;
	pointer-events: none;
	transform: translateY(-50%);
	transition: transform 0.2s ease;
}

.footer-contact-cards .wp-block-tiptip-hyperlink-group-block:hover::after {
	transform: translate(5px, -50%);
}

@media (min-width: 768px) {
	footer.wp-block-template-part a:hover {
		opacity: 0.7;
	}

	.footer-contact-card--tel .wp-block-tiptip-hyperlink-group-block {
		pointer-events: none;
		cursor: default;
	}

	.footer-contact-card--tel .wp-block-tiptip-hyperlink-group-block::after {
		display: none;
	}
}

.footer-cta {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 110px var(--wp--preset--spacing--40, 30px) 90px !important;
	background-color: #bbe0f0 !important;
	border-top-left-radius: 60px !important;
}

.footer-contact-cards {
	align-items: stretch !important;
	gap: clamp(32px, 5vw, 72px) !important;
}

.footer-contact-card {
	display: flex;
	min-width: 0;
}

.footer-contact-card > .wp-block-group:not(.footer-contact-card__box) {
	box-sizing: border-box;
	display: flex;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
}

.footer-contact-card__box {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 180px;
	background: var(--wp--preset--color--base, #fff) !important;
	border: 2px solid #83d1e1 !important;
	border-radius: 20px !important;
}

.footer-contact-card__body {
	box-sizing: border-box;
	width: 100%;
	gap: 18px !important;
	padding: 36px 56px !important;
	letter-spacing: 0.1em;
}

.footer-contact-card__body p {
	margin-top: 0;
	margin-bottom: 0;
	text-align: center;
}

.footer-contact-card__title {
	color: var(--wp--preset--color--tag-blue, #7fc8d5);
	font-size: var(--wp--preset--font-size--medium, 18px) !important;
	font-weight: 700;
}

.footer-contact-card__text {
	color: var(--wp--preset--color--contrast, #111);
	font-size: var(--wp--preset--font-size--small, 14px) !important;
	font-weight: 300;
}

.footer-contact-card__tel {
	color: var(--wp--preset--color--tag-blue, #7fc8d5);
	font-size: var(--wp--preset--font-size--x-large, 24px) !important;
	font-weight: 600;
}

.footer-contact-card__body .wp-block-image {
	margin-top: 0;
	margin-bottom: 0;
	text-align: center;
}

.footer-main {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: clamp(40px, 6vw, 96px) !important;
	width: 100%;
	padding-top: 60px !important;
	padding-bottom: 60px !important;
}

.footer-brand {
	flex-direction: column !important;
	align-items: center !important;
	flex: 0 0 280px;
	gap: 24px !important;
}

.footer-brand > .wp-block-group {
	padding: 0 !important;
}

.footer-brand img {
	height: auto !important;
}

.footer-brand__logo img {
	width: min(100%, 268px) !important;
	object-fit: contain !important;
}

.footer-brand__banner img {
	width: min(100%, 250px) !important;
}

.footer-nav__column {
	display: grid !important;
	flex: 1 1 auto;
	grid-template-columns: repeat(3, max-content);
	align-items: flex-start !important;
	justify-content: space-between !important;
	gap: clamp(36px, 5vw, 76px) !important;
	width: auto !important;
}

.footer-nav__column p {
	margin-top: 0;
	margin-bottom: 12px;
}

.footer-nav__column .wp-block-navigation {
	gap: 12px !important;
}

.footer-nav__subnav {
	padding-right: 0 !important;
	padding-left: 0 !important;
}

.footer-nav__subnav .wp-block-navigation {
	padding-left: 10px;
}

.footer-nav__subnav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}

.footer-nav__subnav .wp-block-navigation-item__content::before {
	content: "－";
	flex: 0 0 auto;
}

.footer-copy {
	box-sizing: border-box;
	min-height: 95px;
	margin-bottom: 0 !important;
	padding: 36px var(--wp--preset--spacing--30, 20px) 0 !important;
}

.footer-copy p {
	max-width: 100%;
	margin: 0;
	font-family: var(--wp--preset--font-family--barlow);
	font-size: 11px !important;
	line-height: 1.8;
	text-align: center;
	overflow-wrap: anywhere;
	word-break: normal;
}

@media (min-width: 768px) and (max-width: 1199px) {
	.footer-main {
		flex-direction: column !important;
		align-items: center !important;
		gap: 48px !important;
	}

	.footer-brand {
		flex-basis: auto;
		width: 100%;
	}

	.footer-nav__column {
		grid-template-columns: repeat(3, minmax(0, max-content));
		justify-content: center !important;
		gap: 48px !important;
		width: 100% !important;
	}
}

@media (max-width: 767px) {
	.footer-contact-cards {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 8px !important;
		align-items: stretch !important;
		width: 100%;
	}

	.footer-cta {
		padding-top: 42px !important;
		padding-right: 14px !important;
		padding-bottom: 42px !important;
		padding-left: 14px !important;
		border-top-left-radius: 30px !important;
	}

	.footer-contact-card {
		display: flex;
		flex-basis: auto !important;
		min-width: 0 !important;
	}

	.footer-contact-card__box {
		box-sizing: border-box;
		min-height: 123px;
		padding: 0 8px !important;
		border-radius: 6px !important;
	}

	.footer-contact-cards .wp-block-tiptip-hyperlink-group-block {
		min-height: 123px;
	}

	.footer-contact-cards .wp-block-tiptip-hyperlink-group-block::after {
		right: 8px;
		width: 14px;
		height: 14px;
	}

	.footer-contact-card__body {
		gap: 4px !important;
		padding: 0 !important;
	}

	.footer-contact-card__body p {
		font-size: 12px !important;
		line-height: 1.35;
		text-align: center;
		letter-spacing: 0;
	}

	.footer-contact-card__title {
		font-size: 12px !important;
		white-space: nowrap;
	}

	.footer-contact-card__text {
		font-size: 10px !important;
	}

	.footer-contact-card__tel {
		font-size: 16px !important;
	}

	.footer-contact-card__body .wp-block-image {
		margin-top: 6px !important;
		margin-bottom: 6px !important;
	}

	.footer-contact-card__body .wp-block-image img {
		width: 36px;
		height: auto;
	}

	.footer-contact-card__body .has-large-font-size,
	.footer-contact-card__body .has-x-large-font-size,
	.footer-contact-card__body .has-heading-medium-font-size {
		font-size: 16px !important;
		line-height: 1.25;
	}

	.footer-main {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 34px !important;
		padding-top: 44px !important;
		padding-right: 14px !important;
		padding-bottom: 44px !important;
		padding-left: 14px !important;
	}

	.footer-body,
	.footer-copy {
		padding-right: 14px !important;
		padding-left: 14px !important;
	}

	.footer-copy p {
		max-width: 100%;
		margin-right: auto;
		margin-left: auto;
	}

	.footer-main p,
	.footer-main a,
	.footer-main .wp-block-navigation-item,
	.footer-main .wp-block-navigation-item__content {
		font-size: 13px !important;
	}

	.footer-brand {
		align-items: center !important;
		flex-basis: auto;
		gap: 16px !important;
		width: 100%;
	}

	.footer-brand__logo img {
		width: min(100%, 260px) !important;
		object-fit: contain !important;
	}

	.footer-brand .wp-block-group {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	.footer-brand__banner img {
		width: min(100%, 230px) !important;
	}

	.footer-nav__column {
		display: grid !important;
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr) !important;
		align-items: start !important;
		gap: 26px 18px !important;
		width: 100%;
	}

	.footer-nav__column--about {
		grid-column: 1;
		grid-row: 1;
	}

	.footer-nav__column--main {
		grid-column: 2;
		grid-row: 1;
	}

	.footer-nav__column--other {
		grid-column: 1;
		grid-row: 2;
	}

	.footer-nav__column p,
	.footer-nav__column .wp-block-navigation-item,
	.footer-nav__column .wp-block-navigation-item__content {
		font-size: 13px !important;
		font-weight: 500 !important;
		line-height: 1.8;
		letter-spacing: 0.05em;
	}

	.footer-nav__column p {
		margin-top: 0;
		margin-bottom: 14px;
	}

	.footer-nav__column .wp-block-navigation {
		gap: 8px !important;
	}

}
