/* recholl-style.css （改良版）*/

.home-recent-news {
    width: var(--recholl-home-width, min(95vw, 500px));
    max-width: none;
    margin: 32px auto 0;
    box-sizing: border-box;
    --news-article-serif: var(--recholl-font-serif, "Noto Serif JP", serif);
    --news-article-body-size: 14px;
    --news-article-body-leading: 1.95;
    --news-article-body-tracking: 0.05em;
    --news-article-meta-size: var(--recholl-type-caption);
}

#news-list {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 0.7em;
    margin-bottom: 0.7em;
}

.news-meta {
    font-family: var(--news-article-serif, var(--recholl-font-serif, "Noto Serif JP", serif));
    font-size: var(--news-article-meta-size, var(--recholl-type-caption));
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.1em;
    color: var(--recholl-text-muted, #575757);
    margin: 0 0 0.3em;
    font-feature-settings: "palt" 1;
    font-kerning: normal;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.news-title {
    font-family: var(--news-article-serif, var(--recholl-font-serif, "Noto Serif JP", serif));
    font-size: var(--news-article-body-size, 14px);
    font-weight: 400;
    line-height: var(--news-article-body-leading, 1.95);
    letter-spacing: var(--news-article-body-tracking, 0.05em);
    color: #1a1a1a;
    text-decoration: none;
    font-feature-settings: "palt" 1;
    font-kerning: normal;
    line-break: strict;
    hanging-punctuation: allow-end;
    overflow-wrap: break-word;
    text-spacing-trim: trim-start;
    display: block;
}

.news-title:hover {
    color: var(--recholl-blue);
    text-decoration: underline;
}

/* ホーム（index.html）ニュース一覧：news.html と同じ文字組 */
@media (max-width: 767px) {
    .home-recent-news {
        width: var(--recholl-home-width, min(95vw, 500px));
        max-width: none;
        margin-top: 28px;
        padding: 0;
        --news-article-body-size: 15px;
        --news-article-body-leading: 1.9;
        --news-article-body-tracking: 0.04em;
        --news-article-meta-size: var(--recholl-type-caption);
    }

    #news-list {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    #news-list .news-item {
        padding-bottom: 0.75em;
        margin-bottom: 0.75em;
    }

    #news-list .news-meta {
        margin-bottom: 0.4em;
    }

    #news-list .news-title {
        display: block;
    }
}
