/* ==========================================================================
   ヘッダー専用スタイル
   ========================================================================== */

/* SWELLの追従ヘッダー（クローン）を非表示 */
#fix_header {
	display: none !important;
}

/* 親ラッパーの固定 */
.l-header-fixed-wrap {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	background-color: #fff;
}

/* 情報バーのスタイル */
.l-header__infobar {
	background-color: #f0f0f0;
}

/* ヘッダーのスタイル */
body #header {
	background-color: #fff;
}

/* 管理バー表示時の位置調整（親ラッパーをずらす） */
.admin-bar .l-header-fixed-wrap {
	top: 32px;
}

/* スマホ管理バー表示時の位置調整 */
@media screen and (max-width: 782px) {
	.admin-bar .l-header-fixed-wrap {
		top: 46px;
	}
}

.l-header__infobar-inner {
	display: flex;
	justify-content: center;
	padding-top: 8px;
	padding-bottom: 8px;
}

.l-header__infobar-text {
	font-size: 10px;
	font-weight: 500;
	color: #333;
	margin: 0;
	line-height: 1.2;
	text-align: center;
}


.l-header__main {
	border-bottom: 1px solid #e0e0e0;
}

.l-header__mainInner.l-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 32px;
	gap: 24px;
}

/* ── 左：キャッチフレーズ ── */
.l-header__logo {
	flex: 1;
}

.l-header__catchphrase-link {
	font-size: 28px;
	font-weight: 500;
	color: #000;
	text-decoration: none;
	line-height: 1.3;
	display: block;
}

.l-header__catchphrase-link:focus-visible {
	outline: 2px solid var(--color_main);
	outline-offset: 2px;
}

/* ── 右側：電話番号・お問い合わせ ── */
.l-header__contact {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

.l-header__contact-info {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.l-header__contact-lead {
	font-size: 10px;
	color: #333;
	margin: 0;
}

.l-header__tel {
	display: flex;
	align-items: baseline;
	gap: 4px;
	text-decoration: none;
	font-weight: 700;
	line-height: 1;
	transition: opacity 0.3s ease;
}

@media (hover: hover) {

	.l-header__tel:hover {
		opacity: 0.7;
	}
}

.l-header__tel:focus-visible {
	outline: 2px solid var(--color_main);
	outline-offset: 4px;
}

.l-header__tel-label {
	font-size: 16px;
	color: #1a1a1a;
	text-decoration: none;
	display: inline-block;
}

.l-header__tel-number {
	font-size: 20px;
	color: var(--color_main);
	text-decoration: underline;
	letter-spacing: 0.02em;
}

@media (hover: hover) {

	.l-header__tel:hover .l-header__tel-number {
		text-decoration: none;
	}
}

.l-header__hours {
	font-size: 10px;
	color: #666;
	margin: 0;
	line-height: 1.5;
	text-align: right;
}

.l-header__contact-btn {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border: 1.5px solid #1a1a1a;
	color: #1a1a1a;
	font-size: 16px;
	font-weight: 700;
	width: 128px;
	height: auto;
	padding-top: 10px;
	padding-bottom: 10px;
	text-decoration: none;
	letter-spacing: 0.05em;
	box-sizing: border-box;
	transition: background-color 0.3s ease, color 0.3s ease;
}

@media (hover: hover) {

	.l-header__contact-btn:hover {
		background-color: var(--color_main);
		color: #fff;
		border-color: var(--color_main);
	}
}

.l-header__contact-btn:focus-visible {
	outline: 2px solid var(--color_main);
	outline-offset: 2px;
}

.l-header__contact-btn-icon {
	display: block;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

/* ── グローバルナビ ── */
body #header #gnav.l-header__gnav {
	background-color: var(--color_main);
	border-top: none;
	border-bottom: none;
}

body #header #gnav.l-header__gnav .c-gnav {
	display: flex;
	justify-content: center;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

body #header #gnav.l-header__gnav .c-gnav>li {
	margin: 0;
	padding: 0;
}

body #header #gnav.l-header__gnav .c-gnav>li>a {
	color: #fff;
	font-weight: 500;
	font-size: 14px;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	position: relative;
	transition: opacity 0.3s ease;
}

/* SWELLの下線インジケータのリセット */
body #header #gnav.l-header__gnav .c-gnav>li>a::after {
	display: none;
	content: none;
}

/* ホバー時の下線（中央から広がる） */
body #header #gnav.l-header__gnav .c-gnav>li>a::before {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 10px;
	width: 40px;
	height: 1px;
	background-color: #fff;
	transform: translateX(-50%) scaleX(0);
	transform-origin: center;
	transition: transform 0.3s ease;
	pointer-events: none;
}

@media (hover: hover) {

	body #header #gnav.l-header__gnav .c-gnav>li>a:hover::before,
	body #header #gnav.l-header__gnav .c-gnav>li>a:focus-visible::before {
		transform: translateX(-50%) scaleX(1);
	}
}

body #header #gnav.l-header__gnav .c-gnav>li>a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

/* ==========================================================================
   レスポンシブ（SP: ~1039px）
   ========================================================================== */
@media screen and (max-width: 1039px) {

	.l-header__mainInner.l-container {
		padding: 14px 16px;
		gap: 16px;
	}

	.l-header__logo {
		order: 1;
		flex: 1;
		text-align: left;
		padding: 0;
		margin: 0;
	}

	.l-header__catchphrase-link {
		font-size: 18px;
		text-align: left;
	}

	/* 1039px以下では縮小して表示 */
	.l-header__contact {
		order: 2;
		display: flex;
		gap: 12px;
	}

	.l-header__tel-label {
		font-size: 12px;
	}

	.l-header__tel-number {
		font-size: 16px;
	}

	.l-header__hours {
		font-size: 9px;
	}

	.l-header__contact-btn {
		width: 100px;
		font-size: 12px;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.l-header__contact-btn-icon {
		width: 20px;
		height: 20px;
	}

	/* グローバルナビを非表示 */
	body #header #gnav.l-header__gnav {
		display: none;
	}

	/* SP用メニューボタンを表示（カスタム/検索ボタンは非表示） */
	body #header .l-header__menuBtn.sp_ {
		order: 3;
		display: block !important;
		margin-right: -16px;
	}

	/* 開いている時にハンバーガーメニューアイコンを階段状の3本線にカスタマイズ */
	html[data-spmenu="opened"] body #header .l-header__menuBtn.sp_ .icon-menu-thin {
		display: inline-block;
		width: 24px;
		height: 16px;
		background:
			linear-gradient(currentColor, currentColor) no-repeat 0 0 / 100% 2px,
			linear-gradient(currentColor, currentColor) no-repeat 0 7px / 70% 2px,
			linear-gradient(currentColor, currentColor) no-repeat 0 14px / 40% 2px;
		font-family: inherit !important;
	}

	html[data-spmenu="opened"] body #header .l-header__menuBtn.sp_ .icon-menu-thin::before {
		content: none !important;
	}

	body #header .l-header__customBtn.sp_ {
		display: none;
	}

	.l-header__infobar-inner {
		justify-content: flex-start;
	}

	.l-header__infobar-text {
		text-align: left;
	}

}

/* スマホサイズ（~768px） */
@media screen and (max-width: 768px) {

	.l-header__mainInner.l-container {
		padding: 0 16px;
	}

	.l-header__contact {
		display: none;
		/* スマホ表示時は電話番号とボタンを非表示に */
	}

	.l-header__catchphrase-link {
		font-size: 16px;
	}

}
