/**
 * 落ち着いたデザインのテキストスライダー
 * グラデーションなし、シンプルで洗練されたデザイン
 */

/* ================================
   画像を非表示
================================ */
.feature-banner img {
    display: none;
}

/* ================================
   ベースデザイン
================================ */
.feature-banner {
    position: relative;
    height: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

/* 落ち着いた単色の背景 */
.feature-banner:nth-child(5n+1) {
    background: #f8fafc; /* 薄いグレー */
    border-color: #e2e8f0;
}

.feature-banner:nth-child(5n+2) {
    background: #f0f4f8; /* 薄いブルーグレー */
    border-color: #cbd5e1;
}

.feature-banner:nth-child(5n+3) {
    background: #fafafa; /* オフホワイト */
    border-color: #e5e7eb;
}

.feature-banner:nth-child(5n+4) {
    background: #f9fafb; /* ライトグレー */
    border-color: #d1d5db;
}

.feature-banner:nth-child(5n+5) {
    background: #f7fafc; /* ペールグレー */
    border-color: #e2e8f0;
}

/* テキストコンテンツ */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    color: #2c3e50; /* ダークグレーのテキスト */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.banner-overlay h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #1a202c;
}

.banner-overlay p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

/* ホバー効果（控えめ） */
.feature-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: #f1f5f9;
}

.feature-banner:hover .banner-overlay h4 {
    color: #3498db; /* アクセントカラー */
}

/* ================================
   アイコン（シンプルな丸） 
================================ */
.banner-icon {
    width: 8px;
    height: 8px;
    background: #3498db;
    border-radius: 50%;
    margin: 0 auto 8px;
    opacity: 0.6;
}

/* ================================
   モバイル最適化
================================ */
@media (max-width: 768px) {
    .features-slider {
        min-height: 100px !important;
        padding: 10px 0;
        background: transparent;
    }
    
    .feature-banner {
        height: 80px !important;
        width: 220px !important;
        margin: 0 6px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    
    .banner-overlay h4 {
        font-size: 15px;
        margin-bottom: 3px;
    }
    
    .banner-overlay p {
        font-size: 12px;
    }
    
    .banner-icon {
        width: 6px;
        height: 6px;
        margin-bottom: 6px;
    }
    
    /* 最初と最後の要素に余白 */
    .feature-banner:first-child {
        margin-left: 15px !important;
    }
    
    .feature-banner:last-child {
        margin-right: 15px !important;
    }
}

/* ================================
   スクロールインジケーター（シンプル）
================================ */
@media (max-width: 768px) {
    .features-slider {
        position: relative;
    }
    
    /* 左右のフェード効果 */
    .features-slider::before,
    .features-slider::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 20px;
        z-index: 2;
        pointer-events: none;
    }
    
    .features-slider::before {
        left: 0;
        background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
    }
    
    .features-slider::after {
        right: 0;
        background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
    }
}

/* ================================
   代替案：すべて同じ背景色にする場合
================================ */
/*
.feature-banner {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.feature-banner:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}
*/