/* ニュース関連のスタイル */
.news-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.news-section.hidden {
    opacity: 0;
    pointer-events: none;
}

.news-container {
    background-color: white;
    width: 90%;
    max-width: 600px;
    max-height: 80%;
    overflow-y: auto;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.topics-list {
    display: flex;
    flex-direction: column;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.topic-item:hover {
    background-color: #f9f9f9;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-date {
    color: #666;
    font-size: 0.8em;
    margin-right: 15px;
    min-width: 100px;
}

.topic-title {
    flex-grow: 1;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.topic-title:hover {
    color: #2563EB;
}

.close-news-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-news-btn:hover {
    color: #333;
}

/* ニュース詳細ページ */
.news-detail-section {
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
}

.news-detail-container {
    background-color: white;
    box-shadow: 0 4px 6px rgb(48,54,66,0.95);
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.news-detail-header {
    text-align: center;
}

.news-detail-title {
    color: rgb(48,54,66,0.95);
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-detail-meta {
    color: #9CA3AF;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 15px;
}

.news-detail-content {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    line-height: 1.7;
}

.news-detail-content p {
    color: #1f2937;
    margin-bottom: 15px;
}

.news-detail-back-btn {
    position: fixed;
    bottom: 20px;
    left: 30px;
    transform: translateX(-50%);
    z-index: 100;
    padding: 0.75rem 0.5rem;
    background-color: #2563EB;
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.news-detail-back-btn:hover {
    background-color: #1D4ED8;
}
