/* --- システム基盤 --- */
        :root {
            --primary: #00d2ff;
            --alert: #ffcc00;
            --bg: #0b1015;
            --panel: rgba(11, 16, 21, 0.96);
            --border: rgba(0, 210, 255, 0.4);
        }
        body { margin: 0; height: 100vh; background: var(--bg); color: #fff; font-family: 'Roboto', sans-serif; overflow: hidden; user-select: none; -webkit-tap-highlight-color: transparent; }
        
        /* セマンティック構造のためのレイアウト調整 */
        main { height: 100%; width: 100%; position: relative; }
        #map { height: 100%; width: 100%; z-index: 1; background: #0b1015; }

        /* --- 演出レイヤー --- */
        .overlay-grid {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(rgba(0, 210, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 210, 255, 0.03) 1px, transparent 1px);
            background-size: 40px 40px; pointer-events: none; z-index: 500;
        }

        /* --- PC用 再表示ボタン --- */
        .sidebar-reopen-btn {
            position: absolute; top: 20px; left: 20px; z-index: 1500;
            background: var(--panel); border: 1px solid var(--primary); color: var(--primary);
            padding: 10px 15px; font-family: 'Orbitron'; font-weight: bold; cursor: pointer;
            display: none; align-items: center; gap: 5px; box-shadow: 0 0 15px rgba(0,0,0,0.5);
        }
        .sidebar-reopen-btn:hover { background: var(--primary); color: #000; }

        /* --- 地図上のフローティングボタン --- */
        .map-floating-btn {
            position: absolute; bottom: 100px; right: 20px; z-index: 1500;
            width: 60px; height: 60px;
            background: rgba(11, 16, 21, 0.9); border: 2px solid var(--primary); border-radius: 50%;
            color: var(--primary); font-size: 24px; cursor: pointer;
            display: flex; justify-content: center; align-items: center;
            box-shadow: 0 0 20px rgba(0, 210, 255, 0.3); transition: 0.3s;
            flex-direction: column;
        }
        .map-floating-btn span { font-size: 8px; font-family: 'Orbitron'; margin-top: 2px; }
        .map-floating-btn.active { border-color: var(--alert); color: var(--alert); box-shadow: 0 0 20px var(--alert); }

        /* --- サイドバー --- */
        .sidebar {
            position: absolute; top: 20px; left: 20px; width: 360px; bottom: 20px;
            background: var(--panel); backdrop-filter: blur(10px);
            border: 1px solid var(--border); border-left: 4px solid var(--primary);
            display: flex; flex-direction: column; z-index: 2000;
            box-shadow: 0 10px 40px rgba(0,0,0,0.8);
            transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        }
        .sidebar.closed-pc { transform: translateX(-120%); }

        /* ヘッダー */
        .header { padding: 12px 15px; border-bottom: 1px solid var(--border); background: rgba(0, 210, 255, 0.05); flex-shrink: 0; }
        .swipe-handle { display: none; width: 40px; height: 5px; background: #444; border-radius: 3px; margin: 0 auto 10px auto; }
        .header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
        h1 { margin: 0; font-family: 'Orbitron'; font-size: 18px; color: var(--primary); letter-spacing: 1px; }
        
        .header-controls { display: flex; gap: 6px; }
        .btn-mini {
            background: transparent; border: 1px solid var(--primary); color: var(--primary);
            font-family: 'Orbitron'; font-size: 10px; padding: 4px 8px; cursor: pointer;
            text-decoration: none; display: flex; align-items: center; justify-content: center; border-radius: 2px;
        }
        .btn-contact { border-color: #fff; color: #fff; }
        .btn-close { border-color: #555; color: #888; font-size: 14px; width: 30px; }
        .btn-close:hover { border-color: #fff; color: #fff; }

        /* コントロールエリア */
        .control-area { padding: 10px 15px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
        .scan-group { display: flex; gap: 5px; }
        .btn-action { flex: 1; padding: 10px; font-size: 11px; border: 1px solid var(--primary); background: rgba(0, 210, 255, 0.15); color: var(--primary); cursor: pointer; font-family: 'Orbitron'; font-weight: bold; }
        .btn-action:hover { background: var(--primary); color: #000; }
        .btn-reset { width: 40px; border: 1px solid #555; background: transparent; color: #888; cursor: pointer; font-size: 16px; }
        
        select { background: #0f151a; color: #fff; border: 1px solid #555; padding: 8px; font-family: 'Orbitron'; width: 100%; font-size: 12px; }

        /* リスト表示 */
        .list-container { flex: 1; overflow-y: auto; padding: 0; -webkit-overflow-scrolling: touch; }
        .sighting-item { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: 0.2s; position: relative; }
        .sighting-item:hover { background: rgba(0, 210, 255, 0.1); }

        .item-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
        .item-date-badge { background: rgba(255, 204, 0, 0.15); color: var(--alert); border: 1px solid var(--alert); padding: 2px 6px; border-radius: 2px; font-family: 'Orbitron'; font-size: 10px; font-weight: bold; }
        .item-dist { color: var(--alert); font-family: 'Orbitron'; font-size: 11px; font-weight: bold; }
        .item-title { font-size: 14px; font-weight: bold; color: #fff; margin-bottom: 2px; display: block; }
        .item-meta { font-size: 11px; color: var(--primary); margin-bottom: 5px; display: block; }
        .item-desc { font-size: 12px; color: #aaa; line-height: 1.4; }

        /* モバイル対応 */
        .mobile-toggle-btn { display: none; }
        @media (max-width: 768px) {
            .map-floating-btn { bottom: 90px; right: 20px; width: 55px; height: 55px; }
            .sidebar { width: 100%; height: 100%; top: 0; left: 0; bottom: 0; border: none; background: #0b1015; transform: translateY(110%); }
            .sidebar.open-mobile { transform: translateY(0); }
            .sidebar.closed-pc { transform: translateY(110%); }
            .swipe-handle { display: block; }
            .mobile-toggle-btn {
                display: flex; justify-content: center; align-items: center; gap: 8px;
                position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
                width: 180px; height: 45px;
                background: rgba(11, 16, 21, 0.9); border: 2px solid var(--primary); color: var(--primary);
                border-radius: 25px; font-family: 'Orbitron'; font-weight: bold; font-size: 14px;
                z-index: 1500; box-shadow: 0 0 20px rgba(0, 210, 255, 0.4); cursor: pointer;
            }
            .sidebar-reopen-btn { display: none !important; }
        }

        /* Leaflet カスタム */
        .pin-outer { width: 12px; height: 12px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 8px var(--primary); border: 2px solid #fff; }
        .marker-cluster-custom {
            background-color: rgba(0, 210, 255, 0.2); border: 1px solid var(--primary); border-radius: 50%;
            text-align: center; color: #fff; font-family: 'Orbitron'; font-size: 12px; font-weight: bold; line-height: 40px;
        }
        .leaflet-popup-content-wrapper { background: rgba(15, 21, 28, 0.95); color: #fff; border: 1px solid var(--primary); border-radius: 4px; width: 280px; }
        .leaflet-popup-tip { background: var(--primary); }
        .popup-date { display: inline-block; background: var(--alert); color: #000; padding: 1px 5px; border-radius: 2px; font-family: 'Orbitron'; font-size: 10px; font-weight: bold; margin-bottom: 3px; }
        .popup-btns { display: flex; gap: 8px; margin-top: 10px; }
        .btn-pop { flex: 1; padding: 8px; text-align: center; border: 1px solid #444; color: #000; font-size: 11px; text-decoration: none; border-radius: 4px; }
        
        .typing-cursor::after { content: '|'; animation: blink 1s infinite; color: var(--primary); }
        @keyframes blink { 50% { opacity: 0; } }
