/* ========================================
   FAQ専用スタイル
======================================== */

/* ページヘッダー */
.page-header {
    background: linear-gradient(135deg, #62a64e 0%, #4d8a3c 100%);
    color: var(--bg-white);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-title i {
    font-size: 2.5rem;
}

.page-description {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* FAQ検索 */
.faq-search-section {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.1);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
}

/* カテゴリーナビゲーション */
.faq-categories {
    padding: 30px 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.category-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-dark);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.category-btn i {
    font-size: 1.1rem;
}

/* FAQコンテンツ */
.faq-content {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.faq-category-section {
    margin-bottom: 50px;
    transition: var(--transition);
}

.faq-category-section.hidden {
    display: none;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.category-title i {
    color: var(--primary-color);
}

/* FAQアイテム */
.faq-item {
    background-color: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item.hidden {
    display: none;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background-color: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-question.active {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 25px;
    max-height: 1000px;
}

.faq-answer p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 25px;
    margin: 15px 0;
}

.faq-answer li {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 8px;
}

.faq-answer ol {
    counter-reset: item;
}

.faq-answer ol li {
    display: block;
    position: relative;
}

.faq-answer ol li::before {
    content: counter(item) ". ";
    counter-increment: item;
    color: var(--primary-color);
    font-weight: 600;
}

/* FAQ CTAセクション */
.faq-cta {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.cta-box {
    text-align: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 50px 40px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cta-box h2 i {
    color: var(--primary-color);
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.cta-buttons .btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* アクティブリンク */
.nav-list a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-list a.active::after {
    width: 100%;
}

/* 検索結果のハイライト */
.highlight-search {
    background-color: #fff59d;
    padding: 2px 4px;
    border-radius: 3px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .page-title i {
        font-size: 2rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .category-nav {
        gap: 8px;
    }

    .category-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .faq-question,
    .faq-answer {
        
    }

    .faq-answer.active {
        padding: 20px;
    }

    .cta-box {
        padding: 35px 25px;
    }

    .cta-box h2 {
        font-size: 1.5rem;
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .faq-categories {
        top: 70px;
    }

    .category-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .category-btn i {
        font-size: 1rem;
    }
}