/* public/css/news-components.css */

/* ニュース詳細：画像とテキストの横並びコンポーネント */
.news-feature-row {
    display: flex !important;
    flex-direction: row;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

/* 画像エリア：サイズを240x160に強制固定 */
.news-feature-img-container {
    flex: 0 0 240px !important;
    width: 240px !important;
    height: 160px !important;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.news-feature-img-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* 画像比率が違っても枠に合わせて切り抜く */
    display: block;
    margin: 0 !important;
}

/* テキストエリア */
.news-feature-text-container {
    flex: 1;
}

.news-feature-text-container .news-sub-subtitle {
    margin-top: 0 !important;
    margin-bottom: 10px;
}

/* スマホ対応（768px以下） */
@media (max-width: 768px) {
    .news-feature-row {
        flex-direction: column !important; /* 縦並び：画像が上 */
        gap: 15px;
    }
    .news-feature-img-container {
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }
}

/* ============================================================
   1. プログラム紹介（画像+テキスト：PC横並び / スマホ縦並び）
   ============================================================ */
   .news-feature-row {
    display: flex !important;
    flex-direction: row;
    gap: 32px;
    margin-bottom: 48px;
    align-items: flex-start; /* 上揃えに固定 */
}

.news-feature-img-container {
    flex: 0 0 280px !important; /* 公式サイトのカード比率に合わせ少し拡大 */
    width: 280px !important;
    height: 160px !important;
    border-radius: 4px; /* 公式サイトに合わせたシャープな角丸 */
    overflow: hidden;
    background-color: #1a1a1a;
    border: 1px solid #333;
}

.news-feature-img-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.news-feature-text-container {
    flex: 1;
}

.news-feature-text-container .news-sub-subtitle {
    margin-top: 0 !important;
    color: #fff; /* ダーク背景対応：見出しを白に */
    border-left: 4px solid #ff0000; /* TSLアクセントカラーの赤 */
    padding-left: 12px;
    margin-bottom: 12px;
}

/* ============================================================
   2. 共通情報テーブル（上寄せ・視認性特化）
   ============================================================ */
.news-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #0d0d0d; /* 公式サイトの深い黒に合わせる */
    border: 1px solid #333;
}

.news-info-table th, 
.news-info-table td {
    padding: 1.25rem 1.5rem;
    border: 1px solid #333;
    text-align: left;
    font-size: 0.95rem;
    vertical-align: top; /* ご指摘の「上寄せ」に変更 */
}

/* 項目名（左側）：視認性を高め、内容より少し控えめなグレーに */
.news-info-table th {
    width: 160px;
    background-color: #1a1a1a;
    color: #999; /* 項目名をあえて少し落として内容を際立たせる */
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* 内容（右側）：最も重要な情報なので白（#fff）でハッキリ見せる */
.news-info-table td {
    color: #fff; 
    line-height: 1.8;
}

/* 所在地などの強調テキスト */
.news-info-table td strong {
    color: #fff;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

/* ============================================================
   3. マップコンテナ
   ============================================================ */
.news-map-container {
    margin: 1rem 0 3rem;
    border: 1px solid #333;
    line-height: 0;
}

/* ============================================================
   4. レスポンシブ対応
   ============================================================ */
@media (max-width: 768px) {
    .news-feature-row {
        flex-direction: column !important;
        gap: 20px;
    }
    .news-feature-img-container {
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .news-info-table th, 
    .news-info-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .news-info-table th {
        background-color: #222;
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
    .news-info-table td {
        padding: 1rem 1.5rem 1.5rem;
        border-top: none;
    }
}

/* ============================================================
   5. CTAセクション（申し込みエリア：PCサイズ最適化版）
   ============================================================ */
   .news-cta-section {
    max-width: 800px;      /* 横幅が広がりすぎないように制限 */
    margin: 3rem auto;     /* 上下マージンを詰め、左右中央寄せ */
    padding: 2rem 1.5rem;  /* 内側の余白をタイトに調整 */
    border: 1px solid #333;
    background: linear-gradient(145deg, #0d0d0d, #000);
    text-align: center;
    border-top: 3px solid #ff0000;
    box-sizing: border-box;
}

.news-cta-title {
    color: #fff !important;
    font-size: 1.25rem;     /* 少しサイズダウン */
    margin-bottom: 1rem;
    font-weight: 700;
}

.news-cta-description {
    color: #aaa;
    font-size: 0.9rem;      /* 文字サイズを調整 */
    line-height: 1.6;
    margin-bottom: 2rem;
}

.news-cta-button {
    display: inline-block !important;
    background-color: #ff0000 !important;
    color: #fff !important;
    padding: 0.8rem 2.5rem; /* ボタンも少しコンパクトに */
    text-decoration: none !important;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.news-cta-button:hover {
    background-color: #cc0000 !important;
    transform: translateY(-2px);
}

.news-cta-button-grayout {
    display: inline-block !important;
    background-color: #c2c2c2 !important;
    color: #ffffff !important;
    padding: 0.8rem 2.5rem;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 2px;
    cursor: default;
    pointer-events: none;
}

/* スマホ表示（スマホビューは以前の使い勝手を維持） */
@media (max-width: 768px) {
    .news-cta-section {
        max-width: 100%;
        margin: 2.5rem 0;
        padding: 2rem 1rem;
    }
    .news-cta-title {
        font-size: 1.15rem;
    }
    .news-cta-button {
        width: 100%;
        padding: 1rem 1rem;
    }
}