[role="main"] {
    overflow: hidden;
}

.faq-select-list {
    padding: 30px 0;
    width: 200vw;
    margin: 40px calc(50% - 100vw) 60px !important;
    background: rgb(234, 238, 246);
    border-bottom: solid 20px rgb(234, 238, 246);

    &.faq-select-list-tab {
        padding-bottom: 0;
    }

    @media (max-width: 869px) {
        margin-top: 20px !important;
        margin-bottom: 30px !important;
        padding: 20px 0;
    }

    .faq-select-head,
    .faq-select-text {
        width: 100vw;
        max-width: 870px;
        text-align: center;
        margin: 0 auto;
        box-sizing: border-box;
        @media (max-width: 869px) {
            padding: 0 20px;
        }
    }

    .faq-select-head {
        margin-bottom: 20px;
        font-size: 20px;
        font-weight: bold;

        @media (max-width: 869px) {
            margin-bottom: 16px;
            font-size: 16px;
        }
    }
    .faq-select-text {
        margin-bottom: 12px;
    }

    ul.faq-select-list-button {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        width: 100vw;
        max-width: 870px;
        margin: 20px auto 0;
        box-sizing: border-box;

        @media (max-width: 869px) {
            gap: 12px;
            padding: 0 20px;
        }

        li {
            width: calc(50% - 10px);
            min-height: 50px;
            background-color: white;
            box-sizing: border-box;
            border-radius: 45px;

            @media (max-width: 869px) {
                width: 100%;
                min-height: 42px;
            }

            a {
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                font-size: 16px;
                font-weight: bold;
                color: #357eec;
                text-decoration: none;
                border: 1px solid #357eec;
                transition: opacity 0.4s;
                height: 100%;
                border-radius: 45px;
                overflow: hidden;

                @media (max-width: 869px) {
                    font-size: 14px;
                }

                img {
                    max-width: 60%;

                    @media (max-width: 869px) {
                        max-width: 44%;
                    }
                }

                &.faq-select-list-logo {
                    height: 60px;

                    @media (max-width: 869px) {
                        height: 50px;
                    }
                }

                &::after {
                    content: "";
                    position: absolute;
                    top: 50%;
                    right: 26px;
                    margin-top: -7px;
                    display: block;
                    width: 7px;
                    height: 14px;
                    background: url(/FAQ/kanri/file/0_common/image/icon-arrow.svg)
                        no-repeat center center transparent;
                    background-size: 100% auto;
                }

                &:hover {
                    opacity: 0.6;

                    &::after {
                        animation: 0.4s ease 0s 2 normal none running
                            mercury-arrowR;
                    }
                }
            }
        }
    }

    [role="tablist"],
    .faq-select-list-tab-contents {
        margin: 0 auto;
        box-sizing: border-box;
        width: 100vw;
        max-width: 870px;

        @media (max-width: 869px) {
            padding: 0 20px;
        }
    }

    [role="tablist"] {
        display: flex;
        gap: 10px;
        position: relative;
        scrollbar-width: none;

        &::after {
            content: "";
            position: absolute;
            z-index: 1;
            left: 0;
            bottom: 0;
            display: block;
            width: 400vw;
            margin: 0 calc(200% - 400vw);
            border-bottom: 1px solid #cfd0d1;
        }

        [role="tab"] {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 20px;
            background: #cfd0d1;
            border: solid 1px #cfd0d1;
            border-bottom: none;
            font-size: 16px;
            font-weight: bold;
            text-align: justify;
            cursor: pointer;
            opacity: 0.4;

            @media (max-width: 869px) {
                padding: 10px;
                font-size: 14px;
            }

            &[aria-selected="true"] {
                background: white;
                opacity: 1;
            }
        }
    }
}

.faq-select-list-tabpanels {
    background-color: white;

    [role="tabpanel"] {
        display: none;
        width: 100vw;
        max-width: 870px;
        margin: 0 auto;
        padding: 60px 40px;

        :first-child {
            margin-top: 0;
        }

        @media (max-width: 869px) {
            padding: 30px 20px;
            box-sizing: border-box;
        }

        &[area-hidden="false"] {
            display: block;
        }
    }
}

@keyframes mercury-arrowR {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(30%, 0, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}
