/* ==========================================================
   Home
========================================================== */

.home-live-section,.live-archive-header{
    margin-bottom:38px;padding:clamp(20px,3vw,32px);border-radius:18px;
    background:linear-gradient(135deg,#170d18,#39101b 55%,#65101b);color:#fff;
    box-shadow:0 16px 38px rgba(79,10,24,.22)
}
.home-live-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.home-live-heading h2{margin:8px 0 3px;color:#fff;font-size:clamp(22px,3vw,32px)}
.home-live-heading p{margin:0;color:#e9cbd1}.home-live-heading>a{color:#fff;font-weight:700;text-decoration:none;white-space:nowrap}
.home-live-badge,.live-archive-label{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:900;letter-spacing:.13em}
.home-live-badge i{color:#ff314d;font-size:9px;filter:drop-shadow(0 0 5px #ff314d)}
.youtube-player-wrap{position:relative;overflow:hidden;width:100%;padding-top:56.25%;border-radius:14px;background:#000}
.youtube-player-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.home-live-note{margin:12px 0 0;color:#f4dce1;font-size:13px}
.live-archive-page{max-width:1180px;margin:0 auto}.live-archive-header{display:flex;align-items:center;justify-content:space-between;gap:24px}
.live-archive-header span{font-size:12px;font-weight:800;letter-spacing:.16em;color:#ffb7c2}.live-archive-header h1{margin:8px 0;color:#fff}.live-archive-header p{margin:0;color:#edd7dc}
.live-archive-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:24px}
.live-archive-card{overflow:hidden;border:1px solid #e3e9f2;border-radius:16px;background:#fff;box-shadow:0 10px 28px rgba(34,52,75,.09)}
.live-archive-card>img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.live-archive-card .youtube-player-wrap{border-radius:0}
.live-archive-body{padding:20px}.live-archive-label{color:#c81e3a}.live-archive-body h2{margin:7px 0;color:#1d2d42;font-size:20px}.live-archive-body time{display:block;margin-bottom:14px;color:#718096;font-size:14px}.live-archive-body a{font-weight:700;text-decoration:none}
@media(max-width:680px){.home-live-heading,.live-archive-header{align-items:flex-start;flex-direction:column}.home-live-heading>a{white-space:normal}}

.aes-portal-hero{
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);
    gap:28px;
    margin-bottom:38px;
    padding:clamp(26px,4vw,48px);
    border:1px solid #dce8f8;
    border-radius:20px;
    background:linear-gradient(135deg,#f7faff 0%,#e9f2ff 58%,#f4edff 100%);
    box-shadow:0 14px 36px rgba(47,110,181,.11);
}

.aes-portal-copy{
    align-self:center;
}

.aes-portal-eyebrow{
    display:block;
    margin-bottom:10px;
    color:#2f6eb5;
    font-size:12px;
    font-weight:800;
    letter-spacing:.16em;
}

.aes-portal-copy h1{
    max-width:720px;
    margin:0;
    color:#17253a;
    font-size:clamp(28px,4vw,46px);
    line-height:1.2;
    font-weight:800;
}

.aes-portal-copy p{
    max-width:720px;
    margin:18px 0 0;
    color:#526175;
    font-size:16px;
    line-height:1.8;
}

.aes-portal-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:24px;
}

.aes-portal-links{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:12px;
}

.bdc-portal-hero{
    grid-template-columns:1fr;
    min-height:220px;
}

.aes-portal-card{
    display:grid;
    grid-template-columns:38px 1fr auto;
    align-items:center;
    gap:12px;
    padding:16px;
    border:1px solid rgba(47,110,181,.14);
    border-radius:14px;
    background:rgba(255,255,255,.88);
    color:#25364d;
    text-decoration:none;
    transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

.aes-portal-card:hover{
    transform:translateY(-2px);
    border-color:#8eb7ec;
    box-shadow:0 8px 22px rgba(47,110,181,.13);
    color:#1f5fa8;
}

.aes-portal-card > i:first-child{
    color:#2f6eb5;
    font-size:22px;
    text-align:center;
}

.aes-portal-card span{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.aes-portal-card strong{
    font-size:16px;
}

.aes-portal-card small{
    color:#718096;
}

.aes-home-summary{margin:0 0 38px}
.aes-summary-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:22px}
.aes-summary-metrics article{display:flex;align-items:center;gap:15px;padding:18px 20px;border:1px solid var(--theme-border,#dce5f0);border-radius:16px;background:var(--theme-surface,#fff);box-shadow:0 8px 22px rgba(23,61,107,.08)}
.aes-summary-metrics article>i{display:grid;width:48px;height:48px;flex:none;place-items:center;border-radius:50%;background:#ff5f91;color:#fff;font-size:18px}
.aes-summary-metrics article:nth-child(2)>i{background:#35d7dc;color:#152047}
.aes-summary-metrics span,.aes-summary-metrics strong,.aes-summary-metrics small{display:block}
.aes-summary-metrics span{color:var(--theme-muted,#64748b);font-size:12px;font-weight:700}
.aes-summary-metrics strong{margin:2px 0;color:var(--theme-text,#152047);font-size:28px}
.aes-summary-metrics small{color:#ff5f91;font-size:9px;font-weight:900;letter-spacing:.12em}
.aes-game-data-card{padding:24px;border:1px solid var(--theme-border,#dce5f0);border-radius:18px;background:var(--theme-surface,#fff);box-shadow:0 8px 25px rgba(23,61,107,.08)}
.aes-game-data-card>header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:10px}
.aes-game-data-card>header span{color:#ff5f91;font-size:10px;font-weight:900;letter-spacing:.16em}
.aes-game-data-card>header h2{margin:4px 0 0;font-size:22px}
.aes-game-data-card>header a{padding:6px 10px;border-radius:999px;background:#e9f9ff;font-size:12px;font-weight:800;text-decoration:none}
.aes-game-data-row{display:grid;grid-template-columns:54px minmax(190px,1fr) minmax(390px,1.6fr);align-items:center;gap:16px;padding:17px 4px;border-top:1px dashed #cbd5e1}
.aes-game-data-icon{display:grid;width:50px;height:50px;place-items:center;border-radius:50%;background:#35d7dc;color:#152047;font-size:19px}
.aes-game-data-icon.is-iidx{background:#ffd938}
.aes-game-data-title strong,.aes-game-data-title small{display:block}.aes-game-data-title strong{font-size:16px}.aes-game-data-title small{margin-top:4px;color:var(--theme-muted,#64748b);font-size:11px}
.aes-game-data-row dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.aes-game-data-row dl>div{padding:8px 11px;border-left:2px solid #e1e6ef}
.aes-game-data-row dt{color:var(--theme-muted,#64748b);font-size:9px;font-weight:800}.aes-game-data-row dd{overflow:hidden;margin:3px 0 0;color:var(--theme-text,#152047);font-size:16px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}

@media(max-width:1150px){.aes-game-data-row{grid-template-columns:50px 1fr}.aes-game-data-row dl{grid-column:1/-1;padding-left:66px}}
@media(max-width:600px){.aes-summary-metrics{gap:12px}.aes-summary-metrics article{padding:14px 12px}.aes-summary-metrics article>i{width:42px;height:42px}.aes-game-data-card{padding:17px}.aes-game-data-card>header{align-items:flex-start}.aes-game-data-card>header h2{font-size:20px}.aes-game-data-card>header a{font-size:10px;white-space:nowrap}.aes-game-data-row{grid-template-columns:44px 1fr;gap:11px;padding:15px 0}.aes-game-data-icon{width:42px;height:42px;font-size:16px}.aes-game-data-row dl{grid-column:1/-1;gap:3px;padding-left:0}.aes-game-data-row dl>div{padding:7px 6px}.aes-game-data-row dt{font-size:8px}.aes-game-data-row dd{font-size:14px}}

@media (max-width:900px){
    .aes-portal-hero{
        grid-template-columns:1fr;
        padding:24px;
    }
}

@media (max-width:560px){
    .aes-portal-actions .btn{
        width:100%;
    }
}

.home-section{

    margin-bottom:40px;

}

.home-title{

    margin:0 0 20px;

    font-size:28px;

    font-weight:700;

    color:#222;

}

.home-subtitle{

    margin:0 0 20px;

    font-size:22px;

    font-weight:600;

    color:#333;

}

/* ==========================================================
   Event Grid
========================================================== */

.event-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fill,minmax(320px,1fr));

    gap:24px;

}

/* ==========================================================
   Event Card
========================================================== */

.event-card{

    position:relative;

    background:#ffffff;

    border-radius:14px;

    padding:24px;

    box-shadow:0 6px 18px rgba(0,0,0,.06);

    display:flex;

    flex-direction:column;

    transition:.2s;

}

.event-card:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 28px rgba(0,0,0,.12);

}

.home-section-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:20px;
}

.home-section-heading .home-subtitle{
    margin-bottom:0;
}

.home-section-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#2f6eb5;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    white-space:nowrap;
}

.home-section-link:hover{
    color:#174f91;
    text-decoration:underline;
}

@media (max-width:560px){
    .home-section-heading{
        align-items:flex-start;
        flex-direction:column;
        gap:8px;
    }
}

.event-number{

    position:absolute;

    top:18px;

    right:20px;

    color:#9aa6b5;

    font-size:11px;

    line-height:1;

}

.event-title{

    margin:0;

    font-size:22px;

    font-weight:700;

    color:#2f6eb5;

}

.event-date{

    margin-top:12px;

    color:#666;

    font-size:15px;

}

.event-status{

    display:inline-block;

    margin-top:14px;

    padding:6px 12px;

    border-radius:20px;

    font-size:13px;

    font-weight:700;

}

/* ==========================================================
   Status
========================================================== */

.status-entry{

    background:#e6f7ea;

    color:#16803c;

}

.status-open{

    background:#eef6ff;

    color:#0b75ff;

}

.status-close{

    background:#fff3cd;

    color:#b7791f;

}

.status-end{

    background:#ececec;

    color:#666;

}

/* ==========================================================
   Event Info
========================================================== */

.event-info{

    margin-top:18px;

}

.event-info div{

    margin-bottom:10px;

    color:#444;

    font-size:15px;

}

.event-info strong{

    color:#222;

}


.event-card-finished {
    opacity: 0.82;
}

.status-finished {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
}


/* ==========================================================
   Buttons
========================================================== */

.event-buttons{

    display:grid;

    grid-template-columns:repeat(2,minmax(0,1fr));

    gap:12px;

    margin-top:auto;

    padding-top:20px;

}

.event-buttons .btn{

    min-width:0;

    min-height:48px;

    padding:10px 8px;

    font-size:14px;

    text-align:center;

    white-space:normal;

    word-break:keep-all;

    writing-mode:horizontal-tb;

}

/* ==========================================================
   Notice
========================================================== */

.notice-list{

    background:#ffffff;

    border-radius:14px;

    padding:20px;

    box-shadow:0 6px 18px rgba(0,0,0,.06);

}

.notice-item{

    display:flex;

    gap:16px;

    padding:14px 0;

    border-bottom:1px solid #ececec;

}

.notice-item:last-child{

    border-bottom:none;

}

.notice-date{

    width:110px;

    color:#999;

    font-size:14px;

}

.notice-text{

    flex:1;

}

/* ==========================================================
   Empty
========================================================== */

.empty-card{

    background:#ffffff;

    border:2px dashed #cccccc;

    border-radius:14px;

    padding:50px;

    text-align:center;

    color:#888;

}

/* ==========================================================
   Mobile
========================================================== */

@media(max-width:768px){

    .event-grid{

        grid-template-columns:1fr;

    }

    .event-buttons{

        grid-template-columns:1fr;

    }

    .notice-item{

        flex-direction:column;

        gap:6px;

    }

    .notice-date{

        width:auto;

    }

}

/* お知らせ詳細 */
.news-detail{
    width:100%;
    max-width:960px;
    margin:56px auto;
}
.notice-item.notice-pinned { border-left: 4px solid #f97316; background: #fffaf5; }
.notice-item.notice-unread { background: #f6f9ff; }
.notice-badge { display: inline-flex; margin-right: 5px; padding: 3px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; vertical-align: middle; }
.notice-badge-important { color: #9a3412; background: #ffedd5; }
.notice-badge-unread { color: #1d4ed8; background: #dbeafe; }
.notice-badge-event { color: #6b21a8; background: #f3e8ff; }

.news-article{
    padding:clamp(28px, 5vw, 56px);
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:18px;
    box-shadow:0 12px 30px rgba(15, 23, 42, .07);
}

.news-article-label{
    display:inline-block;
    margin-bottom:18px;
    padding:6px 12px;
    border-radius:999px;
    background:#e8f0ff;
    color:#2563eb;
    font-size:14px;
    font-weight:700;
}

.news-article-date{
    display:block;
    color:#64748b;
    font-size:15px;
}

.news-article-title{
    margin:12px 0 0;
    color:#172033;
    font-size:clamp(28px, 3vw, 42px);
    line-height:1.35;
    overflow-wrap:anywhere;
}

.news-article-body{
    margin-top:30px;
    padding-top:28px;
    border-top:1px solid #e5e7eb;
    color:#334155;
    font-size:17px;
    line-height:1.9;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}

.news-article-actions{
    margin:34px 0 0;
}

.disabled-entry-button{
    pointer-events:none;
    cursor:not-allowed;
    opacity:.65;
    font-size:0;
}

.disabled-entry-button::after{
    content:attr(data-disabled-label);
    font-size:15px;
}
