/* ============================================================
   イベント情報ページ（event/index.html）専用スタイル
   ============================================================
   base.css を先に読み込んだ上で使用する。
   ============================================================ */

:root {
    --measure: 860px;
}

header.page-head {
    margin-bottom: 48px;
}

header.page-head p {
    color: var(--ink-soft);
    margin: 0;
    font-size: 15px;
}

/* ---------- セクション見出し（予定/終了） ---------- */
.event-section {
    margin: 0 0 56px;
}

.event-section h2 {
    font-family: var(--font-jp);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.event-section h2::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--g-blue);
    flex: none;
}

.event-section.is-ended h2::before {
    background: var(--ink-soft);
}

/* ---------- イベントカード一覧 ---------- */
.event-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-card {
    position: relative;
    overflow: hidden;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(60, 64, 67, .08), 0 1px 6px rgba(60, 64, 67, .06);
    transition: box-shadow .15s, transform .15s;
}

.event-card:hover {
    box-shadow: 0 2px 4px rgba(60, 64, 67, .1), 0 4px 12px rgba(60, 64, 67, .08);
    transform: translateY(-2px);
}

.event-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.event-list li:nth-child(4n+1) .event-card::before {
    background: var(--g-blue);
}

.event-list li:nth-child(4n+2) .event-card::before {
    background: var(--g-red);
}

.event-list li:nth-child(4n+3) .event-card::before {
    background: var(--g-yellow);
}

.event-list li:nth-child(4n+4) .event-card::before {
    background: var(--g-green);
}

/* 終了したイベントは彩度を落として区別する */
.event-card.is-ended {
    opacity: 0.75;
}

.event-card.is-ended::before {
    background: var(--ink-soft) !important;
}

.event-card a {
    display: block;
    padding: 28px 28px 24px;
    text-decoration: none;
    color: inherit;
}

.event-card .date {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-soft);
    background: var(--bg);
    border-radius: 100px;
    padding: 4px 12px;
    margin-bottom: 14px;
    margin-right: 6px;
}

.event-card .status-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--g-yellow);
    background: #fef7e0;
    border-radius: 100px;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.event-card h2 {
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 19px;
    margin: 0 0 8px;
}

.event-card p.venue {
    color: var(--ink-soft);
    font-size: 13px;
    margin: 0 0 8px;
}

.event-card p.excerpt {
    color: var(--ink-soft);
    font-size: 14px;
    margin: 0 0 14px;
}

.event-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--g-blue);
    font-weight: 500;
}

.event-list-empty {
    color: var(--ink-soft);
    font-size: 14px;
    text-align: center;
    padding: 24px 0;
    background: var(--card);
    border-radius: var(--radius);
}

@media (max-width: 480px) {
    .wrap {
        padding: 32px 16px 72px;
    }

    .event-card a {
        padding: 22px 20px 20px;
    }
}