/* =============================================
   デジタルMAP：イベント告知（モーダル＋バナー）
   ============================================= */

:root {
    --evn-accent: #e8590c;   /* NEWSバッジ・ボタンの色 */
    --evn-text: #3b2a25;
    --evn-top: 12px;         /* バナーの上からの位置（ヘッダーに被る場合はここを調整） */
}

/* ---- バナー ---- */
.evn-banner {
    position: fixed;
    top: var(--evn-top);
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 24px);
    padding: 7px 16px 7px 8px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .22);
    color: var(--evn-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.evn-banner:hover { background: #fff8f2; }

.evn-badge {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--evn-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
}

.evn-banner-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---- モーダル ---- */
.evn-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .55);
    animation: evn-fade .2s ease-out;
}

@keyframes evn-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.evn-card {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
    animation: evn-pop .22s ease-out;
}

@keyframes evn-pop {
    from { transform: translateY(12px) scale(.97); opacity: 0; }
    to   { transform: translateY(0) scale(1);      opacity: 1; }
}

.evn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(40, 40, 40, .8);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.evn-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px 16px 0 0;
}

.evn-inner { padding: 20px 22px 24px; }

/* 画像がない場合は×ボタンと被らないよう上に余白 */
.evn-card:not(:has(.evn-image)) .evn-inner { padding-top: 48px; }

.evn-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.5;
    color: var(--evn-text);
}

.evn-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    white-space: pre-line;
}

.evn-action {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: 20px;
    padding: 13px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--evn-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.evn-action:hover { opacity: .9; }