main {
    background-color: #f2f2f2;
    padding-bottom: 3rem;
}

.page-ttl {
    padding: 3rem 0;
    color: #00a652;
    font-size: 2.1rem;
    font-weight: 700;
    text-align: center;
}

.form-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: calc(100% - 2rem);
    max-width: 50rem;
    padding: 2rem;
    margin: 4rem auto 0 auto;
    font-size: 1.6rem;
    background: white;
    border-radius: 8px;
}

.form-caption {
    width: calc(100% - 2rem);
    max-width: 50rem;
    margin: 0 auto 1rem auto;
    font-size: 1.5rem;
}

.form-caption--warning {
    color: red;
}

.label {
    width: 100%;
    margin-bottom: 0.5rem;
    color: #a0a0a0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
}

.input-wrap--select {
    position: relative;
}

.input-wrap--select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2rem;
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 1px solid #424242;
    border-bottom: 1px solid #424242;
    transform: translateY(-50%) rotate(45deg);
}

.form-wrap select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.2rem;
}

.result {
    width: 100%;
    margin-top: 2rem;
    padding: 1.5rem 0;
    text-align: center;
    background-color: #d9f2e5;
    border-radius: 5px;
}

#price {
    color: #00a652;
    font-size: 2.1rem;
    font-weight: 700;
}

.submit-wrap {
    width: 80%;
    max-width: 20rem;
    margin: 2rem auto 0 auto;
}

#submit {
    width: 100%;
    display: block;
    padding: 1.5rem 0;
    color: #00a652;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    border: 2px solid #00a652;
    border-radius: 100px;
}

.credit-items {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 2rem;
}

.credit-item {
    height: 2.5rem;
}

.credit-item:not(:last-child) {
    margin-right: 0.5rem;
}

.credit-item img {
    width: auto;
    height: 100%;
}

@media screen and (min-width: 520px) {
    main {
        padding-bottom: 8rem;
    }

    .page-ttl {
        padding: 8rem 0 2rem 0;
        font-size: 3rem;
    }

    .form-wrap {
        padding: 4rem;
    }

    .label {
        width: 40%;
    }

    .input-wrap--select {
        width: 60%;
    }

    .submit-wrap {
        position: relative;
    }

    .submit-wrap::before {
        content: "";
        display: block;
        width: 0.8rem;
        height: 0.8rem;
        border-top: 0.2rem solid white;
        border-right: 0.2rem solid white;
        position: absolute;
        top: 50%;
        right: 2rem;
        transform: translate(-1rem, -50%) rotate(45deg);
        transition: transform 0.3s;
    }

    .submit-wrap:hover::before {
        transform: translate(0, -50%) rotate(45deg);
    }

    #submit {
        padding: 1.8rem 0;
        transition: background 0.3s, color 0.3s;
    }

    .submit-wrap:hover #submit {
        color: white;
        background: #00a652;
    }
}
