/* ======================================= */
/* ファイル名: main-content-news.css        */
/* ホテル・レクストン徳之島 - お知らせ専用   */
/* ======================================= */

@charset "utf-8";

/* ========================================================
   1. 基本レイアウト・全体設定
========================================================= */
#main-content {
    max-width: 950px; /* 余白を活かすため少し広めに設定 */
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
    color: #2c3e50; /* 深みのある墨色 */
}

#main-content * {
    box-sizing: border-box;
}

/* 2. ページタイトル (H2) */
.sub-ttl {
    font-size: 2.4rem;
    font-weight: 300; /* 細身のフォントでモダンに */
    text-align: center;
    color: #004d8d; /* 深みのあるレクストンブルー */
    padding: 0;
    margin-top: 0;
    margin-bottom: 10px;
    border: none;
    letter-spacing: 0.15em;
}

/* タイトル下のサブテキスト（NEWS） */
.sub-ttl::after {
    content: "NEWS";
    display: block;
    font-size: 0.8rem;
    color: #d4af37; /* シャンパンゴールド */
    font-weight: 700;
    margin-top: 5px;
    letter-spacing: 0.2em;
}

/* 導入文の装飾 */
.section-description {
    text-align: center;
    margin-bottom: 80px;
    line-height: 1.8;
    color: #888;
    font-size: 0.95rem;
}

/* ========================================================
   2. お知らせ一覧エリア
========================================================= */
.news-archive {
    border-top: 1px solid #eee;
    margin-bottom: 80px;
}

.news-item {
    display: flex;
    padding: 60px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 50px;
    transition: all 0.4s ease;

    /* ↓ ここを追加：ヘッダーの高さ分（＋αの余裕）を確保する */
    scroll-margin-top: 70px; 
}

/* ホバー時に記事全体を少し強調 */
.news-item:hover {
    background-color: #fafafa;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: -20px;
    margin-right: -20px;
}

/* メタ情報（日付・カテゴリ） */
.news-meta {
    width: 140px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right;
}

.news-date {
    font-family: "Georgia", serif; /* 数字をセリフ体にして高級感を演出 */
    font-size: 1.4rem;
    color: #004d8d;
    font-weight: bold;
    line-height: 1;
}

.news-category {
    display: inline-block;
    align-self: flex-end; /* 右寄せ */
    font-size: 0.7rem;
    padding: 3px 10px;
    background-color: transparent;
    color: #999;
    border: 1px solid #ddd;
    border-radius: 0; /* 角を丸めないのが今のトレンド */
    letter-spacing: 0.1em;
}

/* 重要ラベル（シャンパンゴールド） */
.label-important {
    border-color: #d4af37;
    color: #d4af37;
    font-weight: bold;
}

/* 本文エリア */
.news-body {
    flex: 1;
}

.news-title {
    font-size: 1.55rem;
    color: #2c3e50;
    margin: 0 0 25px 0;
    line-height: 1.4;
    font-weight: 700;
}

.news-text {
    font-size: 1rem;
    line-height: 2; /* 行間を広くして読みやすく */
    color: #4a4a4a;
    margin-bottom: 25px;
}

/* 記事内画像 & リンク設定 */
.news-image {
    margin-top: 30px;
    max-width: 100%;
    overflow: hidden;
}

.news-image img {
    max-width: 100%;
    height: auto;
    border: none;
    padding: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

/* 記事内ボタン（最安値プラン用） */
.news-body .submit-btn {
    display: inline-flex;
    align-items: center;
    background-color: #004d8d;
    color: #fff !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 15px 40px !important;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
}

.news-body .submit-btn::after {
    content: "→";
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.news-body .submit-btn:hover {
    background-color: #003366;
    transform: none;
}

.news-body .submit-btn:hover::after {
    transform: translateX(10px);
}

/* ========================================================
   3. 重要事項ボックス
========================================================= */
.news-info-box {
    margin: 40px 0;
    padding: 35px;
    background-color: #f9f9f9;
    border: none;
    border-left: 2px solid #004d8d;
    border-radius: 0;
}

.info-highlight {
    font-weight: bold;
    color: #004d8d;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-list li {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* ========================================================
   4. レスポンシブ調整
========================================================= */
@media screen and (max-width: 768px) {
    #main-content {
        padding: 40px 15px;
    }

    .sub-ttl { font-size: 2rem; }

    .news-item {
        flex-direction: column;
        gap: 20px;
        padding: 40px 0;
    }

    .news-item:hover {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        background-color: transparent;
    }

    .news-meta {
        width: 100%;
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .news-category {
        align-self: center;
    }

    .news-title {
        font-size: 1.3rem;
    }

    .news-body .submit-btn {
        width: 100%;
        justify-content: center;
    }
}