/* Q&Aボックス 基本 */
.qa-box {
    margin: 2em 0;
}

/* 質問セクション */
.qa-question-section {
    position: relative;
}

.qa-question-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 20px 60px 20px 20px;
}

/* アコーディオンの場合 */
.qa-box-accordion .qa-question-section {
    cursor: pointer;
    transition: all 0.2s ease;
}


/* Q/Aラベル */
.qa-label {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    min-width: 28px;
}

.qa-label-q {
    color: var(--question-color, #2196f3);
}

.qa-label-a {
    color: var(--answer-color, #4caf50);
}

/* テキスト部分 */
.qa-question-text,
.qa-answer-text {
    flex: 1;
    line-height: 1.8;
    /*font-size: 16px;*/
    color: #333;
}

.qa-question-text {
    font-weight: 600;
}

.qa-question-text p,
.qa-answer-text p {
    margin: 0 0 0.5em 0;
}

.qa-question-text p:last-child,
.qa-answer-text p:last-child {
    margin-bottom: 0;
}

/* アコーディオンアイコン（+/-） */
.qa-accordion-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qa-icon-plus {
    position: relative;
    width: 20px;
    height: 20px;
    display: block;
}

.qa-icon-plus::before,
.qa-icon-plus::after {
    content: '';
    position: absolute;
    background-color: var(--question-color, #2196f3);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.qa-icon-plus::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    transform: translateY(-50%);
}

.qa-icon-plus::after {
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    transform: translateX(-50%);
}

/* 開いた状態 */
.qa-box-accordion.is-open .qa-icon-plus::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* 回答セクション */
.qa-answer-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.qa-box-accordion.is-open .qa-answer-section {
    max-height: 2000px;
}

/* アコーディオンでない場合は常に表示 */
.qa-box:not(.qa-box-accordion) .qa-answer-section {
    max-height: none;
}

.qa-answer-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 20px;
}

/* ============================================
   パターン1: シンプルライン（pattern1）
   ============================================ */
.qa-box-style-pattern1 .qa-question-section {
    border-bottom: 2px solid #e0e0e0;
}

.qa-box-style-pattern1 .qa-answer-content {
    background-color: #fafafa;
    border-radius: 0 0 8px 8px;
}

.qa-box-style-pattern1 + .qa-box-style-pattern1 {
    margin-top: 0;
}

/* ============================================
   パターン2: カード風（pattern2）
   ============================================ */
.qa-box-style-pattern2 {
    background-color: #fff;
    border-radius: 12px;
    /*box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);*/
    overflow: hidden;
}

.qa-box-style-pattern2 .qa-question-section {
    background-color: var(--bg-color, #f5f5f5);
}

.qa-box-style-pattern2 .qa-answer-content {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
}

/* ============================================
   パターン3: モダン（pattern3）
   ============================================ */
.qa-box-style-pattern3 {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--question-color, #2196f3);
}

.qa-box-style-pattern3 .qa-question-section {
    background: linear-gradient(135deg, var(--bg-color, #e3f2fd) 0%, #ffffff 100%);
}

.qa-box-style-pattern3 .qa-label-q {
    background-color: var(--question-color, #2196f3);
    color: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.qa-box-style-pattern3 .qa-answer-content {
    background-color: #fff;
    border-top: 2px solid var(--question-color, #2196f3);
}

.qa-box-style-pattern3 .qa-label-a {
    background-color: var(--answer-color, #4caf50);
    color: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.qa-box-style-pattern3 .qa-icon-plus::before,
.qa-box-style-pattern3 .qa-icon-plus::after {
    background-color: var(--question-color, #2196f3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .qa-question-content {
        padding: 16px 50px 16px 16px;
    }
    
    .qa-answer-content {
        padding: 16px;
    }
    
    .qa-label {
        /*font-size: 18px;*/
        min-width: 24px;
    }
    
    .qa-question-text,
    .qa-answer-text {
        /*font-size: 15px;*/
    }
    
    .qa-accordion-icon {
        width: 24px;
        height: 24px;
        right: 16px;
    }
    
    .qa-icon-plus {
        width: 16px;
        height: 16px;
    }
    
    .qa-icon-plus::before {
        height: 2px;
    }
    
    .qa-icon-plus::after {
        width: 2px;
    }
    
    .qa-box-style-pattern3 .qa-label-q,
    .qa-box-style-pattern3 .qa-label-a {
        width: 32px;
        height: 32px;
        /*font-size: 16px;*/
    }
}