.FormContainer {
    padding-top: 4em;
}

#enroll-form {
    /* background: #333333; */
    /* width: 750px; */
    max-width: 600px;
    margin: auto;
    border: solid 1px #e8e8e8;
    padding: 2em 2em 0 2em;
    color: #333;
}

#enroll-form div {
    padding: 10px 20px;
}

#enroll-form div .required:before {
    content: "必須";
    font-size: 75%;
    color: #fff;
    background: #ff0026;
    text-align: center;
    width: 3em;
    /* height: 20px; */
    padding: 0 3px;
    margin: 0;
    display: inline;
    margin-right: 0.25rem;
    margin-left: 0.25rem;
    border-radius: 3px;
}

#enroll-form .single-child {
    text-align: center;
}

#enroll-form .inputs {
    display: flex;
    justify-content: space-between;
    /* border: 2px dotted rgb(96 139 168); */
    padding: 0;
    gap: 1em;
    flex-wrap: wrap;
}

#enroll-form .inputs input,
#enroll-form .inputs select {
    flex: 1 150px;
}

#captcha {
    text-align: center;
    font-size: 1.5em;
}

#enroll-form h1 {
    text-align: center;
    font-size: 2em;
    color: #575757;
    background-color: #f2f2f2;
    margin-bottom: 1em;

}

#enroll-form .submit {
    color: #fff;
    text-align: center;
    width: 15em;
    padding: 0.5em 5em;
}

#enroll-form .submit {
    background-color: #ff0026;
    border: 0;
    font-size: 90%;
    font-weight: bold;
    color: #ffffff;
    white-space: nowrap;
}

#enroll-form .submit:hover {
    background-color: #bb001c;
    border: 0;
    cursor: pointer;
    font-weight: bold;
}

#enroll-form label {
    display: block;
}

#enroll-form input {
    width: 100%;
}

#enroll-form .agreement {
    margin: 2em;
    margin-top: 0;
    padding: 1rem 1rem;
    height: 8em;
    font-size: 0.8rem;
    overflow-y: scroll;
    border-style: inset;
    border-width: 2px;
}

#enroll-form .agreement ul li::before {
    content: "\2022";
    display: inline-block;
    width: 1em;
    /* margin-right: 1em; */
}

#enroll-form #confirm {
    width: 1em;
}

.enabled {
    animation-name: enabled;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes enabled {
    0% {
        transform: scale(1) rotate(360deg);
    }

    50% {
        transform: scale(1.5) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

@media screen and (max-width: 575px) {
    #enroll-form .agreement {
        margin: 0.5em;
        margin-top: 0;
        padding: 0.25rem 0.25rem;
        height: 8em;
    }
}


#enroll-form .desc {
    padding: 4px 4px;
    font-size: 12px;
    color: #333333aa;
    margin-right: 10px;
    border-radius: 3px;
}

#enroll-form .text,
#enroll-form textarea,
#enroll-form .dropdown {
    border: 0px;
    padding: 8px;
    background: #F5F5F5;
    border-radius: 6px;
    width: 100%;
}

#enroll-form .dropdown {
    text-align: center;
}

#enroll-form .file::file-selector-button {
    background-color: #f0f0f0;
    /* color: white; */
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

#enroll-form .file::file-selector-button:hover {
    background-color: #e0e0e0;
    /* color: white; */
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

#enroll-form {
    input[type="checkbox"] {
        width: 1rem;
        border: solid 1px red;
    }

    .check-group {
        display: flex;
        flex-wrap: wrap;
        /* justify-content: space-between; */
        align-items: flex-start;
        background-color: #f5f5f5;
        padding: 0.5em;
        border-radius: 6px;

        label {
            /* display: inline; */
            flex: 0 0 10em;
        }
    }

    details {
        border: solid 0.2em #f5f5f5;
        border-radius: 6px;

        summary {
            list-style: none;
            /* text-align: center; */
            cursor: pointer;
        }

        .summary-arrow {
            /* The icon is refer to the example at:
        https://ics.media/entry/220901/ */
            display: inline-block;
            position: relative;
            top: -0.35em;
            width: 20px;
            margin-left: 6px;
            margin-right: 0.5em;
            flex-shrink: 0;
            transform-origin: center 43%;
            transition: transform 0.4s;

            /* アイコンのバーのスタイル */
            &::before,
            &::after {
                content: "";
                position: absolute;
                display: block;
                width: 12px;
                height: 2px;
                background-color: #ff0026;
            }

            &::before {
                left: 0;
                transform: rotate(45deg);
            }

            &::after {
                right: 0;
                transform: rotate(-45deg);
            }
        }

        &::details-content {
            /* Initial state for the transition */
            opacity: 0;
            max-height: 0;
            overflow: hidden;
            /* Define the transition properties and timing */
            transition: opacity 0.5s ease-out, max-height 0.5s ease-out;
            /* Allow transitions on discrete properties (like display/visibility changes if used) */
            transition-behavior: allow-discrete;
        }
    }

    details[open] {
        .summary-arrow {
            transform: rotate(180deg);
        }

        &::details-content {
            opacity: 1;
            max-height: 200vh;
            /* A value large enough to fit all content */
        }
    }
}