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

/* 2カラムレイアウト */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.news-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.main-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* メイン画像 */
.news-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 見出しスタイル */
.main-content h1 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-meta {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.main-content h2 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid #3498db;
}

.main-content h3 {
    font-size: 1.2em;
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* 段落スタイル */
.main-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

.main-content ul, .main-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.main-content li {
    margin-bottom: 8px;
}

/* サイドバー */
.sidebar h3 {
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* ニュースカード（一覧用） */
.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

.news-card h3 {
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.news-card-meta {
    color: #7f8c8d;
    font-size: 0.85em;
    margin-bottom: 10px;
}

.news-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-card a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.news-card a:hover {
    text-decoration: underline;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .news-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

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

/* 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;
}
