body {
    font-family: sans-serif;
    background-color: #e6f5e6;
    margin: 20px;
}

h1, h3 {
    color: #2e7031;
}

h2 {
    color: #2e7031;
    text-align: center; /* ヘッダー内のテキストを中央寄せ */
    margin-bottom: 20px; /* ヘッダーとメインコンテンツの間に少し余白を追加（任意） */

}

.thread-form, .comment-form, .thread, .comment {
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 15px;
    margin: 20px auto; /* 上下20px、左右auto */
    border-radius: 8px;
    max-width: 800px;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

input[type="file"] {
    margin-bottom: 10px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

        /* サイドメニュー用の基本CSS（後で style.css に移動推奨） */
        :root {
            --menu-width: 280px; /* メニューの幅 */
            --menu-transition-duration: 0.3s;
        }

        #menu-toggle {
            position: fixed;
            top: 15px;
            left: 15px;
            z-index: 1001; /* メニューより手前 */
            background: #fff;
            border: 1px solid #ccc;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            font-size: 20px; /* アイコンサイズ */
            cursor: pointer;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        .side-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: var(--menu-width);
            max-width: 90%; /* 画面幅が狭いとき */
            height: 100vh;
            /* background-color: #f8f9fa; */ /* ← 元の背景色指定をコメントアウトまたは削除 */
    background-color: rgba(255, 255, 255, 0.9); /* ← 半透明の白に変更 */
            border-right: 1px solid #dee2e6;
            padding: 20px;
            box-sizing: border-box;
            overflow-y: auto;
            transform: translateX(-100%); /* 初期状態は画面外（左） */
            transition: transform var(--menu-transition-duration) ease;
            z-index: 1000;
        }

        .side-menu.is-open {
            transform: translateX(0); /* 表示時の位置 */
            box-shadow: 3px 0 15px rgba(0,0,0,0.1);
        }

        .side-menu h2 {
            margin-top: 0;
            margin-bottom: 15px;
            font-size: 1.2em;
            border-bottom: 1px solid #ccc;
            padding-bottom: 10px;
        }

        .side-menu ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .side-menu li a {
            display: block;
            padding: 8px 0;
            color: #333;
            text-decoration: none;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 0.95em;
        }
        .side-menu li a:hover {
            background-color: #eee;
        }

        /* メニュー表示時のオーバーレイ（任意） */
        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999; /* メニューの背後 */
            opacity: 0;
            visibility: hidden;
            transition: opacity var(--menu-transition-duration) ease, visibility var(--menu-transition-duration) ease;
        }
        .menu-overlay.is-visible {
            opacity: 1;
            visibility: visible;
        }

header {
    text-align: center; /* ヘッダー内のテキストを中央寄せ */
    margin-bottom: 20px; /* ヘッダーとメインコンテンツの間に少し余白を追加（任意） */
}



/* style.css に追加 */
.thread-list h2 {
    text-align: center; /* 「連絡スレッド一覧」の見出しを中央寄せ */
    /* 必要であれば上下のマージン調整 */
}

.thread-list ul {
    list-style: none; /* リストマーカー（黒点）を非表示にする */
    padding-left: 0;  /* ブラウザがデフォルトで付ける左の余白（パディング）も削除 */
}

/* 年間情報セクションの基本スタイル */
.permanent-info {
    background-color: #fff; /* 背景を白に（任意） */
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    margin: 20px auto; /* 中央寄せ */
    max-width: 800px;  /* 他の要素と幅を合わせる */
}

.permanent-info h2 {
    text-align: center; /* 見出しを中央寄せ */
    margin-top: 0;
    margin-bottom: 20px;
}

/* 情報グリッドのスタイル */
.info-grid {
    display: grid;
    /* カラム数を自動調整。各カラムの最小幅180px、最大幅は均等割り(1fr) */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 15px; /* 行間10px、列間15pxの隙間 */
}

/* グリッド内の各アイテム（任意でスタイル調整） */
.info-item {
    /* 必要であれば背景色や枠線などを追加 */
    /* padding: 5px; */
    font-size: 0.9em; /* 少し文字を小さくする（任意） */
}

.info-item a {
    text-decoration: none;
}
.info-item a:hover {
    text-decoration: underline;
}

.info-item strong {
    margin-right: 0.5em; /* ラベルと値の間に少し隙間 */
}

/* ロゴコンテナのスタイル */
.logo-container {
    text-align: center; /* 中のimg要素を中央寄せ */
    margin-top: 20px;   /* 上のヘッダーとの間に余白 */
    margin-bottom: 30px;/* 下の重要情報との間に余白 */
}

/* 画像自体にスタイルが必要な場合（任意）*/
.logo-container img {
    max-width: 100%; /* コンテナ幅を超える場合に縮小 */
    height: auto;   /* アスペクト比を維持 */
}