/* ==========================================================================
   タクソノミー一覧ランディングページ共通スタイル
   /genre/ /director/ /studio/ /release-year/ /season/ /voice-actor/ /format/
   vod-index.css のデフォルトカード相当に統一（ブランドカラーなし）。
   ========================================================================== */

.tax-index {
    background: #141414;
    color: #d1d5db;
    padding: 0 0 80px;
    min-height: 60vh;
}

.tax-index__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 0;
}

/* ----------------------------------------
   パンくず
   ---------------------------------------- */
.tax-index__breadcrumb {
    margin: 0 0 20px;
}

.tax-index__breadcrumb .breadcrumbs {
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.tax-index__breadcrumb .breadcrumbs li {
    color: #9ca3af;
}

.tax-index__breadcrumb .breadcrumbs a {
    color: #d1d5db;
    text-decoration: none;
}

.tax-index__breadcrumb .breadcrumbs a:hover {
    color: #f59e0b;
    text-decoration: underline;
}

/* ----------------------------------------
   ページヘッダー
   ---------------------------------------- */
.tax-index__header {
    margin: 0 0 36px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
    position: relative;
}

.tax-index__header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 64px;
    height: 2px;
    background: #f59e0b;
}

.tax-index__title {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.tax-index__description {
    font-size: 15px;
    color: #d1d5db;
    margin: 0;
    line-height: 1.7;
}

/* ----------------------------------------
   空状態
   ---------------------------------------- */
.tax-index__empty {
    padding: 48px 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 16px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    margin: 0;
}

/* ----------------------------------------
   カードグリッド
   PC: 4列、タブレット: 3列、モバイル: 2列
   ---------------------------------------- */
.tax-index__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.tax-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 28px 24px;
    min-height: 150px;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #2a2a2a 0%, #141414 100%);
    border: 1px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tax-card:hover,
.tax-card:focus {
    transform: translateY(-4px);
    color: #ffffff;
    text-decoration: none;
    border-color: #f59e0b;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
}

.tax-card__name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.tax-card__count {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.85;
}

.tax-card__cta {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    opacity: 0.9;
}

/* ----------------------------------------
   レスポンシブ
   ---------------------------------------- */
@media (max-width: 768px) {
    .tax-index__inner {
        padding: 24px 16px 0;
    }

    .tax-index__title {
        font-size: 24px;
    }

    .tax-index__description {
        font-size: 14px;
    }

    .tax-index__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .tax-card {
        padding: 22px 18px;
        min-height: 130px;
    }

    .tax-card__name {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .tax-index__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tax-card {
        padding: 20px 14px;
        min-height: 120px;
    }

    .tax-card__name {
        font-size: 16px;
    }
}
