/* お知らせ一覧・個別記事用追加スタイル */


#news-single .page_header::before,
#news .page_header::before {
    content: '';
    background: url(../image/news/txt_news.svg) no-repeat left bottom;
    height: 53%;
    bottom: 0;
}
@media screen and (max-width: 1024px) {
    #news-single .page_header::before,
    #news .page_header::before {
        height: 45%;
    }
}
@media screen and (max-width: 768px) {
    #news-single .page_header::before,
    #news .page_header::before {
        height: 31%;
    }
}


.news_list {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news_list.is-show {
    display: block;
    opacity: 1;
}

/* お知らせ一覧 */
.news-archive .news_list {
    border-top: 1px solid #ddd;
}

.news-archive .news_list li {
    border-bottom: 1px solid #ddd;
    padding: 0 2%;
}

.news-archive .news_list li a {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 0;
    text-decoration: none;
    color: inherit;
}

/* .news_meta becomes the first child now */
.news-archive .news_list li a .news_meta {
    flex-shrink: 0;
    width: 22rem;
    /* Increased width to accommodate date + tag */
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-archive .news_list li a .news_meta .date {
    font-size: clamp(14px, calc(0.372vw + 12.7px), 22px);
    color: #666;
}

/* Category Label Styles */
.cat-label {
    display: inline-block;
    font-size: 1.1rem;
    padding: 0.2rem 0.8rem;
    color: #fff;
    background-color: #999;
    /* Default */
    border-radius: 2px;
    line-height: 1.4;
}

.cat-label.cat-event {
    background-color: var(--color-yellow);
    /* Orange for Event */
}

.cat-label.cat-property {
    background-color: var(--color-lblue);
    /* Blue for Property */
}

.news-archive .news_list li a .title {
    flex: 1;
    font-size: clamp(16px, calc(0.279vw + 15.02px), 22px);
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid var(--color-blue);
    text-decoration: none;
    color: var(--color-blue);
    transition: all 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--color-blue);
    color: #fff;
}

/* お知らせ個別記事 */
.news-single .article-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 2rem;
}

.news-single .date {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 1rem;
}

.news-single .article-title {
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-single .article-content {
    line-height: 2;
}

.news-single .article-content p {
    margin-bottom: 1.5rem;
}

.news-single .article-content img {
    max-width: 100%;
    height: auto;
}

.news-single .article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
}

.news-single .article-nav a {
    text-decoration: none;
    color: var(--color-blue);
}

.news-single .article-nav .nav-list a {
    padding: 1rem 2rem;
    border: 1px solid var(--color-blue);
}

/* 404ページ */
.error-404 {
    text-align: center;
    min-height: 40vh;
}

.error-404 .error-message {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* 固定ページデフォルト */
.page-content .entry-content {
    line-height: 2;
}

.page-content .entry-content p {
    margin-bottom: 1.5rem;
}

.page-content .entry-content h2 {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 4rem 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-blue);
}

.page-content .entry-content h3 {
    font-size: 2rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem;
}

.page-content .entry-content ul,
.page-content .entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.page-content .entry-content li {
    margin-bottom: 0.5rem;
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .news-archive .news_list li a {
        flex-direction: column;
        gap: 0.5rem;
    }

    .news-archive .news_list li a .news_meta {
        width: auto;
        flex-wrap: wrap;
    }

    .news-single .article-title {
        font-size: 2rem;
    }

    .news-single .article-nav {
        flex-direction: column;
        gap: 1rem;
    }
}