﻿.faq-page{
    background-image: linear-gradient(to bottom, #f8fafd 0, #eef3f8 100%);
}

/*---------------------------------------------
	ヒーローセクション
---------------------------------------------*/
.hero-section{
    width: 100%;
}
.hero-section .section-title{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.hero-section .section-title:after{
    content: "FAQ";
    display: inline-block;
    background-image: linear-gradient(0deg, #e4ebf4 0, transparent 100%);
    font-family: 'Montserrat', sans-serif;
    font-size: 200px;
    font-weight: 900;
    line-height: 1.05em;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateX(-50%);
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: -1;
}

@media screen and ( max-width: 810px ){
    .hero-section .section-title{
        min-height: 150px;
    }
    .hero-section .section-title:after{
        font-size: 150px;
    }
}
@media screen and ( max-width: 480px ){
    .hero-section .section-title{
        min-height: 100px;
    }
    .hero-section .section-title:after{
        font-size: 80px;
    }
}



/* ===================================================
   下部エリア
=================================================== */
/**/
.faq-anchor{
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
    max-width: 1000px;
    margin: 0 auto 40px;
}
.faq-anchor > li a{
    display: block;
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.7);
    padding: 7px 60px 7px 30px;
    font-weight: 700;
    border: 1px solid #afc2d2;
    border-radius: 30px;
    transition: all .3s ease;
    position: relative;
}
.faq-anchor > li a:after{
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    transform: rotate(45deg) translateY(-50%);
    border-bottom: 2px solid #afc2d2;
    border-right: 2px solid #afc2d2;
    transition: all .3s ease;
    position: absolute;
    right: 15px;
    top: calc(50% - 3px);
}

.faq-anchor > li a:hover{
    border-color: #97dce6;
    box-shadow: 0 0 0 1px #97dce6;
}
.faq-anchor > li a:hover:after{
    border-bottom: 2px solid #97dce6;
    border-right: 2px solid #97dce6;
}

/**/
.under-content{
    padding: 30px 0 50px;
}
.under-content > section{
    max-width: 1000px;
    margin: 0 auto 50px;
}

@media screen and ( max-width: 810px ){
    /**/
    .faq-anchor{
        gap: 10px;
        margin: 0 20px 40px;
    }
    .faq-anchor > li a{
        padding: 6px 40px 6px 15px;
    }
    .faq-anchor > li a:after{
        right: 12px;
    }

    .faq-anchor > li a:hover{
        border-color: #97dce6;
        box-shadow: 0 0 0 1px #97dce6;
    }
    .faq-anchor > li a:hover:after{
        border-bottom: 2px solid #97dce6;
        border-right: 2px solid #97dce6;
    }

    /**/
    .under-content{
        padding: 0 0 50px;
    }
    .under-content > section{
        margin: 0 0 50px;
    }
    .under-content > section > .inner-container{
        margin: 0 20px;
    }

}
@media screen and ( max-width: 480px ){
    /**/
    .faq-anchor{
        gap: 6px 5px;
        margin: 0 15px 40px;
    }
    .faq-anchor > li a{
        padding: 5px 18px 5px 6px;
        font-size: 14px;
        letter-spacing: -0.05em;
    }
    .faq-anchor > li a:after{
        width: 7px;
        height: 7px;
        right: 8px;
    }   
}


/* ====================
   よくある質問
==================== */
.faq-section .faq-list{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-section .faq-list > div{
    background-color: var(--color-white);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,.02);
}
.faq-section .faq-list dt{
    color: var(--color-primary);
    font-size: 20px;
    position: relative;
}
.faq-section .faq-list dd{
    max-height: 0;
    padding: 0 40px 0 90px;
    font-size: 16px;
    line-height: 1.8em;
    transition: all .3s ease;
    overflow: hidden;
    position: relative;
}

.faq-section .faq-list dt:before,
.faq-section .faq-list dd:before{
    display: block;
    width: fit-content;
    height: fit-content;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1em;
    position: absolute;
    left: 40px;
}
.faq-section .faq-list dt:before{
    content: "Q.";
    color: var(--color-blue);
    font-size: 26px;
    transform: translateY(-50%);
    top: 50%;
}
.faq-section .faq-list dd:before{
    content: "A.";
    color: var(--color-primary);
    font-size: 20px;
    top: 5px;
}
/**/
.faq-section .faq-list dt label{
    display: block;
    padding: 30px 60px 30px 90px;
    position: relative;
}
.faq-section .faq-list dt label:before,
.faq-section .faq-list dt label:after{
    content: "";
    display: block;
    width: 19px;
    height: 3px;
    background-color: #0084e0;
    transition: all .3s ease;
    transform: translateY(-50%);
    position: absolute;
    top: 50%;
    right: 20px;
}
.faq-section .faq-list dt label:after{
    transform: rotate(90deg);
    top: calc(50% + -2px);
}


/**/
.faq-section .faq-list dt:has(input:checked) label:after{
    transform: rotate(180deg);
    opacity: 0;
}

.faq-section .faq-list dt:has(input:checked) + dd{
    padding-bottom: 30px;
    max-height: 1000px; /* JS(common.js)がscrollHeightで正確に上書き。JS無効時のフォールバック */
}

.faq-section .faq-list + p{
    display: block;
    width: fit-content;
    margin: 20px 60px 0 auto;
    font-size: 14px;
}
.faq-section .faq-list + p a{
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4e6b82;
}
.faq-section .faq-list + p a:after{
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    background: url(../../_images/common/icon-arrow.webp) no-repeat right;
    background-size: 100% auto;
    filter: brightness(0) saturate(100%) invert(35%) sepia(50%) saturate(298%) hue-rotate(164deg) brightness(99%) contrast(89%);
}

@media screen and ( max-width: 810px ){
    .faq-section .faq-list{
        padding-right: 0;
    }
    .faq-section .faq-list dt{
        font-size: 18px;
    }
    .faq-section .faq-list dd{
        padding: 0 30px 0 60px;
        font-size: 16px;
    }
    .faq-section .faq-list dt:before,
    .faq-section .faq-list dd:before{
        left: 20px;
    }
    .faq-section .faq-list dt:before{
        font-size: 24px;
    }
    .faq-section .faq-list dd:before{
        font-size: 20px;
    }

    .faq-section .faq-list dt label{
        padding: 25px 50px 25px 60px;
    }


    /**/
    .faq-section .faq-list + p{
        font-size: 15px;
        margin: 10px 50px 0 auto;
    }
    .faq-section .faq-list + p a{
        color: var(--color-text-mid);
    }

}
@media screen and ( max-width: 480px ){
    .faq-section .faq-list dt{
        font-size: 16px;
    }
    .faq-section .faq-list dd{
        padding: 0 30px 0 60px;
        font-size: 16px;
    }
    /**/
    .faq-section .faq-list dt:before,
    .faq-section .faq-list dd:before{
        left: 20px;
    }
    .faq-section .faq-list dt:before{
        font-size: 20px;
        top: 30px;
    }
    .faq-section .faq-list dd:before{
        font-size: 20px;
    }

    /**/
    .faq-section .faq-list dt label{
        padding: 20px 50px 20px 55px;
    }
    
    .faq-section .faq-list dt label:before,
    .faq-section .faq-list dt label:after{
        width: 16px;
        height: 2px;
        transform: translateY(-50%);
        position: absolute;
        top: 32px;
        right: 20px;
    }
    .faq-section .faq-list dt label:after{
        transform: rotate(90deg);
        top: 31px;
    }


    /**/
    .faq-section .faq-list + p{
        font-size: 15px;
        margin: 10px 50px 0 auto;
    }
    .faq-section .faq-list + p a{
        color: var(--color-text-mid);
    }

}


