/* =========================================================
   YUMINEKO CORPORATE HEADER
   /assets/css/corporate-header.css
========================================================= */

:root {
	--ynch-ink: #24383A;
	--ynch-main: #8BBABB;
	--ynch-main-deep: #5E8F91;
	--ynch-dark: #365F61;
	--ynch-line: #DCE9E9;
	--ynch-white: #FFFFFF;
}


/* =========================================================
   HEADER BASE
========================================================= */

.l-header {
	border-top: 1px solid rgba(139,186,187,.35);
	background: rgba(255,255,255,.98);
	box-shadow: 0 2px 12px rgba(36,56,58,.055);
}

.l-header__inner {
	width: min(1380px, calc(100% - 24px));
	max-width: none;
	margin-inline: auto;
}


/* =========================================================
   COMPANY NAME / TEXT LOGO
========================================================= */

.l-header__logo {
	flex: 0 0 auto;
	width: auto !important;
	max-width: none !important;
	margin-right: 28px;
}

.c-headLogo {
	width: auto !important;
	max-width: none !important;
}

.c-headLogo.-txt .c-headLogo__link,
.c-headLogo__link {
	display: flex;
	align-items: center;
	width: auto;
	max-width: none;
	white-space: nowrap;
	color: var(--ynch-ink);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.02em;
	text-decoration: none;
}


/* =========================================================
   GLOBAL NAVIGATION
========================================================= */

.l-header__gnav {
	flex: 1 1 auto;
	min-width: 0;
}

.c-gnav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
}

.c-gnav > li {
	position: relative;
}

.c-gnav > li > a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	padding: 0 12px;
	color: var(--ynch-ink);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	text-decoration: none;
	transition:
		color .2s ease,
		background .2s ease;
}

.c-gnav > li > a:hover {
	color: var(--ynch-main-deep);
}


/* =========================================================
   NORMAL NAV UNDERLINE
========================================================= */

.c-gnav > li > a::after {
	content: "";
	position: absolute;
	right: 12px;
	bottom: 13px;
	left: 12px;
	height: 1px;
	background: var(--ynch-main);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .2s ease;
}

.c-gnav > li > a:hover::after {
	transform: scaleX(1);
}


/* =========================================================
   CONTACT BUTTON
========================================================= */

.c-gnav > li:last-child {
	display: flex;
	align-items: center;
	margin-left: 8px;
}

.c-gnav > li:last-child > a {
	width: auto !important;
	min-width: 112px !important;
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	margin: 0 !important;
	padding: 0 17px !important;
	border-radius: 999px;
	background: var(--ynch-main-deep);
	color: #FFFFFF !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 40px !important;
	box-shadow: 0 6px 16px rgba(94,143,145,.16);
	transition:
		background .2s ease,
		transform .2s ease,
		box-shadow .2s ease;
}

.c-gnav > li:last-child > a:hover {
	background: var(--ynch-dark);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(54,95,97,.20);
}

.c-gnav > li:last-child > a::after {
	display: none;
}


/* =========================================================
   DROPDOWN
========================================================= */

.c-gnav .sub-menu {
	min-width: 230px;
	padding: 10px;
	border: 1px solid var(--ynch-line);
	border-radius: 14px;
	background: #FFFFFF;
	box-shadow: 0 16px 40px rgba(36,56,58,.10);
}

.c-gnav .sub-menu li {
	margin: 0;
}

.c-gnav .sub-menu a {
	display: block;
	padding: 11px 13px;
	border-radius: 8px;
	color: var(--ynch-ink);
	font-size: 12px;
	line-height: 1.6;
	text-decoration: none;
	transition:
		background .2s ease,
		color .2s ease;
}

.c-gnav .sub-menu a:hover {
	background: #F3F8F8;
	color: var(--ynch-main-deep);
}


/* =========================================================
   MEDIUM DESKTOP
========================================================= */

@media (max-width: 1180px) and (min-width: 960px) {

	.c-headLogo.-txt .c-headLogo__link,
	.c-headLogo__link {
		font-size: 17px;
	}

	.l-header__logo {
		margin-right: 14px;
	}

	.c-gnav > li > a {
		padding-right: 8px;
		padding-left: 8px;
		font-size: 12px;
	}

	.c-gnav > li > a::after {
		right: 8px;
		left: 8px;
	}

	.c-gnav > li:last-child {
		margin-left: 4px;
	}

	.c-gnav > li:last-child > a {
		min-width: 104px !important;
		height: 38px !important;
		min-height: 38px !important;
		max-height: 38px !important;
		padding-right: 13px !important;
		padding-left: 13px !important;
		line-height: 38px !important;
	}

}


/* =========================================================
   MOBILE / TABLET
   SWELLのスマホメニューを活かす
========================================================= */

@media (max-width: 959px) {

	.l-header__inner {
		width: min(100% - 24px, 1180px);
	}

	.l-header__logo {
		max-width: calc(100% - 90px) !important;
		margin-right: 0;
	}

	.c-headLogo.-txt .c-headLogo__link,
	.c-headLogo__link {
		overflow: hidden;
		max-width: 100%;
		font-size: 15px;
		line-height: 1.2;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

	.c-headLogo.-txt .c-headLogo__link,
	.c-headLogo__link {
		font-size: 13px;
		letter-spacing: -.025em;
	}

}