@charset "UTF-8";

/*
 * Shared site header styles.
 * Kept independent from base.css so standalone landing pages can use the
 * global header without inheriting the site's global reset and layout rules.
 */
.c-header,
.c-header *,
.c-header *::before,
.c-header *::after {
	box-sizing: border-box;
}

.c-header :where(ul, ol) {
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-header :where(a) {
	color: inherit;
	text-decoration: none;
}

.c-header :where(img) {
	max-width: 100%;
	height: auto;
}

body.not-scroll {
	overflow: hidden;
}

.c-header {
	--header-red: #e50012;
	--header-black: #222;

	width: 100%;
	position: fixed;
	top: 0;
	right: auto;
	left: 0;
	z-index: 9999;
	margin: 0;
	padding: 0;
	background: transparent;
	transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.c-header.is-scrolled {
	background: #fff;
	box-shadow: 0 3px 18px rgba(0, 0, 0, 0.08);
}

.c-header__inner {
	width: 100%;
	display: flex;
	align-items: center;
	min-height: 120px;
	padding: 0 clamp(15px, 1.765vw, 30px);
	justify-content: flex-start;
	position: relative;
	z-index: 1002;
}

.c-header__logo {
	flex: 0 0 auto;
	width: clamp(194px, 18.294vw, 311px);
}

.c-header__logo a {
	display: block;
}
.c-header__logo-heading {
	margin: 0;
	padding: 0;
	line-height: 1;
}

.c-header__logo picture,
.c-header-drawer__logo picture {
	display: block;
}

.c-header__logo img,
.c-header-drawer__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.c-header__logo svg,
.c-header__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.c-header__nav {
	flex: 1;
	padding-left: clamp(30px, 3.529vw, 60px);
}

.c-header__nav-list {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: clamp(20px, 2.059vw, 35px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-header__nav-item {
	position: relative;
	cursor: pointer;
}

.c-header__nav-link {
	display: flex;
	align-items: center;
	min-height: 120px;
	color: var(--header-black);
	font-size: clamp(14px, 1vw, 17px);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
	transition: color 0.2s ease;
	cursor: pointer;
}
.c-header__nav-item:hover > .c-header__nav-link,
.c-header__nav-item.is-current > .c-header__nav-link {
	color: var(--header-red);
}

.c-header__dropdown {
	position: absolute;
	top: calc(100% - 32px);
	left: 50%;
	width: max-content;
	min-width: 200px;
	background: var(--header-red);
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
	transform: translateX(-50%) translateY(8px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	overflow: hidden;
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
	cursor: pointer;
}

.c-header__nav-item:hover .c-header__dropdown,
.c-header__nav-item:focus-within .c-header__dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.c-header__dropdown-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-header__dropdown-list li + li {
	border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.c-header__dropdown-list a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	padding: 14px 18px;
	color: #fff;
	font-size: clamp(13px, 0.882vw, 15px);
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	letter-spacing: 0.06em;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.c-header__dropdown-list a:hover {
	background: #fff;
	color: var(--header-red);
}

.c-header__contact {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: clamp(150px, 11.765vw, 200px);
	height: clamp(50px, 3.529vw, 60px);
	margin-left: 0;
	border-radius: 999px;
	background: var(--header-red);
	border: 1px solid var(--header-red);
	color: #fff;
	font-size: clamp(14px, 1vw, 17px);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
	justify-self: flex-end;
}

.c-header__contact:hover {
	background: #fff;
	color: var(--header-red);
}

.c-header__menu-btn,
.c-header-drawer {
	display: none;
}

@media (max-width: 1000px) {
	.c-header-drawer__body,
	.c-header-sub {
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.c-header-drawer__body::-webkit-scrollbar,
	.c-header-sub::-webkit-scrollbar {
		display: none;
	}

	.c-header {
		background: transparent;
		box-shadow: none;
	}

	.c-header.is-scrolled,
	.c-header.is-open {
		background: transparent;
		box-shadow: none;
	}

	.c-header__inner {
		position: relative;
		z-index: 10010;
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 70px;
		padding: 0;
		background: #fff;
	}

	.c-header__logo {
		display: flex;
		align-items: center;
		padding-left: clamp(15px, 1.765vw, 30px);
	}

	.c-header__logo a {
		display: block;
		width: 100%;
	}

	.c-header__logo svg,
	.c-header__logo img {
		display: block;
		width: 100%;
		max-width: 250px;
		height: auto;
	}

	.c-header__nav,
	.c-header__contact {
		display: none;
	}

	.c-header__menu-btn {
		position: relative;
		z-index: 10001;
		display: flex;
		align-items: flex-end;
		justify-content: center;
		flex: 0 0 70px;
		flex-direction: column;
		gap: 8px;
		width: 70px;
		height: 70px;
		padding-inline: 17px;
		border: 0;
		background: var(--header-red);
		cursor: pointer;
	}

	.c-header__menu-btn span {
		display: block;
		width: 36px;
		height: 3px;
		border-radius: 999px;
		background: #fff;
		transition: transform 0.25s ease, opacity 0.25s ease;
	}
	.c-header__menu-btn span:nth-child(2) {
		width: 28px;
	}

	.c-header.is-open .c-header__menu-btn span:nth-child(1) {
		transform: translateY(11px) rotate(45deg);
	}

	.c-header.is-open .c-header__menu-btn span:nth-child(2) {
		opacity: 0;
	}

	.c-header.is-open .c-header__menu-btn span:nth-child(3) {
		transform: translateY(-12px) rotate(-45deg);
	}

	.c-header-drawer {
		position: fixed;
		inset: 0;
		z-index: 10000;
		display: block;
		background: transparent;
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
		overflow: hidden;
		transition: opacity 0.25s ease, visibility 0.25s ease;
	}

	.c-header-drawer.is-open {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
	}

	.c-header-drawer__body {
		position: absolute;
		top: 70px;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1;
		background: var(--header-red);
		padding-block: clamp(15px, 1.765vw, 30px) clamp(88px, 10.353vw, 176px);
		padding-inline: clamp(40px, 4.706vw, 80px);
		transform: translateX(100%);
		transition: transform 0.35s ease;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		max-width: 430px;
		margin-left: auto;
	}

	.c-header-drawer.is-open .c-header-drawer__body {
		transform: translateX(0);
	}

	.c-header-drawer__list {
		margin: 0;
		padding: 0;
		list-style: none;
		margin-bottom: 35px;
	}

	.c-header-drawer__item {
		border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	}

	.c-header-drawer__link {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 60px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #fff;
		font: inherit;
		font-size: clamp(24px, 4vw, 30px);
		font-weight: 600;
		line-height: 1;
		letter-spacing: 0.08em;
		text-align: center;
		text-decoration: none;
		cursor: pointer;
		appearance: none;
	}

	.c-header-drawer__contact {
		display: flex;
		align-items: center;
		justify-content: center;
		width: min(240px, 78%);
		height: 60px;
		border-radius: 999px;
		background: #111;
		color: #fff;
		font-size: 24px;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-decoration: none;
		margin-inline: auto;
	}

	.c-header-sub {
		position: absolute;
		top: 70px;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 3;
		background: var(--header-red);
		visibility: hidden;
		transform: translateX(100%);
		transition: transform 0.32s ease, visibility 0.32s ease;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		max-width: 430px;
		margin-left: auto;
	}

	.c-header-sub.is-open {
		visibility: visible;
		transform: translateX(0);
	}

	.c-header-sub__inner {
		padding-block: clamp(15px, 1.765vw, 30px) clamp(88px, 10.353vw, 176px);
		padding-inline: clamp(40px, 4.706vw, 80px);
	}

	.c-header-sub__list {
		margin: 0;
		padding: 0;
		list-style: none;
		margin-bottom: 20px;
	}

	.c-header-sub__list li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	}

	.c-header-sub__list a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 60px;
		padding: 0 10px;
		color: #fff;
		font-size: 18px;
		font-weight: 600;
		line-height: 1;
		letter-spacing: 0.08em;
		text-align: center;
		text-decoration: none;
	}

	.c-header-sub__back {
		display: inline-flex;
		align-items: center;
		gap: 12px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #fff;
		font-size: 16px;
		font-weight: 700;
		letter-spacing: 0.08em;
		cursor: pointer;
		appearance: none;
	}

	.c-header-sub__back span {
		display: block;
		width: 13px;
		height: 13px;
		border-left: 3px solid #111;
		border-bottom: 3px solid #111;
		transform: rotate(45deg);
	}
}

@media (max-width: 430px) {
	.c-header-drawer.is-open {
		background: var(--header-red);
	}
}

