/* サイトマップ (page-sitemap.php). No Figma design; follows the content pages (content-page.css). */
.sitemap,
.sitemap__intro {
	max-width: 1000px;
	margin-inline: auto;
}

.sitemap__intro {
	margin-bottom: 40px;
	color: var(--bp-sub);
	line-height: 1.9;
}

.sitemap ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sitemap a {
	text-decoration-color: transparent;
	transition: opacity .2s, text-decoration-color .2s;
}

.sitemap a:hover,
.sitemap a:focus-visible {
	text-decoration-color: currentColor;
}

.sitemap__list {
	border-top: 1px solid var(--bp-line);
}

/* The links fill their rows, so the whole row is clickable. */
.sitemap__item {
	border-bottom: 1px solid var(--bp-line);
}

.sitemap__link {
	display: block;
	padding: 22px 4px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
}

/* Second level: the model pages under Product, side by side. */
.sitemap__item > .sitemap__children {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px 32px;
	padding: 0 4px 18px;
}

.sitemap__child a {
	display: block;
	padding-block: 4px;
}

.sitemap__child > a {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
}

/* Third level and below: the product pages under each model. */
.sitemap__child > .sitemap__children {
	display: grid;
	margin-top: 6px;
	padding-left: 14px;
	border-left: 1px solid var(--bp-line);
}

.sitemap__child .sitemap__child > a {
	color: var(--bp-sub);
	font-size: 14px;
	font-weight: 400;
}

@media (max-width: 767px) {
	.sitemap__link {
		padding: 18px 0;
	}

	.sitemap__item > .sitemap__children {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 0 0 14px;
	}
}
