/*
 * page-archive.css - ドラマアーカイブページ専用スタイル
 *
 * 対象: is_post_type_archive('drama') のときのみ読み込む
 * テンプレート: archive-drama.php
 *
 * @package swell-child
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   共通レイアウト
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.adra-archive {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 0.5rem 4rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ページヘッダー
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.adra-archive__header > div {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid #f0e6dd;
}

.adra-archive__title {
	font-size: clamp(1.1rem, 3vw, 1.5rem);
	font-weight: 800;
	color: #1c1917;
	margin: 0;
}

.adra-archive__count {
	font-size: 1.0rem;
	color: #78716c;
	margin: 0;
}

.adra-archive__count strong {
	font-size: clamp(1.1rem, 3vw, 1.5rem);
	color: #1c1917;
	font-weight: 700;
}

.adra-archive__back {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	font-size: 0.8rem;
	font-weight: 600;
	color: #9b2424;
	text-decoration: none;
	padding: 0.3em 0.85em;
	border: 1.5px solid #f0cece;
	border-radius: 999px;
	transition: background 0.15s;
}

.adra-archive__back:hover {
	background: #fde8e8;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   アーカイブ用 ハイブリッド検索フィルター
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.adra-filter-form {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.adra-filter-form__selects {
    display: flex;
    gap: 15px;
    margin-bottom: 24px;
}

.adra-filter-select {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #333;
    background-color: #fafafa;
}

.adra-filter-form__tags-label {
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #333;
}

/* フレックスボックスでタグを敷き詰める（タグクラウド風） */
.adra-filter-form__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px;
    /* 最初は約2行分（約70px）だけ見せて、残りは隠す */
    max-height: 70px; 
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* 「さらに見る」クリック時に付与されるクラス */
.adra-filter-form__tags.is-expanded {
    max-height: 2000px; /* 展開時は制限を解除 */
}

/* ラジオボタンを「コンパクトな角丸タグ」に見せる */
.adra-tag-radio {
    display: inline-block;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap; /* 途中で改行させない */
}

.adra-tag-radio input[type="radio"] {
    display: none; /* デフォルトの丸いポッチは隠す */
}

/* タグが選択された時の色（深い赤） */
.adra-tag-radio.is-active {
    background: #8c1c1c;
    color: #fff;
    border-color: #8c1c1c;
}

/* さらに見るボタン */
.adra-filter-form__more-btn {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #888;
    padding: 12px 0 0;
    margin-top: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
}

/* 検索ボタン */
.adra-filter-form__submit {
    margin-top: 24px;
    text-align: center;
}

.adra-archive__search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    padding: 1.0em 2.4em;
    background: linear-gradient(to right, #dfba70, #fcf4ce, #dfba70);
    color: #531f18;
    border: none;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 2px 3px rgba(255, 255, 255, 0.8);
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
    width: 100%;
    max-width: 320px; /* PCで横長になりすぎないように制限 */
}

/* ホバー（マウスオーバー）時の動き */
.adra-archive__search-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px); /* 少し浮き上がる */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), inset 0 2px 3px rgba(255, 255, 255, 0.8);
}

/* クリックした時の押し込みの動き */
.adra-archive__search-btn:active {
    transform: translateY(1px); /* 沈み込む */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), inset 0 2px 3px rgba(255, 255, 255, 0.8);
}

/* スマホ表示の調整 */
@media (max-width: 600px) {
    .adra-filter-form__selects {
        flex-direction: column;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   アクティブフィルターバッジ
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.adra-archive__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.adra-archive__filter-label {
	font-size: 0.75rem;
	color: #9ca3af;
	font-weight: 600;
}

.adra-archive__filter-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	background: #7a1414;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 0.3em 0.85em;
	border-radius: 999px;
}

.adra-archive__filter-clear {
	display: inline-flex;
	align-items: center;
	font-size: 0.75rem;
	color: #9b2424;
	font-weight: 600;
	text-decoration: none;
	padding: 0.28em 0.75em;
	border: 1.5px solid #f0cece;
	border-radius: 999px;
	transition: background 0.15s;
}

.adra-archive__filter-clear:hover {
	background: #fde8e8;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   カードグリッド
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.adra-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

@media (max-width: 640px) {
	.adra-archive__grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   0件表示
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.adra-archive__empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 4rem 1rem;
	color: #9ca3af;
}

.adra-archive__empty p {
	margin: 0 0 1.25rem;
	font-size: 1rem;
}

.adra-archive__empty a {
	display: inline-block;
	padding: 0.55em 1.5em;
	background: #7a1414;
	color: #fff;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ページネーション
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.adra-archive__pagination {
	margin-top: 2.5rem;
	display: flex;
	justify-content: center;
}

.adra-archive__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	color: #57534e;
	border: 1.5px solid #e5e7eb;
	margin: 0 0.2rem;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.adra-archive__pagination .page-numbers:hover {
	border-color: #7a1414;
	color: #7a1414;
}

.adra-archive__pagination .page-numbers.current {
	background: #7a1414;
	border-color: #7a1414;
	color: #fff;
}