.news-block {
    padding: 20px 0;
}

/* surf-map-headerデザインの調整 */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    position: relative;
}

.news-header-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.news-header-title h1 {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 8px;
    color: black;
    margin: 0;
}

.news-header-divider {
    height: 6px;
    background-color: black;
    width: calc(100%);
    position: relative;
    margin-left: -20px;
}

/* コンテンツ共通 */
.news-content-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
}

/* トップニュースセクション */
.first-news-item {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    /* overflow: hidden; */
    text-decoration: none;
    height: 100vh;
    max-height: 600px;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
    border-radius:8px;
}

.first-news-item img {
    width: 100%;
    object-fit: cover;
    height: 100vh;
    max-height: 500px;
}

.first-news-content {
    /* position: absolute; */
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    color: white;
    background-color: rgba(255, 255, 255, 0.4); /* 白色40%透過 */
    z-index: 2;
}

.first-news-content .badge {
    background: #40A7FD;
    color: #FFFFFF;
    font-size: 12px;
    padding: 5px 10px;
    margin-bottom: 10px;
    display: inline-block;
    width: 120px;
    border-radius: 3px;
}

.first-news-content .news-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #000000;
}

.first-news-content .news-date {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

/* ニュースリスト */
.news-section {
    margin: 10px;
}

.news-section .news-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.news-section .news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 14px;
}

.news-content a {
    color: inherit; /* リンクの色を継承 */
}

.news-content .badge {
    background: none;
    color: #40A7FD;
    font-size: 12px;
    padding: 5px 0;
    margin-bottom: 5px;
    border-radius: 3px;
    display: inline-block;
}

.news-content .news-title {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
    color: #000000;
}

.news-content .news-date {
    font-size: 12px;
    color: #999;
    text-align: left;
    font-weight: normal;
}

/* 固定ボタン */
.fixed-bottom-btn a {
    background-color: #F5FF7D;
    border-radius: 30px;
    padding: 15px 30px;
    text-decoration: none;
    color: black;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    max-width: 300px;
    border: none;
}

.fixed-bottom-btn a:hover {
    background-color: #edf86a;
    color: black;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 共通スタイル */
.pc-news-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 100px;
    width: 100%;
    background-color: #FFFFFF;
    flex-direction: column;
}

/* SP用 (768px以下) */
@media (max-width: 768px) {
    .pc-news-container {
        display: block;
        padding: 0 !important; 
    }

    .pc-news-container .news-block {
        width: 100%;
        background-color: rgba(255, 255, 255, 0.5);
    }

    .first-news-item {
        /* height: 200px; */
        height: auto;
        position: relative;　/* 今後　子要素にposition:absoluteを設定する可能性を考え意図的に配置*/
    }

    .first-news-item img {
        height: 100%;
    }

    .news-section .news-item {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        text-decoration: none;
    }

    .news-item img {
        width: 50%;
        height: 50%;
    }

    .news-content {
        margin-top: 0;
        flex: 1;
    }
}

/* PC用 (1024px以上) */
@media (min-width: 1024px) {
    .pc-news-container {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }

    .pc-news-container .news-block {
        flex: 3;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .pc-news-container .news-content-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        height: 100%;
    }

    .pc-news-container #first-news {
        flex: 1;
    }

    .pc-news-container .first-news-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 10px;
        background: none;
        color: black;
    }

    .pc-news-container .first-news-content .badge {
        background: #40A7FD;
        color: #FFFFFF;
    }

    .pc-news-container .first-news-content .news-title {
        color: #000000;
    }

    .pc-news-container #news {
        flex: 1;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-between;
    }

    .pc-news-container .news-section .news-item {
        width: calc(33.333% - 20px);
        padding: 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        transition: transform 0.2s ease;
        box-sizing: border-box;
        text-decoration: none;
    }

    .pc-news-container .news-section .news-item:hover {
        transform: translateY(-5px);
    }

    .pc-news-container .news-section .news-item img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 5px;
    }

    .pc-news-container .fixed-bottom-btn {
        align-self: center;
        width: 100%;
        max-width: 300px;
    }
}
