@charset "utf-8";

/* =========================================
   News Index Page Styles (Simple List)
   ========================================= */

.news-list-wrapper {
    border-top: 1px solid #eaeaea;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    border-bottom: 1px solid #eaeaea;
}

.news-link {
    display: flex;
    align-items: center;
    padding: 25px 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.news-link:hover {
    background-color: #f8fafd;
}


.news-date {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: bold;
    color: #111;
    width: 120px;
    flex-shrink: 0;
}

.news-cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    border-radius: 30px;
    padding: 4px 15px;
    font-size: 0.8rem;
    color: #333;
    width: 130px;
    flex-shrink: 0;
    margin-right: 30px;
}

.news-title {
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.6;
    margin: 0;
    color: #333;
    transition: color 0.3s ease;
}

.news-link:hover .news-title {
    color: #003366;
}


/* --- Responsive (スマホ対応) --- */
@media (max-width: 768px) {
    .news-link {
        flex-wrap: wrap;
        padding: 20px 10px;
        gap: 12px;
    }

    .news-date {
        width: auto;
        margin-right: 15px;
    }

    .news-cat {
        width: auto;
        margin-right: 0;
        padding: 3px 12px;
        font-size: 0.75rem;
    }

    .news-title {
        width: 100%;
        font-size: 0.95rem;
    }
}


/* =========================================
   News Detail Page Styles (個別記事ページ)
   ========================================= */

.news-article {
    background-color: #fff;
    margin-bottom: 60px;
}

.article-header {
    border-bottom: 2px solid #003366;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.article-title {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.5;
    margin: 0;
    font-feature-settings: "palt";
}


.article-body {
    font-size: 1.05rem;
    line-height: 2;
    color: #444;
}

.article-body p {
    margin-bottom: 30px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px auto;
    display: block;
    border: 1px solid #eee;
}

.article-body h2 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #003366;
    margin: 60px 0 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 4px solid #4da2d8;
}

.article-body ul {
    margin: 0 0 30px;
    padding: 20px 25px 20px 40px;
    background-color: #f8fafd;
    border-radius: 4px;
}

.article-body ul li {
    margin-bottom: 10px;
}
.article-body ul li:last-child {
    margin-bottom: 0;
}

.article-body a {
    color: #003366;
    text-decoration: underline;
    transition: opacity 0.3s;
}
.article-body a:hover {
    opacity: 0.7;
}


.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 40px;
}

.article-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    color: #003366;
    transition: all 0.3s;
}

.nav-prev, .nav-next {
    width: 25%;
}
.nav-next {
    justify-content: flex-end;
}

.nav-back {
    border: 1px solid #003366;
    padding: 12px 40px;
    border-radius: 50px;
}
.nav-back:hover {
    background-color: #003366;
    color: #fff;
}

.nav-prev:hover, .nav-next:hover {
    color: #FFA41A;
}

.nav-prev .arrow { margin-right: 10px; font-size: 1.5rem; line-height: 1; margin-top: -3px; }
.nav-next .arrow { margin-left: 10px; font-size: 1.5rem; line-height: 1; margin-top: -3px; }


@media (max-width: 768px) {
    .article-title {
        font-size: 1.4rem;
    }
    
    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.25rem;
        margin-top: 40px;
    }

    .article-body h3 {
        font-size: 1.1rem;
    }
    
    .article-body ul {
        padding: 15px 15px 15px 25px;
    }
    
    .article-nav {
        flex-direction: column;
        gap: 30px;
    }
    .nav-prev, .nav-next {
        width: 100%;
    }
    .nav-prev { justify-content: flex-start; }
    .nav-back {
        order: -1;
        width: 100%;
    }
}