/* FAQ Page Specific Styles */
.faq-content h2 {
    font-size: 2.2rem;
    color: #004080;
    text-align: center;
    margin-bottom: 2rem;
}

.faq-content dt {
        font-size: 1rem;
    }

.faq-content dd {
        font-size: 0.9rem;
    }
    /* Reduce horizontal padding for other major sections on small screens */
    .service-content, .company-content, .contact-content, .for-companies-content, .achievements-content, .pricing-content, .faq-content, .campaign-content, .skill-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

main h2, .service-content h2, .flow-content h2, .pricing-content h2, .company-content h2, .achievements-content h2, .faq-content h2, .contact-content h2, .privacy-content h2 {font-size:var(--h2-size)}

.faq-container {
    margin-top: 2rem;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 2rem;
}

/* DEBUG: 可視化用スタイル（本番では削除または無効化してください） */
/* Debug styles removed in production */
/* .faq-container.debug-visual {
    background: rgba(0,64,128,0.04);
    padding: 2rem;
    border: 1px dashed rgba(0,64,128,0.08);
}

/* FAQ グループ間の余白: 最後の .faq-group には余白をつけない */
.faq-group {
    margin-bottom: 1.6rem;
}
.faq-group:last-child {
    margin-bottom: 0;
}

/* Additional spacing for appended FAQ groups */
.more-faqs .faq-group {
    margin-bottom: 1.8rem;
}
.more-faqs .faq-group h3 {
    margin-bottom: 0.8rem;
}

/* Group heading icon styles */
.faq-group h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    color: #004080;
    margin: 0 0 1rem 0;
}
.faq-group .group-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/* Hide per-question icons if any remain */
.faq-item .faq-icon { display: none; }

.faq-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-question {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.faq-question span:first-child {
    font-weight: 600;
    color: #004080;
    flex: 1;
}

.faq-question {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question span:first-of-type {
    font-weight: 600;
    color: #004080;
    flex: 1;
    font-size: 1.1rem;
}

.faq-question {
        padding: 1rem;
        flex-wrap: wrap;
    }

.faq-question span:first-of-type {
        font-size: 1rem;
    }

.faq-question {
        padding: 1rem;
    }

.faq-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.faq-icon {
        font-size: 1.2rem;
        margin-right: 0.5rem;
    }

.faq-toggle {
    font-size: 1.5rem;
    color: #004080;
    font-weight: bold;
    transition: transform 0.3s;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #004080;
    font-weight: bold;
    transition: transform 0.3s;
    margin-left: 1rem;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.faq-answer p {
    margin: 0;
    padding: 1.5rem;
    color: #555;
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
    padding: 1.5rem;
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer p {
        padding: 1rem;
        font-size: 0.95rem;
    }

.faq-answer p {
        padding: 1rem;
    }