/**
 * Footer logos — Figma Frame 91 (234:3538): 796 × 176.48
 * Top rule — ビューポート全幅 / #B8B8B8
 * Existing assets: footer/logo-600hd.png + brands/footer/*.png (Figma Component 1 / 77×60)
 */

.hds-footer {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 0 96px;
	box-sizing: border-box;
}

/* フッター上の区切り線（ビューポート全幅、左右 46px） */
.hds-footer::before {
	content: "";
	display: block;
	width: calc(100vw - 92px);
	height: 1px;
	margin-left: calc(50% - 50vw + 46px);
	background-color: #b8b8b8;
}

.hds-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 796px;
	margin: 0 auto;
	padding: 51px 24px 0;
	box-sizing: border-box;
}

.hds-footer__logos {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	width: 796px;
	height: 176.48px;
	max-width: 100%;
	box-sizing: border-box;
}

.hds-footer__logo {
	position: relative;
	display: block;
	width: 145.31px;
	height: 112.61px;
	flex: 0 0 112.61px;
	line-height: 0;
	text-decoration: none;
}

.hds-footer__logo img {
	position: absolute;
	left: 6.25%;
	top: 18.85px;
	display: block;
	width: 87.5%;
	height: auto;
	aspect-ratio: 1484 / 802;
	object-fit: contain;
}

.hds-footer__brands {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 583.12px;
	height: 60px;
	max-width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	box-sizing: border-box;
}

.hds-footer__brand {
	position: relative;
	margin: 0;
	width: 77.24px;
	height: 60px;
	flex: 0 0 77.24px;
}

.hds-footer__brand--planus {
	margin-left: 6px;
}

.hds-footer__brand--xis {
	margin-left: -4px;
}

.hds-footer__brand a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	overflow: hidden;
	line-height: 0;
	text-decoration: none;
}

.hds-footer__brand img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center center;
}

/* Figma Frame 61 (235:3562): 436 × 18 / Cormorant Garamond 18 / gap 20 */
.hds-footer__nav {
	margin-top: 80px;
	width: 436px;
	max-width: 100%;
}

.hds-footer__nav-list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 20px;
	width: 436px;
	height: 18px;
	max-width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	box-sizing: border-box;
}

.hds-footer__nav-item {
	margin: 0;
	flex: 0 0 auto;
}

.hds-footer__nav-item a {
	display: block;
	color: #333333;
	font-family: "Cormorant Garamond", "EB Garamond", "Noto Serif JP", serif;
	font-size: calc(18px * var(--hds-type-scale, 1));
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	white-space: nowrap;
}

.hds-footer__nav-item a:hover,
.hds-footer__nav-item a:focus {
	opacity: 0.65;
}

.hds-footer__legal {
	margin: 32px 0 0;
}

.hds-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hds-footer__legal-item {
	margin: 0;
}

.hds-footer__legal-item a {
	display: block;
	color: #333333;
	font-family: "Cormorant Garamond", "EB Garamond", "Noto Serif JP", serif;
	font-size: calc(10px * var(--hds-type-scale, 1));
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	white-space: nowrap;
}

.hds-footer__legal-item a:hover,
.hds-footer__legal-item a:focus {
	opacity: 0.65;
}

.hds-footer__copy {
	margin: 10px 0 0;
	color: #333333;
	font-family: "Cormorant Garamond", "EB Garamond", "Noto Serif JP", serif;
	font-size: calc(10px * var(--hds-type-scale, 1));
	font-weight: 400;
	line-height: 1;
	text-align: center;
	letter-spacing: 0;
}

@media screen and (max-width: 781px) {
	.hds-footer {
		padding: 0 0 64px;
	}

	.hds-footer__inner {
		padding: 40px 20px 0;
	}

	.hds-footer__logos {
		width: 100%;
		height: auto;
	}

	.hds-footer__brands {
		display: grid;
		grid-template-columns: repeat(3, 77.24px);
		justify-content: center;
		gap: 12px 20px;
		width: auto;
		height: auto;
		max-width: none;
	}

	.hds-footer__brand--planus,
	.hds-footer__brand--xis {
		margin-left: 0;
	}

	.hds-footer__brand {
		height: 60px;
	}

	.hds-footer__nav {
		margin-top: 48px;
		width: 100%;
	}

	.hds-footer__nav-list {
		flex-wrap: wrap;
		justify-content: center;
		gap: 12px 16px;
		width: 100%;
		height: auto;
	}

	.hds-footer__nav-item a {
		font-size: calc(16px * var(--hds-type-scale, 1));
	}

	.hds-footer::before {
		width: calc(100vw - 48px);
		margin-left: calc(50% - 50vw + 24px);
	}
}

/* collage-preview: drop the top rule and the gap above logos. */
body.hds-page-collage-preview .hds-footer::before {
	display: none;
}

body.hds-page-collage-preview .hds-footer__inner {
	padding-top: 24px;
}

body.hds-page-collage-preview .wp-site-blocks > .wp-block-template-part:has(.hds-footer),
body.hds-page-collage-preview .wp-site-blocks > footer.wp-block-template-part {
	margin-top: 0;
}

/* The PC home collage uses the same compact footer as its hover preview. */
@media screen and (min-width: 782px) {
	body.hds-page-interactive-collage .hds-footer::before {
		display: none;
	}

	body.hds-page-interactive-collage .hds-footer__inner {
		padding-top: 24px;
	}

	body.hds-page-interactive-collage .wp-site-blocks > .wp-block-template-part:has(.hds-footer),
	body.hds-page-interactive-collage .wp-site-blocks > footer.wp-block-template-part {
		margin-top: 0;
	}
}
