/* ============================
   お知らせページ固有スタイル (修正版)
   ============================ */

body {
    background-color: #555555;
    color: #333;
    padding-bottom: 140px; 
    overflow-y: scroll;
}

/* ヘッダー */
.notice-header {
    position: fixed;
    top: 0; left: 0; width: 100%; 
    height: 60px;
    
    /* ★背景色を index.html と同じ薄いグレーに */
    background-color: #f8f9fa; 
    
    border-bottom: 1px solid #ddd;
    display: flex; align-items: center; justify-content: center;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* ヘッダー内のボタン */
.header-title-btn {
    /* サイズと配置 */
    height: 44px !important;
    box-sizing: border-box !important; /* ★paddingを含めて44pxにする */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* 余白 */
    padding: 0 20px !important;
    
    /* 見た目 */
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 30px !important; /* 完全なカプセル型 */
    color: #333 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.header-title-btn:active {
    background-color: #f0f0f0 !important;
    transform: translateY(1px);
    box-shadow: none;
}

/* タイムライン */
#timeline {
    margin-top: 70px; 
    padding: 10px;
    padding-bottom: 20px;
    min-height: calc(100vh - 140px);
}

/* コメント共通 */
.comment-item {
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    max-width: 85%;
}
.comment-item.other-comment {
    background: #e0e0e0;
    margin-right: auto;
    border-top-left-radius: 0;
}
.comment-item.my-comment {
    background: #ffffff;
    margin-left: auto;
    border-top-right-radius: 0;
}
.comment-meta {
    font-size: 0.75rem; color: #555; margin-bottom: 4px;
    display: flex; justify-content: space-between; align-items: center;
}
.comment-body {
    font-size: 16px; /* デフォルトサイズ */
    line-height: 1.5;
    white-space: pre-wrap; word-break: break-all;
}
.delete-btn {
    border: none; background: #ccc; color: white;
    font-size: 1rem; cursor: pointer;
    border-radius: 50%; width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    margin-left: 8px;
}
.delete-btn:hover { background: #dc3545; }

/* 入力エリア */
.input-area {
    position: fixed; bottom: 65px; left: 0; width: 100%;
    background: #eee; padding: 10px; box-sizing: border-box;
    display: flex; align-items: center; border-top: 1px solid #999; z-index: 100;
}
#comment-input {
    flex-grow: 1; padding: 10px; border-radius: 20px;
    border: 1px solid #ccc; font-size: 16px; margin-right: 10px; outline: none;
}
#send-btn {
    background: #007bff; color: white; border: none;
    border-radius: 50%; width: 40px; height: 40px;
    cursor: pointer; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
#send-btn:disabled { background: #aaa; }

#loading-more { text-align: center; padding: 10px; color: white; font-size: 0.8rem; display: none; }