@charset "utf-8";

.first-view-text {
    padding-top: 110px;
    width: 100%;
    max-width: 200px;
    color: #000;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.1);
    font-weight: bold;
    font-size: 30px;
    line-height: 70px;
}

.recommended {
    height: 80vh;
    background-image: url(../image/IMG_6524.jpeg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    margin-bottom: 7%;
}

.news{
    background-color: #fff;
    padding-top: 45px;
}

.news h2 {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    padding-top: 120px;
}

.news h2::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background-color: #000;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

.news-list {
    display: flex;
    justify-content: center; /* 左右固定パディングの代わりに中央寄せを適用 */
    flex-wrap: wrap; /* 画面幅が狭い時に自動で折り返して中央配置を維持 */
    gap: 30px; /* 写真同士の程よい間隔 */
    padding-top: 90px;
    padding-bottom: 70px;
    padding-left: 20px; /* 巨大な450pxの固定余白を解除 */
    padding-right: 20px; /* 巨大な220pxの固定余白を解除 */
    object-fit: cover;
    margin: 0 auto;
    text-align: center;
}

.news-list li {
    flex-shrink: 0;
    width: 300px;
    object-fit: cover;
    text-align: center;
    margin: 0; /* 中央寄せに干渉しないよう調整 */
    padding-bottom: 70px;
}

.news-list li img {
    width: 85%;
    height: 85%;
    object-fit: cover;
    position: center;
    text-align: center;
}


.news-list li:first-child {
    margin-left: 0;
    padding-left: 0;
}

.news-list dt {
    margin-top: 10px;
    font-weight: bold;
}

@media (max-width: 800px) {
    .first-view-text {
        padding-top: 40px;
        font-size: 20px;
        line-height: 45px;
    }

    .recommended{
        height: 60vh;
        margin-bottom: 20%;
    }

    .news-list {
        padding-left: 20px;
        padding-right: 20px;
    }

    .news-list li {
        width: 220px;
        margin-left: 0px; /* 親要素のgapと競合を防ぐため0に */
    }

    .news-list li:first-child {
        margin-left: 0;
    }

    .news h2 {
        padding-top: 60px;
    }
}