/* ===============================
   ベーススタイル
=============================== */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9fdf9;
    color: #2e3d2e;
    margin: 0;
    padding: 0;
}

/* ===============================
   ヘッダー
=============================== */
header {
    background: #ffffff; /* 白ベース */
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    color: #2e3d2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}

header img {
    height: 40px;
}

header a {
    color: #2e3d2e;
    font-weight: 500;
    transition: 0.3s;
    text-decoration: none;
}

header a:hover {
    color: #2e8b57; /* ホバー時に緑 */
}

/* ===============================
   メイン
=============================== */
main {
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* ===============================
   フッタ
=============================== */
footer {
    background: #ffffff;
    text-align: center;
    color: #2e3d2e;
    font-size: 14px;
    margin-top: auto;
    border-top: 3px solid #2e8b57;
    padding: 1rem 0;
}

footer img {
    height: 24px;
}

footer p {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* ===============================
   ボタン共通
=============================== */
button, .btn {
    background-color: #2e8b57;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover, .btn:hover {
    background-color: #276747;
}

/* ログインボタン */
.btn-login {
    background-color: #2563eb;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-block;
}
.btn-login:hover {
    background-color: #1e40af;
}

/* ログアウトボタン */
.btn-logout {
    background-color: #f87171;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}
.btn-logout:hover {
    background-color: #dc2626;
}

/* お知らせ作成ボタン */
.btn-create {
    background-color: #2e8b57;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-block;
}
.btn-create:hover {
    background-color: #276747;
}

/* サイドバー内リンク */
.btn-link {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #2e3d2e;
    font-weight: 500;
    transition: 0.2s;
}
.btn-link:hover {
    background-color: #e6f4ea;
    color: #2e8b57;
}

/* ===============================
   サイドバー（右から出る）
=============================== */
#sidebar {
    position: fixed;
    top: 0;
    right: -250px; /* 初期は隠す */
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.15);
    padding: 1rem;
    transition: right 0.3s ease;
    z-index: 1001;
}

#sidebar.active {
    right: 0; /* 開いた状態 */
}

/* ===============================
   オーバーレイ（背景）
=============================== */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 1000;
}

#overlay.active {
    display: block;
}

/* ===============================
   ハンバーガーメニュー（右上）
=============================== */
.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #2e3d2e;
    border-radius: 2px;
    transition: 0.3s;
}

