/* =========================================================
   header.css — 固定ヘッダー（Figma 1125:2708） / ハンバーガー（1125:2867）
   メガメニューのパネルは menu.css
   ========================================================= */
.c-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--header-h);
	background: var(--c-white);
	border-bottom: 1px solid #dce3ea;
}
.c-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 100%;
	padding: 0 40px;
}

/* ロゴ（画像＋社名） */
.c-header__logo {
	display: grid;
	flex: none;
	width: 121px;
	transition: opacity .2s var(--ease);
}
.c-header__logo:hover { opacity: .75; }
.c-header__logo img { width: 121px; height: 29px; }
.c-header__logo-name {
	margin: -5px 0 0 36px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.7;
	color: var(--c-corporate);
	white-space: nowrap;
}

/* ナビ */
.c-header__nav { height: 100%; }
.c-header__menu {
	display: flex;
	align-items: center;
	gap: 26px;
	height: 100%;
}
.c-header__item {
	display: flex;
	align-items: center;
	height: 100%;
}
.c-header__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 100%;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--c-text);
	white-space: nowrap;
	position: relative;
	transition: color .2s var(--ease);
}
.c-header__item.has-mega .c-header__link { gap: 10px; }
.c-header__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--c-blue);
	transform: scaleX(0);
	transition: transform .25s var(--ease);
}
.c-header__link:hover,
.c-header__item.is-open > .c-header__link { color: var(--c-blue); }
.c-header__link:hover::after,
.c-header__item.is-open > .c-header__link::after { transform: scaleX(1); }
.c-header__link--ext { text-decoration: underline; text-underline-position: from-font; }
.c-header__chevron { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.c-header__item.is-open .c-header__chevron { transform: rotate(180deg); }
.c-header__link:focus-visible { outline: 2px solid var(--c-blue); outline-offset: -2px; }

/* 電話＋お問い合わせ */
.c-header__cta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
}
.c-header__tel {
	display: flex;
	flex-direction: column;
	line-height: 1.5;
	white-space: nowrap;
}
.c-header__tel-label { font-size: 10px; color: var(--c-text-sub); }
.c-header__tel-num { font-size: 18px; font-weight: 700; color: var(--c-blue-dark); letter-spacing: .01em; }
.c-header__contact { width: 122px; padding-inline: 0; }

/* ハンバーガー（ヘッダー下に固定で追従） */
.c-hamburger {
	position: fixed;
	top: calc(var(--header-h) + 6px);
	right: 25px;
	z-index: 90;
	width: 66px;
	padding: 10px;
}
.c-hamburger__box {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	background: var(--c-white);
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(15, 44, 77, .08);
}
.c-hamburger:focus-visible { outline: none; }
.c-hamburger:focus-visible .c-hamburger__box { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.c-hamburger img { width: 20px; height: 14px; }
body.is-menu-open .c-hamburger { visibility: hidden; }

/* スクロール後はヘッダーを隠し、ハンバーガーだけ残す（header.js が body.is-header-hidden を付与） */
.c-header { transition: transform .3s var(--ease); }
.c-hamburger { transition: top .3s var(--ease); }
body.is-header-hidden .c-header { transform: translateY(-100%); pointer-events: none; }
@media (min-width: 1101px) {
	body.is-header-hidden .c-hamburger { top: 16px; } /* PC はヘッダー下から画面上部へ移動（1100px 以下は元々ヘッダー内の位置のまま） */
}
@media (max-width: 1100px) {
	/* ヘッダーが消えた後は背景に埋もれないよう影を付ける */
	.c-hamburger__box { transition: box-shadow .3s var(--ease); }
	body.is-header-hidden .c-hamburger__box { box-shadow: 0 2px 10px rgba(15, 44, 77, .12); }
}

@media (max-width: 1280px) {
	.c-header__inner { padding: 0 24px; }
	.c-header__menu { gap: 18px; }
}
@media (max-width: 1100px) {
	.c-header__nav, .c-header__tel { display: none; }
	.c-header__inner { padding-right: 96px; }
	.c-hamburger { top: 7px; right: 16px; z-index: 110; }
	.c-hamburger__box { box-shadow: none; border: 1px solid #dce3ea; }
}
/* ---------- SP（Figma Header 1192:1944, 375x65） ---------- */
@media (max-width: 767px) {
	:root { --header-h: 65px; }
	.c-header__inner { gap: 8px; padding: 0 51px 0 16px; }
	.c-header__logo { width: 123px; }
	.c-header__logo img { width: 123px; height: 29px; }
	.c-header__logo-name { margin: -6px 0 0 36px; font-size: 11px; }
	.c-header__cta { gap: 0; }
	.c-header__contact { width: 122px; height: 33px; padding: 0; font-size: 12px; }
	/* ハンバーガー: ヘッダー内右端 38x38 */
	.c-hamburger { top: 13.5px; right: 6px; z-index: 110; width: 38px; padding: 0; }
	.c-hamburger__box { height: 38px; border: 0; box-shadow: none; }
	.c-hamburger img { width: 18px; height: 13px; }
}
