
        /* ヘッダー全体のスタイル */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* ← これが縦方向の中央揃えの要です */
    padding: 15px 25px; /* 上下の余白を15px、左右を25pxに */
    background-color: #fff; /* 背景色を白に */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* 薄い影を追加 */
    position: relative;
}

        /* 左側のサイト名 */
        .site-header .logo {
            font-size: 1.2em;
            font-weight: bold;
            /* Flexアイテムとしての幅の調整 */
            flex: 1; 
            text-align: left;
        }

        /* 中央のキャッチコピー */
        .site-header .catchphrase {
            font-size: 1.5em;
            font-weight: bold;
            color: #333;
             /* Flexアイテムとしての幅の調整 */
            flex: 2; /* 他より幅を広く取る */
            text-align: center;
        }

    
    /* 右：アクションエリア */
.header-actions {
    flex: 1; /* ヘッダー内での幅の割合 */
    display: flex; /* ★中の要素（ボタンとメニュー）を横に並べる */
    justify-content: flex-end; /* 全体を右に寄せる */
    align-items: center; /* ★上下の位置を中央で揃える */
    gap: 16px; /* ボタンとメニューの間の隙間 */
}

.user-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.user-email {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.password-change-link {
    color: #007bff;
    text-decoration: none;
    padding: 10px 0;
    transition: background-color 0.2s;
}

.password-change-link:hover {
    background-color: #f8f9fa;
}

.logout-link {
    color: #dc3545;
    text-decoration: none;
    padding: 10px 0;
    cursor: pointer;
    margin: 0;
    transition: background-color 0.2s;
}

.logout-link:hover {
    background-color: #f8f9fa;
}

        /* ハンバーガーボタンのスタイル */
        .hamburger-button {
            width: 40px;
            height: 40px;
            background-color: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
        }

        .hamburger-button .bar {
            width: 100%;
            height: 3px;
            background-color: #333;
            display: block;
        }

        /* ハンバーガーメニュー（押した後に表示されるリスト）のスタイル */
        .nav-menu {
            display: none; /* 最初は隠しておく */
            position: absolute;
            top: 100%; /* ヘッダーの真下に表示 */
            right: 50px; /* 右端から20pxの位置に */
            background-color: #fff;
            border: 1px solid #e7e7e7;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            list-style: none;
            padding: 10px 0;
            margin: 0;
            z-index: 100;
        }

        /* is-activeクラスが付いたら表示する */
        .nav-menu.is-active {
            display: block;
        }

        .nav-menu li a {
            display: block;
            padding: 10px 30px;
            text-decoration: none;
            color: #333;
        }

        .nav-menu li a:hover {
            background-color: #0ad1ec;
        }

        /* 丸い投稿ボタンのスタイル */
.post-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-right: 30px; /* ハンバーガーボタンとの余白（少し調整） */
    /* margin-top: 20px; ← この行を削除します */
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s;
}

/*main */
/* === メインコンテンツのレイアウト === */
.page-container {
    display: flex;
    flex-direction: column; /* ★要素を縦に並べる */
    align-items: center;    /* ★要素を水平方向の中央に揃える */
    padding: 40px;
    gap: 32px; /* カテゴリとマップの間の隙間 */
}

/* === マップエリア === */
.map-area {
    position: relative;
    max-width: 700px;
    flex-shrink: 0;
}

.campus-map-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* === マップピン === */
.map-pin {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #ff4136;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transform: translate(-50%, -50%); /* Center the pin on the coordinate */
    
    /* Hide the pin by default */
    opacity: 0;
    pointer-events: none; /* Make the pin non-interactive */
    transition: opacity 0.2s ease-in-out;
}

/* Class to make the pin visible */
.map-pin.is-visible {
    opacity: 1;
}


/* === ハザードマップのデモ表示 === */
.hazard-overlay {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
}

.hazard-area-1 {
    top: 25%;
    left: 45%;
    width: 200px;
    height: 200px;
    background-color: red;
    filter: blur(25px);
}

.hazard-area-2 {
    top: 60%;
    left: 10%;
    width: 150px;
    height: 150px;
    background-color: orange;
    filter: blur(20px);
}

/* === カテゴリ選択エリア === */
.category-filters {
    display: flex;
    flex-direction: row; /* ← 横に並べるように変更 */
    justify-content: center; /* ボタンを中央に寄せる */
    gap: 20px; /* ボタン同士の隙間 */
}

.category-button {
    display: block;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.category-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* カテゴリごとの色 */
.cat-all {
    background: linear-gradient(135deg, #ff4136, #ff7470);
}

.cat-facility {
    background: linear-gradient(135deg, #ffdc00, #ffea61);
    color: #333;
}

.cat-class {
    background: linear-gradient(135deg, #2ecc40, #72d97e);
}

.cat-human {
    background: linear-gradient(135deg, #0074d9, #54a0e3);
}