body {
    background-color: #fff;
}

header  {
    margin-bottom: 40px;
}
footer {
    margin-top: 40px;
    background-color: #2dbdd3;
}

#next_button, #prev_button {
    margin: 5px;
}

/*Start progressbar*/
#progressbar {
    margin-bottom: 30px;
    overflow: hidden;
    color: #455A64;
    padding-left: 0px;
    margin-top: 30px
}

#progressbar li {
    list-style-type: none;
    width: 25%;
    float: left;
    position: relative;
    font-weight: 400
}

#progressbar #step1:before {
    content: "1";
}

#progressbar #step2:before {
    content: "2";
}

#progressbar #step3:before {
    content: "3";
}

#progressbar #step4:before {
    content: "4";
}

#progressbar li:before {
    width: 40px;
    height: 40px;
    line-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #455A64;
    border-radius: 50%;
    margin: auto;
    color: #fff;
}

#progressbar li:after {
    content: '';
    width: 100%;
    height: 2px;
    background: #455A64;
    position: absolute;
    left: 0;
    top: 21px;
    z-index: -1
}

#progressbar li:last-child:after {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    left: -50%
}

#progressbar li:first-child:after {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    position: absolute;
    left: 50%
}

#progressbar li:last-child:after {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px
}

#progressbar li:first-child:after {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px
}

#progressbar li.active:before,
#progressbar li.active:after {
    background: #0091d9 !important;
}

#progressbar li.complete:before,
#progressbar li.complete:after {
    background: #0091d9 !important;
}
/*End progressbar*/

input.ime-off {
    ime-mode: disabled;
}

span.required-error {
    color:#ff0000;
}

span.hidden {
    display: none;
}

.header-step {
    padding: 20px;
}

.footer-logo {
    height: 45px;
}

.error-template {
    padding: 40px 15px;
    text-align: center;
}

.error-wrap {
    margin: auto;
    padding: 5px 20px;
    width: 300px;
    display: inline-block;
    border: 1px solid #dcdcdc;
    box-shadow: 0px 0px 8px #dcdcdc;
    text-align: center;
}
.form-group{
    width: 850px;
}

.form-row > .col-form-label {
    background-color: #f6f6f6;
}

.row-eq-height {
    display: flex;
    flex-wrap: wrap;
}

.recaptcha {
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

div.form-row > .required:before {
    content: '必須';
    margin: 2px 10px 0px 0px;
    padding: 6px 6px;
    border-radius: 3px;
    border: 1px solid rgb(237, 85, 98);
    border-image: none;
    color: rgb(237, 85, 98);
    line-height: 1;
    font-size: 12px;
    float: left;
    position: relative;
    background-color: rgb(255, 255, 255);
}

div.form-row > .either-one-required:before {
    content: 'いずれか必須';
    margin: 2px 10px 0px 0px;
    padding: 6px 6px;
    border-radius: 3px;
    border: 1px solid rgb(237, 85, 98);
    border-image: none;
    color: rgb(237, 85, 98);
    line-height: 1;
    font-size: 12px;
    float: left;
    position: relative;
    background-color: rgb(255, 255, 255);
}

div.control-label {
    padding: .375rem .75rem;
}

div.custom-file {
    width: 100%
}

p.complete-message {
    font-size: 120%
}

span.comment {
    font-size: 85%;
    display: block;
}

label.price {
    font-size: 120%
}

img.img-fit {
    object-fit: contain;
}

input[type=checkbox].comfrim {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

@media screen and (max-width: 767px) {
    #next_button, #prev_button {
        width: 100%;
    }

    #next_button{
        order:1;
    }

    #prev_button{
        order:2;
    }

    .flexbox{
        display: flex;
        flex-wrap:wrap;
    }
}
@media screen and (min-width: 768px) {
    div.col-form-label {
        max-width: 25em;
    }
}
