/* ============================================
   369theme 強み・特徴セクション専用CSS
   ============================================ */

/* 特徴セクション全体 */
.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.features-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* 特徴カードのコンテナ */
.features-container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    position: relative;
    z-index: 1;
}

/* 特徴カード */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #22c55e 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

/* アイコン */
.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(5deg) scale(1.05);
}

.feature-card:hover .feature-icon::before {
    opacity: 1;
}

.feature-icon svg {
    color: white;
    z-index: 1;
    position: relative;
}

/* タイトル */
.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: 'Yusei Magic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

/* 説明文 */
.feature-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #64748b;
    margin: 0;
}

/* ============================================
   レスポンシブ対応
   ============================================ */

/* タブレット */
@media (max-width: 768px) {
    .features-section {
        padding: 60px 16px;
    }

    .features-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        padding: 28px 24px;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
    }

    .feature-icon svg {
        width: 40px;
        height: 40px;
    }

    .feature-title {
        font-size: 1.15rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }
}

/* スマートフォン */
@media (max-width: 480px) {
    .features-section {
        padding: 50px 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
    }

    .feature-icon svg {
        width: 36px;
        height: 36px;
    }

    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .feature-description {
        font-size: 0.875rem;
        line-height: 1.7;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .features-section {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }

    .feature-card {
        background: #1e293b;
        border-color: rgba(99, 102, 241, 0.2);
    }

    .feature-card:hover {
        border-color: rgba(99, 102, 241, 0.4);
        box-shadow: 0 12px 32px rgba(99, 102, 241, 0.25);
    }

    .feature-title {
        color: #f1f5f9;
    }

    .feature-description {
        color: #94a3b8;
    }
}
