/**
 * 神工ボランティア ヘッダーロゴ・主要ページナビ
 */

#site-header .site-header-logo.shinko-header-logo {
	width: 100%;
	margin: 0;
	padding: 14px max(12px, 2vw) 10px;
	text-align: center;
}

#site-header .site-header-logo.shinko-header-logo::after {
	width: 64px;
	height: 3px;
	margin: 8px auto 0;
}

#site-header .shinko-header-logo-link {
	display: inline-flex !important;
	width: auto !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	align-items: center;
	justify-content: center;
	line-height: 1;
	text-decoration: none;
}

#site-header .shinko-header-logo-image {
	display: block;
	width: auto;
	max-width: min(100%, 600px);
	max-height: none;
	height: auto;
	object-fit: contain;
}

#site-header .shinko-header-logo-fallback {
	color: #143c72;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
}

.shinko-header-navigation {
	width: 100%;
	border-top: 1px solid rgb(20 60 114 / 18%);
	border-bottom: 1px solid rgb(20 60 114 / 18%);
	background: #fff;
}

.shinko-header-navigation__list {
	display: flex;
	width: min(100%, 1120px);
	margin: 0 auto;
	padding: 6px 12px;
	align-items: stretch;
	justify-content: center;
	gap: clamp(4px, 1vw, 14px);
	list-style: none;
	flex-wrap: wrap;
}

.shinko-header-navigation__item,
.shinko-header-navigation .menu-item {
	margin: 0;
	padding: 0;
}

.shinko-header-navigation a {
	position: relative;
	display: flex;
	min-height: 48px;
	padding: 8px clamp(10px, 1.4vw, 18px);
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	color: #143c72;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition:
		background-color 160ms ease,
		color 160ms ease;
}

.shinko-header-navigation a:hover {
	background: #edf3fa;
	color: #0d294f;
	text-decoration: none;
}

.shinko-header-navigation a:focus-visible {
	z-index: 1;
	outline: 3px solid #f3b61f;
	outline-offset: 2px;
}

.shinko-header-navigation__item.is-current > a,
.shinko-header-navigation .current-menu-item > a,
.shinko-header-navigation .current-menu-ancestor > a,
.shinko-header-navigation a[aria-current="page"] {
	background: #143c72;
	color: #fff;
}

@media (min-width: 1200px) {
	#site-header #site-header-container.site-header-container {
		display: flex;
		width: min(100%, 1440px);
		min-height: 88px;
		margin: 0 auto;
		padding: 8px clamp(20px, 3vw, 48px);
		align-items: center;
		flex-direction: row;
		gap: clamp(20px, 2.5vw, 40px);
	}

	#site-header .site-header-logo.shinko-header-logo {
		width: clamp(240px, 22vw, 300px);
		padding: 0;
		flex: 0 0 auto;
	}

	#site-header .site-header-logo.shinko-header-logo::after {
		display: none;
	}

	#site-header .shinko-header-logo-image {
		width: 100%;
		max-width: 300px;
		height: auto;
	}

	#site-header .shinko-header-navigation {
		width: auto;
		min-width: 0;
		border-top: 0;
		border-bottom: 0;
		flex: 1 1 auto;
	}

	#site-header .shinko-header-navigation__list {
		width: 100%;
		margin: 0;
		padding: 0;
		justify-content: flex-end;
		gap: clamp(2px, 0.45vw, 7px);
		flex-wrap: nowrap;
	}

	#site-header .shinko-header-navigation a {
		min-height: 48px;
		padding: 8px clamp(7px, 0.75vw, 12px);
		font-size: clamp(0.75rem, 0.78vw, 0.875rem);
		white-space: nowrap;
	}
}

@media (max-width: 991.98px) {
	#site-header .shinko-header-logo-image {
		max-width: min(100%, 480px);
	}
}

@media (max-width: 767.98px) {
	#site-header .site-header-logo.shinko-header-logo {
		padding: 10px 12px 8px;
	}

	#site-header .site-header-logo.shinko-header-logo::after {
		width: 48px;
		margin-top: 6px;
	}

	#site-header .shinko-header-logo-image {
		width: min(100%, 240px);
		max-width: 100%;
		height: auto;
	}

	.shinko-header-navigation__list {
		display: grid;
		width: 100%;
		padding: 6px;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 4px;
	}

	.shinko-header-navigation a {
		min-height: 58px;
		padding: 7px 4px;
		font-size: clamp(0.8125rem, 3.5vw, 0.9375rem);
		overflow-wrap: anywhere;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shinko-header-navigation a {
		transition: none;
	}
}
