/* ==========================================================================
   よくある質問 - FAQ Section
   ========================================================================== */

.dpfp-faq-section {
    padding: 60px 20px;
    background: #fff;
}

.dpfp-faq-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.dpfp-faq-section .dpfp-section-title {
    font-size: 1.8rem;
    color: var(--dpfp-blue, #004098);
    font-weight: bold;
}

.dpfp-faq-section .section-desc {
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
}

/* FAQ List */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* FAQ Item */
.faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

/* Question Button */
.faq-question {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 18px 20px;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-base, "Noto Sans JP", sans-serif);
    transition: background 0.2s;
}

.faq-question:hover {
    background: #fafafa;
}

/* Q Icon */
.faq-q-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--dpfp-blue, #043e80);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.faq-q-text {
    flex-grow: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

/* Answer Area */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.faq-answer.is-open {
    grid-template-rows: 1fr;
}

.faq-a-inner {
    overflow: hidden;
    display: flex;
    gap: 15px;
    padding: 0 20px;
}

.faq-answer.is-open .faq-a-inner {
    padding: 0 20px 20px;
}

/* A Icon */
.faq-a-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--dpfp-yellow, #f5b500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 2px;
}

.faq-a-inner p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Chevron Icon */
.faq-question .dpfp-collapsible-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #f0f4f8;
    font-size: 0.75rem;
}

.faq-question[aria-expanded="true"] .dpfp-collapsible-icon {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 600px) {
    .dpfp-faq-section {
        padding: 40px 15px;
    }

    .dpfp-faq-section .dpfp-section-title {
        font-size: 1.4rem;
    }

    .faq-question {
        padding: 15px;
        gap: 10px;
    }

    .faq-q-text {
        font-size: 0.9rem;
    }

    .faq-a-inner {
        padding: 0 15px;
    }

    .faq-answer.is-open .faq-a-inner {
        padding: 0 15px 15px;
    }
}
