.container {
    max-width: 800px; /* ★ここを調整！アコーディオンの最大幅 */
    margin: 0 auto;   /* 左右のマージンを自動にして中央寄せ */
    padding: 20px;
}

.notice-list {
    margin-top: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 10px;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-item:last-child {
    border-bottom: none; /* 最後の子要素の下線は消す */
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 15px;

    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none; /* テキスト選択を無効に */
}

.accordion-header:hover {
    background-color: #e9e9e9;
}

.accordion-header.active {
    background-color: #e0e0e0;
}

.notice-date {
    font-size: 14px;
    color: #888;
    min-width: 120px; /* 日付の幅を固定してタイトルを揃える */
}

.notice-title {
    flex-grow: 1; /* タイトルが残りのスペースを埋める */
    font-weight: bold;
    font-size: 16px;
    margin-right: 10px;
}

.accordion-icon {
    font-size: 18px;
    font-weight: bold;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    margin-left: auto;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
    background-color: #fcfcfc;
}

.accordion-content.open {
    padding: 15px; /* 開いたときにパディングを適用 */
}

/* 最新のお知らせを目立たせるスタイル */
.new-notice .accordion-header {
    background-color: #fff9e6; /* 黄色っぽい背景 */
    border-left: 5px solid #ffcc00; /* 左に黄色い線 */
}

.accordion-content p {
    line-height: 1.4; /* 値を小さくすると行間が狭まります */
    margin-top: 0;
    margin-bottom: 0;
}

.accordion-content p + p {
    margin-top: 10px; /* 連続するpタグの間にのみ上マージンを追加 */
}