@charset "UTF-8";

/* =========================================
   ベース設定
   ========================================= */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    /* 読みやすいフォント設定 */
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    overflow: hidden; /* 全体のスクロールを禁止（地図とパネルで制御） */
    color: #333;
}

/* =========================================
   ヘッダー (常時表示・固定)
   ========================================= */
#site-header {
    height: 50px;           /* ヘッダーの高さ */
    background-color: #fff; /* 背景色（白） */
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;        /* 画面上部に固定 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;          /* 最前面に表示 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#site-header h1 {
    margin: 0;
    font-size: 18px;       /* タイトルの大きさ */
    color: #333;
    font-weight: bold;
}

/* =========================================
   地図エリア
   ========================================= */
#map {
    width: 100%;
    /* ヘッダー(50px)の分だけ高さを引く */
    height: calc(100% - 50px);
    /* ヘッダーの下に配置 */
    margin-top: 50px;
}

/* =========================================
   検索・絞り込みボタン (丸いアイコン)
   ========================================= */
#menu-toggle-btn {
    position: absolute;
    /* ヘッダー(50px) + 余白(20px) = 上から70px */
    top: 70px;
    left: 20px;
    z-index: 1000;          /* 地図より上、パネルより下 */
    
    background-color: white;
    border: 1px solid #ccc;
    
    /* 正円（丸ボタン）にする設定 */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    
    /* アイコンを中央寄せ */
    display: flex;
    justify-content: center;
    align-items: center;
    
    font-size: 20px;        /* アイコンサイズ */
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background-color 0.2s;
}

#menu-toggle-btn:hover {
    background-color: #f0f0f0;
}

/* =========================================
   フィルタパネル (サイドバー)
   ========================================= */
#filter-panel {
    position: absolute;
    top: 50px;              /* ヘッダーの下から開始 */
    left: 0;
    width: 300px;           /* パネルの幅 */
    height: calc(100% - 50px); /* 高さもヘッダー分引く */
    
    background-color: rgba(255, 255, 255, 0.98); /* ほぼ不透明の白 */
    z-index: 1500;          /* ボタンより上、ヘッダーより下 */
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    
    transition: transform 0.3s ease-in-out; /* 開閉アニメーション */
    display: flex;
    flex-direction: column; /* 縦並びレイアウト */
}

/* 隠すクラス（画面左外へ移動） */
#filter-panel.hidden {
    transform: translateX(-100%);
}

/* パネルヘッダー */
.panel-header {
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* 縮小させない */
}

.panel-header h2 {
    margin: 0;
    font-size: 16px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0 5px;
}
.close-btn:hover {
    color: #000;
}

/* パネルコンテンツ (スクロール領域) */
.panel-content {
    padding: 15px;
    overflow-y: auto;       /* 中身が多い場合はスクロール */
    flex: 1;                /* 残りの高さを埋める */
}

/* 各セクション */
.filter-section {
    margin-bottom: 20px;
}

.filter-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    border-left: 4px solid #4285F4; /* 左側の青いアクセント線 */
    padding-left: 8px;
}

/* 仕切り線 */
.divider {
    border: 0;
    height: 1px;
    background-color: #eee;
    margin: 20px 0;
}

/* =========================================
   チェックボックス・リストのスタイル
   ========================================= */
/* カテゴリグループ */
.category-group {
    margin-bottom: 10px;
}

/* カテゴリの親（見出し） */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #f9f9f9;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.category-header:hover {
    background: #eee;
}

.main-category-label {
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.toggle-sub-btn {
    font-size: 12px;
    color: #666;
    padding: 0 5px;
}

/* サブカテゴリリスト */
.sub-category-list {
    margin-left: 20px;      /* インデント */
    margin-top: 5px;
    display: flex;
    flex-direction: column; /* 縦並び */
    gap: 4px;               /* 行間 */
}

.sub-category-item {
    font-size: 14px;
    cursor: pointer;
}

/* 地区（エリア）リスト */
.area-item {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    cursor: pointer;
}

.area-all-label {
    font-weight: bold;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 8px;
    margin-bottom: 12px;
    display: block;
}

/* 地図の種類選択 */
.map-type-selector label {
    margin-right: 15px;
    font-size: 14px;
    cursor: pointer;
}

/* =========================================
   情報ウィンドウ (吹き出し)
   ========================================= */
.info-window-content {
    min-width: 200px;
    max-width: 260px;
    line-height: 1.5;
}

.info-window-content strong {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
    color: #d32f2f; /* 強調色 */
}

.info-window-content p {
    margin: 4px 0;
    font-size: 13px;
    color: #555;
}

.info-window-content img {
    margin-top: 8px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.info-window-content a {
    display: inline-block;
    margin-top: 5px;
    font-weight: bold;
}