/* ==========================================================================
   LIVE配信研究所 - ニュースセクション専用CSS
   スタイリッシュな四角いコンパクトなカードデザイン
   ========================================================================== */

/* ==========================================================================
   ニュースセクション基本スタイル
   完全に独立したスタイル（.sectionクラスの影響を受けない）
   ========================================================================== */

/* .sectionクラスのスタイルを完全に上書き */
.news-section.section {
    background: transparent !important;
    backdrop-filter: none !important;
    margin: 2.5rem auto !important;
    padding: 2.5rem 0 !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    box-shadow: none !important;
    display: block !important;
    flex-direction: unset !important;
    position: relative;
}

/* ニュースセクション専用のコンテナスタイル（枠なし） */
.news-section .custom-container {
    position: relative;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.news-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}

.news-section .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1A1A2E;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
    text-transform: uppercase;
}

.news-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #FF6B6B, #4ECDC4, transparent);
    border-radius: 2px;
}

/* ==========================================================================
   ニューススライダーラッパー
   ========================================================================== */

.news-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 1rem;
}

.news-slider-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ==========================================================================
   ニュースカード - 四角くコンパクトなデザイン
   ========================================================================== */

.news-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
    background: #FFFFFF;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.1);
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #F5F5F5;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-title {
    padding: 1rem 1.25rem;
    background: #FFFFFF;
    flex-grow: 1;
    display: flex;
    align-items: center;
    min-height: 80px;
}

.news-card-title h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1A1A2E;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.3px;
}

.news-card:hover .news-card-title h3 {
    color: #1A1A2E;
}

/* ==========================================================================
   スライダーコントロール
   ========================================================================== */

.news-slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.news-slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #E9ECEF;
    background: #FFFFFF;
    color: #2C3E50;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.news-slider-btn:hover {
    background: #2C3E50;
    color: #FFFFFF;
    border-color: #2C3E50;
    transform: scale(1.1);
}

.news-slider-btn:active {
    transform: scale(0.95);
}

.news-slider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   タブレット表示（768px - 1199px）
   ========================================================================== */

@media (max-width: 1199px) and (min-width: 768px) {
    .news-section.section {
        margin: 2rem auto !important;
        padding: 2rem 0 !important;
    }
    
    .news-section .custom-container {
        padding: 0 1.25rem;
    }
    
    .news-section .section-header {
        margin-bottom: 1.75rem;
    }
    
    .news-section .section-title {
        font-size: 2rem;
        letter-spacing: 0.8px;
    }
    
    .news-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
    
    .news-card-title {
        padding: 0.875rem 1rem;
        min-height: 70px;
    }
    
    .news-card-title h3 {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   モバイル表示（767px以下）
   ========================================================================== */

@media (max-width: 767px) {
    .news-section.section {
        margin: 1.5rem auto !important;
        padding: 1.5rem 0 !important;
    }
    
    .news-section .custom-container {
        padding: 0 1rem;
    }
    
    .news-section .section-header {
        margin-bottom: 1.5rem;
    }
    
    .news-section .section-title {
        font-size: 1.75rem;
        letter-spacing: 0.5px;
    }
    
    .news-section .section-title::after {
        width: 70px;
        height: 3px;
        bottom: -0.75rem;
    }
    
    .news-slider-wrapper {
        padding: 0 0.5rem;
    }
    
    .news-slider-track {
        gap: 1rem;
    }
    
    .news-card {
        flex: 0 0 calc(85% - 0.5rem);
        min-width: calc(85% - 0.5rem);
    }
    
    .news-card-image {
        aspect-ratio: 4 / 3;
    }
    
    .news-card-title {
        padding: 0.875rem 1rem;
        min-height: 65px;
    }
    
    .news-card-title h3 {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }
    
    .news-slider-controls {
        margin-top: 1.5rem;
    }
    
    .news-slider-btn {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   超小型デバイス（375px以下）
   ========================================================================== */

@media (max-width: 375px) {
    .news-section.section {
        margin: 1rem auto !important;
        padding: 1rem 0 !important;
    }
    
    .news-section .section-title {
        font-size: 1.5rem;
        letter-spacing: 0.3px;
    }
    
    .news-card {
        flex: 0 0 90%;
        min-width: 90%;
    }
    
    .news-card-title h3 {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   アクセシビリティ
   ========================================================================== */

.news-card:focus {
    outline: 3px solid #FF6B6B;
    outline-offset: 3px;
}

.news-slider-btn:focus {
    outline: 3px solid #FF6B6B;
    outline-offset: 3px;
}

/* キーボードナビゲーション */
@media (prefers-reduced-motion: reduce) {
    .news-slider-track,
    .news-card,
    .news-card-image img,
    .news-slider-btn {
        transition: none;
    }
}

