@charset "UTF-8";
/* =========================================================
   えひめスクラムプロジェクト  NEWS LIST PAGE
   - ページヘッダー: common.css
   - ページネーション: list.css
   - ニュース一覧: トップページ（index.css）と同じデザイン
   ========================================================= */

.news {
    padding: 0 0 80px;
    background-color: #fff;
}
.news__inner {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}
.news__card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 40px 50px 50px;
}
.news__list {
    margin: 0 auto;
    max-width: 1000px;
}
.news__list a {
    display: grid;
    grid-template-columns: 140px 80px 1fr;
    align-items: center;
    gap: 20px;
    padding: 24px 16px;
    border-bottom: 1.5px dashed #d9d9d9;
    transition: 0.3s;
}
.news__list a:hover {
    opacity: 0.6;
}
.news__list a .cat-badge {
    font-weight: 500;
    letter-spacing: 1px;
    text-indent: 1px;
    background-color: #575757;
    color: #ffffff;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news__list time {
    font-size: 14px;
    color: #676767;
    letter-spacing: 1px;
    text-indent: 1px;
    text-align: center;
}
.news__list p {
    font-size: 16px;
    font-weight: 500;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.news__empty {
    padding: 24px 16px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: #676767;
}

/* =========================================================
   RESPONSIVE  -- Tablet
   ========================================================= */
@media screen and (max-width: 1024px) {
    .news {
        padding: 0 0 60px;
    }
    .news__card {
        padding: 32px 32px 40px;
    }
}

/* =========================================================
   RESPONSIVE  -- Mobile
   ========================================================= */
@media screen and (max-width: 680px) {
    .news {
        padding: 0 0 44px;
    }
    .news__card {
        padding: 24px 20px 20px;
    }
    .news__list a {
        grid-template-columns: auto 1fr;
        gap: 6px 12px;
        padding: 16px 4px;
    }
    .news__list time {
        text-align: right;
        font-size: 13px;
    }
    .news__list p {
        grid-column: 1 / -1;
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    .news__empty {
        font-size: 14px;
        padding: 16px 4px;
    }
}
