/* =========================================================
   イベント（チラシ一覧）ページ専用スタイル
   既存セレクタと重複しないよう接頭辞 ev- を付与
   ========================================================= */

/* ----- ヘッダー内タイトル ----- */
.ev-page-title {
    font-family: var(--font-round);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-dark);
    background: rgba(255, 138, 30, 0.12);
    padding: 7px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

/* 単独表示のフッターは区切り線を消す */
.ev-page .site-footer .footer-bottom {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* ----- 見出し ----- */
h1.ev-title {
    font-family: var(--font-round);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    line-height: 1.35;
    color: var(--ink);
    margin: 0 auto 14px;
}

h1.ev-title .hl {
    position: relative;
    z-index: 0;
}

h1.ev-title .hl::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 4px;
    height: 34%;
    z-index: -1;
    background: rgba(255, 204, 63, 0.55);
    border-radius: 4px;
}

.ev-lead {
    margin: 0 auto;
    max-width: 640px;
    color: var(--ink-soft);
    font-size: 0.98rem;
}

.ev-empty {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 36px 24px;
    text-align: center;
    color: var(--muted);
}

/* ----- 状態バッジ ----- */
.ev-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-round);
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1;
    padding: 7px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.ev-badge-current {
    background: var(--gradient-brand);
    color: #fff;
    font-size: 0.98rem;
    padding: 9px 18px;
    box-shadow: 0 8px 18px rgba(255, 106, 61, 0.32);
}

.ev-badge-current::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    animation: ev-pulse 1.6s ease-out infinite;
}

@keyframes ev-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.85); }
    80%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.ev-badge-upcoming {
    background: var(--teal);
    color: #fff;
}

.ev-badge-past {
    background: #ece9f2;
    color: var(--muted);
}

/* ----- 開催中・開催予定（大きく表示） ----- */
.ev-feature {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: clamp(20px, 3.5vw, 36px);
    margin-bottom: 36px;
}

.ev-feature.is-current {
    border: 3px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--gradient-brand) border-box;
    box-shadow: var(--shadow-lg);
}

.ev-feature.is-upcoming {
    border: 2px solid rgba(22, 191, 174, 0.45);
}

.ev-feature-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 22px;
}

.ev-period {
    font-family: var(--font-round);
    font-weight: 700;
    font-size: clamp(1.25rem, 2.6vw, 1.7rem);
    line-height: 1.3;
    color: var(--ink);
    margin: 0;
}

.ev-name {
    flex-basis: 100%;
    margin: 0;
    color: var(--ink-soft);
    font-weight: 700;
}

.ev-pages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2.4vw, 24px);
}

.ev-page-link {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ev-page-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.ev-page-link img {
    display: block;
    width: 100%;
    height: auto;
}

.ev-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 210 / 297;
    background: var(--bg-tint);
    color: var(--brand-dark);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.ev-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

/* ----- 過去のイベント（小さく・控えめに） ----- */
.ev-archive-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-round);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink-soft);
    margin: 56px auto 20px;
}

.ev-archive-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.ev-archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}

.ev-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ev-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.ev-card-thumb {
    aspect-ratio: 210 / 297;
    background: var(--bg-tint);
    overflow: hidden;
}

.ev-card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: saturate(0.45);
    opacity: 0.85;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.ev-card:hover .ev-card-thumb img {
    filter: none;
    opacity: 1;
}

.ev-card-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 12px 14px 14px;
}

.ev-card-period {
    font-weight: 700;
    font-size: 0.92rem;
}

.ev-card-name {
    flex-basis: 100%;
    font-size: 0.85rem;
    color: var(--ink-soft);
    word-break: break-all;
}

.ev-back-link {
    text-align: center;
    margin-top: 40px;
}

.ev-back-link a {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 700;
}

.ev-back-link a:hover {
    text-decoration: underline;
}

/* ----- レスポンシブ ----- */
@media (max-width: 600px) {
    .ev-page-title {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .ev-pages {
        grid-template-columns: 1fr;
    }

    .ev-actions .btn {
        width: 100%;
    }

    .ev-archive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ev-badge-current::before { animation: none; }
}
