/*
 * よくある質問ページのスタイル
 * FAQ Page Styles
 */

/* ========================================
   ヒーローセクション
   ======================================== */

.faq-hero {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
    width: 100%;
}

.faq-hero .hero-background {
    position: relative;
    background-image: url('../images/background05.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-3xl) 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.faq-hero .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.faq-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.faq-hero .hero-title {
    font-size: 4rem;
    color: var(--color-text-white);
    font-weight: 800;
    font-family: var(--font-family-en);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    line-height: 1.2;
    margin-top: 0;
}

.faq-hero .subtitle {
    font-size: 1.5rem;
    color: var(--color-text-white);
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

/* タブレット */
@media (max-width: 1024px) {
    .faq-hero .hero-background {
        min-height: 350px;
    }

    .faq-hero .hero-title {
        font-size: 3rem;
    }

    .faq-hero .subtitle {
        font-size: 1.35rem;
        font-weight: 700;
    }
}

/* スマートフォン */
@media (max-width: 768px) {
    .faq-hero .hero-background {
        min-height: 300px;
    }

    .faq-hero .hero-title {
        font-size: 2.5rem;
    }

    .faq-hero .subtitle {
        font-size: 1.25rem;
        font-weight: 700;
    }
}

/* 小型スマートフォン */
@media (max-width: 480px) {
    .faq-hero .hero-background {
        min-height: 250px;
    }

    .faq-hero .hero-title {
        font-size: 2rem;
    }

    .faq-hero .subtitle {
        font-size: 1.1rem;
        font-weight: 700;
    }
}

/* ========================================
   FAQコンテンツ
   ======================================== */

.faq-content {
    padding: var(--spacing-2xl) 0;
}

.faq-section {
    margin-bottom: var(--spacing-3xl);
}

.faq-category-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-md);
    border-left: 4px solid var(--color-primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* アコーディオンアイテム */
.accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
    user-select: none;
}

.accordion-header:hover {
    background-color: #f9fafb;
}

.accordion-header[aria-expanded="true"] {
    background-color: #f3f4f6;
}

/* Q.とA.のスタイル - Poppinsフォントを適用 */
.accordion-icon,
.answer-icon {
    font-family: 'Poppins', var(--font-family-en), sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #2E8540; /* ヘッダーの電話番号と同じ緑色 */
    flex-shrink: 0;
}

.accordion-question {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.accordion-toggle {
    flex-shrink: 0;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.accordion-header[aria-expanded="true"] .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-content {
    padding: var(--spacing-lg);
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
    line-height: 1.8;
    display: none; /* 初期状態は非表示 */
    gap: var(--spacing-md);
    align-items: flex-start;
}

/* jQueryのslideDown()で表示されている時 */
.accordion-content[style*="display: block"] {
    display: flex !important;
}

.accordion-content p {
    margin: 0;
    flex: 1;
}

/* ========================================
   お問い合わせCTAセクション（フルワイド）
   ======================================== */

.faq-contact-section {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
}

.faq-contact-background {
    position: relative;
    background-image: url('../images/background01.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-3xl) 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.faq-contact-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.faq-contact-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.faq-contact-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.faq-contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: var(--spacing-xl);
}

.faq-contact-method {
    background-color: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-contact-method:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.faq-contact-method .contact-icon {
    flex-shrink: 0;
}

.faq-contact-method h4 {
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    margin: 0;
    font-weight: 400;
    text-align: center;
}

.faq-contact-method .btn-primary {
    background: linear-gradient(135deg, var(--color-primary-green) 0%, var(--color-primary-green-light) 100%);
    border-radius: 50px;
    padding: 0.625rem 3rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(46, 133, 64, 0.25);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    color: #ffffff;
    text-decoration: none;
}

.faq-contact-method .btn-primary span {
    position: relative;
    z-index: 1;
}

.faq-contact-method .btn-primary svg {
    position: absolute;
    right: 0.75rem;
    z-index: 1;
}

.faq-contact-method .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 133, 64, 0.35);
}

.faq-contact-phone-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.faq-contact-phone-large {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin: 0 0 var(--spacing-xs) 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-poppins);
}

.faq-contact-phone-large a {
    color: var(--color-primary-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-contact-phone-large a:hover {
    color: var(--color-primary-green-light);
}

.faq-contact-hours {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-align: center;
    margin: 0;
}

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

@media (max-width: 1024px) {
    .faq-contact-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .faq-category-title {
        font-size: 1.5rem;
    }

    .accordion-icon,
    .answer-icon {
        font-size: 1.1rem;
    }

    .accordion-question {
        font-size: 1rem;
    }

    .accordion-header,
    .accordion-content {
        padding: var(--spacing-md);
    }

    .faq-contact-methods {
        grid-template-columns: 1fr;
    }

    .faq-contact-title {
        font-size: 1.35rem;
    }

    .faq-contact-phone-large {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 576px) {
    .faq-contact-title {
        font-size: 1.25rem;
    }

    .faq-contact-phone-large {
        font-size: var(--font-size-2xl);
    }

    .faq-contact-method {
        padding: var(--spacing-lg);
    }

    .faq-contact-method .btn-primary {
        padding: 0.5rem 2rem;
    }
}

