/**
 * FAQ Page Styles
 * 
 * FAQページ専用のスタイル
 */

/* ==========================================================================
   ページヘッダー
   ========================================================================== */

.page-header {
    background-color: #f8fafc;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(147, 51, 234, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.page-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.8rem;
    color: #666;
    margin: 0;
}

/* ==========================================================================
   FAQページセクション
   ========================================================================== */

.faq-page-section {
    padding: 6rem 0;
}

.faq-categories {
    max-width: 80rem;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 6rem;
}

.faq-category-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 3rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
}

.faq-category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
}

/* FAQアイテム（フロントページと共通） */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    padding: 2rem 3rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 115, 170, 0.02);
}

.faq-question-text {
    font-size: 1.7rem;
    font-weight: 600;
    color: #333;
    flex: 1;
    padding-right: 2rem;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.faq-toggle svg {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-toggle {
    background: var(--color-primary);
}

.faq-question[aria-expanded="true"] .faq-toggle svg {
    transform: rotate(180deg);
    stroke: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 3rem 2.5rem;
    font-size: 1.6rem;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

/* ==========================================================================
   お問い合わせセクション
   ========================================================================== */

.faq-contact-section {
    margin-top: 8rem;
    text-align: center;
    padding: 5rem;
    background: linear-gradient(135deg, #f0f8ff 0%, #f5f0ff 100%);
    border-radius: 20px;
}

.faq-contact-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1.5rem 0;
}

.faq-contact-text {
    font-size: 1.8rem;
    color: #666;
    margin: 0 0 3rem 0;
}

.faq-contact-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), #005580);
    color: #fff;
    text-decoration: none;
    padding: 1.8rem 4rem;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 115, 170, 0.3);
}

.faq-contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 115, 170, 0.4);
    text-decoration: none;
    color: #fff;
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */

@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0;
    }
    
    .page-title {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }
    
    .faq-page-section {
        padding: 4rem 0;
    }
    
    .faq-category {
        margin-bottom: 4rem;
    }
    
    .faq-category-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .faq-question {
        padding: 1.5rem 2rem;
    }
    
    .faq-question-text {
        font-size: 1.5rem;
    }
    
    .faq-answer p {
        padding: 0 2rem 2rem;
        font-size: 1.4rem;
    }
    
    .faq-contact-section {
        padding: 3rem 2rem;
        margin-top: 5rem;
    }
    
    .faq-contact-title {
        font-size: 2.2rem;
    }
    
    .faq-contact-text {
        font-size: 1.6rem;
    }
    
    .faq-contact-button {
        padding: 1.5rem 3rem;
        font-size: 1.6rem;
    }
}