/* ============================================================
   カスタムヘッダー CSS
   子テーマの style.css 末尾に追記してください
   ============================================================ */

:root {
	--my-accent:      #f74a4a;
	--my-accent-dark: #e23f3f;
	--my-border:      #eeeeee;
	--my-text:        #333333;
	--my-muted:       #777777;
	--my-header-h:    130px; /* ヘッダー全体の高さ（上段+下段）*/
}

/* ============================================================
   PC: SWELL デフォルトヘッダー (.l-header) を非表示
   SP では表示させるため @media で制御
   ============================================================ */
@media (min-width: 961px) {
	.l-header {
		display: none !important;
	}
}

/* ============================================================
   ヘッダー本体
   ============================================================ */
.my-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	/* transition は JS が .is-transition-ready を付けてから有効になる */
}

/* WP 管理バーがある場合はその分下げる */
.admin-bar .my-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	.admin-bar .my-header {
		top: 46px;
	}
}

/* 表示状態（初期・最上部・上スクロール） */
.my-header.is-visible {
	transform: translateY(0);
}

/* 下スクロール時: 隠す */
.my-header.is-hidden {
	transform: translateY(-100%);
}

/* スクロールが始まって初めてアニメーション有効化
   JS が .is-transition-ready を付けるまでは transition なし
   → ページ読み込み時に降りてくるアニメーションが起きない */
.my-header.is-transition-ready {
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   上段: ロゴ + CTA
   ============================================================ */
.my-header__top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 0px;
	gap: 24px;
}

/* ロゴ */
.my-header__logo a {
	display: block;
	text-decoration: none;
}
.my-header__logo img {
	height: 40px;
	width: auto;
	display: block;
}

/* CTA エリア */
.my-header__cta {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

/* 電話番号 */
.my-header__tel {
	text-align: right;
}
.my-header__tel-label {
	display: block;
	font-size: 11px;
	color: var(--my-muted);
	letter-spacing: 0.1em;
	margin-bottom: 3px;
}
.my-header__tel-number {
	display: block;
	font-size: 30px;
	font-weight: 700;
	color: var(--my-text);
	text-decoration: none;
	letter-spacing: -0.01em;
	line-height: 1;
	transition: color 0.2s;
}
.my-header__tel-number:hover {
	color: var(--my-accent);
	text-decoration: none;
}

/* CTAボタン */
.my-header__cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--my-accent);
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	padding: 14px 22px;
	border-radius: 4px;
	text-decoration: none !important;
	letter-spacing: 0.05em;
	white-space: nowrap;
	transition: background 0.2s, transform 0.15s;
	box-shadow: 0 3px 10px rgba(232, 85, 36, 0.28);
}
.my-header__cta-btn:hover {
	background: var(--my-accent-dark);
	transform: translateY(-2px);
	text-decoration: none !important;
}
.my-header__cta-btn svg {
	width: 16px;
	height: 16px;
	fill: #fff;
	flex-shrink: 0;
}

/* ============================================================
   下段: グローバルナビ
   ============================================================ */
.my-header__nav {
	border-top: 1px solid var(--my-border);
}
.my-header__nav-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
}

.my-header__nav-list {
	display: flex;
	align-items: center;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.my-header__nav-list > li {
	position: relative;
}
.my-header__nav-list > li > a {
	display: block;
	height: 48px;
	line-height: 48px;
	padding: 0 18px;
	font-size: 15.5px;
	font-weight: 500;
	color: var(--my-text);
	text-decoration: none;
	letter-spacing: 0.04em;
	white-space: nowrap;
	position: relative;
	transition: color 0.2s;
}
/* ホバー下線アニメーション */
.my-header__nav-list > li > a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 18px;
	right: 18px;
	height: 2px;
	background: #f4a300;
	transform: scaleX(0);
	transition: transform 0.25s ease;
}
.my-header__nav-list > li > a:hover,
.my-header__nav-list > li.current-menu-item > a,
.my-header__nav-list > li.current-menu-ancestor > a {
	color: #D4900A;
	text-decoration: none;
}
.my-header__nav-list > li > a:hover::after,
.my-header__nav-list > li.current-menu-item > a::after,
.my-header__nav-list > li.current-menu-ancestor > a::after {
	transform: scaleX(1);
}

/* ドロップダウン */
.my-header__nav-list .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	/*box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);*/
	list-style: none;
	padding: 6px 0;
	margin: 0;
	z-index: 1001;
}
.my-header__nav-list > li:hover > .sub-menu {
	display: block;
}
.my-header__nav-list .sub-menu a {
	display: block;
	padding: 10px 18px;
	font-size: 15px;
	color: #333;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}
.my-header__nav-list .sub-menu a:hover {
	background: #fff9ed;
	color: #D4900A;
}

/* ============================================================
   ヘッダー分のスペースをページ上部に確保
   JS (my-header.js) で動的にヘッダー実高さを計算して設定する
   ============================================================ */
/* #body_wrap の padding-top は JS で動的にセット */

/* ============================================================
   SP: PC カスタムヘッダーを完全に非表示
   SWELL デフォルトの SP メニューだけ表示される
   ============================================================ */
@media (max-width: 960px) {
	.my-header {
		display: none !important;
	}
	#body_wrap {
		padding-top: 0; /* SP はデフォルトヘッダーに任せるのでリセット */
	}
}

/* ============================================================
   タブレット調整（PC ヘッダー表示範囲）
   ============================================================ */
@media (max-width: 1100px) and (min-width: 961px) {
	.my-header__top-inner,
	.my-header__nav-inner {
		padding-left: 20px;
		padding-right: 20px;
	}
	.my-header__nav-list > li > a {
		padding: 0 12px;
		font-size: 12px;
	}
	.my-header__tel-number {
		font-size: 24px;
	}
	.my-header__cta-btn {
		padding: 12px 16px;
		font-size: 12px;
	}
}