:root {
    /* --- 基本テーマ (Default: Dark/Round) --- */
    --bg-body: #1a1a1a;
    --bg-card: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-main: #FF9431;
    --accent-sub: #FF9431;
    /* --accent-sub: #00FED1; */

    --bg-glass: rgba(26, 26, 26, 0.9);
    --border-color: rgba(255, 255, 255, 0.1);
    --header-height: 70px;
    
    /* 丸みのあるデザイン設定 (初期デザインへの回帰) */
    --radius-card: 20px; 
    --radius-btn: 30px;
    --shadow-card: 0 8px 20px rgba(0,0,0,0.3);
    
    --font-main: 'Noto Sans JP', sans-serif;
    --font-head: 'Montserrat', sans-serif;

    font-size: 16px;
}

/* =========================================
    共通レイアウト
    ========================================= */
* { box-sizing: border-box; }
body {
    margin: 0;
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}
a { text-decoration: none; color: inherit; }

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    transition: transform 0.3s;
}
header.nav-up { transform: translateY(-100%); }

.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-main);
}

/* モードチェンジボタン (復元) */
.theme-switcher {
    display: flex;
    gap: 10px;
}
.btn-theme {
    background: rgba(128,128,128,0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex; align-items: center; gap: 5px;
    transition: 0.3s;
}
.btn-theme:hover { background: var(--accent-main); color: white; border-color: var(--accent-main); }

/* ヒーロースライダー */
.hero {
    height: 50vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1s, transform 6s; transform: scale(1.1);
}
.hero-slide.active { opacity: 0.7; transform: scale(1); }

.hero-content {
    position: relative; z-index: 2; text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.hero h1 { font-size: clamp(1.5rem,8vw,2.5rem); margin: 0; font-family: var(--font-head); }


/* メインコンテンツ */
.container {
    max-width: 1310px;
    margin: 0 auto;
    padding: 20px;
}

/* マップ */
#map-section {
    width: 100%; height: 350px;
    border-radius: var(--radius-card);
    margin-bottom: 30px;
    border: 4px solid var(--bg-card); /* 丸みを強調する枠線 */
    box-shadow: var(--shadow-card);
    overflow: hidden; /* 角丸を効かせる */
}

/* コントロール */
.controls {
    margin: 0 auto;
    background: var(--bg-card); 
    padding: 15px 15px 0;
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-card);
    overflow: visible;
}
.controls-scroll-wrap {
    position: relative;
    padding-bottom: 15px;
}
.controls-scroll-wrap.has-overflow {
    padding-bottom: 0;
}
.controls-scroll-wrap.has-overflow::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 48px;
    background: linear-gradient(to right, transparent, var(--bg-card));
    pointer-events: none;
    transition: opacity 0.2s;
}
.controls-scroll-wrap.at-end::after {
    opacity: 0;
}
.controls-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
@media (max-width: 1310px) {
    .controls-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .controls-scroll::-webkit-scrollbar {
        display: none;
    }
}

/* カスタムスクロールバー */
.controls-scrollbar {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    padding: 0 2px;
}
.controls-scrollbar.is-visible {
    display: flex;
}
.controls-scroll-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0 4px 4px;
    transition: color 0.2s;
}
.controls-scroll-btn:hover {
    color: rgba(255, 255, 255, 0.85);
}
.controls-scroll-btn:disabled {
    opacity: 0.25;
    cursor: default;
}
.controls-scroll-track {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}
.controls-scroll-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    min-width: 40px;
    background: rgba(255, 255, 255, 0.42);
    border-radius: 3px;
    cursor: grab;
    touch-action: none;
}
.controls-scroll-thumb.is-dragging {
    cursor: grabbing;
}

.btn-filter, select {
    padding: 8px 17px; border-radius: 30px; border: 1px solid var(--border-color);
    background: transparent; color: var(--text-primary); cursor: pointer;
    font-weight: bold; transition: 0.3s;

    /*  */
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 8px 17px;
}
.btn-filter.active { background: var(--accent-main); color: white; border-color: var(--accent-main); }
select { background: var(--bg-body); margin-left: auto; }
.btn-filter span,label {
    font-size: 0.9rem;
}
.btn-filter.is-scene,.btn-filter.is-seats { 
    justify-content: space-between;
}
.btn-filter.is-scene::after,.btn-filter.is-seats::after {
    display: inline-block;
    content: "";
    width: 5px; height: 5px;
    border-right: 2px solid var(--text-primary);
    border-top: 2px solid var(--text-primary);
    transform: rotate(135deg);
    margin-left: 5px;
}
.btn-filter.is-scene.is-open::after,.btn-filter.is-seats.is-open::after {
    transform: rotate(-45deg);
}

/* 店舗グリッド */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* 店舗カード (丸みのあるデザインへ復元) */
.shop-card {
    background: var(--bg-card);
    border-radius: var(--radius-card); /* 大きな丸み */
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
    display: flex; flex-direction: column;
    border: none; /* 枠線をなくして柔らかく */
}
.shop-card:hover { transform: translateY(-8px); }

.card-img-wrapper { position: relative; height: 200px; }
.card-img { width: 100%; height: 100%; object-fit: cover; }

.card-status {
    position: absolute; top: 15px; left: 15px;
    padding: 6px 15px; border-radius: 20px; /* 丸いバッジ */
    font-size: 0.8rem; font-weight: bold;
    background: rgba(255,255,255,0.9); color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.status-open { color: #00c853; }
.status-closed { color: #ff1744; }

.card-body { padding: 20px; flex-grow: 1; }
.card-title { 
    word-break: break-all;
    font-size: 1.8rem; 
    margin: 0 0 10px; color: 
    var(--accent-main); 
}
.card-meta {
    font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 5px;
    display: flex; align-items: center; gap: 6px;
}

/* カードアクションエリア */
.card-actions {
    padding: 15px 20px 25px;
    display: flex; gap: 10px;
}
.btn-card {
    flex: 1; padding: 10px; border-radius: 25px; /* 丸いボタン */
    text-align: center; font-weight: bold; border: none; cursor: pointer;
    display: flex; justify-content: center; align-items: center; gap: 5px;
    font-size: 0.9rem; transition: 0.2s;
}
.btn-preview { background: rgba(128,128,128,0.1); color: var(--text-primary); }
.btn-preview:hover { background: rgba(128,128,128,0.2); }

.btn-detail { background: var(--accent-main); color: white; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.btn-detail:hover { transform: scale(1.05); }

/* スクロールトップボタン (アッとボタン・復元と修正) */
.fab-top {
    position: fixed;
    bottom: 25px; right: 25px;
    width: 60px; height: 60px;
    background: var(--accent-sub);
    color: #000;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    opacity: 0; pointer-events: none; /* 初期状態は非表示 */
    transform: translateY(20px);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000; /* 最前面 */
}
.fab-top.visible {
    opacity: 1; pointer-events: auto;
    transform: translateY(0);
}
.fab-top:hover { transform: scale(1.1); }

/* モーダル */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 3000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--bg-card); width: 90%; max-width: 500px;
    border-radius: 20px; padding: 30px; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-close {
    position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.1);
    border: none; width: 30px; height: 30px; border-radius: 50%;
    cursor: pointer; color: var(--text-primary);
}

@media (max-width: 600px) {
    .hero { height: 40vh; }
    .card-actions { flex-direction: column; }
    select { margin-left: 0; margin-top: 10px; }
}

.sceneLabelWrap {
    display: inline-block;
}

.sceneMenu, .seatsMenu {
    position: fixed;
    z-index: 1100;

    min-width: 180px;
    margin: 0;
    padding: 5px 0;

    list-style: none;
    background: var(--bg-card);
    border: 1px solid #666;
    border-radius: 4px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);

    display: none;
}

.sceneMenu.is-open, .seatsMenu.is-open {
    display: block;
}

.sceneMenu li button, .seatsMenu li button {
    display: block;
    width: 100%;
    padding: 9px 15px;

    border: none;
    background: none;

    text-align: left;
    font-size: 14px;
    color: #fff;
    border-bottom: 1px solid #666;

    cursor: pointer;
}

.sceneMenu li button:hover, .seatsMenu li button:hover {
    background: #000;
}

.catWrap > input[type=checkbox]{
    visibility: hidden;
    width: 0;
    height: 0;
    display: none;
}
.catWrap > input[type=checkbox]:checked ~ label{
    background: var(--accent-main);
    color: white;
    border-color: var(--accent-main);
}

.caution-txt {
    font-size: 14px;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.icon-wrap {
    border: 1px solid var(--text-secondary); border-radius: 50%; width: 14px; height: 14px; display: flex; align-items: center; justify-content: center;
}

.footer {
    margin-top: 40px;
    border-top: 1px solid var(--text-secondary);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.footer .bold {
    font-weight: bold;
}
