/* ニュース記事専用スタイル */

/* 記事全体のコンテナ */
.news-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 記事ヘッダー */
.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.article-meta time {
    font-weight: 500;
}

.article-meta .category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.article-header h1 {
    font-size: 2.2em;
    line-height: 1.4;
    margin: 20px 0;
    color: #1a1a1a;
}

.article-lead {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
}

/* メイン画像 */
.article-image {
    margin: 40px 0;
    text-align: center;
}

.article-image img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* 2カラムレイアウト */
.article-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 968px) {
    .article-content {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        order: 2;
    }
}

/* メインコンテンツ */
.content-main {
    font-size: 1.05em;
    line-height: 1.9;
    color: #333;
}

.content-main h2 {
    font-size: 1.8em;
    margin: 50px 0 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    color: #1a1a1a;
}

.content-main h3 {
    font-size: 1.4em;
    margin: 35px 0 20px;
    color: #2a2a2a;
    position: relative;
    padding-left: 20px;
}

.content-main h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.content-main p {
    margin: 20px 0;
}

.content-main ul {
    margin: 20px 0;
    padding-left: 30px;
}

.content-main ul li {
    margin: 12px 0;
    line-height: 1.8;
}

.content-main ul li::marker {
    color: #667eea;
    font-weight: bold;
}

/* サイドバー */
.content-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-section {
    background: #f8f9fa;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-section h3 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #1a1a1a;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

/* 関連記事リンク */
.related-articles {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin: 12px 0;
}

.related-articles a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.95em;
    line-height: 1.6;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.related-articles a:hover {
    color: #764ba2;
    padding-left: 10px;
}

/* 統計データボックス */
.stat-box {
    background: white;
    padding: 20px;
    margin: 15px 0;
    border-radius: 6px;
    text-align: center;
    border-left: 4px solid #667eea;
}

.stat-box .stat-number {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-box .stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
}

/* キーワードタグ */
.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    border: 1px solid #667eea;
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background: #667eea;
    color: white;
}

/* ニュース一覧ページ用スタイル */
.news-index-header {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 50px;
}

.news-index-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.news-index-header p {
    font-size: 1.1em;
    opacity: 0.95;
}

/* ニュースカードグリッド */
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 25px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.85em;
    color: #666;
}

.news-card-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 600;
}

.news-card h2 {
    font-size: 1.3em;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.news-card-excerpt {
    font-size: 0.95em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.news-card-link {
    display: inline-block;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-card-link:hover {
    color: #764ba2;
    padding-left: 5px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.6em;
    }

    .content-main {
        font-size: 1em;
    }

    .content-main h2 {
        font-size: 1.5em;
    }

    .content-main h3 {
        font-size: 1.2em;
    }

    .news-cards-grid {
        grid-template-columns: 1fr;
    }

    .news-index-header h1 {
        font-size: 1.8em;
    }
}

/* Responsive media handling */
.article-image,
.news-article-image,
.news-card img,
.news-card-image img,
.article-hero-image img,
.featured-image img,
.article-hero img {
    max-width: 100%;
    height: auto;
    display: block;
}
