/* 掲示板フォームのスタイリング */
.bbs-section {
    background: #333; /* 黒い背景色に変更 */
    color: #fff; /* 文字色を白に変更 */
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bbs-form {
    background: #333;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #000; /* 黒い矩形で囲む */
    max-width: 600px;
}

.bbs-form div {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.bbs-form label {
    font-weight: bold;
    margin-right: 10px;
}

.bbs-form input[type="text"] {
    width: 45%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 20px; /* 名前とタイトルの間隔 */
}

.bbs-form textarea {
    width: 100%;
    height: 100px; /* 内容のテキストエリアの縦幅を大きくする */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow-y: auto; /* 文字列が枠を超えたときスクロールバーを表示 */
}

.bbs-form button {
    background-color: #008cba;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.bbs-form button:hover {
    background-color: #005f7a;
}

/* 投稿一覧のスタイリング */
.bbs-container {
    background-color: #333;
    color: #fff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 900px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    min-height: 100px;
    max-height: 1200px;
}

.bbs-post {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #444;
    border-radius: 4px;
}

.bbs-post h3 {
    margin: 0;
    color: #fff;
    text-align: center;
}

.bbs-post h3 .post-info {
    display: block;
    text-align: right;
    margin-top: -20px;
    padding-right: 20px;
}

.bbs-post .post-time {
    text-align: right;
    color: #ccc;
    padding-right: 20px;
    margin-top: 10px;
}

.bbs-post p {
    width: 90%;
    margin: 0 auto; /* 中央寄せ */
    background-color: #555; /* 本文の背景色 */
    padding: 10px;
    border-radius: 4px;
    color: #eee; /* 本文の文字色 */
    overflow-wrap: break-word; /* 長い単語がある場合に折り返し */
}

.post-meta {
    text-align: right; /* 右寄せ */
    color: #ccc; /* メタ情報の色 */
    margin-top: 5px; /* タイトルからのマージン */
    padding-right: 20px; /* 右端からのパディング */
}

.post-time {
    color: #ccc; /* 時刻の色 */
    flex-shrink: 0; /* 縮小させない */
}

.post-number {
    float: left;
    margin-right: 10px; /* タイトルとの間隔 */
    margin-left:  10px; /* 左端からのスペース */
}

.like-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

/* ポストイット一覧のスタイリング */
.post-it-bbs-container {
    background-color: #333;
    color: #fff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 900px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 100px;
    max-height: 1000px;
    overflow-y: auto;
}

.post-it-bbs-post {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #444;
    border-radius: 4px;
    max-width: 900px;
    margin: 20px auto;
}

.post-it-bbs-post h3 {
    margin: 0;
    color: #fff;
    text-align: center;
}

.post-it-bbs-post .post-meta {
    text-align: right;
    color: #ccc;
    padding-right: 20px;
    margin-top: 10px;
}

.post-it-bbs-post p {
    width: 95%; /* 横幅を90%から95%に拡大 */
    margin: 0 auto; /* 中央寄せ */
    background-color: #555; /* 本文の背景色 */
    padding: 10px;
    border-radius: 4px;
    color: #eee; /* 本文の文字色 */
    overflow-wrap: break-word; /* 長い単語がある場合に折り返し */
}

/* 返信用フォームのスタイリング */
.reply-bbs-form {
    background: #333;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #000; /* 黒い矩形で囲む */
    max-width: 600px;
}

.reply-bbs-form div {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.reply-bbs-form label {
    font-weight: bold;
    margin-right: 10px;
}

.reply-bbs-form input[type="text"] {
    width: 45%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 20px; /* 名前とタイトルの間隔 */
}

.reply-bbs-form textarea {
    width: 100%;
    height: 100px; /* 内容のテキストエリアの縦幅を大きくする */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow-y: auto; /* 文字列が枠を超えたときスクロールバーを表示 */
}

.reply-bbs-form button {
    background-color: #008cba;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.reply-bbs-form button:hover {
    background-color: #005f7a;
}

/* 投稿一覧のスタイリング */
.free-bbs-container {
    background-color: #333;
    color: #fff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 900px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 100px;
}
