/* ---------- settings ---------- */
:root {
	--root-font-size: 16;
	--rem: 1rem / var(--root-font-size);
	--sub-header-anchor-offset: 76px;
}

html {
	scroll-padding-top: var(--sub-header-anchor-offset);
}

[id] {
	scroll-margin-top: var(--sub-header-anchor-offset);
}

/* ---------- sub-header ---------- */
.sub-header {
	position: relative;
	z-index: 100;
	width: 100%;
	margin: 16px 0 0;
}

.sub-header.is-fixed {
	position: fixed;
	top: -16px;
	right: 0;
	left: 0;
	z-index: 1000;
	transform: translate3d(0, 0, 0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.sub-header-nav {
	width: 960px;
	margin-inline: auto;
	background: linear-gradient(0deg, #e4eff9 0%, #f2f7fb 100%);
	border-radius: 3px;
}

.sub-header.sub-header-broad .sub-header-nav {
	width: 1240px;
	max-width: none;
}

.sub-header-placeholder {
	display: block;
	width: 100%;
	height: 0;
}

.sub-header-list {
	display: flex;
	align-items: stretch;
	justify-content: center;
	max-width: calc(220px * 3);
	min-height: 60px;
	padding: 0;
	margin: 0 auto;
	list-style: none;
}

.sub-header-item {
	position: relative;
	display: flex;
	flex: 1 1 0;
	align-items: stretch;
	justify-content: center;
	min-width: 0;
}

.sub-header-item:not(:first-child)::before {
	position: absolute;
	top: 50%;
	left: 0;
	width: 1px;
	height: 18px;
	content: "";
	background-color: #333;
	translate: 0 -50%;
}

.sub-header-link[href] {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 8px;
	font-size: calc(16 * var(--rem));
	font-weight: 700;
	line-height: 1.5;
	color: #333;
	text-align: center;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.sub-header-link[href]:hover,
.sub-header-link[href]:focus-visible {
	background-color: rgb(255 255 255 / 50%);
}

.sub-header-link[href]::before {
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 50px;
	height: 3px;
	content: "";
	background-color: #005ab4;
	opacity: 0;
	translate: -50%;
}

.sub-header-link[href]:hover::before,
.sub-header-link[href]:focus-visible::before {
	opacity: 1;
}

@media (max-width: 767px) {
	#header:has(+ .sub-header) #headNav {
		border-bottom: none;
	}

	.sub-header {
		margin-top: 37px;
		margin-bottom: 15px;
	}

	.sub-header.is-fixed {
		top: -37px;
	}

	.sub-header-nav,
	.sub-header.sub-header-broad .sub-header-nav {
		width: calc((100% - 15px));
	}

	.sub-header-list {
		max-width: unset;
		min-height: 42px;
	}

	.sub-header-link[href] {
		padding-block: 6px;
		font-size: calc(14 * var(--rem));
	}

	.sub-header-link[href]::before {
		height: 2px;
	}
}

/* ---------- utility ---------- */
@media not all and (min-width: 768px) and (max-width: 1241px) {
	.utility-sub-header-tb {
		display: none;
	}
}

.utility-sub-header-pc {
	display: block;
}

.utility-sub-header-sp {
	display: none;
}

@media (max-width: 767px) {
	.utility-sub-header-pc {
		display: none;
	}

	.utility-sub-header-sp {
		display: block;
	}
}

@media (min-width: 768px) and (max-width: 1241px) {
	.utility-sub-header-tb {
		display: block;
	}
}
