html{
    margin: 0;
    padding: 0;
}
body {
    background: #212529;
    margin: 0;
    padding: 0;
}
/* ===== レイアウト：地図 + パネルを横並び ===== */
#map {
    width: 100%;
    height: 80vh;    /* 画面の70%に制限 */
    transition: width 0.3s ease;
}
body.panel-open #map {
    width: 50vw;
}


/* ===== 掲示板パネル ===== */
#board-panel {
    position: fixed;
    top: 75px;                      /* 56px → 80px に変更（少し下げる） */
    right: 0;
    width: 0;
    height: calc(100vh - 80px);  /* 上と下に余白を作る */
    overflow: hidden;
    background: #fafafa;
    border-left: 2px solid #ddd;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    z-index: 9999;
}
body.panel-open #board-panel {
    width: 50vw;    /* 50vw → 35vw に変更 */
}
body.panel-open #map {
    width: 65vw;    /* 50vw → 65vw に変更（合計100vw） */
}
/* ヘッダー */
#board-header {
    padding: 14px 20px;
    background: #212529;    /* 白系に変更 */
    color: #fff;            /* 文字を黒に */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
#board-header h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}
.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

/* 投稿一覧 */
#posts-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}
.post-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.post-meta { font-size: 12px; color: #888; margin-bottom: 4px; }
.post-content { font-size: 14px; line-height: 1.6; }
.no-posts { color: #999; text-align: center; margin-top: 40px; }

/* 投稿フォーム */
#post-form {
    padding: 14px 20px;
    border-top: 1px solid #ddd;
    background: #f5f5f5;
    flex-shrink: 0;
}
#post-form input,
#post-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 8px;
    box-sizing: border-box;
}
#post-form textarea { resize: vertical; min-height: 60px; }
#post-form button {
    width: 100%;
    padding: 10px;
    background: #212529;    /* #2c3e50 → #212529 に変更 */
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
#post-form button:hover {     background: #343a40;    
/* #1a252f → #343a40 に変更 */ 
}

#post-form select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 8px;
    box-sizing: border-box;
    background: #fff;
}

.post-rating {
    display: inline-block;
    background: #2c3e50;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

#post-form select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 8px;
    box-sizing: border-box;
    background: #fff;
}

.post-rating {
    display: inline-block;
    background: #fff;
    color: #333;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border: 1.5px solid #333;
    border-radius: 4px;
    margin-bottom: 6px;
}

.avg-score {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    padding: 12px;
    margin-bottom: 12px;
    background: #eef2f5;
    border-radius: 8px;
}


.marker-with-label {
    background: none !important;
    border: none !important;
    overflow: visible !important;
    width: auto !important;
    height: auto !important;
}
.marker-pin {
    width: 12px;
    height: 12px;
    background: #2c3e50;
    border: 2px solid #fff;
    border-radius: 50%;
    margin: 0 auto;
}
.marker-label {
    background: #fff;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
    position: relative;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;              /* 追加 */
}
.marker-label:hover {
    background: #2c3e50;          /* 追加 */
    color: #fff;                  /* 追加 */
}

#search-btn {
    white-space: nowrap;
    min-width: 80px;
}

.navbar .d-flex {
    flex: 1;
    max-width: 500px;
    margin-left: auto;
}
.navbar .d-flex .form-control {
    min-width: 250px;
}

.navbar {
    padding: 16px 28px;
    position: sticky;   /* ★ 追加 */
    top: 0;             /* ★ 追加 */
    z-index: 10000;     /* ★ 追加（board-panelの9999より上） */
}
.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Shadows Into Light', cursive;
    position: relative;
    top: -8px;

}


.navbar .nav-link {
    font-size: 20px;
}
.navbar .d-flex .form-control {
    height: 42px;       /* 42px → 50px */
    font-size: 18px;    /* 20px → 22px */
}
.navbar .d-flex .btn {
    height: 42px;       /* 42px → 50px */
    font-size: 18px;    /* 20px → 22px */
    padding: 0 20px;    /* 追加：横幅も少し広く */
	min-width: 140px;  
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.navbar .d-flex .btn:hover {
    background-color: #218838;
    border-color: #218838;
}



#board-header h2 {
    font-size: 14px;
}
.post-meta {
    font-size: 11px;
}
.post-rating {
    font-size: 11px;
}
.post-content {
    font-size: 15px;
    line-height: 1.6;
}
.avg-score {
    font-size: 14px;
}
.no-posts {
    font-size: 13px;
}
#post-form input,
#post-form textarea,
#post-form select {
    font-size: 12px;
}
#post-form button {
    font-size: 12px;
}
#site-footer {
    background: #212529;
    color: #ccc;
    padding: 15px 40px 0;
    font-size: 12px;
    margin-top: 0;    /* 20px → 0 に変更 */
}
.footer-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 0;
}
.footer-section {
    flex: 1;
    min-width: 200px;
}
.footer-section h3 {
    color: #fff;
    font-size: 13px;
    margin-bottom: 6px;
}
.footer-section p {
    margin: 2px 0;
    line-height: 1.4;
}
.footer-section a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin: 2px 0;
}

.footer-section a {
    font-size: 14px;    /* 現在の12pxから変更 */
}
.footer-section h3 {
    font-size: 15px;    /* 現在の13pxから変更 */
}

.footer-section a:hover {
    color: #fff;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    margin-top: 10px;
    padding-top: 6px;
    padding-bottom: 8px;     /* 追加 */
    margin-bottom: 0;        /* 追加 */
    color: #888;
    font-size: 11px;
}

#site-footer p {
    margin-bottom: 0;
}
#site-footer .footer-bottom {
    padding-bottom: 10px;
}

.navbar h1 {
    margin: 0;
    padding: 0;
    line-height: 1;
    display: inline;
}


/* ★ 言語ドロップダウン（JS制御） */
.dropdown-menu {
    display: none;
}
.dropdown-menu.show {
    display: block;
}

/* =============================================================
   ★ モバイル対応（追加分）
   ============================================================= */

/* --- タブレット以下（992px以下）：ナビバー折りたたみ時 --- */
@media (max-width: 991.98px) {
    /* ★ ハンバーガーメニューを非表示にし、中身を常に表示 */
    .navbar-toggler {
        display: none !important;
    }
    #navbarNavDropdown {
        display: flex !important;
        flex-basis: auto !important;
        flex-grow: 1;
        align-items: center;
        flex-wrap: wrap;
    }

    .navbar {
        padding: 10px 16px;
        flex-wrap: wrap;
    }
    .navbar-brand {
        font-size: 18px;
        top: 0;
        margin-right: 4px !important;
    }
    .navbar .nav-link {
        font-size: 14px;
        padding: 4px 8px !important;
    }
    .navbar-nav {
        flex-direction: row !important;
        gap: 0;
        align-items: center;
        flex-wrap: nowrap;
    }

    /* 検索フォームは2行目に全幅で配置 */
    .navbar .d-flex {
        max-width: 100%;
        width: 100%;
        flex-basis: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
    .navbar .d-flex .form-control {
        min-width: 0;
        height: 40px;
        font-size: 16px;
    }
    .navbar .d-flex .btn {
        height: 40px;
        font-size: 16px;
        min-width: 70px;
        padding: 0 12px;
    }
}

/* --- スマホ（768px以下） --- */
@media (max-width: 767.98px) {
    /* ★ ×ボタンが消える問題の修正 */
    #board-header > div {
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }
    .close-btn {
        flex-shrink: 0;
    }
    /* ★ ナビバー：stickyを解除してスクロール可能に */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }
	
    /* 地図 */
    #map {
        height: 80vh;
        min-height: 250px;
        margin-top: 90px;  /* ← この1行を追加（navbarの高さ分） */
    }
    body.panel-open #map {
        width: 100%;
    }

    /* 掲示板パネル：全画面オーバーレイ */
    #board-panel {
        top: 0;
        height: 100vh;
        height: 100dvh;
        border-left: none;
      z-index: 10001;
    }
    body.panel-open #board-panel {
        width: 100%;
    }
    body.panel-open {
        overflow: hidden;
    }

    /* パネルヘッダー */
    #board-header {
        padding: 12px 16px;
    }
    #board-header h2 {
        font-size: 16px;
        white-space: normal;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .close-btn {
        font-size: 28px;
        padding: 0 8px;
        min-width: 36px;
        min-height: 36px;
    }
    /* ★ ×ボタンを絶対位置で右上に固定 */
    #board-header {
        position: relative;
        padding-right: 50px;
    }
    #board-header .close-btn {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
    }



    /* 投稿一覧 */
    #posts-list {
        padding: 12px 14px;
    }
    .avg-score {
        font-size: 16px;       /* 16px → 14px */
        padding: 8px;
        word-break: break-word;
    }
    .post-meta {
        font-size: 12px;
    }
    .post-rating {
        font-size: 12px;
    }
    .post-content {
        font-size: 16px;
        line-height: 1.5;
    }
    .post-card {
        padding: 8px 10px;
        margin-bottom: 6px;
    }
    #post-form input,
    #post-form textarea,
    #post-form select {
        font-size: 14px;
        padding: 6px 8px;
        margin-bottom: 5px;
    }
    #post-form button {
        font-size: 14px;
        padding: 8px;
    }
    .post-card {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .post-meta {
        word-break: break-all;
    }

    /* 投稿フォーム */
    #post-form {
        padding: 12px 14px;
    }

    /* マーカーラベル */
    .marker-label {
        font-size: 12px;
        padding: 1px 4px;
    }

    /* フッター */
    #site-footer {
        padding: 15px 16px 0;
    }
    .footer-content {
        flex-direction: column;
        gap: 12px;
    }
    .footer-section {
        min-width: 0;
        width: 100%;
    }
	
	
	
	
}

/* --- 極小画面（375px以下） --- */
@media (max-width: 374.98px) {
    .navbar-brand {
        font-size: 13px;
    }
    .navbar .nav-link {
        font-size: 12px !important;
        padding: 4px 4px !important;
    }
    #board-header h2 {
        font-size: 14px;
    }
    .avg-score {
        font-size: 14px;
    }
}


