/**
 * AI Bridge LP FAQ Block Styles
 */

.aibridge-lp-faq {
    padding: 100px 20px;
}

.aibridge-lp-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ヘッダー */
.aibridge-lp-faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.aibridge-lp-faq-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
}

.aibridge-lp-faq-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: #64748b;
}

/* FAQ リスト */
.aibridge-lp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* FAQ アイテム - カードスタイル */
.style-card .aibridge-lp-faq-item {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.style-card .aibridge-lp-faq-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* FAQ アイテム - ミニマルスタイル */
.style-minimal .aibridge-lp-faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.style-minimal .aibridge-lp-faq-item:last-child {
    border-bottom: none;
}

/* FAQ アイテム - ボーダースタイル */
.style-bordered .aibridge-lp-faq-item {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.style-bordered .aibridge-lp-faq-item:hover,
.style-bordered .aibridge-lp-faq-item.open {
    border-color: var(--accent-color, #4f46e5);
}

/* 質問ボタン */
.aibridge-lp-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 25px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.2s ease;
}

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

/* Qアイコン */
.aibridge-lp-faq-q-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-color, #4f46e5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* 質問テキスト */
.aibridge-lp-faq-q-text {
    flex: 1;
    line-height: 1.5;
}

/* トグルアイコン */
.aibridge-lp-faq-toggle {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.aibridge-lp-faq-toggle::before,
.aibridge-lp-faq-toggle::after {
    content: '';
    position: absolute;
    background: #94a3b8;
    transition: all 0.3s ease;
}

.aibridge-lp-faq-toggle::before {
    width: 14px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.aibridge-lp-faq-toggle::after {
    width: 2px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.aibridge-lp-faq-item.open .aibridge-lp-faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* 回答 */
.aibridge-lp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.aibridge-lp-faq-item.open .aibridge-lp-faq-answer {
    max-height: 500px;
}

.aibridge-lp-faq-answer-content {
    padding: 0 25px 25px 73px;
    font-size: 15px;
    color: #64748b;
    line-height: 1.85;
}

/* Schema.org構造化データ用 */
.aibridge-lp-faq[itemscope] {
    /* FAQPage schema */
}

/* レスポンシブ */
@media (max-width: 768px) {
    .aibridge-lp-faq {
        padding: 60px 20px;
    }

    .aibridge-lp-faq-question {
        padding: 18px 20px;
        font-size: 15px;
        gap: 12px;
    }

    .aibridge-lp-faq-q-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .aibridge-lp-faq-answer-content {
        padding: 0 20px 20px 60px;
        font-size: 14px;
    }
}

/* エディター用 */
.aibridge-lp-faq-editor .aibridge-lp-faq-answer {
    max-height: none;
}
