/* ==========================================
   FAQ
========================================== */

.faq {
    width: 100%;
}

/* ------------------------------------------
   FAQ item
------------------------------------------ */

.faq details {
    margin: 0 0 5px;
    border-bottom: 2px solid #d6dde3;
}

/* ------------------------------------------
   Question
------------------------------------------ */

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 1em 2em 1em 3em;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
}


/* デフォルトの三角マークを削除 */

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::marker {
    display: none;
}


/* Q */

.faq summary::before {
    content: "Q";

    position: absolute;
    left: 1em;
    top: 50%;

    color: #75bbff;

    font-size: 1.3em;
    font-weight: 600;
    line-height: 1;

    transform: translateY(-50%);
}


/* ------------------------------------------
   開閉矢印
------------------------------------------ */

.faq summary::after {
    content: "";

    flex: 0 0 auto;

    width: 7px;
    height: 7px;

    margin-left: 15px;

    border-right: 3px solid #333333b3;
    border-bottom: 3px solid #333333b3;

    transform: translateY(-25%) rotate(45deg);

    transition: transform .3s ease;
}


/* 開いた状態 */

.faq details[open] summary::after {
    transform: translateY(20%) rotate(225deg);
}


/* ------------------------------------------
   Answer
------------------------------------------ */

.faq details > p {
    position: relative;

    margin: 0;

    padding: .3em 3em 1.5em;

    color: #333;
    font-size: 1rem;
    line-height: 1.9;

    opacity: 0;
    transform: translateY(-10px);

    transition:
        opacity .3s ease,
        transform .3s ease;
}


/* 開いた状態 */

.faq details[open] > p {
    opacity: 1;
    transform: translateY(0);
}


/* A */

.faq details > p::before {
    content: "A";

    position: absolute;
    left: 1em;
    top: .3em;

    color: #ff8d8d;

    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.2;
}


/* ------------------------------------------
   FAQ内リンク
------------------------------------------ */

.faq details > p a {
    color: #005bac;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ==========================================
   Tablet
========================================== */

@media screen and (max-width: 1024px) {

    .faq summary {
        padding: .9em 1.8em .9em 2.8em;
        font-size: .95rem;
    }

    .faq details > p {
        padding: .3em 2.8em 1.3em;
        font-size: .9rem;
    }

}


/* ==========================================
   Smartphone
========================================== */

@media screen and (max-width: 767px) {

    .faq details {
        margin-bottom: 3px;
        border-bottom-width: 1px;
    }

    .faq summary {
        padding: .85em 1.5em .85em 2.5em;

        font-size: .85rem;
        line-height: 1.6;
    }


    /* Q */

    .faq summary::before {
        left: .8em;
        font-size: 1.15em;
    }


    /* 矢印 */

    .faq summary::after {
        width: 6px;
        height: 6px;

        margin-left: 10px;

        border-width: 2px;
    }


    /* A */

    .faq details > p {
        padding: .2em 1.5em 1.2em 2.5em;

        font-size: .78rem;
        line-height: 1.8;
    }

    .faq details > p::before {
        left: .8em;
        font-size: 1.15em;
    }

}


/* ==========================================
   Small Smartphone
========================================== */

@media screen and (max-width: 480px) {

    .faq summary {
        padding: .8em 1.2em .8em 2.3em;
        font-size: .8rem;
    }

    .faq details > p {
        padding: .2em 1.2em 1em 2.3em;
        font-size: .74rem;
    }

}