.hero {
    height: 300px;
    background: url(/img/hero.jpg) no-repeat center center / cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .hero {
        height: 200px;
    }
}

/* お知らせリストセクション */
.news-list-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.news-container {
    max-width: 900px;
    margin: 0 auto;
}

.news-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

/* ニュースリスト */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    margin-bottom: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.news-link {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    padding: 20px;
}

.news-date {
    flex: 0 0 100px;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    text-align: center;
    border-right: 1px solid #ddd;
    padding-right: 15px;
    margin-right: 15px;
}

.news-content {
    flex: 1;
}

.news-heading {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.news-summary {
    font-size: 14px;
    color: #555;
}

/* お知らせ詳細セクション */
.news-detail-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
}

.news-detail-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.news-detail-description {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #666;
}

.news-detail-info {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.news-detail-info li {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #333;
}

.news-detail-link {
    font-size: 16px;
    margin-bottom: 30px;
}

.news-detail-link a {
    color: #007bff;
    text-decoration: none;
}

.news-detail-link a:hover {
    text-decoration: underline;
}

.news-detail-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-back-list, .btn-back-top {
    padding: 10px 20px;
    font-size: 14px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-back-list:hover, .btn-back-top:hover {
    background-color: #0056b3;
}

.btn-back-list a, .btn-back-top a {
    color: #fff;
    text-decoration: none;
}   

@media (max-width: 768px) {
    .news-link {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 0px;
    }

    .news-date {
        flex: none;
        border-right: none;
        margin-bottom: 10px;
        text-align: left;
        padding: 0; /* パディングを削除 */
    }

    .news-item {
        padding: 10px 20px;
    }
}