/**
 * イベント詳細 (Issue #153 PR3)
 *
 * - デスクトップ2カラム: ポスター（左・sticky）｜情報（右）
 * - グラデ箱の入れ子ヒーローを平坦化（背景は body の --bg-page）
 * - カードは kk-card、バッジは kk-badge、色は全てトークン
 *   （旧版はダーク対応なし → トークンで自動獲得）
 */

.event-detail-container {
    padding-top: var(--space-2);
    padding-bottom: var(--space-4);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================
   パンくず
   ================================ */

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ================================
   ヘッダー
   ================================ */

.event-header {
    margin-bottom: var(--space-3);
}

.event-header__badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.event-header .event-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--heading);
    line-height: 1.35;
    margin: 0;
}

/* ================================
   2カラムレイアウト
   ================================ */

.event-layout {
    display: grid;
    grid-template-columns: minmax(280px, 400px) 1fr;
    gap: var(--space-3);
    align-items: start;
}

.event-layout--no-poster {
    grid-template-columns: 1fr;
    max-width: 820px;
}

.event-poster {
    position: sticky;
    top: var(--space-2);
}

.event-poster__inner {
    overflow: hidden;
    padding: 0;
}

.event-poster__inner img {
    width: 100%;
    height: auto;
    display: block;
}

.event-main {
    display: grid;
    gap: var(--space-3);
    min-width: 0;
}

/* ================================
   情報カード
   ================================ */

.info-card,
.description-card {
    padding: var(--space-3);
}

/* カード内の小見出し（ミンサー下線は控えめサイズ） */
.kk-section-title--sub {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}

.kk-section-title--sub::after {
    width: 84px;
    height: 6px;
    margin-top: 8px;
}

.info-grid {
    display: grid;
}

.info-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-soft);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: var(--accent-strong);
    font-size: 0.88rem;
}

.info-value {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
}

.info-value small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 連絡先リンク */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--link);
    font-weight: 500;
    padding: 6px 14px;
    background: var(--bg-inset);
    border-radius: var(--radius-pill);
    margin: 2px 0;
    transition: background 0.25s ease, color 0.25s ease;
}

.contact-link:hover {
    background: var(--bg-inset-strong);
    color: var(--link-hover);
}

/* ================================
   本文
   ================================ */

.description-content {
    color: var(--text-primary);
    line-height: 1.9;
    font-size: 1rem;
}

.description-content p {
    margin-bottom: 1em;
}

.description-content h2,
.description-content h3 {
    color: var(--heading);
    margin: 1.4em 0 0.7em;
}

.description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ================================
   アクション・フッター
   ================================ */

.event-actions {
    display: flex;
}

.event-footer {
    margin-top: var(--space-4);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border-soft);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.event-footer span {
    margin: 0 10px;
}

/* ================================
   レスポンシブ
   ================================ */

@media (max-width: 900px) {
    .event-layout {
        grid-template-columns: 1fr;
    }

    .event-poster {
        position: static;
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .info-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 11px 0;
    }

    .info-card,
    .description-card {
        padding: var(--space-2);
    }
}

/* ================================
   アクセシビリティ
   ================================ */

@media (prefers-reduced-motion: reduce) {
    .event-detail-container {
        animation: none;
    }
}
