/*
Theme Name: LINC Agent
Theme URI: https://linc-ent.com/
Author: kaisha-unei engineering
Author URI: https://linc-ent.com/
Description: 株式会社LINC AGENT カスタムテーマ。AGENT 一覧 / 詳細ページを提供する WordPress テーマ。
Version: 0.4.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: linc-agent
Tags: custom-post-type, talent, agent
*/

/* ============================================
 * リセット & 基本
 * ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
    line-height: 1.8;
    color: #e0e0e0;
    background-color: #0a0a0a;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
 * ブランドカラー
 * ============================================ */
:root {
    --bg-base: #0a0a0a;
    --bg-alt: #0f0f0f;
    --bg-deep: #050505;
    --text-main: #e0e0e0;
    --text-muted: #888;
    --accent-pink: #ff69b4;
    --accent-pink-soft: rgba(255, 105, 180, 0.4);
    --border-soft: rgba(255, 255, 255, 0.1);
    --border-mid: rgba(255, 255, 255, 0.2);
}

/* ============================================
 * ヘッダー
 * ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    line-height: 1;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.site-nav-menu a {
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.site-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.site-nav-menu a:hover::after {
    width: 100%;
}

/* ============================================
 * ハンバーガーメニュー (SP 用、PC では非表示)
 *
 * HP テスト (/hptes/) の `.hamburger` と同等の見た目・挙動。
 * クラス名はテーマ内で衝突しないよう `.site-hamburger` に。
 * ============================================ */
.site-hamburger {
    display: none; /* PC は非表示。SP メディアクエリで flex に切り替え */
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.site-hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #e0e0e0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* 開いた状態のアイコン (× に変形) */
.site-hamburger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.site-hamburger.is-active span:nth-child(2) {
    opacity: 0;
}
.site-hamburger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
 * ヒーロー (桜動画背景)
 * ============================================ */
.archive-hero {
    height: 60vh;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--bg-base);
    overflow: hidden;
}

.archive-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.archive-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.45);
    z-index: 1;
}

.archive-hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 0 40px;
}

.archive-hero-title {
    font-size: 64px;
    font-weight: bold;
    letter-spacing: 10px;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(255, 105, 180, 0.4);
}

.archive-hero-subtitle {
    margin-top: 14px;
    font-size: 14px;
    letter-spacing: 3px;
    opacity: 0.8;
}

/* ============================================
 * AGENT 一覧 (seju.tokyo 風グリッド)
 * ============================================ */
.archive-agent {
    padding: 100px 0 140px;
    background-color: var(--bg-base);
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 6px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, var(--accent-pink-soft), transparent);
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
}

.agent-card {
    position: relative;
    background: var(--bg-alt);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.agent-card a {
    display: block;
    color: inherit;
}

.agent-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-pink-soft);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(255, 105, 180, 0.15);
}

.agent-card-thumb {
    aspect-ratio: 3 / 4;
    background: #1a1a1a center / cover no-repeat;
    overflow: hidden;
    position: relative;
}

.agent-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.agent-card:hover .agent-card-thumb img {
    transform: scale(1.05);
}

.agent-card-thumb.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 2px;
}

/* ============================================
 * AGENT カテゴリバッジ (archive)
 *
 * - thumb 上部左にオーバーレイ
 * - 半透明黒 + ピンクアクセント枠でダーク UI と整合
 * - カテゴリ別の色分けは下部 .category-* で適用
 * ============================================ */
.agent-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(10, 10, 10, 0.75);
    border: 1px solid var(--accent-pink-soft);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-transform: uppercase;
    line-height: 1.4;
}

.agent-card-body {
    padding: 18px 16px 22px;
    text-align: center;
}

.agent-card-kana {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.agent-card-name {
    font-size: 17px;
    letter-spacing: 2px;
    font-weight: 500;
}

.archive-empty {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-muted);
    letter-spacing: 3px;
    font-size: 14px;
}

/* ============================================
 * カテゴリグループ (一覧をカテゴリ見出しで区切る)
 *
 * 2026-05-31 MANAGEMENT 改修。各カテゴリ = 見出し + そのメンバーのグリッド。
 * 既存の黒背景 + ピンクアクセントのトーンを踏襲し、見出しはカテゴリ色で淡く差別化。
 * ============================================ */
.agent-category-group {
    margin-bottom: 90px;
}

.agent-category-group:last-child {
    margin-bottom: 0;
}

/* 見出しは既存 .section-title を流用。カテゴリ別の色は category-* の color が効く。
   下線グラデーションはカテゴリ色に追随させず、共通ピンクのままにして統一感を保つ。 */
.category-heading {
    margin-bottom: 40px;
}

/* (AGENT) = 業務提携ラベル。
   2026-05-31 改修 (早尻さん要望): 名前の「横」から「下に小さく」配置へ変更。
   一覧カード・詳細ページ両方で、名前の下段に控えめなピンクで添える。 */
.agent-label-partner--block {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--accent-pink);
    opacity: 0.9;
}

/* 一覧カードは中央寄せ (.agent-card-body が text-align:center のため自動だが明示) */
.agent-card-body .agent-label-partner--block {
    text-align: center;
}

/* 詳細ページの名前下 (.name は flex 見出し)。少しだけ大きめだが控えめに。 */
.single-agent-info .single-agent-partner {
    margin-top: -14px;   /* .name の margin-bottom(24px) と詰めて名前直下に寄せる */
    margin-bottom: 24px;
    font-size: 13px;
}

/* ============================================
 * AGENT 詳細
 * ============================================ */
.single-agent {
    padding: 120px 0 140px;
    background-color: var(--bg-base);
}

.single-agent-inner {
    max-width: 980px;
    margin: 0 auto;
}

.single-agent-head {
    display: grid;
    grid-template-columns: minmax(0, 360px) 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

.single-agent-photo {
    aspect-ratio: 3 / 4;
    background: #1a1a1a center / cover no-repeat;
    border: 1px solid var(--border-soft);
}

.single-agent-photo.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 2px;
}

.single-agent-info .kana {
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.single-agent-info .name {
    font-size: 36px;
    letter-spacing: 4px;
    font-weight: bold;
    margin-bottom: 24px;
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* 詳細ページの名前隣に並ぶカテゴリバッジ */
.single-agent-category {
    display: inline-block;
    padding: 5px 12px;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(255, 105, 180, 0.12);
    border: 1px solid var(--accent-pink-soft);
    text-transform: uppercase;
    text-shadow: none;
    line-height: 1.4;
    vertical-align: middle;
}

/* ============================================
 * カテゴリ別アクセント (archive / 詳細 共通)
 *
 * - 5 種類の控えめな色分け。背景はダーク維持、左ボーダー / 文字色で差別化
 * - 未分類 (= バッジ自体出ない) は対象外
 * ============================================ */
.category-talent {
    border-color: rgba(255, 215, 0, 0.55);
    color: #ffe55c;
}
.category-actress {
    border-color: rgba(255, 105, 180, 0.6);
    color: #ff9ed1;
}
.category-actor {
    border-color: rgba(100, 200, 255, 0.55);
    color: #9fdcff;
}
.category-voice-actor {
    border-color: rgba(180, 130, 255, 0.6);
    color: #d3b6ff;
}
.category-cosplayer {
    border-color: rgba(120, 220, 170, 0.55);
    color: #b6f0d2;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.profile-table th,
.profile-table td {
    text-align: left;
    padding: 10px 6px;
    border-bottom: 1px solid var(--border-soft);
    font-weight: normal;
}

.profile-table th {
    width: 110px;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.profile-table td {
    font-size: 15px;
    letter-spacing: 1px;
}

.single-agent-section {
    margin-top: 50px;
}

.single-agent-section h2 {
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 16px;
    color: var(--accent-pink);
    border-left: 2px solid var(--accent-pink);
    padding-left: 12px;
}

.single-agent-section .body {
    font-size: 15px;
    line-height: 2;
    white-space: pre-wrap;
}

.sns-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.sns-list a {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid var(--border-mid);
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.sns-list a:hover {
    background: rgba(255, 105, 180, 0.08);
    border-color: var(--accent-pink-soft);
    opacity: 1;
}

/* VOICE SAMPLES セクション */
.voice-samples-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px 24px;
}

.voice-sample-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-mid);
    border-radius: 8px;
    padding: 14px 16px;
}

.voice-sample-label {
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--accent-pink-soft);
    margin-bottom: 8px;
}

.voice-sample-item audio {
    width: 100%;
    /* Safari/Chrome のデフォルト UI を尊重しつつ、暗い背景に馴染ませる */
    filter: invert(0.85) hue-rotate(180deg);
}

@media (max-width: 600px) {
    .voice-samples-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.single-agent-back {
    margin-top: 60px;
    text-align: center;
}

.single-agent-back a {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--border-mid);
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 2px;
}

.single-agent-back a:hover {
    background: rgba(255, 255, 255, 0.04);
    opacity: 1;
}

/* ============================================
 * フッター
 * ============================================ */
.site-footer {
    background-color: var(--bg-deep);
    padding: 50px 0 30px;
    border-top: 1px solid var(--border-soft);
    text-align: center;
}

.site-footer .copyright {
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.5;
}

/* ============================================
 * レスポンシブ
 * ============================================ */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 14px 20px;
        /* メニュー展開時の絶対位置基準 */
        position: relative;
    }

    /* SP: ハンバーガー表示 */
    .site-hamburger {
        display: flex;
    }

    /* SP: ナビメニューは初期非表示、is-open で全幅ドロップダウン */
    .site-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 20px 24px 28px;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border-soft);
    }

    .site-nav-menu.is-open {
        display: flex;
    }

    .site-nav-menu li {
        list-style: none;
        border-bottom: 1px solid var(--border-soft);
    }

    .site-nav-menu li:last-child {
        border-bottom: none;
    }

    .site-nav-menu a {
        display: block;
        padding: 16px 4px;
        font-size: 15px;
        letter-spacing: 2px;
    }

    /* SP では下線アニメを抑止 (タップ域確保のため) */
    .site-nav-menu a::after {
        display: none;
    }

    .archive-hero-title {
        font-size: 40px;
        letter-spacing: 6px;
    }

    .section-title {
        font-size: 26px;
        letter-spacing: 4px;
        margin-bottom: 40px;
    }

    .archive-agent {
        padding: 70px 0 90px;
    }

    .agent-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .single-agent {
        padding: 80px 0 100px;
    }

    .single-agent-head {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .single-agent-info .name {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .archive-hero-title {
        font-size: 30px;
        letter-spacing: 4px;
    }

    .agent-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .agent-card-name {
        font-size: 14px;
    }
}
