/*
======================================
header section
======================================
*/
.header,
.header * {
	box-sizing: border-box;
}

.header {
	font-family: var(--main-font-family);
	left: 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 100;
}

.header__inner {
	align-items: center;
	display: flex;
	justify-content: space-between;
	padding-left: 24px;
	position: relative;
}

.header-logo {
	align-items: flex-start;
	display: flex;
	gap: 20px;
	padding-top: 12px;
}

.header-logo__image {
	display: block;
	width: auto;
}


.header-logo__image--primary{
	width: 224px;
}

.header-logo__image--secondary{
	width: 112px;
}

/*
======================================
drawer component
======================================
*/
.drawer {
	height: 100%;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	right: 0;
	top: 0;
	transition: opacity 0.3s ease;
	width: 100%;
	z-index: 200;
}

.drawer.is-open {
	opacity: 1;
	pointer-events: auto;
}

.drawer__toggle {
	background: var(--blue-header);
	border: none;
	border-radius: 0 0 0 10px;
	color: var(--white);
	cursor: pointer;
	display: grid;
	height: 84px;
	padding: 0;
	place-items: center;
	width: 84px;
}

.drawer__toggle-lines {
	display: grid;
}

.drawer__toggle-line {
	background: var(--white);
	border-radius: 2px;
	display: block;
	height: 2px;
	margin-bottom: 6px;
	width: 26px;
}

.drawer__toggle-line:last-child {
	margin-bottom: 0;
}

.drawer__toggle-text {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

.drawer__overlay {
	background: rgba(var(--black-rgb), 0.5);
	height: 100%;
	left: 0;
	opacity: 0;
	position: absolute;
	top: 0;
	transition: opacity 0.3s ease;
	width: 100%;
}

.drawer.is-open .drawer__overlay {
	opacity: 1;
}

.drawer__panel {
	background: var(--blue-header);
	border-radius: 0 0 0 20px;
	box-shadow: 0 16px 40px rgba(var(--black-rgb), 0.35);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow-y: auto;
	padding: 87px 40px 40px;
	position: absolute;
	right: 0;
	top: 0;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	width: 100%;
	z-index: 1;
	max-width:400px;
}

.drawer.is-open .drawer__panel {
	transform: translateX(0);
}

.drawer__close {
	background: transparent;
	border: none;
	color: var(--white);
	cursor: pointer;
	display: grid;
	height: 32px;
	place-items: center;
	position: absolute;
	right: 24px;
	top: 24px;
	width: 32px;
}

.drawer__close-text {
	font-size: var(--font-size-2xl);
	line-height: 1;
}

.drawer__nav {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: flex-start;
}

.drawer__list {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.drawer__item {
	margin: 0;
	padding: 0;
	width: 100%;
}

.drawer__link {
	align-items: center;
	border-left: 4px solid var(--orange-accent);
	border-radius: 0 4px 4px 0;
	color: var(--white);
	display: flex;
	font-size: var(--font-size-2xl);
	font-weight: var(--font-weight-bold);
	gap: 12px;
	justify-content: space-between;
	letter-spacing: 0.05em;
	line-height: 1.5;
	padding: 8px 12px 8px 16px;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.drawer__link:hover,
.drawer__link:focus {
	background-color: var(--white);
	color: var(--blue-header);
}

.drawer__link::before {
	content: none;
}

.drawer__link::after {
	background-image: url("../images/arrow_right.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 12px 10px;
	content: "";
	filter: brightness(0) invert(1);
	flex-shrink: 0;
	height: 10px;
	transition: filter 0.3s ease;
	width: 12px;
}

.drawer__link:hover::after,
.drawer__link:focus::after {
	filter: none;
}

.drawer__divider {
	display: none;
}

.drawer__sublist {
	display: flex;
	flex-direction: column;
	gap: 17px;
	list-style: none;
	padding: 40px 0 0;
	width: 179px;
}

.drawer__subitem {
	margin: 0;
	padding: 0;
}

.drawer__sublink {
	align-items: center;
	border-bottom: 1px solid var(--white);
	color: var(--white);
	display: flex;
	font-size: 14px;
	font-weight: var(--font-weight-medium);
	gap: 18px;
	justify-content: space-between;
	line-height: 1.6;
	padding: 4px 4px 8px;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.drawer__sublink:hover,
.drawer__sublink:focus {
	background-color: var(--white);
	border-bottom-color: var(--blue-header);
	border-radius: 4px 4px 0 0;
	color: var(--blue-header);
}

.drawer__sublink::after {
	background-image: url("../images/bring_forward.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 10px 10px;
	content: "";
	filter: brightness(0) invert(1);
	flex-shrink: 0;
	height: 10px;
	transition: filter 0.3s ease;
	width: 10px;
}

.drawer__sublink:hover::after,
.drawer__sublink:focus::after {
	filter: none;
}

/*
======================================
header - SP (max-width: 599px)
======================================
*/
@media screen and (max-width: 599px) {
	.header__inner {
		align-items:flex-start;
		padding-left: 16px;
	}

	.header-logo{
		padding-top: 8px;
	}

	.header-logo__image--primary{
		width: calc((100vw / 375) * 144);
		object-fit: contain;
	}

	.header-logo__image--secondary{
		width: calc((100vw / 375) * 71);
		object-fit: contain;
	}

	.drawer__toggle {
		height: 72px;
		width: 72px;
	}

	.drawer__panel {
		padding: 70px 24px 40px;
		max-width:none;
	}

	.drawer__list {
		align-items: flex-start;
		gap: 20px;
	}

	.drawer__link {
		font-size: var(--font-size-l);
		width: 100%;
	}

	.drawer__list .drawer__item:nth-last-child(-n+3) .drawer__link {
		width: 100%;
	}
}
