/*
 * page-front.css - フロントページ専用スタイル
 *
 * 対象: is_front_page() のときのみ読み込む
 * 収録:
 * - SWELLヘッダー透過処理
 * - ヒーローセクション (.adra-hero-*)
 * - 今日のおすすめセクション (.adra-today-section / .adra-today)
 * - Swiper ページネーション
 *
 * @package swell-child
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SWELLヘッダーを透過にする（フロントページのみ）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
body.home .l-header,
body.home .c-header,
body.home #header {
	background: transparent !important;
	box-shadow: none !important;
	border-bottom: none !important;
}

body.home .l-header__inner,
body.home .c-header__inner {
	background: transparent !important;
}

body.home .l-header .logo-title,
body.home .l-header .c-gnav,
body.home .l-header .c-headMenu__btn,
body.home .c-header .logo-title {
	color: #2e1505 !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ヒーローセクション (.adra-hero-*)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 外枠（背景画像の窓枠） */
.adra-hero-outer {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	position: relative;
	overflow: hidden;
	background: #f6f2e8;
}

/* 背景画像専用レイヤー */
.adra-hero-outer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 70vh;
	background: url(https://a-dra.com/wp-content/uploads/2026/04/hero.jpg) center bottom / cover no-repeat;
	z-index: 0;
}

.adra-hero {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 4.5rem 1.25rem 3.5rem;
	text-align: center;
}

@media (max-width: 767px) {
	.adra-hero {
		padding-top: 3.5rem;
		padding-bottom: 3rem;
	}
}

.adra-hero__title,
.adra-hero__sub,
.adra-hero__filter {
	position: relative;
	z-index: 1;
}

.adra-hero__eyebrow {
	display: block;
	font-size: 1.50rem;
	font-weight: 500;
	color: #3e1a07;
	margin: 0 0 0.15rem;
	letter-spacing: 0.04em;
	line-height: 1.4;
}

.adra-hero__title {
	font-size: clamp(1.9rem, 7vw, 3rem);
	font-weight: 900;
	color: #2e1505;
	line-height: 1.2;
	margin: 0 0 0.9rem;
	letter-spacing: -0.01em;
	text-shadow:
		0 0 4px rgba(255, 255, 255, 1),
		0 0 4px rgba(255, 255, 255, 1),
		0 0 12px rgba(255, 255, 255, 1),
		0 0 24px rgba(255, 255, 255, 0.9),
		0 0 40px rgba(255, 255, 255, 0.7);
}

.adra-hero__sub {
	font-size: 1.0rem;
	line-height: 1.85;
	margin: 0 auto 1.8rem;
	text-shadow:
		0 0 4px rgba(255, 255, 255, 1),
		0 0 4px rgba(255, 255, 255, 1),
		0 0 12px rgba(255, 255, 255, 1),
		0 0 24px rgba(255, 255, 255, 0.9),
		0 0 40px rgba(255, 255, 255, 0.7);
}

.adra-hero__filter {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
}

/* 検索パネルの absolute を上書き解除し高さを正常に戻す */
.adra-hero__filter .adf__panel,
.adra-hero__filter > div {
	position: relative !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   今日のおすすめ セクション
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* front-page.php 内のラッパー */
.adra-today-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 3rem 1.25rem 1.5rem;
}

/* shortcode-drama-today.php が出力するコンテナ（ウィンドウ幅100%） */
.adra-today {
	position: relative;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	overflow: hidden;
	padding-bottom: 2rem;
}

/* セクションヘッダー */
.adra-today__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	max-width: var(--swl-content_width, 1000px);
	margin-left: auto;
	margin-right: auto;
	padding: 0 4%;
}

@media (min-width: 1200px) {
	.adra-today__header {
		padding: 0;
		width: 100%;
	}
}

.adra-today__heading {
	font-size: 1.8rem;
	font-weight: 800;
	margin: 0;
}

.adra-today__more {
	font-size: 0.82rem;
	color: var(--color_main);
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 0.15em;
}

.adra-today__more:hover {
	opacity: 0.75;
}

.adra-today__more i {
	margin-left: 0.5em;
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   人気のタグ セクション
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* --------------------------------------------------
 * 人気のマニアックタグ セクション (A-DRA サイトデザイン準拠)
 * -------------------------------------------------- */

/* セクション全体の余白と背景 */
.adra-tags-section {
    padding: 30px 0 40px; /* 上・左右・下の余白（スマホ表示を考慮） */
    background-color: transparent; /* 背景色は親要素（ページ全体）の淡い色に馴染ませる */
}

.adra-tags-section__inner {
    max-width: 1000px; /* タグが横に広がりすぎないようにPC表示時の最大幅を制限 */
    margin: 0 auto;
}

/* 見出しのデザイン */
.adra-popular-tags__heading {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #333333;
    letter-spacing: 0.05em;
}

/* タグリストを中央寄せで折り返すレイアウト */
.adra-popular-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 8px; /* 縦に10px、横に8pxの隙間を空ける */
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 個別のタグボタン（角丸・白背景・薄い枠線） */
.adra-popular-tags__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0; /* サイトに馴染む非常に薄いグレーの枠線 */
    border-radius: 9999px; /* 綺麗なピル型（カプセル型）にする */
    color: #333333;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); /* ほんの少しだけ影をつけてボタンっぽく見せる */
    transition: all 0.2s ease-in-out;
}

/* PC等でのホバー時（サイトのメインカラーである深い赤をアクセントに） */
.adra-popular-tags__link:hover {
    border-color: #8c1c1c; /* メインビジュアルの検索枠のような深い赤 */
    color: #8c1c1c;
    background-color: #fffafb; /* ほんの少しだけ赤みがかった白背景 */
    box-shadow: 0 4px 8px rgba(140, 28, 28, 0.1); /* ホバー時に影を少し強くする */
}
@media (max-width: 600px) {
	.adra-popular-tags__link {
    padding: 4px 10px;}
}

/* --------------------------------------------------
 * 配信中のドラマ (VODタブ) セクション
 * -------------------------------------------------- */
.adra-airing-section {
    padding: 0 0 60px;
    max-width: 1000px; /* 全体の幅に合わせて調整 */
    margin: 0 auto;
}

.adra-section-heading {
	text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

/* タブボタンのリスト */
.adra-vod-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    border-bottom: 1px solid #eaeaea; /* 下敷きになる線 */
}

.adra-vod-tabs__btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #888; /* 非アクティブ時はグレー */
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.adra-vod-tabs__btn:hover {
    color: #8c1c1c; /* ホバー時 */
}

/* アクティブなタブの下線デザイン */
.adra-vod-tabs__btn.is-active {
    color: #8c1c1c;
}
.adra-vod-tabs__btn.is-active::after {
    content: '';
    position: absolute;
    bottom: -1px; /* ボーダーに重ねる */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #8c1c1c; /* アクセントカラーの深い赤 */
    border-radius: 3px 3px 0 0;
}

/* パネル（初期状態は非表示） */
.adra-vod-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}
.adra-vod-panel.is-active {
    display: block;
}

/* カードを並べるグリッド（今日のおすすめ等の既存CSSが流用できる場合は不要） */
.adra-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 1fr（均等な幅）を2つ並べる、つまり2列固定 */
    gap: 20px;
}
@media (max-width: 600px) {
    .adra-card-grid {
        grid-template-columns: repeat(1, 1fr); /* スマホでは1列 */
    }
}

/* ふんわり表示させるアニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   配信カレンダー セクション
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.adra-calendar-section {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background: #faf8f4;
	padding: 3rem 1.25rem 4rem;
}

.adra-calendar-section__inner {
	max-width: 1000px;
	margin: 0 auto;
}

.adra-calendar-section__heading {
	text-align: center;
	font-size: 1.8rem;
	font-weight: 800;
	margin: 0 0 24px;
	color: #2e1505;
}

.adra-calendar-section__desc {
	text-align: center;
	font-size: 0.9rem;
	color: #888;
	margin: 0 0 2.0rem;
}

@media ( max-width: 600px ) {
	.adra-calendar-section {
		padding: 2rem 1rem 3rem;
	}
}
