

/* メインコンテンツ */
.main {
    background-color: white;
    /* margin-top: 118px;
    min-height: calc(100vh - 118px); */
}
.wrapper-news {
    width: 900px;
    margin: 0 auto;
}

.page-title {
    padding: 180px 0 30px;
    position: relative;
    background: #F8F7F5;
}

.title {
    font-family: 'Zen Old Mincho', serif;
    font-size: 38px;
    color: #333333;
    margin-bottom: 20px;
}

.subtitle {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 18px;
    color: #333333;
    margin: 10px 0;
}

.title-line {
    width: 1125px;
    height: 1px;
    background-color: #aaa;
    margin: 0 auto;
    max-width: 100%;
}

.news-section {
    padding: 50px 0 100px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.news-item {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
} */

/* .news-item:hover .news-image img {
    transform: scale(1.03);
}  */

.news-image {
    width: 100%;
    height: 265px;
    overflow: hidden;
    margin-bottom: 10px;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-image-text {
    display:grid;
    grid-template-columns: 75px 1fr;
    align-items: baseline;
    margin: 0 5px;
}
.news-content {
    padding: 12px 5px;
}
.news-date {
    font-size: 13px;
    color: #333;
}
.news-title {
    font-size: 15px;
    color: #333;
    overflow-wrap: anywhere;
    line-height: 20px;
}
.news-single-title {
    word-break: break-all;
    line-height: 38px;
}
.news-text {
    margin: 30px 0;
    word-break: break-all;
}
.pagenation {
    margin: 120px 0px 50px;
    text-align: center;
    border-top: 1px solid #ccc;
}
.pagenation span{
    margin: 10px;
    display: inline-block;
    word-break: break-all;
}
.pagenation a {
    color: #333;
    margin: 0 10px;
    display: inline-block;
}
.pagenation p {
    display: grid;
    grid-template-columns: 1fr 160px 1fr;
}
.news-single-image {
    padding: 30px;
}
.news-single-image img {
    width: 100%;
    height: auto;
}



/* レスポンシブデザイン */

/* タブレット (768px - 1024px) */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .title {
        font-size: 36px;
    }
}

/* モバイル (768px以下) */
@media (max-width: 768px) {
    .main {
        width: 100%;
    }
    .wrapper-news {
        width: 100%;
    }
    .page-title {
        padding: 120px 0 30px;
    }
    .subtitle {
        font-size: 16px;
    }
    /* .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 500px;
    } */
    .news-image {
        height: 200px;
    }
    .news-content {
        padding: 15px;
    }
    .news-title {
        font-size: 14px;
    }
    .pagenation p {
        display: grid;
        grid-template-columns: none;
    }
}


/* 小さいモバイル (480px以下) */
@media (max-width: 480px) {
    .subtitle {
        font-size: 14px;
    }
    .news-section {
        padding: 0px 0 20px;
    }
    .news-image {
        height: 180px;
    }
    .news-content {
        padding: 13px;
    }
    .news-title {
        font-size: 14px;
    }
    .news-date {
        font-size: 13px;
    }
    .news-section .news-grid {
        grid-template-columns: auto;
    }
    .news-single-title {
        line-height: 30px;
        font-size: 22px;
    }
}

/* 大きなデスクトップ (1440px以上) */
@media (min-width: 1440px) {
    .container {
        padding: 0 40px;
    }
    .header-container {
        padding: 0 40px;
    }
    .footer-container {
        padding: 0 40px;
    }
}


