/* css/news-style.css */

.news-page-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

.news-page-section h2 { /* 「お知らせ」タイトル */
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
    color: #386641; /* ダークグリーン (style.css に合わせる) */
}

.news-accordion {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.news-item {
    background-color: #FFFFFF;
    margin-bottom: 20px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.news-item-header {
    padding: 15px 45px 15px 20px; /* アイコンのスペースを右に確保 */
    cursor: pointer;
    position: relative; /* アイコンの位置基準 */
    background-color: #f9f9f9;
    border-bottom: 1px solid #E0E0E0; /* 詳細表示時も境界が見えるように */
    transition: background-color 0.3s ease;
}
.news-item.active .news-item-header { /* .active クラスはJSで付与 */
     /* border-bottom-color: transparent; /* 詳細表示時に境界線を消す場合 */
}


.news-item-header:hover {
    background-color: #f0f0f0;
}

.news-item-header .date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 3px;
    display: block; /* スマホ以外でも日付をブロック要素に */
}

.news-item-header .title {
    font-size: 1.1em;
    font-weight: bold;
    color: #386641;
    display: block;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background-color: #386641; /* アイコンの色 */
    transition: transform 0.3s ease;
}

/* プラスアイコン */
.toggle-icon::before { /* 横棒 */
    top: 50%;
    left: 2px; /* (20px - 16px) / 2 */
    width: 16px;
    height: 2px;
    margin-top: -1px; /* (2px / 2) */
}
.toggle-icon::after { /* 縦棒 */
    left: 50%;
    top: 2px; /* (20px - 16px) / 2 */
    width: 2px;
    height: 16px;
    margin-left: -1px; /* (2px / 2) */
}

/* 開いた状態のアイコン (マイナスアイコン: 縦棒を非表示にする) */
.news-item-header[aria-expanded="true"] .toggle-icon::after {
    transform: scaleY(0);
}

.news-item-detail {
    padding: 20px;
    background-color: #FFFFFF;
    display: none; /* 初期状態は非表示、JSで制御 */
    font-size: 0.95em;
    line-height: 1.7;
    color: #4A4A4A;
    border-top: 1px solid #e6efe6; /* 区切り線 */
}

.news-item-detail p {
    margin-bottom: 1em;
}
.news-item-detail p:last-child {
    margin-bottom: 0;
}

.news-item-detail ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
    padding-left: 1em;
}
.news-item-detail li {
    margin-bottom: 0.5em;
}

.news-item-detail strong {
    font-weight: 700;
    color: #386641;
}

.news-item-detail a {
    color: #6A994E;
    text-decoration: underline;
}
.news-item-detail a:hover {
    color: #A7C957;
}

/* スマートフォン向け調整 */
@media (max-width: 768px) {
    .news-page-section h2 {
        font-size: 1.7em;
        margin-bottom: 25px;
    }

    .news-item-header {
        padding: 12px 40px 12px 15px; /* アイコンスペース確保 */
    }
    .news-item-header .date {
        font-size: 0.85em;
        margin-bottom: 5px;
    }
    .news-item-header .title {
        font-size: 1em;
        line-height: 1.4;
    }
    .toggle-icon {
        right: 10px;
    }

    .news-item-detail {
        padding: 15px;
        font-size: 0.9em;
    }
    .news-item-detail ul {
        margin-left: 15px;
        padding-left: 1em;
    }
}

.news-item.active {
    /* 必要であれば、開いているアイテムに特別なスタイルを適用 */
}
.news-item.active .news-item-header {
    /* background-color: #e9e9e9; */
}