/*
 * site-chrome.css
 * 子テーマ独自ヘッダー・フッターと、サイト全体で利用するデザイントークン
 *
 * 全ページで読み込む（is_front_page() に依存しない）。
 * .ad-chrome-* プレフィックスでスコープし、SWELL の既存スタイルと衝突させない。
 *
 * @package swell-child
 */

/* ======================================================
   1. デザイントークン（CSSカスタムプロパティ）
   ====================================================== */
:root {
	/* メインカラー（深いワインレッド） */
	--ad-color-primary:        #8B2435;
	--ad-color-primary-dark:   #6E1B28;
	--ad-color-primary-soft:   #A8455A;
	--ad-color-primary-tint:   #FCE8EA;

	/* 背景・余白色 */
	--ad-color-bg-cream:       #FAF8F5;
	--ad-color-bg-soft:        #F4EEE6;
	--ad-color-bg-card:        #FFFFFF;

	/* 文字 */
	--ad-color-text-main:      #2A1810;
	--ad-color-text-sub:       #6B5D55;
	--ad-color-text-muted:     #9A8E86;
	--ad-color-text-on-dark:   #FFFFFF;

	/* ライン・境界 */
	--ad-color-line:           #E8DDD3;
	--ad-color-line-soft:      #F0E8DE;

	/* タイポグラフィ */
	--ad-font-serif-jp:        'Noto Serif JP', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
	--ad-font-serif-en:        'Playfair Display', 'Noto Serif JP', serif;
	--ad-font-sans-jp:         'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;

	/* 影・角丸 */
	--ad-shadow-soft:          0 4px 20px rgba(42, 24, 16, 0.06);
	--ad-shadow-card:          0 8px 30px rgba(42, 24, 16, 0.08);
	--ad-shadow-pop:           0 12px 40px rgba(42, 24, 16, 0.12);
	--ad-radius-sm:            6px;
	--ad-radius-md:            12px;
	--ad-radius-lg:            18px;
	--ad-radius-pill:          9999px;

	/* レイアウト */
	--ad-content-max:          1180px;
	--ad-header-height:        76px;
}

/* ======================================================
   2. SWELL 標準ヘッダー/フッターを完全に隠す
   （子テーマ header.php / footer.php に置き換えるため）
   ====================================================== */
body > .l-header,
body > #header,
body > .l-footer,
body > #footer,
body > .l-fixHeader,
body > .l-fixHeader__inner {
	display: none !important;
}

/* SWELL のラッパーが残るとレイアウトが崩れるので body 直下の余白をリセット */
body {
	font-family: var(--ad-font-sans-jp);
	color: var(--ad-color-text-main);
	background: var(--ad-color-bg-cream);
}

/* ======================================================
   3. ヘッダー
   ====================================================== */
.ad-chrome-header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	transition: background 0.3s ease, box-shadow 0.3s ease;
}

.ad-chrome-header.is-solid {
	position: sticky;
	top: 0;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 2px 12px rgba(42, 24, 16, 0.06);
}

.ad-chrome-header.is-transparent {
	background: transparent;
}

.ad-chrome-header__inner {
	max-width: var(--ad-content-max);
	margin: 0 auto;
	padding: 18px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* ── ロゴ ── */
.ad-chrome-header__logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--ad-color-text-main);
	font-family: var(--ad-font-serif-en);
	flex-shrink: 0;
}

.ad-chrome-header__logo-img {
	height: 44px;
	width: auto;
	display: block;
}

.ad-chrome-header__logo-mark {
	display: inline-flex;
	width: 28px;
	height: 28px;
	color: var(--ad-color-primary);
}

.ad-chrome-header__logo-mark svg {
	width: 100%;
	height: 100%;
}

.ad-chrome-header__logo-text {
	display: inline-flex;
	flex-direction: column;
	line-height: 1.05;
}

.ad-chrome-header__logo-name {
	font-family: var(--ad-font-serif-en);
	font-weight: 700;
	font-size: 1.55rem;
	letter-spacing: 0.05em;
	color: var(--ad-color-text-main);
}

.ad-chrome-header__logo-tagline {
	font-family: var(--ad-font-serif-jp);
	font-size: 0.62rem;
	color: var(--ad-color-text-sub);
	letter-spacing: 0.18em;
	margin-top: 3px;
}

/* ── ナビ ── */
.ad-chrome-header__nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.ad-chrome-header__menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	padding: 0;
}

.ad-chrome-header__menu-link {
	font-family: var(--ad-font-sans-jp);
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--ad-color-text-main);
	text-decoration: none;
	letter-spacing: 0.04em;
	padding: 6px 0;
	position: relative;
	transition: color 0.2s ease;
}

.ad-chrome-header__menu-link:hover {
	color: var(--ad-color-primary);
}

.ad-chrome-header__menu-link.is-active {
	color: var(--ad-color-primary);
}

.ad-chrome-header__menu-link.is-active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -4px;
	width: 18px;
	height: 2px;
	background: var(--ad-color-primary);
	transform: translateX(-50%);
	border-radius: 2px;
}

/* ── アクション（検索/メニュー） ── */
.ad-chrome-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.ad-chrome-header__search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: var(--ad-color-primary);
	transition: background 0.2s ease;
}

.ad-chrome-header__search-btn svg {
	width: 18px;
	height: 18px;
}

.ad-chrome-header__search-btn:hover {
	background: var(--ad-color-primary-tint);
}

.ad-chrome-header__menu-toggle {
	display: none;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
}

.ad-chrome-header__menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ad-color-text-main);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

/* SP対応 */
@media (max-width: 960px) {
	.ad-chrome-header__inner {
		padding: 14px 18px;
	}

	.ad-chrome-header__nav {
		display: none;
	}

	.ad-chrome-header__menu-toggle {
		display: inline-flex;
	}

	.ad-chrome-header__logo-img {
		height: 36px;
	}

	.ad-chrome-header__logo-name {
		font-size: 1.3rem;
	}
}

/* ======================================================
   4. メイン領域
   ====================================================== */
.ad-chrome-body {
	display: block;
	min-height: 60vh;
}

/* 下層ページ（ドラマ詳細・一覧）はソリッドヘッダー分の余白を確保 */
body:not(.home) .ad-chrome-body {
	padding-top: 0; /* ヘッダー is-solid は position: sticky なのでフローに乗っている */
}

/* ======================================================
   5. フッター
   ====================================================== */
.ad-chrome-footer {
	background: var(--ad-color-primary-dark);
	color: var(--ad-color-text-on-dark);
	padding: 64px 0 0;
	margin-top: 80px;
}

.ad-chrome-footer__inner {
	max-width: var(--ad-content-max);
	margin: 0 auto;
	padding: 0 32px 56px;
	display: grid;
	grid-template-columns: 1.1fr 2.4fr;
	gap: 56px;
}

/* ── ブランド ── */
.ad-chrome-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ad-chrome-footer__logo {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	text-decoration: none;
	color: #fff;
	font-family: var(--ad-font-serif-en);
}

.ad-chrome-footer__logo-img {
	height: 40px;
	width: auto;
	filter: brightness(0) invert(1);
}

.ad-chrome-footer__logo-name {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.ad-chrome-footer__logo-tagline {
	font-family: var(--ad-font-serif-jp);
	font-size: 0.65rem;
	letter-spacing: 0.16em;
	color: rgba(255, 255, 255, 0.75);
}

.ad-chrome-footer__lead {
	font-size: 0.78rem;
	line-height: 1.85;
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
}

.ad-chrome-footer__social {
	list-style: none;
	display: flex;
	gap: 12px;
	padding: 0;
	margin: 8px 0 0;
}

.ad-chrome-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ad-chrome-footer__social a:hover {
	background: #fff;
	color: var(--ad-color-primary-dark);
	transform: translateY(-2px);
}

.ad-chrome-footer__social svg {
	width: 16px;
	height: 16px;
}

/* ── リンク群 ── */
.ad-chrome-footer__cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.ad-chrome-footer__heading {
	font-size: 0.92rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.06em;
	margin: 0 0 14px;
	font-family: var(--ad-font-serif-jp);
}

.ad-chrome-footer__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ad-chrome-footer__list a {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
	transition: color 0.15s ease;
	letter-spacing: 0.02em;
}

.ad-chrome-footer__list a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── コピーライト ── */
.ad-chrome-footer__copy {
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	padding: 18px 32px;
	text-align: center;
}

.ad-chrome-footer__copy p {
	margin: 0;
	font-size: 0.74rem;
	color: rgba(255, 255, 255, 0.7);
	letter-spacing: 0.04em;
}

/* SP対応 */
@media (max-width: 768px) {
	.ad-chrome-footer {
		padding-top: 48px;
		margin-top: 56px;
	}
	.ad-chrome-footer__inner {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 0 22px 40px;
	}
	.ad-chrome-footer__cols {
		grid-template-columns: 1fr 1fr;
		gap: 28px 18px;
	}
}

@media (max-width: 480px) {
	.ad-chrome-footer__cols {
		grid-template-columns: 1fr;
	}
}
