/* =========================================
   ニュース共通パーツ
   ========================================= */

/* カテゴリバッジ（丸みのあるモダンなデザイン） */
.news-category-badge {
    display: inline-block;
    background: #fdf2e9;
    color: var(--accent-color);
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 100px;
    font-weight: bold;
    white-space: nowrap;
}

/* =========================================
   ニュースアーカイブ（一覧ページ）
   ========================================= */

/* フィルターボタンエリア */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 1px solid #e0ddd9;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    color: var(--light-text);
    transition: 0.3s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

/* ニュースカード一覧 */
.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.news-card-item {
    background: var(--white);
    padding: 25px 35px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.news-card-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(230, 126, 34, 0.08);
    border-color: #fceee2;
}

.news-date {
    font-weight: bold;
    color: var(--light-text);
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 0.95rem;
    min-width: 100px;
}

.news-card-title {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.1rem;
    flex: 1;
}

/* =========================================
   ニュース詳細（個別記事ページ）
   ========================================= */
.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px 50px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.news-header {
    border-bottom: 2px dashed #f0ede9;
    margin-bottom: 40px;
    padding-bottom: 30px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.news-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--text-color);
    line-height: 1.5 !important;
    font-weight: 800;
    margin: 15px 0;
    letter-spacing: -0.01em;
}

.news-author-info {
    font-size: 0.9rem;
    color: var(--light-text);
}

.news-author-info strong {
    color: var(--primary-color);
}

.news-content {
    line-height: 2;
    font-size: 1.05rem;
    color: var(--text-color);
}

/* 本文内の強調ボックス（緑：アップデートなど） */
.info-box-green {
    background: #f1f9f1;
    border: 1px solid #d4edda;
    padding: 30px;
    border-radius: 20px;
    margin: 40px 0;
}

/* 本文内の表組み */
.cmd-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.95rem;
}

.cmd-table th, .cmd-table td {
    padding: 15px;
    border-bottom: 1px solid #f0ede9;
    text-align: left;
}

.cmd-table th {
    color: var(--primary-color);
    font-weight: 800;
}

/* 記事下ナビゲーション */
.news-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px dashed #e0ddd9;
}

/* =========================================
   レスポンシブ
   ========================================= */
@media (max-width: 768px) {
    .news-detail-container {
        padding: 40px 20px;
        border-radius: 0; /* スマホでは全幅 */
    }
    
    .news-card-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px;
    }
    
    .news-date {
        min-width: auto;
    }
    
    .news-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-nav {
        min-width: 100%;
    }
}