/**
 * 全ページ共通 — 改修モック準拠のヘッダー・フッター.
 * マークアップはモックのインラインスタイルで組まれているため、
 * ここではテーマ由来のスタイルを打ち消し、ベースCSS・ホバー・PC/SP切替だけを当てる.
 */

/* ===== テーマのスタイルを打ち消す ===== */
.tm-chrome,
.tm-chrome *:not(i) {
	all: revert;
}

.tm-chrome *:not(i)::before,
.tm-chrome *:not(i)::after {
	content: none !important;
}

/* ===== モックのベースCSS ===== */
.tm-chrome.tm-chrome {
	display: block;
	margin: 0;
	padding: 0;
	color: #333;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 15px;
	line-height: 1.8;
	letter-spacing: normal;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

.tm-chrome.tm-chrome,
.tm-chrome.tm-chrome *,
.tm-chrome.tm-chrome *::before,
.tm-chrome.tm-chrome *::after {
	box-sizing: border-box;
}

.tm-chrome.tm-chrome a {
	color: #223a70;
	text-decoration: underline;
}

.tm-chrome.tm-chrome a:hover {
	color: #1b2e5a;
}

.tm-chrome.tm-chrome img {
	max-width: none;
	height: auto;
}

/* テーマが読み込む Font Awesome 7 はアイコン幅を固定するため、モック（FA 6.5.1）と同じ可変幅に戻す */
.tm-chrome.tm-chrome i[class*="fa-"] {
	display: inline-block;
	width: auto;
	margin: 0;
	padding: 0;
	line-height: 1;
	text-align: inherit;
}

/* ===== ホバー（モックの scp0 / scp1 と同じ） ===== */
.tm-chrome .tm-hover-btn:hover {
	background: #1b2e5a !important;
	color: #fff !important;
}

.tm-chrome .tm-hover-line:hover {
	border-bottom: 2px solid #223a70 !important;
}

/* ===== PC / SP 切替 ===== */
.tm-chrome .tm-header__sp {
	display: none !important;
}

.tm-chrome .tm-header__sp-nav[hidden] {
	display: none !important;
}

@media (max-width: 767px) {
	.tm-chrome .tm-header__pc {
		display: none !important;
	}

	.tm-chrome .tm-header__sp {
		display: block !important;
	}
}

/* テーマ標準のスマホメニュー（ハンバーガー）はモックの MENU と重複するため非表示 */
.vk-mobile-nav-menu-btn,
.vk-mobile-nav {
	display: none !important;
}
