/* FAQ イントロ */
.faq-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
}

/* カテゴリーナビゲーション */
.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.category-btn {
    padding: 12px 25px;
    border: 2px solid var(--light-gray);
    background: transparent;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.category-btn.active {
    background: var(--gradient-main);
    border-color: transparent;
    color: var(--white);
}

/* FAQ セクション */
.faq-section {
    margin-bottom: 60px;
}

.faq-section-title {
    font-size: 24px;
    color: var(--dark-gray);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 15px;
}

.faq-section-title i {
    color: var(--primary-purple);
    font-size: 28px;
}

/* FAQ アイテム */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--off-white);
}

.faq-question i:first-child {
    color: var(--primary-purple);
    font-size: 20px;
    flex-shrink: 0;
}

.faq-question h3 {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-gray);
}

.faq-question i:last-child {
    color: var(--gray);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i:last-child {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 25px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray);
}

.faq-answer a {
    color: var(--primary-purple);
    text-decoration: underline;
}

.faq-answer a:hover {
    opacity: 0.8;
}

/* フィルタリング時の非表示 */
.faq-item.hidden,
.faq-section.hidden {
    display: none;
}

/* CTA */
.faq-cta {
    text-align: center;
    margin-top: 80px;
    padding: 50px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.05) 0%, rgba(255, 107, 157, 0.05) 100%);
    border-radius: 20px;
}

.faq-cta h3 {
    font-size: 24px;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.faq-cta p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 30px;
}

.faq-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .faq-categories {
        padding: 20px 15px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        max-width: 400px;
        margin: 0 auto 60px;
    }
    
    .faq-categories .category-btn:first-child {
        grid-column: 1 / -1;
    }
    
    .category-btn {
        padding: 12px 15px;
        font-size: 13px;
        text-align: center;
        white-space: nowrap;
    }
    
    .faq-section-title {
        font-size: 20px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
    
    .faq-cta {
        padding: 40px 20px;
    }
}