﻿:root {
    --green: #52b85a;
    --green-dark: #3d9f44;
    --text: #2f2f2f;
    --muted: #5a5a5a;
    --border: #e4e7eb;
    --surface: #ffffff;
    --bg: #f5f7f7;
    --badge: #e1f4e2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

.page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 64px;
}

.news-list-section {
    margin: 0 0 40px;
}

.news-list-title {
    margin: 0 0 16px;
    font-size: 24px;
    color: #1d7c31;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.08);
}

.news-card:focus-visible {
    outline: 3px solid rgba(82, 184, 90, 0.4);
    outline-offset: 2px;
}

.news-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f2f4f3;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-body {
    padding: 18px 18px 20px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.news-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--badge);
    color: var(--green);
    font-weight: 800;
    font-size: 12px;
}

.news-card-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
    color: #1f1f1f;
}

.news-card-excerpt {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-weight: 800;
    text-decoration: none;
}

.news-card-link::after {
    content: "→";
    font-weight: 800;
}

@media (max-width: 960px) {
    .page {
        padding: 0 16px 48px;
    }

    .news-list-title {
        font-size: 22px;
    }

    .news-card-image {
        height: 180px;
    }
}
