/* ==========================
   町民集会画面（A案：帯見出し＋白カード型 / Issue #323）
========================== */

.meeting-container{
    width:100%;
    max-width:1348px;
    margin:0;
    padding:14px 15px 30px;
    box-sizing:border-box;
}

.meeting-section{
    width:100%;
    box-sizing:border-box;
}

.meeting-section-title{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0 0 12px;
    color:var(--theme-heading);
    font-size:19px;
    font-weight:bold;
}

.meeting-section-title::before{
    content:"";
    flex:0 0 auto;
    width:5px;
    height:22px;
    border-radius:3px;
    background:linear-gradient(180deg,var(--theme-btn-from),var(--theme-primary));
}

/* ==========================
   次の町民集会（スライダー）
========================== */

.meeting-slider-wrapper{
    position:relative;
    width:100%;
}

.meeting-slider{
    display:flex;
    align-items:stretch;
    width:100%;
    overflow-x:auto;
    gap:14px;
    padding:0 0 8px;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
}

.meeting-slider::-webkit-scrollbar{
    display:none;
}

.meeting-card{
    display:flex;
    flex:0 0 100%;
    flex-direction:column;
    width:100%;
    max-width:none;
    min-width:100%;
    height:auto;
    box-sizing:border-box;
    padding:18px;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:18px;
    box-shadow:0 6px 18px rgba(61,44,46,.06);
    scroll-snap-align:start;
}

.meeting-card-content{
    flex:1;
    min-width:0;
}

.meeting-card-top{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:28px;
}

.meeting-card-countdown{
    margin-left:auto;
    text-align:right;
}

.meeting-countdown-text{
    color:var(--theme-brand);
    font-size:23px;
    font-weight:800;
    letter-spacing:.02em;
}

.meeting-today-text{
    color:var(--theme-brand);
    font-size:20px;
    font-weight:800;
}

.join-status{
    display:inline-flex;
    align-items:center;
    padding:5px 12px;
    border-radius:999px;
    background:var(--theme-blush);
    color:var(--theme-brand);
    font-size:12px;
    font-weight:bold;
}

.meeting-name{
    margin-top:10px;
    color:var(--theme-text);
    font-size:18px;
    font-weight:800;
    line-height:1.5;
}

.meeting-info-panel{
    margin-top:12px;
    padding:12px 14px;
    border-radius:14px;
    background:var(--theme-blush);
}

.meeting-info-row{
    display:flex;
    align-items:center;
    gap:8px;
    color:var(--theme-text);
    font-size:13.5px;
    font-weight:bold;
    line-height:1.6;
}

.meeting-info-row + .meeting-info-row{
    margin-top:4px;
}

.meeting-info-icon{
    display:inline-flex;
    flex:0 0 auto;
    color:var(--theme-brand);
}

.meeting-info-icon svg{
    display:block;
    width:17px;
    height:17px;
}

/* ==========================
   天気・各種ボタン
========================== */

.weather-button-row{
    display:flex;
    gap:8px;
    margin-top:14px;
}

.weather-btn,
.weather-hourly-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    flex:1;
    min-height:42px;
    padding:8px 10px;
    border:1px solid var(--theme-border);
    border-radius:999px;
    background:#fff;
    color:var(--theme-text);
    font-family:inherit;
    font-size:13px;
    font-weight:bold;
    cursor:pointer;
}

.weather-btn:hover,
.weather-hourly-btn:hover{
    background:var(--theme-blush);
}

.weather-hourly-icon{
    display:inline-flex;
    color:var(--theme-brand);
}

.weather-hourly-icon svg{
    display:block;
    width:16px;
    height:16px;
}

.departure-btn,
.add-history,
.detail-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:44px;
    box-sizing:border-box;
    margin-top:10px;
    padding:8px 12px;
    border-radius:999px;
    text-decoration:none;
    font-size:13.5px;
    font-weight:bold;
}

.departure-btn{
    background:var(--theme-blush);
    color:var(--theme-brand);
    border:1px solid var(--theme-border-soft);
}

.departure-icon{
    display:inline-flex;
}

.departure-icon svg{
    display:block;
    width:15px;
    height:15px;
}

.add-history{
    background:#fff;
    color:var(--theme-brand);
    border:1px solid var(--theme-border);
}

.detail-btn{
    flex-shrink:0;
    margin-top:12px;
    background:linear-gradient(135deg,var(--theme-btn-from),var(--theme-primary));
    color:#fff;
}

/* ==========================
   スライダー操作
========================== */

.meeting-slider-arrow{
    display:none;
}

.meeting-slider-dots{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:6px;
    margin:8px 0 0;
}

.meeting-slider-dot{
    display:block;
    width:8px;
    height:8px;
    padding:0;
    border:0;
    border-radius:50%;
    background:var(--theme-border);
    cursor:pointer;
}

.meeting-slider-dot.active{
    background:var(--theme-primary);
}

.meeting-slider-dot:active{
    transform:scale(.9);
}

/* ==========================
   町民集会なし
========================== */

.next-meeting-empty{
    margin:0;
    padding:30px 20px;
    text-align:center;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:18px;
    box-shadow:0 6px 18px rgba(61,44,46,.05);
}

.next-meeting-empty-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:60px;
    height:60px;
    margin:0 auto;
    border-radius:50%;
    background:var(--theme-blush);
    color:var(--theme-brand);
}

.next-meeting-empty-icon svg{
    display:block;
    width:30px;
    height:30px;
}

.next-meeting-empty-title{
    margin-top:12px;
    color:var(--theme-text);
    font-size:15px;
    font-weight:bold;
}

.next-meeting-empty-text{
    margin-top:5px;
    color:var(--theme-text-muted);
    font-size:13px;
}

/* ==========================
   町民集会集計（白カード3枚）
========================== */

.meeting-summary-section{
    margin-top:28px;
}

.meeting-summary-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
}

.meeting-summary-card{
    box-sizing:border-box;
    padding:16px;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:18px;
    box-shadow:0 6px 18px rgba(61,44,46,.06);
}

.meeting-summary-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.meeting-summary-label{
    color:var(--theme-text-sub);
    font-size:13px;
    font-weight:bold;
    line-height:1.5;
}

.meeting-summary-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    width:38px;
    height:38px;
    border-radius:50%;
    background:var(--theme-blush);
    color:var(--theme-brand);
}

.meeting-summary-icon svg{
    display:block;
    width:20px;
    height:20px;
}

.meeting-summary-value{
    margin-top:10px;
    color:var(--theme-text);
    line-height:1.3;
}

.meeting-summary-big{
    color:var(--theme-brand);
    font-size:32px;
    font-weight:800;
}

.meeting-summary-unit{
    font-size:14px;
    font-weight:bold;
}

.meeting-summary-sub{
    margin-top:8px;
    color:var(--theme-text-muted);
    font-size:12px;
    line-height:1.5;
}

.meeting-summary-share-row{
    display:flex;
    justify-content:flex-end;
    margin-top:12px;
}

.meeting-summary-share-btn{
    width:fit-content;
    min-height:36px;
    padding:6px 16px;
    box-sizing:border-box;
    border:0;
    border-radius:999px;
    background:#111;
    color:#fff;
    font-family:inherit;
    font-size:13px;
    font-weight:bold;
    cursor:pointer;
}

.meeting-summary-share-btn:active{
    transform:scale(.98);
}

/* ==========================
   推し活状況
========================== */

.meeting-status-section{
    margin-top:32px;
}

.meeting-status-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
}

.meeting-status-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    box-sizing:border-box;
    min-height:86px;
    padding:14px;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:16px;
    box-shadow:0 6px 18px rgba(61,44,46,.05);
}

.meeting-status-card-link{
    color:inherit;
    text-decoration:none;
}

.meeting-status-card-main{
    display:flex;
    align-items:center;
    min-width:0;
}

.meeting-status-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 46px;
    width:46px;
    height:46px;
    margin-right:12px;
    border-radius:50%;
    background:var(--theme-blush);
    color:var(--theme-brand);
}

.meeting-status-icon svg{
    display:block;
    width:23px;
    height:23px;
}

.meeting-status-content{
    min-width:0;
}

.meeting-status-title{
    color:var(--theme-text);
    font-size:15px;
    font-weight:bold;
}

.meeting-status-text,
.meeting-status-value{
    margin-top:4px;
    color:var(--theme-text-muted);
    font-size:12px;
    line-height:1.5;
}

.meeting-status-arrow{
    margin-left:10px;
    color:var(--theme-border);
    font-size:25px;
    line-height:1;
}

/* ==========================
   回収済み楽曲
========================== */

.collected-song-card{
    align-items:flex-start;
}

.collected-song-card .meeting-status-icon{
    margin-top:1px;
}

.collected-progress{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:7px;
}

.collected-progress-bar{
    flex:1;
    height:6px;
    overflow:hidden;
    border-radius:3px;
    background:var(--theme-border-soft);
}

.collected-progress-value{
    height:100%;
    border-radius:3px;
    background:linear-gradient(90deg,var(--theme-btn-from),var(--theme-primary));
}

.collected-progress-rate{
    flex:none;
    color:var(--theme-brand);
    font-size:11px;
    font-weight:bold;
}

/* ==========================
   天気モーダル（ライブと共通のA案）
========================== */

.weather-modal{
    display:none;
    position:fixed;
    inset:0;
    z-index:1000;
}

.weather-modal.active{
    display:flex;
    align-items:center;
    justify-content:center;
}

.weather-modal-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
}

.weather-modal-content{
    position:relative;
    z-index:1;
    width:calc(100% - 30px);
    max-width:430px;
    max-height:80vh;
    overflow-y:auto;
    box-sizing:border-box;
    padding:0 0 20px;
    background:#fff;
    border-radius:24px;
}

.weather-modal-head{
    position:relative;
    padding:20px 20px 16px;
    background:linear-gradient(180deg,var(--theme-blush),#fff);
    border-radius:24px 24px 0 0;
}

.weather-modal-kicker{
    display:inline-flex;
    align-items:center;
    padding:5px 12px;
    border:1px solid var(--theme-border);
    border-radius:999px;
    background:#fff;
    color:var(--theme-brand);
    font-size:11.5px;
    font-weight:bold;
    letter-spacing:.12em;
    line-height:1.4;
}

.weather-modal-title{
    margin-top:10px;
    color:var(--theme-heading);
    font-size:22px;
    font-weight:bold;
    line-height:1.4;
}

.weather-updated-at{
    margin-top:4px;
    color:var(--theme-text-muted);
    font-size:12.5px;
}

.weather-modal-x{
    position:absolute;
    top:16px;
    right:16px;
    width:32px;
    min-height:32px;
    height:32px;
    margin:0;
    padding:0;
    border:1px solid var(--theme-border-soft);
    border-radius:50%;
    background:#fff;
    color:var(--theme-text-muted);
    font-size:16px;
    line-height:1;
    cursor:pointer;
}

.weather-day{
    margin:12px 20px 0;
    padding:14px;
    border:1px solid var(--theme-border-soft);
    border-radius:16px;
    background:#fff;
}

.weather-day.is-today{
    border-color:var(--theme-border);
    background:linear-gradient(180deg,#fff,var(--theme-blush));
}

.weather-day-title{
    display:flex;
    align-items:center;
    gap:8px;
}

.weather-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    width:46px;
    height:46px;
    border-radius:50%;
    background:var(--theme-blush);
    font-size:24px;
}

.weather-day-date{
    font-size:16px;
    font-weight:bold;
    color:var(--theme-text);
}

.weather-day-label{
    margin-left:auto;
    padding:4px 12px;
    border-radius:999px;
    background:var(--theme-tint);
    color:var(--theme-brand);
    font-size:12.5px;
    font-weight:bold;
    line-height:1.5;
}

.weather-day.is-today .weather-day-label{
    background:linear-gradient(135deg,var(--theme-btn-from),var(--theme-primary));
    color:#fff;
}

.weather-day-main{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin-top:12px;
}

.weather-field-label{
    display:block;
    margin-bottom:2px;
    color:var(--theme-text-muted);
    font-size:11.5px;
    font-weight:normal;
}

.weather-name{
    font-size:18.5px;
    font-weight:bold;
    color:var(--theme-text);
    line-height:1.5;
}

.weather-temperature{
    text-align:right;
    line-height:1.5;
}

.weather-temp-values{
    font-size:20px;
    font-weight:bold;
    white-space:nowrap;
}

.weather-temp-min{
    color:#2f7fd0;
}

.weather-temp-sep{
    margin:0 4px;
    color:var(--theme-text-muted);
    font-weight:normal;
}

.weather-temp-max{
    color:var(--theme-primary);
}

.weather-rain{
    display:inline-flex;
    align-items:center;
    gap:4px;
    margin-top:12px;
    padding:5px 12px;
    border-radius:999px;
    background:var(--theme-tint);
    color:var(--theme-brand);
    font-size:14px;
    font-weight:bold;
    line-height:1.5;
}

.weather-hourly-list{
    margin:12px 20px 0;
}

.weather-hourly-row{
    display:grid;
    grid-template-columns:54px 44px 1fr 66px 64px;
    align-items:center;
    gap:4px;
    padding:12px 2px;
    border-bottom:1px solid var(--theme-border-soft);
    font-size:15px;
    color:var(--theme-text);
}

.weather-hourly-row:last-child{
    border-bottom:0;
}

.weather-hourly-time{
    font-weight:bold;
}

.weather-hourly-icon{
    text-align:center;
    font-size:20px;
}

.weather-hourly-temperature{
    text-align:right;
    font-weight:bold;
}

.weather-hourly-rain{
    padding:4px 6px;
    border-radius:999px;
    background:var(--theme-tint);
    color:var(--theme-brand);
    font-size:13px;
    font-weight:bold;
    text-align:center;
    white-space:nowrap;
}

.weather-close{
    width:calc(100% - 40px);
    min-height:46px;
    margin:16px 20px 0;
    border:0;
    border-radius:999px;
    background:linear-gradient(135deg,var(--theme-btn-from),var(--theme-primary));
    color:#fff;
    font-family:inherit;
    font-size:15.5px;
    font-weight:bold;
    cursor:pointer;
}

.weather-modal-x{
    width:32px;
    min-height:32px;
    margin:0;
    border:1px solid var(--theme-border-soft);
    background:#fff;
    color:var(--theme-text-muted);
}

/* ==========================
   タブレット・PC
========================== */

@media(min-width:768px){

    .meeting-container{
        padding:20px 30px 40px;
    }

    .meeting-section-title{
        font-size:21px;
    }

    .meeting-slider-wrapper{
        display:flex;
        align-items:center;
        gap:12px;
    }

    .meeting-slider{
        flex:1;
        min-width:0;
    }

    .meeting-slider-arrow{
        display:flex;
        align-items:center;
        justify-content:center;
        flex:0 0 40px;
        width:40px;
        height:40px;
        padding:0;
        border:1px solid var(--theme-border-soft);
        border-radius:50%;
        background:#fff;
        color:var(--theme-text-muted);
        font-family:inherit;
        font-size:28px;
        line-height:1;
        cursor:pointer;
        box-shadow:0 2px 6px rgba(0,0,0,.06);
    }

    .meeting-slider-arrow:hover{
        background:var(--theme-blush);
    }

    .meeting-slider-arrow:active{
        transform:scale(.95);
    }

    .meeting-slider-arrow:disabled{
        opacity:.35;
        cursor:default;
    }

    .meeting-card{
        padding:20px;
    }

    .meeting-name{
        font-size:19px;
    }

    .meeting-summary-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:15px;
    }

    .meeting-status-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:15px;
    }

    .meeting-status-card{
        min-height:92px;
        padding:15px;
    }

    .weather-modal-content{
        max-width:600px;
    }
}

/* ワイド画面用サイド情報（ライブTOPと共通の見た目） */
.live-side-info{
    display:none;
}

.live-side-card{
    min-width:0;
    padding:16px;
    box-sizing:border-box;
    border:1px solid var(--theme-border-soft);
    border-radius:20px;
    background:#fff;
    box-shadow:0 10px 24px rgba(var(--theme-brand-rgb),.07);
}

.live-side-title{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:12px;
    color:var(--theme-text);
    font-size:16px;
    font-weight:bold;
    line-height:1.5;
}

.live-side-dot{
    flex:0 0 auto;
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--theme-primary);
}

.live-side-list{
    list-style:none;
    margin:0;
    padding:0;
}

.live-side-list li + li{
    margin-top:10px;
}

.live-side-list a{
    display:block;
    color:var(--theme-text);
    text-decoration:none;
}

.live-side-date{
    display:block;
    font-size:11px;
    color:var(--theme-text-muted);
    line-height:1.5;
}

.live-side-item-title{
    display:block;
    font-size:13.5px;
    font-weight:bold;
    line-height:1.5;
}

.live-side-empty{
    font-size:12.5px;
    color:var(--theme-text-muted);
    margin:0;
    line-height:1.6;
}

.live-side-more{
    display:block;
    margin-top:12px;
    text-align:right;
    color:var(--theme-primary);
    font-size:13px;
    font-weight:bold;
    line-height:1.4;
    text-decoration:none;
}

.live-side-reminder-list{
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    max-height:150px;
}

.live-side-info .live-side-reminder-list{
    max-height:245px;
}

/* サイド列は画面の高さに合わせて表示量を減らす（HOMEと同じ段階） */
@media(max-height:999px){
    .live-side-info .live-side-list li:nth-child(n+5){
        display:none;
    }

    .live-side-info .live-side-reminder-list{
        max-height:150px;
    }
}

@media(max-height:849px){
    .live-side-info .live-side-list li:nth-child(n+4){
        display:none;
    }

    .live-side-info .live-side-reminder-list{
        max-height:103px;
    }
}

/* ライブ画面は本文（1348px）＋広告レールの分だけHOMEより広い幅が必要なため、
   専用列は2150px以上で、本文とレールの間の空き空間に置く */
@media(min-width:2150px){
    .live-side-info{
        display:flex;
        flex-direction:column;
        gap:12px;
        position:fixed;
        top:197px;
        left:calc(var(--pc-side-nav-width,220px) + 30px + 1348px + 24px);
        width:calc(100vw - var(--pc-side-nav-width,220px) - 1630px);
        max-width:440px;
        z-index:40;
        max-height:calc(100vh - 237px);
        max-height:calc(100dvh - 237px);
        overflow-y:auto;
        scrollbar-width:none;
        overscroll-behavior:contain;
    }

    .live-side-info::-webkit-scrollbar{
        display:none;
    }
}
