@charset "UTF-8";
/* ヘッダー + SP ドロワー — Figma PC `130:3057` / SP `168:12290` / ドロワー `127:2336` */

.site-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 50;
	height: var(--header-h);
	background: #fff;
}

.site-header.is-scrolled {
	box-shadow: var(--shadow-header);
}

/* PC 1440 での実測: ロゴ 16–237 / 本文 291–1021 / 言語 1103–1140 / CTA 1203–1425 */
.site-header__inner {
	display: flex;
	gap: 50px;
	align-items: center;
	height: 100%;
	padding-left: 16px;
}

.site-header__logo {
	display: flex;
	flex: none;
	align-items: center;
	width: 221px;
}

.site-header__main {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-self: stretch;
	min-width: 0;
	padding-top: 12px;
}

.site-header__tagline {
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
	color: #6996cb;
	white-space: nowrap;
}

/* タグラインとナビの間の罫線（Figma 実測 #D3E1EF / 1px / y=33） */
.site-header__main::after {
	content: "";
	order: 1;
	height: 1px;
	margin-top: 7px;
	background: #d3e1ef;
}

.global-nav {
	order: 2;
	align-self: flex-end;
	margin-top: 22px;
}

.global-nav__list {
	display: flex;
	gap: 20px;
	align-items: center;
}

.global-nav__link {
	font-size: var(--fs-small);
	line-height: 1.2;
	color: var(--c-heading);
	white-space: nowrap;
	transition: color 0.2s ease;
}

.global-nav__link:hover {
	color: var(--c-primary);
}

/* --- 言語切替: 未公開の言語（EN）は非活性表示 --- */

.lang-switch__item.is-disabled {
	cursor: default;
	opacity: 0.55;
}

.lang-switch__soon {
	font-size: 0.85em;
	white-space: nowrap;
}

/* --- 言語切替（ヘッダー） --- */

.lang-switch--header {
	display: flex;
	flex: none;
	gap: 11px;
	align-items: center;
	margin-left: 28px;
	font-size: var(--fs-small);
	line-height: 1.2;
}

.lang-switch--header .lang-switch__item {
	color: #adb4c0;
}

.lang-switch--header .is-current {
	font-weight: 700;
	color: var(--c-heading);
}

/* --- PC の「お問い合わせ」ボタン（背景は書き出した画像） --- */

.site-header__cta {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 222px;
	height: 78px;
	margin-left: 7px;
	margin-right: 15px;
	font-size: var(--fs-body);
	font-weight: 500;
	color: #fff;
	background-image: url("../img/header-cta-bg.png");
	background-position: center;
	background-size: cover;
}

/* --- SP 専用要素 --- */

.site-header__sp-contact,
.drawer-toggle {
	display: none;
}

@media (max-width: 1250px) {
	.site-header__inner {
		gap: 20px;
	}

	
	.lang-switch--header {
		margin-left: 0;
	}

	.site-header__cta {
		padding: 0 20px;
		max-width: 140px;
		margin-left: 0;
	}

	.global-nav__list {
		gap: 15px;
	}
}

@media ((max-width: 1023px) and (min-width: 768px)) {
	.global-nav__link {
		font-size: var(--fs-tag);
	}

	.site-header__cta {
        max-width: 120px;
    }
}

@media ((max-width: 890px) and (min-width: 768px)) {
	.site-header__logo {
		width: 180px;
	}
	
	.global-nav {
		margin-top: 5px;
		width: 100%;
	}

	.global-nav__list {
		display: grid;
		grid-template-columns: auto auto auto;
		grid-template-rows: repeat(2, 1fr);
		column-gap: 15px;
  		row-gap: 0;
	}
}

@media (max-width: 767px) {
	.site-header__inner {
		gap: 0;
		padding-left: 20px;
	}

	.site-header__logo {
		width: 157px;
	}

	.site-header__logo img {
		width: 100%;
		height: auto;
	}

	/* PC 専用の要素は SP では出さない */
	.site-header__main,
	.lang-switch--header,
	.site-header__cta {
		display: none;
	}

	/* メール CTA は右のハンバーガーの手前に置く（Figma x=233 / w=60） */
	.site-header__sp-contact {
		display: flex;
		flex: none;
		flex-direction: column;
		gap: 6px;
		align-items: center;
		width: 60px;
		margin-left: auto;
		font-size: 10px;
		line-height: 1.2;
		color: #005dbd;
	}

	.site-header__sp-contact img {
		width: 28px;
		height: 28px;
	}

	/* 右端の青い正方形 70x70 */
	.drawer-toggle {
		display: flex;
		flex: none;
		align-items: center;
		justify-content: center;
		width: 70px;
		height: 70px;
		margin-left: 12px;
		background: #005dbd;
	}

	.drawer-toggle__open {
		width: 33px;
		height: 23px;
	}

	.drawer-toggle__close {
		display: none;
		width: 24px;
		height: 24px;
	}

	.drawer-toggle[aria-expanded="true"] .drawer-toggle__open {
		display: none;
	}

	.drawer-toggle[aria-expanded="true"] .drawer-toggle__close {
		display: block;
	}
}

/* --------------------------------------------------------------------------
   SP ドロワー
   -------------------------------------------------------------------------- */

.drawer {
	position: fixed;
	top: var(--header-h);
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 40;
	overflow-y: auto;
	overscroll-behavior: contain;
	color: #fff;
	background: var(--c-navy);
}

.drawer__inner {
	padding-bottom: 40px;
}

/* --- 言語切替（ドロワー） --- */

.lang-switch--drawer {
	display: flex;
	gap: 25px;
	justify-content: space-between;
	width: 335px;
	/* ヘッダー下端 70 → ボタン 104 */
	margin: 34px auto 0;
}

.lang-switch--drawer .lang-switch__item {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding: 10px 14px;
	font-size: var(--fs-lead);
	line-height: 1.2;
	color: #fff;
	border: 1px solid #2e5f87;
	border-radius: 5px;
}

.lang-switch--drawer .is-current {
	background: #234a72;
	border-color: transparent;
}

/* 「English」だけ等幅 */
.lang-switch--drawer .lang-switch__item:not(.is-current) {
	font-family: var(--font-mono);
}

/* --- ドロワーのナビ --- */

.drawer__nav {
	/* ボタン下端 146 → ナビ 179 */
	margin-top: 33px;
	/* Figma 上でナビ一式に 60% の不透明度が掛かっている */
	opacity: 0.6;
}

.drawer-nav__heading {
	margin: 0;
}

.drawer-nav__toggle,
.drawer-nav__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding-block: 12px;
	border-bottom: 1px solid #fff;
}

.drawer-nav__toggle {
	padding-inline: 20px;
	font-family: var(--font-mono);
	font-size: var(--fs-small);
	font-weight: 700;
	line-height: 1.7;
	letter-spacing: 2.8px;
	color: #fff;
	text-transform: uppercase;
}

.drawer-nav__link {
	/* 子項目は 36px 字下げ */
	padding-left: 36px;
	padding-right: 20px;
	font-size: var(--fs-small);
	line-height: 1.7;
	color: #fff;
}

/* 開いているときは横棒 1 本、閉じているときは縦棒を足して + にする */
.drawer-nav__icon {
	position: relative;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
}

.drawer-nav__icon img {
	position: absolute;
	width: 14px;
	height: 2px;
}

.drawer-nav__icon-bar {
	transform: rotate(90deg);
}

.drawer-nav__toggle[aria-expanded="true"] .drawer-nav__icon-bar {
	display: none;
}

.drawer__copyright {
	margin-top: 32px;
	font-size: 12px;
	line-height: 1.7;
	color: #fff;
	text-align: center;
	opacity: 0.6;
}

/* ドロワーは SP でしか出さない */
@media (min-width: 768px) {
	.drawer {
		display: none !important;
	}
}
