/* FAQページ用CSS */

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* カテゴリーナビゲーション */
.faq-categories {
    margin-bottom: 3rem;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.category-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

/* FAQコンテンツ */
.faq-content {
    space-y: 2rem;
}

.faq-section {
    margin-bottom: 3rem;
}

.faq-section h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #ffd700;
}

/* FAQ項目 */
.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #fafbfc;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #666;
    margin-left: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.7;
}

.faq-answer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* フィルタリング */
.faq-section[data-category]:not([data-category="all"]) {
    display: none;
}

.faq-section.show {
    display: block;
}

/* お問い合わせセクション */
.faq-contact {
    background: #f0f9ff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
    border: 2px solid #e0f2fe;
}

.faq-contact h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.25rem;
}

.faq-contact p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.faq-contact a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.faq-contact a:hover {
    text-decoration: underline;
}

/* 検索ボックス（将来の拡張用） */
.faq-search {
    margin-bottom: 2rem;
}

.faq-search input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
}

.faq-search input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .faq-container {
        padding: 1rem;
    }

    .category-nav {
        padding: 0.75rem;
    }

    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-question h4 {
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }

    .faq-toggle {
        font-size: 1.25rem;
        margin-left: 0.5rem;
    }
}

@media (max-width: 480px) {
    .category-nav {
        gap: 0.25rem;
    }

    .category-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .faq-question {
        padding: 0.75rem;
    }

    .faq-contact {
        padding: 1.5rem;
    }
}