@charset "UTF-8";

/* ==========================================================================
   新着情報ページ専用スタイル (main-content-news.css) - 完全修正版
   ========================================================================== */

/* --- アンカージャンプ位置の強力補正 --- */
/* 日付部分 (news-meta) にIDがある構造に特化 */
.news-meta[id] {
    scroll-margin-top: 180px !important;
    position: relative;
}

/* 旧式ブラウザ・iOS対策 */
.news-meta[id]::before {
    content: "";
    display: block;
    height: 180px;
    margin-top: -180px;
    visibility: hidden;
    pointer-events: none;
}

/* ジャンプした対象の記事だけは、アニメーションを待たずに即表示させる (ズレ防止) */
.news-item:has(:target),
.news-item:target {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* --- 共通レイアウト --- */
#main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 100px;
    color: #333;
}

#main-content * {
    box-sizing: border-box;
}

/* --- 1. ページヒーローエリア --- */
.page-hero {
    width: 100%;
    min-height: 200px;
    height: 12.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 140px; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.page-hero .section-title {
    color: #fff;
    font-size: 36px;
    margin: 0;
    line-height: 1.2;
}

.page-hero .section-title span {
    display: block;
    font-size: 14px;
    letter-spacing: 0.2em;
    margin-top: 5px;
    font-weight: normal;
}

/* --- 2. 導入セクション --- */
.section-padding-concept { 
    margin-top: 60px;
    margin-bottom: 40px;
    padding: 0 20px; 
}

.main-facility-title {
    text-align: center;
    font-size: 32px;
    color: #0a6a80;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.main-facility-title span {
    display: block;
    font-size: 16px;
    color: #30c2c2;
    margin-top: 8px;
    text-transform: uppercase;
}

/* --- 3. NEWSコンセプトボックス --- */
.room-concept-box.facility-concept-box {
    background: linear-gradient(135deg, #0a6a80 0%, #064e5e 100%);
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 60px 0; 
    margin-top: 40px;
    margin-bottom: 60px; 
    text-align: center;
}

.room-concept-box.facility-concept-box .section-title-area::before {
    content: "NEWS"; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 140px;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    z-index: 0;
}

.room-concept-box.facility-concept-box .section-title {
    color: #ffffff !important;
    position: relative;
    z-index: 2;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 25px;
}

.room-concept-box.facility-concept-box .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #ec971f;
    margin: 15px auto 0;
}

.room-concept-box.facility-concept-box .concept-lead {
    color: #ffffff !important;
    line-height: 2 !important; 
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

/* --- 4. お知らせアーカイブ --- */
.news-archive {
    margin-top: 80px;
    padding: 0 20px;
}

.news-item {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 45px 0;
    transition: all 0.3s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.news-meta {
    width: 160px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.news-date {
    font-family: "Georgia", serif;
    font-size: 1.15rem;
    color: #0a6a80;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.news-category {
    font-size: 11px;
    background: transparent;
    border: 1px solid #0a6a80;
    color: #0a6a80;
    padding: 2px 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.news-body {
    flex: 1;
}

.news-title {
    font-size: 1.25rem;
    color: #222;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.5;
    margin-top: 0;
}

.news-text {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
    text-align: justify;
}

/* --- サブ情報リスト --- */
.news-sub-info {
    list-style: none;
    padding: 20px 25px;
    background-color: #f6f9fb;
    border: 1px dashed #adc6e5;
    border-left: 5px solid #0a6a80;
    margin: 25px 0;
    font-size: 0.95rem;
}

.news-sub-info li {
    margin-bottom: 12px;
    color: #333;
    line-height: 1.6;
}

.news-sub-info strong {
    color: #b32d2d;
    font-weight: bold;
}

.news-period {
    display: block;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dotted #adc6e5;
    color: #0a6a80;
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- 画像エリア --- */
.news-image {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-image img {
    width: calc(33.333% - 6.7px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid #ddd;
    padding: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-image img:hover {
    opacity: 0.8;
    transform: scale(1.02);
    border-color: #0a6a80;
}

/* --- モーダル --- */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2147483647;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 85vh; 
    object-fit: contain;
    animation: zoomIn 0.25s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- 5. ページネーション --- */
.pagination {
    text-align: center;
    margin: 80px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pagination a, .pagination .current {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: "Century Gothic", sans-serif;
    font-weight: bold;
    border: 1px solid #ddd;
    color: #333;
}

.pagination .current {
    background: #0a6a80;
    color: #fff;
    border-color: #0a6a80;
}

/* --- 6. アニメーション制御 --- */
.reveal { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: all 0.8s ease; 
}

.reveal.is-visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- 7. レスポンシブ設計 --- */
@media screen and (max-width: 768px) {
    /* スマホ用ジャンプ位置補正 */
    .news-meta[id] {
        scroll-margin-top: 130px !important;
    }
    .news-meta[id]::before {
        height: 130px;
        margin-top: -130px;
    }

    .page-hero { 
        height: 200px; 
        margin-top: 60px; 
    }
    .main-facility-title { 
        font-size: 26px; 
    }

    .news-content-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .news-meta {
        width: 100%;
        flex-direction: row;
        align-items: center;
        border-bottom: 1px dotted #adc6e5;
        padding-bottom: 12px;
    }

    .news-date {
        font-size: 1rem;
    }

    .news-image img {
        width: calc(50% - 5px);
    }
}