/* ニューススライダーセクション */
.news-slider-section {
    padding: 20px 0 60px 0;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    z-index: 100;
}

/* Swiperコンテナ */
.news-swiper {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0 15px;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    z-index: 100;
}

@media (min-width: 640px) {
    .news-swiper {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
}

@media (min-width: 1024px) {
    .news-swiper {
        padding: 0 30px;
    }
}

/* スライド */
.news-slide {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    /* height: 400px; */
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 100;
}

.news-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ニュース画像 */
.news-image {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.news-banner-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-slide:hover .news-banner-img {
    transform: scale(1.05);
}

/* ニュースコンテンツ */
.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-body {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    margin-top: auto;
}

.news-external-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-external-link:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Swiperナビゲーションボタン */
.news-swiper .swiper-button-next,
.news-swiper .swiper-button-prev {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.5) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    z-index: 110 !important;
}

.news-swiper .swiper-button-next:hover,
.news-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.7) !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.news-swiper .swiper-button-next::after,
.news-swiper .swiper-button-prev::after {
    font-size: 1.2rem !important;
    font-weight: bold !important;
}

/* Swiperページネーション */
.news-swiper .swiper-pagination {
    position: static !important;
    margin-top: 30px !important;
    text-align: center !important;
    width: 100% !important;
    height: auto !important;
    z-index: 110 !important;
}

.news-swiper .swiper-pagination-bullet {
    background: #cccccc !important;
    opacity: 0.6 !important;
    transition: all 0.3s ease !important;
    margin: 0 6px !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    cursor: pointer !important;
}

.news-swiper .swiper-pagination-bullet:hover {
    opacity: 0.8 !important;
    transform: scale(1.1) !important;
}

.news-swiper .swiper-pagination-bullet-active {
    background: #00ff88 !important;
    opacity: 1 !important;
    transform: scale(1.4) !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.8) !important;
    animation: pulse-green 2s infinite !important;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 136, 1);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-slider-section {
        padding: 15px 0 40px 0;
    }

    .news-swiper {
        padding: 0 10px;
    }

    .news-swiper .swiper-pagination {
        margin-top: 25px !important;
    }

    .news-slide {
        height: 350px;
    }

    .news-banner-img {
        height: 200px;
    }

    .news-content {
        padding: 15px;
    }

    .news-title {
        font-size: 1.2rem;
    }

    .news-body {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .news-slider-section {
        padding: 10px 0 35px 0;
    }

    .news-swiper {
        padding: 0 5px;
    }

    .news-slide {
        height: 320px;
    }

    .news-banner-img {
        height: 180px;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-external-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .news-swiper .swiper-pagination {
        margin-top: 20px !important;
    }

    .news-swiper .swiper-pagination-bullet {
        width: 10px !important;
        height: 10px !important;
        margin: 0 4px !important;
    }

    .news-swiper .swiper-button-next,
    .news-swiper .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
    }

    .news-swiper .swiper-button-next::after,
    .news-swiper .swiper-button-prev::after {
        font-size: 1rem !important;
    }
}
