/* =============================================
   QA Page Styles (よくあるご質問)
   Bootstrap 5 対応版
   ============================================= */

/* QA Introduction Section */
.qa-intro-section {}

.qa-intro-text {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 2;
}

/* QA Section */
.qa-section {}

.qa-section-title {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #00479d;
    padding: 15px 20px;
    margin-bottom: 20px;
    background: #f1f6f9;
    border-left: 4px solid #00479d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qa-section-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00479d;
    border-radius: 50%;
}

/* QA Accordion */
.qa-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qa-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.qa-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* QA Question */
.qa-question {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: 0.3s ease;
    position: relative;
    gap: 15px;
}

.qa-question:hover {
    background-color: #fafafa;
}

/* QA Icon */
.qa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.qa-icon-q {
    background: #f5a623;
    color: #fff;
}

.qa-icon-a {
    background: #00479d;
    color: #fff;
}

/* QA Question Text */
.qa-question-text {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    flex: 1;
    line-height: 1.6;
}

/* QA Toggle Icon */
.qa-toggle {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.qa-toggle::before,
.qa-toggle::after {
    content: "";
    position: absolute;
    background: #00479d;
    transition: transform 0.3s ease;
}

.qa-toggle::before {
    width: 20px;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.qa-toggle::after {
    width: 2px;
    height: 20px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.qa-question[aria-expanded="true"] .qa-toggle::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* QA Answer */
.qa-answer {
    display: flex;
    padding: 0 25px 25px;
    gap: 15px;
    align-items: flex-start;
    background: #f9f9f9;
    border-top: 1px dashed #e0e0e0;
    padding-top: 20px;
}

.qa-answer-text {
    flex: 1;
}

.qa-answer-text p {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 15px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 0;
}

.qa-answer-text p+p {
    margin-top: 15px;
}

/* QA Link */
.qa-link {
    color: #00479d;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.qa-link:hover {
    color: #00479d;
    opacity: 0.7;
}

/* QA CTA Section */
.qa-cta-section {
    background: url("../images/youto-bg.jpg")no-repeat top center/cover;
}

.qa-cta-text {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 1.8;
}

.qa-cta-button {
    background: #00479d;
    border-radius: 999px;
    padding: 20px 80px 20px 40px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: .3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
}

.qa-cta-button::before {
    content: "";
    background: url("../images/arrow-white.svg") no-repeat center / contain;
    width: 40px;
    height: 40px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.qa-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background: #00479d;
    color: #fff;
    opacity: 0.8;
}

/* =============================================
   Responsive Styles
   ============================================= */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .qa-intro-text {
        font-size: 15px;
    }

    .qa-section-title {
        font-size: 18px;
    }

    .qa-question-text {
        font-size: 15px;
    }

    .qa-answer-text p {
        font-size: 14px;
    }

    .qa-cta-text {
        font-size: 16px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .qa-intro-text {
        font-size: 14px;
        text-align: center;
    }

    .qa-section-title {
        font-size: 16px;
        padding: 12px 15px;
    }

    .qa-question {
        padding: 15px;
        gap: 12px;
    }

    .qa-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .qa-question-text {
        font-size: 14px;
    }

    .qa-toggle {
        width: 16px;
        height: 16px;
    }

    .qa-toggle::before {
        width: 16px;
    }

    .qa-toggle::after {
        height: 16px;
    }

    .qa-answer {
        padding: 15px;
        gap: 12px;
    }

    .qa-answer-text p {
        font-size: 13px;
        line-height: 1.8;
    }

    .qa-cta-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .qa-cta-button {
        font-size: 16px;
        padding: 18px 70px 18px 30px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .qa-intro-text {
        font-size: 13px;
    }

    .qa-section-title {
        font-size: 15px;
        padding: 10px 12px;
    }

    .qa-section-icon {
        width: 6px;
        height: 6px;
    }

    .qa-question {
        padding: 12px;
        gap: 10px;
    }

    .qa-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .qa-question-text {
        font-size: 13px;
    }

    .qa-toggle {
        width: 14px;
        height: 14px;
    }

    .qa-toggle::before {
        width: 14px;
    }

    .qa-toggle::after {
        height: 14px;
    }

    .qa-answer {
        padding: 12px;
        gap: 10px;
    }

    .qa-answer-text p {
        font-size: 12px;
    }

    .qa-cta-text {
        font-size: 14px;
    }

    .qa-cta-button {
        font-size: 14px;
        padding: 16px 60px 16px 25px;
    }

    .qa-cta-button::before {
        width: 30px;
        height: 30px;
        right: 15px;
    }
}