/* ========================================
   FAQ専用スタイル
   ======================================== */

/* ページヘッダー */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1rem;
    color: #666666;
    line-height: 1.8;
}

/* FAQタブセクション */
.faq-tabs-section {
    padding: 40px 0 0;
    background-color: #ffffff;
}

.faq-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.faq-tab {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.faq-tab:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #333333;
}

.faq-tab.active {
    background: #007BFF;
    border-color: #007BFF;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* FAQ内容セクション */
.faq-content-section {
    padding: 60px 0 80px;
    background-color: #ffffff;
}

.faq-category {
    display: none;
    max-width: 900px;
    margin: 0 auto;
}

.faq-category.active {
    display: block;
}

/* FAQアイテム */
.faq-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-color: #007BFF;
}

.faq-item.open {
    border-color: #007BFF;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.15);
}

/* FAQ質問部分 */
.faq-question {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 25px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-q-label {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #007BFF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.faq-q-text {
    flex: 1;
    color: #333333;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    padding-top: 4px;
}

.faq-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    color: #007BFF;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

/* FAQ回答部分 */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 25px 25px;
}

.faq-answer-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-top: 10px;
}

.faq-a-label {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.faq-answer-content p {
    flex: 1;
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
    padding-top: 4px;
}

/* FAQ お問い合わせCTA */
.faq-contact-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #007BFF, #0056b3);
}

.faq-cta-content {
    text-align: center;
    color: white;
}

.faq-cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.faq-cta-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.faq-cta-content .btn-primary {
    background: white;
    color: #007BFF;
    border: 2px solid white;
}

.faq-cta-content .btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 0.9rem;
    }
    
    .faq-tabs {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .faq-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .faq-content-section {
        padding: 40px 0 60px;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-q-label,
    .faq-a-label {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    
    .faq-q-text {
        font-size: 0.95rem;
    }
    
    .faq-answer-content p {
        font-size: 0.9rem;
    }
    
    .faq-item.open .faq-answer {
        padding: 0 20px 20px;
    }
    
    .faq-contact-cta {
        padding: 60px 0;
    }
    
    .faq-cta-title {
        font-size: 1.5rem;
    }
    
    .faq-cta-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .faq-question {
        gap: 10px;
        padding: 12px 15px;
    }
    
    .faq-answer-content {
        gap: 10px;
    }
    
    .faq-q-text {
        font-size: 0.9rem;
    }
}