@charset "UTF-8";
/* CSS Document */

@import "common.css";

/* FAQ */

.contents-header {
    background: url("../images/faq-header-img.jpg") center/cover no-repeat;
    height: 280px;
}
#hour-and-access, #services, #about-exhibition, #for-group, #about-museum, #others {
    margin: auto;
    max-width: 1200px;
    width: 86%
}
#contents h3 {
    font-size: 1.6rem;
    text-align: left;
    display: inline-block;
    margin: 60px 0 30px;
}
#category{
    width: 86%;
    max-width: 1200px;
    margin: auto;
}
#category ul{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
#category ul li a {
    background-color: var(--sub-color);
    border-radius: 10px;
    padding: 20px 20px 20px 40px;
    text-decoration: none;
    font-weight: 500;
    width: 320px;
    display: inline-block;
    position: relative;
    margin-bottom: 10px;
}
#category ul li a::before {
    content: url("../common/images/arrow.svg");
    position: absolute;
    left: 20px;
    width: 8px;
    height: 14px;
    transition: all 0.3s;
    filter: invert(26%) sepia(0%) saturate(1385%) hue-rotate(150deg) brightness(32%) contrast(83%);
}
.toggle {
    display: none;
}
.QA {
    position: relative;
    margin-bottom: 40px;
}
.question,
.answer {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: all 0.3s;
}
.question {
    background-color: var(--sub-color);
    border-radius: 10px;
    padding: 20px 20px;
    color: var(--point-color);
    font-weight: 700;
    display: flex;
    align-items: center;
}
.Q {
    font-size: 1.6rem;
    margin-right: 5px;
}
.question::after {
    content:url("../common/images/arrow.svg");
    position: absolute;
    right: 20px;
    width: 8px;
    height: 14px;
    transition: all 0.3s;
    transform: rotate(270deg);
    filter: invert(26%) sepia(0%) saturate(1385%) hue-rotate(150deg) brightness(32%) contrast(83%);
}
.answer {
    max-height: 0;
    overflow: hidden;
}
.answer p {
    margin: 0;
    padding: 20px;
    line-height: 1.8;
}
.toggle + .question + .answer {
    max-height: 500px;
    transition: all 1.5s;
}
.toggle:checked + .question + .answer {
    max-height: 0;
    transition: all 0.5s;
}
.toggle:checked + .question::after {
    transform: rotate(90deg) !important;
}
.answer p.fee-info {
    font-weight: 500;
    padding: 0 0 20px 20px;
}
.answer .note {
    padding: 0 20px;
}
.answer .note h4 {
}
.answer .note ul li {
    padding-top: 10px;
}

@media screen and (max-width: 767px) {
    
    .contents-header h2 {
        margin-bottom: 0;
    }
    #hour-and-access, #services, #about-exhibition, #for-group, #about-museum, #others {
        margin: auto;
        max-width: 1200px;
        width: 86%
    }
    #contents h3 {
        font-size: 1.6rem;
        text-align: left;
        display: inline-block;
        margin: 60px 0 30px;
    }
    #category{
        width: 86%;
        max-width: 1200px;
        margin: auto;
    }
    #category ul{
        flex-direction: column;
    }
    #category ul li a {
        width: 100%;
        display: block;
    }
    .QA {
        position: relative;
        margin-bottom: 40px;
    }
    .question {
        padding: 20px 50px 20px 20px;
    }
    .question::after {
        transform: rotate(90deg);
    }
    .answer {
        max-height: 0;
        overflow: hidden;
    }
    .answer p {
        margin: 0;
        padding: 20px;
    }
    .toggle + .question + .answer {
        max-height: 0;
        transition: all 0.5s;
    }
    .toggle:checked + .question + .answer {
        max-height: 500px;
        transition: all 1.5s;
    }
    .toggle:checked + .question::after {
        transform: rotate(270deg) !important;
    }
}