/* ===== Talent セクション共通CSS ===== */

/* ---- リストページ ---- */
.talent-list-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.talent-list-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.talent-list-header p {
    font-size: 14px;
    color: var(--text-sub);
}

.talent-index-section {
    margin-bottom: 32px;
}

.talent-index-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-sub);
    text-transform: uppercase;
    border-left: 3px solid var(--accent);
    padding-left: 8px;
    margin-bottom: 12px;
}

.talent-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2px;
}

.talent-index-item {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.talent-index-item:hover {
    background: #2a2a2a;
    border-color: #555;
    text-decoration: none;
}

.talent-index-item-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--link);
}

.talent-index-item:hover .talent-index-item-name {
    color: var(--link-hover);
}

.talent-index-item-kana {
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 2px;
}

/* ---- 詳細ページ ---- */
.wiki-layout {
    display: block;
}

.wiki-main {}

.wiki-sidebar {}

/* パンくず */
.breadcrumb {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-sub);
}

.breadcrumb a:hover {
    color: var(--link);
}

.breadcrumb-sep {
    opacity: 0.4;
}

/* ページタイトル */
.wiki-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-serif);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* 目次 */
.wiki-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 24px;
    display: inline-block;
    min-width: 200px;
    max-width: 100%;
}

.wiki-toc-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
    margin-bottom: 8px;
}

.wiki-toc ol {
    padding-left: 18px;
}

.wiki-toc li {
    font-size: 13px;
    line-height: 1.7;
}

.wiki-toc a {
    color: var(--link);
}

.wiki-toc ol ol {
    padding-left: 14px;
}

.wiki-toc ol ol li {
    font-size: 12px;
}

/* 本文 */
.wiki-body h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
    margin: 32px 0 14px;
    font-family: var(--font-serif);
}

.wiki-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 22px 0 10px;
    padding-left: 10px;
    border-left: 3px solid var(--border);
}

.wiki-body p {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.85;
}

.wiki-body ul, .wiki-body ol {
    padding-left: 22px;
    margin-bottom: 14px;
}

.wiki-body li {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 4px;
}

/* インフォボックス */
.infobox {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
    font-size: 13px;
}

.infobox-title {
    background: #2a2a2a;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 14px;
    color: var(--accent);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.infobox-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border);
}

.infobox-img-caption {
    font-size: 11px;
    color: var(--text-sub);
    padding: 4px 8px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.infobox table {
    width: 100%;
    border-collapse: collapse;
}

.infobox th,
.infobox td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.6;
}

.infobox th {
    color: var(--text-sub);
    font-weight: 500;
    width: 40%;
    white-space: nowrap;
}

.infobox td {
    color: var(--text);
}

.infobox tr:last-child th,
.infobox tr:last-child td {
    border-bottom: none;
}

/* 画像クレジット */
.wiki-img-credit {
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 4px;
    text-align: right;
}

.wiki-img-credit a {
    color: var(--text-sub);
    font-size: 11px;
}


/* ===== レスポンシブ ===== */
@media (max-width: 700px) {
    .wiki-layout {
        grid-template-columns: 1fr;
    }

    .wiki-sidebar {
        order: -1;
    }

    .infobox {
        max-width: 260px;
        margin: 0 auto 20px;
    }

    .wiki-title {
        font-size: 22px;
    }

    .talent-index-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 400px) {
    .talent-index-grid {
        grid-template-columns: 1fr;
    }
}
