/* News Section Styles */
:root {
    --primary-color: #2563eb;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: #f9fafb;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.header {
    background: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-item {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-item:hover {
    color: var(--primary-color);
}

.news-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.main-content {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.article-header {
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 1.75rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.article-meta {
    color: #6b7280;
    font-size: 0.875rem;
}

.featured-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.article-content {
    line-height: 2;
}

.article-content p {
    margin-bottom: 1rem;
}

.news-source-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.news-source-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
}

.news-source-list dt {
    font-weight: bold;
}

.news-source-list a {
    color: var(--primary-color);
}

.sidebar {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: fit-content;
}

.sidebar-section h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    margin-bottom: 0.5rem;
}

.sidebar-section a {
    color: var(--text-color);
    text-decoration: none;
}

.sidebar-section a:hover {
    color: var(--primary-color);
}

.footer {
    background: #1f2937;
    color: #ffffff;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    margin: 0 1rem;
}

.footer-section a:hover {
    color: #ffffff;
}

/* News List Page */
.news-list-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.news-list-container h1 {
    margin-bottom: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.news-card h3 {
    padding: 1rem;
    font-size: 1rem;
}

.news-card h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.news-card h3 a:hover {
    color: var(--primary-color);
}

.news-card time {
    padding: 0 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.news-card p {
    padding: 0.5rem 1rem 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
}
