/**
 * 共通ヘッダー用 CSS（rakuda-top-agent-more-demo.html 準拠）
 *
 * 参考HTMLは同じ要素に .wrap と .head を付け、後半で値を上書きしている。
 * ここはその最終計算値。style.css の body / header / nav / .tel / img は #header で打ち消す。
 */

#header {
	--line: #ece8e1;
	--ink: #17181d;
	--sub: #565c72;
	--body: 'Zen Kaku Gothic New', sans-serif;
	--num: 'Outfit', sans-serif;
	--orange: #f3a246;
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-family: var(--body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.9;
	letter-spacing: normal;
	font-feature-settings: normal;
	-webkit-font-smoothing: antialiased;
}

#header *,
#header *::before,
#header *::after {
	letter-spacing: normal;
	font-feature-settings: normal;
	box-sizing: border-box;
}

#header a {
	color: inherit;
	text-decoration: none;
	background-color: transparent;
}

#header a:focus-visible,
#header button:focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 3px;
	border-radius: 6px;
}

#header .head {
	max-width: calc(1280px + 24px * 2);
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-grow: 1;
}

@media (max-width: 1140px) {
	#header .head {
		padding-left: 24px;
		padding-right: 24px;
	}
}

#header .nav-wrapper {
	display: flex;
	align-items: center;
	gap: 5px 25px;
	flex-wrap: wrap;
	justify-content: flex-end;
	flex-grow: 1;
}

#header .header-tel-wrapper {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

#header .brand {
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: 0;
	flex: none;
}

#header .brand img {
	height: 34px;
	width: auto;
	max-width: none;
	display: block;
}

#header .head nav {
	display: flex;
	flex-wrap: nowrap;
	gap: 22px;
	font-size: 14px;
	color: #454b63;
	font-weight: 700;
	white-space: nowrap;
	background: transparent;
	position: static;
	z-index: auto;
	line-height: inherit;
}

@media (max-width: 820px) {
	#header .head nav {
		display: none !important;
	}
}

@media (max-width: 1180px) and (min-width: 821px) {
	#header .head nav {
		gap: 14px;
		font-size: 13px;
	}
}

#header .head .tel {
	margin-left: auto;
	margin-right: 0;
	position: static;
	text-align: right;
	font-size: 12px;
	font-weight: 400;
	color: var(--sub);
	line-height: 1.4;
	flex: none;
	white-space: nowrap;
}

@media (max-width: 820px) {
	#header .head .tel {
		display: none !important;
	}
}

#header .head .tel::after {
	content: none;
	display: none;
	background: none;
	width: 0;
	height: 0;
}

#header .head .tel a {
	font-family: var(--num);
	font-weight: 700;
	font-size: 17px;
	color: var(--ink);
	display: block;
	line-height: 1.4;
	margin: 0;
}

@media (max-width: 1180px) and (min-width: 821px) {
	#header .head .tel a {
		font-size: 15px;
	}
}

#header .head .tel span {
	display: block;
	font-size: 11.5px;
	font-weight: 400;
	color: #565c72;
	line-height: 1.4;
	margin: 0;
}

#header .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 700;
	line-height: 1.4;
	border-radius: 13px;
	cursor: pointer;
	transition:
		transform 0.15s,
		box-shadow 0.15s,
		opacity 0.15s;
	border: none;
	font-family: var(--body);
	flex: none;
}

#header .btn:hover {
	transform: translateY(-2px);
}

#header .btn-main {
	background: #e8770f;
	color: #fff;
	padding: 12px 26px;
	font-size: 15px;
	box-shadow: 0 5px 14px rgba(232, 119, 15, 0.2);
}

#header .head > .btn-main {
	white-space: nowrap;
	font-size: 12.5px;
	padding: 11px 14px;
}

@media (max-width: 1180px) and (min-width: 821px) {
	#header .head > .btn-main {
		font-size: 11.5px;
		padding: 10px 11px;
	}
}

@media (max-width: 820px) {
	#header .head .btn-main {
		display: none !important;
	}
}

#header .btn-main:hover {
	box-shadow: 0 8px 20px rgba(232, 119, 15, 0.32);
}

#header .menuBtn {
	display: none;
	margin-left: 8px;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 12px;
	border: 1.5px solid var(--line);
	background: #fff;
	font-size: 19px;
	font-family: inherit;
	color: var(--ink);
	cursor: pointer;
	flex: none;
	align-items: center;
	justify-content: center;
	appearance: none;
	-webkit-appearance: none;
}

@media (max-width: 820px) {
	#header .menuBtn {
		display: inline-flex;
		margin-left: auto;
		padding-bottom: 5px;
		line-height: 1;
	}
}

#header .mnav {
	background: #fff;
	border-top: 1px solid var(--line);
	padding: 4px 22px 14px;
	display: grid;
	line-height: 1.4;
	position: static;
	z-index: auto;
}

@media (min-width: 821px) {
	#header .mnav {
		display: none !important;
	}
}

#header .mnav[hidden] {
	display: none !important;
}

#header .mnav a {
	padding: 13px 4px;
	font-size: 15px;
	font-weight: 700;
	border-bottom: 1px solid #f2ede4;
}

#header .mnav .mtel {
	color: #c96a00;
	border-bottom: none;
}

body:has(#header) #container {
	padding-top: 0;
}
