/*-------------------------------------------
よくあるご質問（faq）セクション
-------------------------------------------*/
.sec-faq {
  margin: 0;
}
.sec-faq__container {
  background-color: var(--main-bg-color);
}
.sec-faq__inner {
  padding: 60px 20px 50px;
  max-width: calc(100vw - 40px);
  margin: 0 auto;
}
.sec-faq__header-container {
  margin: 0 0 30px 0;
  text-align: center;
}
.sec-faq__sub-header {
  margin: 0 0 20px 0;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  color: #0089d3;
}
.sec-faq__header {
  margin: 0 0 20px 0;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  color: var(--main-font-color);
}
.sec-faq__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.sec-faq__item {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    box-sizing: border-box;
}
.sec-faq__q-wrp {
    position: relative;
    padding: 10px 40px 10px 13px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    background-color: #fff;
    border: 1px solid var(--sub-bg-color);
    z-index: 100;;
    box-sizing: border-box;
    cursor: pointer;
}



.sec-faq__q-wrp::after {
    position: absolute;
    content: '';
    top: 50%;
    right: 10px;
    width: 20px;
    height: 3px;
    background-color:#f0951b;
    transform: rotate(90deg);
    transition: all .3s ease-in-out;
}

.sec-faq__q-wrp::before {
    position: absolute;
    content: '';
    top: 50%;
    right: 10px;
    width: 20px;
    height: 3px;
    background-color:#f0951b;
    transition: all .3s ease-in-out;
}

/* アコーディオンが開いたとき縦線の変化 */
.sec-faq__q-wrp.--open::after {
transform: rotate(180deg);
}
/* アコーディオンが開いたとき横線の変化 */
.sec-faq__q-wrp.--open::before {
    opacity:0;
}


.sec-faq__a-wrp-container {
    display: none;
    width: 100%;
}
.sec-faq__a-wrp {
    position: relative;
    padding: 10px 15px 10px 13px;
    width: calc(100vw - 40px);
    display: flex;
    flex-basis: 100%;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    background-color: #ffbe61;
    border-left: 1px solid var(--sub-bg-color);
    border-bottom: 1px solid var(--sub-bg-color);
    border-right: 1px solid var(--sub-bg-color);
    box-sizing: border-box;
}
.sec-faq__a-wrp.--close {
    top: -100%;
    left: 0;
    height: 0;
    opacity: 0;
    /* scale: 0; */
    transition: .4s;
    z-index: -1;

}
.sec-faq__a-wrp.--open {
    top: 100%;
    left: 0;
    height: 100%;
    z-index: 110;
    opacity: 1;
    transition: .4s;
}
.sec-faq__q {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--sub-bg-color);
    width: 22px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}
.sec-faq__q-text {
    position: relative;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.1rem;
    color: #000;

    &::before {
        position: absolute;
        top: 50%;
        left: -10px;
        content: "";
        display: inline-block;
        width: 2px;
        height: 120%;
        background: #f0951b;
        transform: translateY(-50%);
    }
}
.sec-faq__a {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    color: #fff;
    width: 22px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}
.sec-faq__a-text {
    position: relative;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.8;
    color: #000;
    white-space: wrap;

    &::before {
        position: absolute;
        top: 50%;
        left: -10px;
        content: "";
        display: inline-block;
        width: 2px;
        height: 105%;
        background: #fff;
        transform: translateY(-50%);
    }
}

/* pc */
@media screen and (min-width: 768px) {
    .sec-faq__inner {
        padding: 100px 0 120px 0;
        max-width: var(--pc-contents-width);
        margin: 0 auto;
    }
    .sec-faq__header-container {
        margin: 0 0 50px 0;
    }
    .sec-faq__header {
        margin: 0 0 60px 0;
        font-size: 4.0rem;
    }
    .sec-faq__sub-header {
        margin: 0 0 30px 0;
        font-size: 2.4rem;
    }
    .sec-faq__list{
        gap: 40px;
    }
    .sec-faq__item {
        width: 800px;
        gap: 0;
    }
    .sec-faq__q-wrp {
        padding: 20px 60px 20px 30px;
        width: 100%;
        gap: 50px;
    }

    .sec-faq__q-wrp::after {
        position: absolute;
        content: '';
        top: 50%;
        right: 25px;
        width: 25px;
        height: 3px;
        background-color:#f0951b;
        transform: rotate(90deg);
        transition: all .3s ease-in-out;
    }

    .sec-faq__q-wrp::before {
        position: absolute;
        content: '';
        top: 50%;
        right: 25px;
        width: 25px;
        height: 3px;
        background-color:#f0951b;
        transition: all .3s ease-in-out;
    }

    .sec-faq__a-wrp {
        padding: 20px 30px;
        width: 100%;
        gap: 50px;
    }
    .sec-faq__q {
        font-size: 3.0rem;

    &::after {
        position: absolute;
        top: 50%;
        right: -110%;
        width: 2px;
        height: 1.2em;
        transform: translateY(-45%);
    }   
    }
    .sec-faq__q-text {
        position: relative;
        font-size: 1.8rem;

        &::before {
            top: 50%;
            left: -25px;
            width: 2px;
            height: 150%;
            transform: translateY(-45%);
        }
    }


    .sec-faq__a {
        font-size: 3.0rem;
    
        &::after {
            top: 50%;
            right: -110%;
            width: 2px;
            height: 1.2em;
            transform: translateY(-45%);
        }
    }
    .sec-faq__a-text {
        position: relative;
        font-size: 1.8rem;
        width: 630px;

        &::before {
            top: 50%;
            left: -25px;
            width: 2px;
            height: 120%;
            transform: translateY(-45%);
        }
    }
}
