/* 全ページ共通のヘッダー。Bootstrap のクラスには依存しない。 */

.site-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1030;
	background: rgba(255, 255, 255, 0.95);
	border-bottom: 1px solid #e6eef3;
	font-family: "Noto Sans JP", "source-han-sans-japanese", sans-serif;
	backdrop-filter: blur(8px);
}

.wrap>header:not(.site-header) {
	padding-top: 128px;
}

.site-header-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 28px 0 24px;
}

.site-logo {
	flex: 0 0 auto;
	line-height: 0;
}

.site-logo img {
	display: block;
	width: 148px;
	height: auto;
}

.site-tagline {
	margin: 0;
	color: #043652;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.45;
}

.site-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	padding-bottom: 8px;
}

.site-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 16px;
	border: 1px solid transparent;
	border-radius: 999px;
	color: #ffffff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}

.site-action-navy {
	background: #066499;
}

.site-action-navy:hover {
	background: #055683;
	color: #ffffff;
}

.site-action-orange {
	background: #f09a1a;
}

.site-action-orange:hover {
	background: #e08c10;
	color: #ffffff;
}

.site-action-orange span {
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.24);
	font-size: 0.7em;
	font-weight: 700;
}

.site-action-line {
	border-color: #c5d8e6;
	background: #ffffff;
	color: #066499;
}

.site-action-line:hover {
	border-color: #066499;
	color: #066499;
}

.site-action-line svg {
	display: block;
}

.site-menu-btn {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 36px;
	margin-left: auto;
	padding: 0;
	border: 1px solid #d5e3ec;
	border-radius: 8px;
	background: #ffffff;
	cursor: pointer;
}

.site-menu-icon,
.site-menu-icon::before,
.site-menu-icon::after {
	display: block;
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: #043652;
	content: "";
}

.site-menu-icon {
	position: relative;
}

.site-menu-icon::before,
.site-menu-icon::after {
	position: absolute;
	left: 0;
}

.site-menu-icon::before {
	top: -5px;
}

.site-menu-icon::after {
	top: 5px;
}

.site-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.site-nav ul {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
	margin: 0;
	padding: 0 20px 0 0;
	list-style: none;
}

.site-nav li {
	position: relative;
}

.site-nav a,
.site-nav button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 4px 10px;
	border: 0;
	background: transparent;
	color: #043652;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.site-nav a:hover,
.site-nav button:hover,
.site-nav a:focus,
.site-nav button:focus {
	color: #066499;
}

.site-nav .has-sub>button::after {
	width: 6px;
	height: 6px;
	margin-top: -2px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	content: "";
	transform: rotate(45deg);
}

.site-nav .has-sub>ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 5;
	min-width: 220px;
	margin: 0;
	padding: 8px 0;
	border: 1px solid #e6eef3;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 12px 24px rgba(4, 54, 82, 0.08);
}

.site-nav .has-sub:hover>ul,
.site-nav .has-sub:focus-within>ul,
.site-nav .has-sub.is-open>ul {
	display: block;
}

.site-nav .has-sub>ul a {
	display: block;
	padding: 8px 16px;
	font-weight: 500;
	white-space: nowrap;
}

#index [data-nav="service"]>a,
#function [data-nav="function"]>a,
#callquality [data-nav="quality"]>a,
#price [data-nav="price"]>a,
#vai [data-nav="ai"]>a,
#case [data-nav="case"]>a,
#casetop-p [data-nav="case"]>a,
#casetop-i [data-nav="case"]>a {
	color: #066499;
	box-shadow: inset 0 -3px 0 #066499;
}

.site-apply {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.site-apply-note {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	color: #c05600;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(3px);
	transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-apply:hover .site-apply-note,
.site-apply:focus-within .site-apply-note {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.site-action-orange:hover {
	box-shadow: 0 4px 14px -2px rgba(240, 154, 26, 0.35);
}

.site-tel {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 2px 0;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.site-tel-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #eef5fa;
	color: #066499;
}

.site-tel-icon svg {
	display: block;
	width: 12px;
	height: 12px;
	fill: currentColor;
}

.site-tel-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.site-tel-label {
	color: #5c7383;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.site-tel-number {
	color: #043652;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	transition: color 0.2s ease;
}

.site-tel:hover .site-tel-number {
	color: #066499;
}

@media (min-width: 992px) {
	.site-header-inner {
		max-width: 1280px;
		height: 76px;
		margin: 0 auto;
		padding: 0 28px;
		gap: 0;
	}

	.site-logo img {
		width: 132px;
	}

	.site-nav {
		margin-left: 40px;
		margin-right: auto;
	}

	.site-nav ul {
		justify-content: flex-start;
		gap: 32px;
		padding: 0;
	}

	.site-nav a {
		padding: 4px 0 7px;
		font-size: 13.5px;
		white-space: nowrap;
	}

	.site-actions {
		gap: 14px;
		margin-left: 20px;
		padding-bottom: 0;
	}

	.site-action {
		padding: 9px 16px;
		font-size: 12.5px;
	}
}

@media (max-width: 1199.98px) and (min-width: 992px) {
	.site-logo img {
		width: 116px;
	}

	.site-nav {
		margin-left: 22px;
	}

	.site-nav ul {
		gap: 16px;
	}

	.site-nav a {
		font-size: 12.5px;
	}

	.site-actions {
		gap: 10px;
		margin-left: 14px;
	}

	.site-action {
		padding: 8px 12px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.site-apply-note,
	.site-tel-number {
		transition: none;
	}
}

@media (max-width: 991.98px) {
	.wrap>header:not(.site-header) {
		padding-top: 76px;
	}

	.site-header-inner {
		padding: 8px 10px 8px 12px;
	}

	.site-logo img {
		width: 108px;
	}

	.site-tagline {
		flex: 1 1 auto;
		min-width: 0;
		overflow: hidden;
		font-size: 11px;
		letter-spacing: 0;
		line-height: 1.3;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.site-tagline br {
		display: none;
	}

	.site-actions {
		display: none;
	}

	.site-menu-btn {
		display: inline-flex;
		flex: 0 0 auto;
	}

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		max-height: calc(100vh - 56px);
		overflow: auto;
		padding: 8px 8px 16px;
		border-bottom: 1px solid #e6eef3;
		background: #ffffff;
		box-shadow: 0 12px 24px rgba(4, 54, 82, 0.08);
	}

	.site-header.is-open .site-nav {
		display: block;
	}

	.site-nav ul,
	.site-nav .has-sub>ul {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		padding: 0;
	}

	.site-nav .has-sub>ul {
		display: none;
		position: static;
		min-width: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.site-nav .has-sub.is-open>ul {
		display: flex;
	}

	.site-nav .has-sub:hover>ul,
	.site-nav .has-sub:focus-within>ul {
		display: none;
	}

	.site-nav .has-sub.is-open:hover>ul,
	.site-nav .has-sub.is-open:focus-within>ul {
		display: flex;
	}

	.site-nav a,
	.site-nav button {
		justify-content: flex-start;
		width: 100%;
		padding: 12px 12px;
		text-align: left;
	}

	.site-nav .has-sub>ul a {
		padding-left: 24px;
		color: #3d5160;
	}

	#index [data-nav="service"]>a,
	#function [data-nav="function"]>a,
	#callquality [data-nav="quality"]>a,
	#price [data-nav="price"]>a,
	#vai [data-nav="ai"]>a,
	#case [data-nav="case"]>a,
	#casetop-p [data-nav="case"]>a,
	#casetop-i [data-nav="case"]>a {
		box-shadow: none;
	}
}