/* ==========================================================================
   お知らせ (news) — archive list, single article, article components.
   Loaded last in the style chain so it wins over site/01–08.
   ========================================================================== */

/* ---------- shared container ---------- */
.atena-news-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px 80px;
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, sans-serif;
}

/* ---------- shared header pieces ---------- */
.news-eyebrow {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #00a5df;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.news-badge-important {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 12px;
    border-radius: 999px;
}

.news-page-title,
.news-article-title {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 16px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.35;
    color: #07377f;
}

.news-page-title::after,
.news-article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #00a5df;
}

/* ---------- archive ---------- */
.news-page-header {
    text-align: center;
    margin-bottom: 44px;
}

.atena-news-list {
    display: grid;
    gap: 16px;
}

.atena-news-item {
    display: block;
    padding: 24px 28px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #fff;
    color: #222;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.atena-news-item:hover {
    border-color: #00a5df;
    box-shadow: 0 10px 28px rgba(44, 62, 80, .12);
    transform: translateY(-2px);
}

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

.atena-news-item .date {
    font-size: 13px;
    color: #64748b;
    letter-spacing: .05em;
}

.news-item-category {
    padding: 4px 8px;
    background: #eaf7fc;
    color: #07377f;
    font-size: 11px;
    font-weight: 700;
}

.atena-news-item .title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    color: #07377f;
}

.atena-news-item .excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
}

.atena-news-item .address {
    margin-top: 10px;
    font-size: 13px;
    color: #0f766e;
}

.news-empty {
    padding: 48px 0;
    text-align: center;
    color: #64748b;
}

.news-pagination {
    margin-top: 40px;
    text-align: center;
}

.news-pagination .nav-links {
    display: inline-flex;
    gap: 8px;
}

.news-pagination .page-numbers {
    display: inline-block;
    min-width: 40px;
    padding: 8px 12px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    color: #07377f;
    font-weight: 600;
    text-decoration: none;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
    background: #00a5df;
    border-color: #00a5df;
    color: #fff;
}

/* ---------- single article ---------- */
.news-article-header {
    text-align: center;
    margin-bottom: 48px;
}

.news-article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.news-article-date {
    font-size: 14px;
    color: #64748b;
    letter-spacing: .08em;
}

.news-article-body {
    max-width: 860px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

.news-article-body p {
    margin: 0 0 1.6em;
}

.news-article-body h2 {
    position: relative;
    display: block;
    margin: 2.2em 0 1.2em;
    padding-bottom: 14px;
    font-size: 26px;
    font-weight: 700;
    color: #07377f;
    text-align: center;
}

.news-article-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #00a5df;
}

.news-article-body h3 {
    margin: 2em 0 1em;
    font-size: 20px;
    font-weight: 700;
    color: #07377f;
}

.news-article-body ul,
.news-article-body ol {
    margin: 0 0 1.6em;
    padding-left: 1.6em;
}

.news-article-body li {
    margin-bottom: .4em;
}

.news-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.news-article-body a {
    color: #00a5df;
}

.news-article-footer {
    margin-top: 64px;
    text-align: center;
}

.news-back-link {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid #00a5df;
    border-radius: 999px;
    color: #00a5df;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.news-back-link:hover {
    background: #00a5df;
    color: #fff;
}

/* ---------- article components (本文で使える部品) ---------- */
.news-intro {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.highlight-date {
    color: #e74c3c;
    font-weight: 700;
}

.news-note {
    text-align: center;
    color: #666;
    font-size: 15px;
}

.info-section,
.gallery-section {
    margin: 64px auto;
    text-align: center;
}

.section-title h3 {
    position: relative;
    display: inline-block;
    margin: 0 0 36px;
    padding-bottom: 14px;
    font-size: 26px;
    font-weight: 700;
    color: #07377f;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #00a5df;
}

.info-card {
    padding: 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-align: left;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.info-item {
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-item:first-child {
    padding-top: 0;
}

.info-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-label {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #00a5df;
    letter-spacing: .1em;
}

.info-content {
    font-size: 16px;
    line-height: 1.7;
    color: #07377f;
}

.map-container {
    min-height: 260px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef2f7;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 0 0 28px;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .1);
}

.news-photo-wrap {
    margin-bottom: 30px;
    text-align: center;
}

.news-photo {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .1);
}

/* contact box on news singles (full-bleed dark band, same look as other pages) */
.single-news #contact {
    position: relative;
    width: 100vw;
    margin: 80px calc(-50vw + 50%) 0;
    padding: 60px 40px;
    border-radius: 15px;
    background: linear-gradient(135deg, #07377f 0%, #34495e 100%);
    color: #fff;
    text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
    .atena-news-page {
        padding: 32px 16px 64px;
    }

    .news-page-title,
    .news-article-title {
        font-size: 25px;
    }

    .news-article-body {
        font-size: 15px;
    }

    .news-article-body h2 {
        font-size: 22px;
    }

    .atena-news-item {
        padding: 20px;
    }

    .atena-news-item .title {
        font-size: 17px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .info-card {
        padding: 22px;
    }

    .section-title h3 {
        font-size: 22px;
    }

    .gallery-item img {
        height: 200px;
    }

    .single-news #contact {
        padding: 40px 20px;
    }
}

/* ---------- migrated article body (current design language) ---------- */
.news-article-body h2 {
    margin: 44px 0 18px;
    padding-left: 14px;
    padding-bottom: 0;
    border-left: 4px solid var(--c-blue);
    color: var(--c-navy-900);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
}

.news-article-body h2::after {
    content: none;
}

.news-article-body > p {
    margin: 0 0 16px;
    color: var(--c-text-muted);
    font-size: 15px;
    line-height: 2;
}

.news-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

/* wpautop inserts <br> between images; keep them out of the grid */
.news-gallery br {
    display: none;
}

.news-gallery p {
    display: contents;
}

.news-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.news-article-body .news-single-photo {
    display: block;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 18px 0;
}

@media (max-width: 600px) {
    .news-gallery {
        grid-template-columns: 1fr;
    }
}

.news-badge-pinned {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 999px;
    background: #eaf7fc;
    color: var(--c-blue-600);
    font-size: 11.5px;
    font-weight: 700;
}

/* ---------- Closed listing line ---------- */
.news-sold-line {
    margin: 0 0 6px;
    color: #c0392b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.news-article-header .news-sold-line {
    font-size: 17px;
}

.home-update-sold {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 8px;
    background: rgba(192, 57, 43, .1);
    color: #c0392b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    vertical-align: 1px;
}
