@import url("page.css");
/* メインビュー */
.main_view {
    background-image: url(../img/main-image_faq.jpg);
}
.section_faq {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 0 40px;
}
.section_page_container {
    margin: 0 auto;
    width: 100%;
    max-width: 970px;
}

@media (max-width: 767px) {
    .section_title_top:after {
        left: 98px;
        top: 12px;
        width: 80%;
    }
    .main_view {
        background-position: 50%;
    }
}

/**********************
tab
**********************/
.faq_wrap {
    margin-top: 50px;
    padding-bottom: 40px;
    width: 1000px;
    margin: 0 auto;
}
.tab_item {
    width: calc(100% / 3);
    height: 50px;
    border-bottom: 1px solid #bfbfbf;
    background-color: #6d332d;
    opacity: 0.5;
    line-height: 50px;
    font-size: 16px;
    text-align: center;
    color: #fff;
    display: block;
    float: left;
    text-align: center;
    font-weight: bold;
    transition: all 0.2s ease;
}
.tab_item:hover {
    opacity: 0.75;
}
input[name="tab_item"] {
    display: none;
}
.faq_tab_content {
    display: none;
    clear: both;
    overflow: hidden;
}
.faq_wrap .faq_tab_content:first-child {
    padding-top: 0;
}
#cat_a:checked ~ #cat_a,
#cat_b:checked ~ #cat_b,
#cat_c:checked ~ #cat_c {
    display: block;
}
.faq_wrap input:checked + .tab_item {
    background-color: #6d332d;
    opacity: 1;
    color: #fff;
}

/**********************
faq
**********************/
summary {
    display: block;
}
summary::-webkit-details-marker {
    display: none;
}
.faq_wrap {
    width: 100%;
    margin: 4em 0 8em;
}
.faq_wrap_item {
    position: relative;
}
.faq_wrap_item_title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 24px 60px 24px 80px;
    color: #6d332d;
    font-weight: 600;
    border-bottom: 1px solid #bfbfbf;
}
details[open] .faq_wrap_item:last-of-type .faq_wrap_item_title {
    border-bottom: 1px solid #bfbfbf;
}
.faq_wrap_item_title::before {
    content: "Q";
    position: absolute;
    top: 16px;
    left: 20px;
    padding: 8px 12px;
    border-radius: 50px 50px;
    background-color: #6d332d;
    font-family: garamondpremrpro;
    font-size: 18px;
    color: #fff;
    display: block;
}
.faq_wrap_item_title::after {
    content: "+";
    position: absolute;
    top: 8px;
    right: 20px;
    padding: 10px 12px;
    color: #6d332d;
    font-size: 24px;
    font-weight: 100;
    display: block;
}
.faq_wrap_item_text {
    padding: 40px 80px;
    background: #fff;
    letter-spacing: 0.1em;
}
.faq_wrap_item_text span {
    width: 90%;
}
details[open] .faq_wrap_item_text {
    border-bottom: 1px solid #bfbfbf;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}
.faq_wrap_item_text::before {
    content: "A";
    position: absolute;
    left: 20px;
    padding: 6px 11px;
    margin-right: 20px;
    border-radius: 50px 50px;
    background-color: #6d332d;
    font-family: garamondpremrpro;
    font-size: 20px;
    color: #fff;
}

@media (max-width: 1150px) {
}
@media screen and (max-width: 768px) {
    .faq {
        margin: 4em 0;
    }
}
@media screen and (max-width: 480px) {
    .tab_item {
        width: 100%;
    }
    .faq_wrap_item_title {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        padding: 20px 64px;
    }
    .faq_wrap_item_title::before {
        top: 24px;
        left: 8px;
    }
    .faq_wrap_item_title::after {
        top: 16px;
        right: 0;
    }
    .faq_wrap_item_text {
        padding: 40px 8px;
        font-size: 14px;
    }
    .faq_wrap_item_text span {
        width: 75%;
        text-align: justify;
    }
    details[open] .faq_wrap_item_text {
        padding: 32px 40px 32px 80px;
    }
}
