/* 外側（画面全体） */
body {
    background-color: #eee; /* グレー */
    margin: 0;
}

/* 内側（コンテンツ） */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 16px;
    background-color: #fff;
}

.main-page {
    padding-top: 16px;
    padding-bottom: 16px;
}

/* =========================
   フッター
========================= */
.copyright {
    margin: 0;
}


.card {
    position: relative;
    width: 68px;
    height: 60px;
    background: #f3f5f7;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* =========================
   ライトボックス
========================= */
.deck-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 24px; */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 99999;
}

.deck-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.deck-lightbox-inner {
    position: relative;
    width: min(95vw, 980px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    overflow-y: auto;
    padding: 24px 0;
}

.deck-lightbox-ad {
    width: min(100%, 728px);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deck-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0,0,0,0.35);
}

.deck-lightbox-close {
    /* position: absolute; */
    /* top: 0;
    right: 0; */
    bottom: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 2;
}

@media (max-width: 768px) {
    .deck-lightbox-inner {
        width: 94vw;
        max-height: 92vh;
        gap: 12px;
        padding: 20px 0;
    }

    .deck-lightbox-ad {
        width: 100%;
        min-height: 50px;
    }

    .deck-lightbox img {
        max-height: 50vh;
    }

    .deck-lightbox-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* =========================
   イベントヘッダー
========================= */
@media (max-width: 768px) {
    .event-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 10px;
    }

    .event-header span:nth-child(1) {
        order: 1;
    }

    .event-header span:nth-child(3) {
        order: 2;
    }

    .event-header span:nth-child(2) {
        order: 3;
        width: 100%;
    }
}