/**
 * Shimomiya Theme - News Page Styles
 * お知らせページ専用スタイル
 *
 * @package Shimomiya
 */

/* ==========================================================================
   Page Hero - ページヒーロー
   ========================================================================== */

.page-hero {
    position: relative;
    height: 456px;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.page-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 145px;
}

.page-hero-wave svg {
    width: 100%;
    height: 100%;
}

.page-hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-zen);
    font-weight: var(--font-weight-bold);
    font-size: 30px;
    color: var(--color-white);
    text-align: center;
    line-height: 1.7;
    letter-spacing: 2px;
    margin: 0;
    z-index: 2;
}

@media (max-width: 768px) {
    .page-hero {
        height: 300px;
    }

    .page-hero-title {
        font-size: 24px;
    }

    .page-hero-wave {
        height: 80px;
    }
}

/* ==========================================================================
   News Archive Section - お知らせ一覧
   ========================================================================== */

/* --- Dot Pattern: Coarse (36px間隔・1.5px・大粒) --- */
.news-archive-section {
    background:
        radial-gradient(circle, rgba(180, 140, 100, 0.05) 1.5px, transparent 1.5px),
        var(--color-yellow-light);
    background-size: 36px 36px, auto;
    padding: 60px 0 100px;
}

.news-archive-section .section-heading {
    margin-bottom: 50px;
}

.news-archive-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 50px;
    border: 3px dashed var(--color-accent-green);
    box-shadow: var(--shadow-card);
}

.news-archive-list {
    margin-bottom: 40px;
}

.news-archive-item {
    border-bottom: 1px solid #e3dcc2;
}

.news-archive-item:first-child {
    border-top: 1px solid #e3dcc2;
}

.news-archive-link {
    display: block;
    padding: 25px 10px;
    transition: background-color var(--transition-normal);
}

.news-archive-link:hover {
    background-color: var(--color-cream);
}

.news-archive-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.news-archive-date {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    color: #888;
    letter-spacing: 0.5px;
}

.news-archive-category {
    display: inline-block;
    padding: 3px 12px;
    background: var(--color-pink);
    color: var(--color-white);
    font-family: var(--font-zen);
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    border-radius: 20px;
}

.news-archive-title {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-medium);
    font-size: 22px;
    color: var(--color-brown-dark);
    line-height: 1.6;
    margin: 0;
}

/* Pagination */
.news-pagination {
    text-align: center;
}

.news-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-family: var(--font-zen);
    font-size: 18px;
    color: var(--color-brown-dark);
    background: var(--color-cream);
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.news-pagination .page-numbers:hover {
    background: var(--color-yellow);
}

.news-pagination .page-numbers.current {
    background: var(--color-pink);
    color: var(--color-white);
}

.news-pagination .pagination-arrow {
    font-size: 20px;
}

.news-empty {
    text-align: center;
    padding: 60px 20px;
}

.news-empty p {
    font-family: var(--font-zen);
    font-size: 22px;
    color: #888;
}

@media (max-width: 768px) {
    .news-archive-card {
        padding: 30px 20px;
    }

    .news-archive-link {
        padding: 20px 5px;
    }

    .news-archive-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* ==========================================================================
   News Single Section - お知らせ個別
   ========================================================================== */

/* --- Dot Pattern: Fine grain (16px間隔・0.8px・密) --- */
.news-single-section {
    background:
        radial-gradient(circle, rgba(180, 140, 100, 0.06) 0.8px, transparent 0.8px),
        var(--color-yellow-light);
    background-size: 16px 16px, auto;
    padding: 60px 0 100px;
}

.news-single-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 50px;
    border: 3px dashed var(--color-accent-green);
    box-shadow: var(--shadow-card);
}

/* Header */
.news-single-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e3dcc2;
}

.news-single-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.news-single-date {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    color: #888;
    letter-spacing: 0.5px;
}

.news-single-category {
    display: inline-block;
    padding: 3px 12px;
    background: var(--color-pink);
    color: var(--color-white);
    font-family: var(--font-zen);
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    border-radius: 20px;
}

.news-single-title {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-bold);
    font-size: 24px;
    color: var(--color-brown-dark);
    line-height: 1.5;
    margin: 0;
}

/* Thumbnail */
.news-single-thumbnail {
    margin-bottom: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.news-single-thumbnail img {
    width: 100%;
    height: auto;
}

/* Content */
.news-single-content {
    font-family: var(--font-zen);
    font-size: 22px;
    color: var(--color-brown-dark);
    line-height: 1.9;
    letter-spacing: 0.5px;
}

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

.news-single-content h2 {
    font-size: 26px;
    font-weight: var(--font-weight-bold);
    margin: 2em 0 1em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-yellow);
}

.news-single-content h3 {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    margin: 1.5em 0 0.8em;
}

.news-single-content ul,
.news-single-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.news-single-content li {
    margin-bottom: 0.5em;
}

.news-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1.5em 0;
}

.news-single-content a {
    color: var(--color-pink);
    text-decoration: underline;
}

.news-single-content a:hover {
    text-decoration: none;
}

/* Footer */
.news-single-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e3dcc2;
}

/* Post Navigation */
.news-single-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.news-single-nav .nav-prev,
.news-single-nav .nav-next {
    flex: 1;
    max-width: 45%;
}

.news-single-nav .nav-next {
    text-align: right;
}

.news-single-nav .nav-link {
    display: block;
    padding: 15px 20px;
    background: var(--color-cream);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-normal);
}

.news-single-nav .nav-link:hover {
    background: var(--color-yellow);
}

.news-single-nav .nav-label {
    display: block;
    font-family: var(--font-zen);
    font-size: 16px;
    color: #888;
    margin-bottom: 5px;
}

.news-single-nav .nav-title {
    display: block;
    font-family: var(--font-zen);
    font-size: 18px;
    color: var(--color-brown-dark);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Back Button */
.news-single-back {
    text-align: center;
}

.news-single-back .btn-outline {
    background: var(--color-button-bg);
}

@media (max-width: 768px) {
    .news-single-card {
        padding: 30px 20px;
    }

    .news-single-title {
        font-size: 20px;
    }

    .news-single-nav {
        flex-direction: column;
        gap: 15px;
    }

    .news-single-nav .nav-prev,
    .news-single-nav .nav-next {
        max-width: 100%;
        text-align: left;
    }
}
