/********************
* FAQ用スタイル
**********************/
@media(min-width: 960px) {
    #template-area-faq {
        position: unset;
        width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
    #template-area-faq .vendor-faq-bg {
        background-color: white!important;    }
}
.faq_wrapper {
    padding: 40px 0;
}
.section-title-wrapper {
    margin-bottom: 30px;
    text-align: center;
}
.section-title-bg-blue {
    padding: 10px 20px;
    background-color: #007bff;
    border-radius: 5px;
    color: white;
    font-size: 24px;
    font-weight: bold;
}
.section-title-bg-blue .section-title-white,
.section-title-bg-blue .section-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-contents {
    max-width: 100%;
    margin: 0 auto;
}
.faq-content-wrapper {
    border: 2px solid #005cb2;
    border-radius: 5px;
    background-color: #fff;
    margin-bottom: 15px;
}
.faq-content-q {
    position: relative;
    align-items: center;
    font-size: 16px;
    background: none;
    font-weight: bold;
    color: #005cb2;
    padding: 15px 30px 15px 15px;
    line-height: 1.5em;
}
.faq-content-q:hover {
    background-color: #d8e5f7;
}
.faq-content-title {
    margin: 0;
    font-size: 16px !important;
    color: #005cb2;
    padding: 0 !important;
    padding-right: 40px !important;
    line-height: 1.5;
}

.faq-content-q::after {
    /* 文字ではなくCSSで線を描くための設定 */
    content: ''; /* 文字コンテンツを空にする */
    position: absolute;
    top: 50%;
    right: 25px; /* 右端からの位置を少し内側に調整 */

    /* 矢印の形状をCSS borderで作成 */
    width: 10px; /* 矢印全体の幅 */
    height: 10px; /* 矢印全体の高さ */
    border: 3px solid #005cb2; /* 線の太さと色 */
    border-top: none; /* 上側の線を消す */
    border-left: none; /* 左側の線を消す */

    /* 鈍角な矢印の線の結合部を丸める（オプション） */
    /* border-radius: 2px; */

    /* 初期状態の回転: 45度回転で右向きのくの字、その後90度回転で下向き */
    transform: translateY(-50%) rotate(45deg); /* 基本のくの字（>）を作る */

    /* 最終的な閉鎖状態（下向き）の回転 */
    transform: translateY(-50%) rotate(45deg); /* 45度 + 45度 = 90度（下向き）*/

    color: #005cb2; /* (borderを使うので実質影響なし) */
    transition: transform 0.3s ease; /* アニメーションを維持 */
}

/* 質問がアクティブ（開いている）状態のアイコン */
.faq-content-q.active::after {
    /* 開いている状態は上向き: 矢印を-135度回転させる (45度から-90度へ) */
    transform: translateY(-50%) rotate(-135deg); /* -135度回転で上向き */
}
.faq-content-title::before {background:none !important;}


/* 回答部分 (A) */
.faq-content-a {
    padding: 0 20px;
    background-color: white;
    border-top: 1px solid #eee;
    /* スライドダウン効果のための設定 */
    max-height: 0; /* 初期状態は max-height: 0 で閉じる */
    overflow: hidden; /* 内容を隠す */
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out; /* トランジション設定 */
}

/* 回答内のコンテンツ（paddingを制御するために分離） */
.faq-content-a-inner {
    /* ここに回答内の要素を入れることで、max-height: 0 の時も padding: 0 を維持しやすくなる
       元のHTMLにはこのラッパーがないため、回答部分の padding を調整することで対応します。 */
}

/* 回答が開いた状態（JSでこのクラスを付与する） */
.faq-content-a.open {
    /* 実際の内容より十分大きい値に設定し、内容全体を表示させる */
    max-height: 500px; /* 十分大きな値（実際のコンテンツの最大高さを超える） */
    padding-top: 15px; /* 開いたときに上下のパディングを適用 */
    padding-bottom: 15px;
}

/* 回答内の p, ul のマージン調整 (開閉時にマージンがチラつくのを防ぐ) */
.faq-content-a p {
    margin: 0; /* max-heightとpaddingで制御するため、上下マージンをリセット */
    line-height: 1.8;
    color: #555;
}
.faq-content-a p + p {
    margin-top: 15px; /* 複数のパラグラフがある場合の間隔 */
}

/* 回答内のリスト */
.faq-content-a ul {
    padding-left: 25px;
    margin: 15px 0;
    list-style-type: disc;
}

/* 回答内のリンク */
.faq-content-a a {
    color: #007bff;
    text-decoration: none;
}

.faq-content-a a:hover {
    text-decoration: underline;
}

@media(max-width: 959px){
    .section-title-bg-blue {
        display: block;
    }
    .faq-content-q {
        padding: 4vw 17vw 4vw 6vw;
        font-size: 4vw!important;
    }
    .section-title-wrapper {
        margin-bottom: 4vw;
    }
    .faq-content-title {padding:0 !important; font-size: 4vw!important;}

}