/* ==================== ニュース一覧ページ ==================== */

.news-main {
    min-height: 100vh;
    padding-top: 100px; /* ヘッダー分のスペース */
    /* 背景を透過にして、base.cssの固定背景を表示 */
}

.news-header {
    text-align: center;
    padding: 80px 20px;
    /* 背景を透過にして統一感を出す */
    color: #1a1a1a;
}

/* .main-title and .subtitle are now in base.css for consistency */

.news-list {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.news-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid #4A90E2;
}

.news-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image-container img {
    transform: scale(1.05);
}

.news-text-container {
    padding: 30px;
}

.news-date {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.news-excerpt {
    font-size: 1em;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.news-button {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid #667eea;
    border-radius: 30px;
    color: #667eea;
    font-weight: bold;
    transition: all 0.3s ease;
}

.news-button:hover {
    background-color: #667eea;
    color: #fff;
}

/* ==================== 個別記事詳細ページ ==================== */

.news-detail-main {
    min-height: 100vh;
    padding-top: 100px; /* ヘッダー分のスペース */
    background-color: #f9f9f9;
}

/* パンくずリスト */
.breadcrumb {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 40px 20px;
    font-size: 0.95em;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 記事コンテナ */
.news-detail {
    max-width: 900px;
    margin: 0 auto 80px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* ヘッダー画像 */
.news-detail-header {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.news-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* メタ情報 */
.news-detail-meta {
    padding: 30px 60px 0;
}

.news-detail-date {
    display: inline-block;
    font-size: 0.95em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 20px;
}

/* タイトル */
.news-detail-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    padding: 30px 60px 20px;
    margin: 0;
}

/* 抜粋 */
.news-detail-excerpt {
    font-size: 1.2em;
    color: #666;
    line-height: 1.8;
    padding: 0 60px 30px;
    margin: 0;
    border-bottom: 2px solid #f0f0f0;
}

/* 記事本文 */
.news-detail-content {
    padding: 40px 60px;
    font-size: 1.1em;
    line-height: 1.9;
    color: #444;
}

.news-detail-content h1 {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-top: 50px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.news-detail-content h2 {
    font-size: 1.6em;
    font-weight: bold;
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
}

.news-detail-content h3 {
    font-size: 1.3em;
    font-weight: bold;
    color: #444;
    margin-top: 30px;
    margin-bottom: 15px;
}

.news-detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.news-detail-content li {
    margin-bottom: 12px;
}

.news-detail-content a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.news-detail-content a:hover {
    color: #764ba2;
}

.news-detail-content code {
    background-color: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.news-detail-content pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.news-detail-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #666;
}

/* 戻るボタン */
.news-detail-back {
    padding: 0 60px 50px;
}

.back-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #667eea;
    color: #fff;
}

/* ==================== レスポンシブ対応 ==================== */

@media (max-width: 768px) {
    /* ニュースヘッダー */
    .news-header {
        padding: 60px 15px;
    }

    .main-title {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    /* ニュース一覧 */
    .news-list {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 30px;
        margin: 50px auto;
    }

    .news-card {
        max-width: 500px;
        margin: 0 auto;
    }

    /* 個別記事 */
    .news-detail-main {
        padding-top: 90px;
    }

    .news-detail-header {
        height: 250px;
    }

    .news-detail-title {
        font-size: 1.8em;
        padding: 25px 30px 15px;
    }

    .news-detail-excerpt {
        font-size: 1.1em;
    }

    .news-detail-excerpt,
    .news-detail-content,
    .news-detail-back {
        padding-left: 30px;
        padding-right: 30px;
    }

    .news-detail-meta {
        padding: 20px 30px 0;
    }

    .news-detail-content {
        font-size: 1em;
        padding-top: 30px;
    }

    .news-detail-content h1 {
        font-size: 1.7em;
        margin-top: 40px;
    }

    .news-detail-content h2 {
        font-size: 1.4em;
        margin-top: 35px;
    }

    .news-detail-content h3 {
        font-size: 1.2em;
        margin-top: 30px;
    }

    .breadcrumb {
        padding: 20px 30px 15px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .news-header {
        padding: 50px 10px;
    }

    .main-title {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
    }

    .news-list {
        padding: 0 15px;
        margin: 40px auto;
    }

    .news-text-container {
        padding: 25px;
    }

    .news-title {
        font-size: 1.3em;
    }

    .news-detail-header {
        height: 200px;
    }

    .news-detail-title {
        font-size: 1.5em;
        padding: 20px 20px 12px;
        line-height: 1.3;
    }

    .news-detail-excerpt {
        font-size: 1em;
    }

    .news-detail-excerpt,
    .news-detail-content,
    .news-detail-back {
        padding-left: 20px;
        padding-right: 20px;
    }

    .news-detail-meta {
        padding: 15px 20px 0;
    }

    .news-detail-content h1 {
        font-size: 1.5em;
    }

    .news-detail-content h2 {
        font-size: 1.3em;
    }

    .news-detail-content h3 {
        font-size: 1.1em;
    }

    .breadcrumb {
        padding: 15px 20px 10px;
        font-size: 0.8em;
    }

    .back-button {
        padding: 12px 28px;
        width: 100%;
        text-align: center;
    }
}
