/**
 * 04_header.css (Monochrome Refresh)
 *
 * ヘッダー
 * plus-startup-demo-mono.html のスタイルを適用
 */

/* --- ヘッダー --- */
.site-header {
	padding: 15px 0;
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 1000;
	/* 白ベース + ブラーに変更 */
	background-color: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
	/* 罫線を追加 */
	border-bottom: 1px solid var(--color-border);
}
.site-header.header-scrolled {
	background-color: var(--color-bg-body);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* 影を薄く */
}
.site-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-branding {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0 16px;
}
.site-branding .site-title {
	font-family: var(--font-family-heading);
	font-size: 2.4rem;
	font-weight: 700;
	margin: 0;
	line-height: 1;
}
.site-branding .site-title a {
	color: var(--color-primary); /* チャコール */
	text-decoration: none;
}
.site-branding .site-title span {
	color: var(--color-text-light); /* グレー */
	font-weight: 600;
}

.company-note-header {
	font-size: 1.1rem;
	color: var(--color-text-light); /* グレー */
	line-height: 1.5;
	padding-top: 4px;
	max-width: 320px;
	flex-shrink: 1;
}


/* --- ヘッダーナビゲーション --- */
.main-navigation {
	display: none; /* モバイルファースト: デフォルトで非表示 */
}
@media (min-width: 992px) {
	.main-navigation {
		display: flex;
		align-items: center;
		gap: 28px;
	}
}

.nav-link {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-text-base); /* 濃いグレー */
	padding-bottom: 5px;
	position: relative;
	transition: color 0.3s ease;
	text-decoration: none;
}
.nav-link:hover {
	color: var(--color-primary); /* チャコール */
	text-decoration: none;
}
.nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--color-primary); /* チャコール */
	transition: width 0.3s ease-out; /* 少しキビキビと */
}
.nav-link:hover::after {
	width: 100%;
}

.nav-link.cta {
	background-color: var(--color-accent); /* チャコール */
	color: var(--color-text-reverse); /* 白 */
	padding: 8px 18px;
	border-radius: var(--border-radius-base);
	border: 2px solid var(--color-accent);
	transition: all 0.3s ease;
}
.nav-link.cta:hover {
	background-color: var(--color-accent-hover);
	border-color: var(--color-accent-hover);
	color: var(--color-text-reverse);
}
.nav-link.cta::after {
	display: none;
}

/* --- モバイルメニューボタン --- */
.mobile-menu-button {
	z-index: 101;
}
@media (min-width: 992px) {
	.mobile-menu-button {
		display: none;
	}
}
.mobile-menu-button button {
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.mobile-menu-button button span {
	display: block;
	width: 24px;
	height: 2px;
	background-color: var(--color-primary); /* チャコール */
	transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-menu-button button[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.mobile-menu-button button[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}
.mobile-menu-button button[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* --- モバイルナビゲーションパネル --- */
.mobile-navigation {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: var(--color-bg-body); /* 白背景 */
	z-index: 100;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 30px;
	transform: translateY(-100%);
	transition: transform 0.4s ease;
}
.mobile-navigation.is-open {
	transform: translateY(0);
}
.mobile-nav-link {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-text-base); /* 濃いグレー */
}
.mobile-nav-link.cta {
	margin-top: 20px;
	background-color: var(--color-accent); /* チャコール */
	color: var(--color-text-reverse); /* 白 */
	padding: 12px 24px;
	border-radius: var(--border-radius-base);
}

/* --- スキップリンク --- */
.skip-link {
	position: absolute;
	top: -100px; left: 0;
	background: var(--color-accent); /* チャコール */
	color: var(--color-text-reverse); /* 白 */
	padding: 10px;
	z-index: 9999;
	transition: top 0.3s ease;
}
.skip-link:focus {
	top: 0;
}

/* --- ヘッダー レスポンシブ --- */
/* (08_responsive.css から移動) */
@media (max-width: 991px) {
	.site-header .container {
		flex-wrap: wrap;
	}
	.site-branding {
		width: calc(100% - 60px);
	}
}

@media (max-width: 768px) {
	.site-header {
		padding: 10px 0;
	}
	.site-branding {
		width: 100%;
		justify-content: center;
		gap: 8px;
		margin-bottom: 10px;
		text-align: center;
	}
	.site-branding .site-title {
		font-size: 2.2rem;
	}
	.site-header .container {
		justify-content: center;
	}
	.company-note-header {
		text-align: center;
		width: 100%;
		max-width: 100%;
		font-size: 1.0rem;
	}
	.mobile-menu-button {
		position: absolute;
		top: 15px; /* (padding 10px + ( (2.2rem * 1.0) - 24px ) / 2) ... おおよそ */
		right: 15px;
	}
}

