/* ニュース記事専用 CSS */

/* 基本スタイルは親ディレクトリのstyles.cssを継承 */

/* ニュース記事専用のレイアウト */
.news-article {
    background: rgba(255, 255, 255, 0.95);
    margin: 30px 0;
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(26, 35, 126, 0.3);
}

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

.article-title {
    color: #1a237e;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #666666;
    font-size: 0.95rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* メイン画像 */
.article-featured-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.article-content {
    max-width: 100%;
}

/* 記事本文 */
.article-content h2 {
    color: #1a237e;
    font-size: 1.9rem;
    font-weight: 700;
    margin: 35px 0 20px 0;
    padding-left: 20px;
    position: relative;
}

.article-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: linear-gradient(45deg, #1a237e 0%, #3f51b5 30%, #673ab7 70%, #9c27b0 100%);
    border-radius: 3px;
}

.article-content h3 {
    color: #4527a0;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
    padding-left: 15px;
    border-left: 3px solid #90a4ae;
}

.article-content p {
    margin-bottom: 20px;
    color: #212121;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin: 12px 0;
    color: #212121;
    line-height: 1.7;
}

/* サイドバー */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
    color: #1a237e;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8eaf6;
}

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

.sidebar-section li {
    margin: 10px 0;
}

.sidebar-section a {
    color: #4527a0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.sidebar-section a:hover {
    color: #1a237e;
    padding-left: 10px;
}

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

.news-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.news-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-card-title {
    color: #1a237e;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card-excerpt {
    color: #212121;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.news-card-link {
    color: #4527a0;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.news-card-link:hover {
    color: #1a237e;
    gap: 10px;
}

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

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-content h2 {
        font-size: 1.6rem;
    }

    .article-content h3 {
        font-size: 1.3rem;
    }

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

@media (max-width: 480px) {
    .article-title {
        font-size: 1.7rem;
    }

    .news-article {
        padding: 20px;
    }
}
