@charset "UTF-8";

.faq {
    width: 100%;
    padding: 5rem 0 10rem 0rem;
    background: #F2EFE6;
}

.faq_inner {
    width: min(100%, 136rem);
    margin: 0 auto;
    padding: 0 8rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.faq_content {
    width: 75%;
}

/* ------------------------------ 記事一覧(parts_archive_faq.php) ------------------------------ */
/* faq_content_message */
.faq_content_message {
    width: 100%;
    margin-bottom: 6rem;
    padding: 4rem;
    background: #fff;
    position: relative;
}

.faq_content_message_inner {
    width: 100%;
}

.faq_content_message h3.eb {
    font-size: 6rem;
    font-weight: 500;
    line-height: 6rem;
    position: absolute;
    top: -3rem;
    left: 4rem;
}

.faq_content_text {
    font-size: 1.6rem;
    line-height: 1.8;
    font-weight: bold;
    color: #333;
    margin-bottom: 0;
}

/* /faq_content_message */

/* faq_content_li */
.faq_content_li_wrapper {
    width: 100%;
    border-top: solid 3px #242222;
    position: relative;
}

.faq_content_li_wrapper::before {
    content: '';
    width: 100%;
    height: 1px;
    background: #242222;
    position: absolute;
    top: .3rem;
    left: 0;
    right: 0;
}

.faq_content_li_inner {
    padding: 4rem 2rem 4rem 4rem;
    display: flex;
    gap: 0;
}

.faq_content_li_inner .num {
    font-size: 4rem;
    color: #000;
    width: 10rem;
}

.faq_content_li_dl {
    width: calc(100% - 10rem);
}

.faq_content_li_q {
    font-size: 1.8rem;
    font-weight: bold;
    position: relative;
    padding-right: 2rem;
}

.faq_content_li_q::after {
    content: '';
    width: 1.2rem;
    height: 1.5rem;
    /* クリップパス　逆三角 */
    clip-path: polygon(100% 0, 0 0, 50% 100%);
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #000;
    transition: .3s;

}

.faq_content_li_a {
    opacity: 0;
    transition: .3s;
    height: 0;
    margin: 0;
}

.faq_content_li_a p {
    font-size: 1.6rem;
    font-weight: normal;
}

.faq_content_li {
    cursor: pointer;
}
.news_content_li.faq_content_li{
    border-bottom: none;
}


.faq_content_li.active .faq_content_li_q::after {
    transform: translateY(-50%) rotate(180deg);
    transition: .3s;
}

.faq_content_li.active .faq_content_li_a {
    opacity: 1;
    transition: .3s;
    height: auto;
    margin-top: 3rem;
}


/* タブナビゲーション */
.faq_tab_nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    /* 下に余白 */
}

.faq_tab_nav li {
    cursor: pointer;
    padding: 10px 20px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: bold;
}

.faq_tab_nav li:hover {
    opacity: 0.8;
}

/* アクティブなタブ */
.faq_tab_nav li.active {
    background: #333;
    /* サイトのメインカラーに合わせて変更 */
    color: #fff;
    border-color: #333;
}

/* タブコンテンツエリア */
.faq_panel {
    display: none;
    /* デフォルトで非表示 */
    animation: fadeIn 0.5s ease;
}

.faq_panel.active {
    display: block;
    /* アクティブな場合表示 */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* /faq_content_li */
/* ------------------------------ /記事一覧(parts_archive_faq.php) ------------------------------ */

@media (max-width: 768px) {


    .faq_inner {
        padding: 0 2rem;
    }

    .faq_content {
        width: 100%;
    }
    .faq_content_message{
        margin-bottom: 4rem;
    }
    .faq_content_li_inner {
        /* flex-direction: column; */
        padding: 2rem 2rem 2rem 2rem;
    }

    .faq_content_li_inner .num {
        width: 7rem;
        margin-bottom: 0;
        font-size: 2.8rem;
    }

    .faq_content_li_dl {
        width: 100%;
    }
    .faq_content_li_q::after{
        transform: translateY(0);
        top: 1em;
    }

    .faq_tab_nav {
        gap: 5px;
    }
    .faq_tab_nav li {
        width: calc((100% - 5px) / 2);
        padding: 1rem 2rem;
        font-size: 1.4rem;
        line-height: 2;
        text-align: center;
    }

}