
.red {
    color: #ff0000;
    margin-left: 28%;
    font-size: 12px;
}

.agree{
    margin: 0;
}

input, textarea, select {
    font-size: 16px;
    padding: 6px;
    resize: none;
    margin-top: 2px;
    border: 1px solid #aaaaaa;
}

input[type="text"], input[type="tel"], input[type="email"], input[type="url"] {
    width: 72%;
}

input[type="text"]:focus, input[type="tel"]:focus, input[type="email"]:focus, input[type="url"]:focus, select:focus, textarea:focus {
    outline: 2px solid #7fba00;
}

select {
    height: 40px;
}

#form1 span.example {
    display: block;
    font-size: 12px;
    color: #666666;
}

#form1 ul li:after {
    content:".";
    display:block;
    height:0;
    visibility:hidden;
    clear:both;
}

#container {
    background: url(../img/main_area_background.png) no-repeat;
    background-size: cover;
}  

#contact_form{
    background-image: url(../img/befit_line1.png);
    background-repeat: repeat-x;
    background-size:  auto;
    padding: 100px 0 200px;
    height: 100%;
    min-height: 100%;
    margin:0;
}

#contact_form .contact_form_bg {
    width: 780px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 10px;
}

#contact_form h1 {
    padding: 15px 0 20px;
    margin: 0 0 20px;
    font-size: 32px;
    font-weight: normal;
    text-align: center;
}

#contact_form h1.contactus:before {
    content: "";
    display: inline-block;
    position: relative;
    top: 7px;
    width: 40px;
    height: 38px;
    background-image: url(../img/befit_form_icon.png);
    background-size: 40px auto;
}

#contact_form h1.contactus:after {
    content: "";
    height: 12px;
    display: block;
    background: url(../img/befit_line2.png) repeat-y;
    position: relative;
    margin: 15px 90px 0 90px;
}

#contact_form .caution {
    width: 600px;
    margin: 0 auto;
    color: #ff5782;
    padding-bottom: 30px;
}


#form1{
    width: 600px;
    margin: 0 auto;
    padding-bottom: 50px;
}

#form1 ul {
    padding: 0;
    margin: 0;
}

#form1 ul li {
    list-style: none;
    margin-top: 15px;
    font-size: 14px;
}

#form1 ul li:first-child {
    margin-top: 0;
}

#form1 ul li:last-child {
    margin-bottom: 30px;
}

#form1 ul li .clabel {
    width: 28%;
    margin: 0px;
    padding: 5px 0 0 20px;
    height: 55px;
    display: block;
    float: left;
    background-image: url(../img/contact_bg_gr.png);
    background-repeat: repeat-y;
    position: relative;
}

#form1 .optional {
    background: #5782ff;
    color: #ffffff;
    border-radius: 3px;
    font-size: 12px;
    padding: 3px 5px 3px 5px;
    margin-left: 5px;
    position: absolute;
    right: 6px;
}

#form1 .required {
    background: #ff5782;
    color: #ffffff;
    border-radius: 3px;
    font-size: 12px;
    padding: 3px 5px 3px 5px;
    margin-left: 5px;
    position: absolute;
    right: 6px;
}

#form1 .rule {
    font-size: 12px;
    display: block;
}

#form1 ul li input[type="radio"]:hover, #form1 ul li p label:hover {
    cursor: pointer;
}

#form1 ul li .textal {
    width: 25%;
    margin: 0px;
    padding-left: 20px;
    height: 100px;
    line-height: 45px;
    display: block;
    float: left;
    background-image: url(../img/contact_bg_gr.png);
    background-repeat: repeat-y;
}

#form1 ul li p label {
    margin-right: 2em;
    display: block;
    float: left;
    font-size: 16px;
}

#form1 ul li textarea {
    width: 75%;
    height: 100px;
}

#form1 input[type="submit"] {
    width: 440px;
    height: 50px;
    letter-spacing: 0.1em;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    background: #7fba00;
    border: 0;
    display: block;
    margin: 0 auto;
}

#form1 input[type="submit"]:active {
    background: linear-gradient(#4e9b00,#7fba00);
}

#form1 .agreement {
    width: 100%;
    height: 150px;
    background: #ffffff;
    border: 1px solid #aaaaaa;
    font-size: 14px;
    overflow-y: auto;
    padding: 0 10px 0 10px;
}

#form1 .agreement h4 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: normal;
    text-align: center;
}

#form1 .agreement dt{
    margin: 15px 0 5px;
    font-size: 14px;
    font-weight: bold;
}

#form1 .agreement dd{
    margin: 0 0 5px 2em;
}

#form1 .agreementc {
    margin: 10px auto 50px;
    text-align: center;
}

#form1 .err {
    margin: 0;
    padding: 0;
}


#contact_form p {
    text-align: center;
    font-weight: normal;
}

#contact_form h3 {
    text-align: center;
    font-weight: normal;
}



#contact_form .confirm_t {
    width: 650px;
    border-collapse: collapse;
    margin: 30px auto 0;
    font-size: 14px;
}

#contact_form .confirm_t th {
    background-color: #7fba00;
    color: #ffffff;
    font-weight: normal;
    text-align: left;
    width: 150px;
    height: 30px;
    padding: 15px;
    vertical-align: center;
    border: 1px solid #aaaaaa;
    border-collapse: collapse;
    margin: 0;
}

#contact_form .confirm_t td {
    padding: 15px;
    border: 1px solid #aaaaaa;
    border-collapse: collapse;
    margin: 0;
    background-color: rgba(255,255,255,0.5);
}

#contact_form .confirm_sub {
    text-align: center;
    padding: 60px 0 150px;
}

#contact_form button {
    letter-spacing: 0.1em;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    background: #7fba00;
    border: 0;
    margin: 0 auto;
    padding: 5px 60px ;
    border-radius: 5px;
}

#contact_form .send_area {
    text-align: center;
}

#contact_form button:active {
    background: linear-gradient(#4e9b00,#7fba00);
}

#contact_form button span.form_submit {
    font-size: 18px;
    font-weight: bold;
    position: relative;
    top: -10px;
}

#contact_form button span.form_submit:before {
    width: 38px;
    height: 38px;
    content: " ";
    position: relative;
    top: 12px;
    margin-right: 10px;
    display: inline-block;
    background-image: url(../img/unisize_submit_img.png);
    background-size: 38px auto;
}

#contact_form input.sub_send[type="submit"] {
    width: 200px;
    height: 40px;
    letter-spacing: 0.1em;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    background: #7fba00;
    border: 0;
    margin: 0 auto;
    margin-left: 30px;
}

#contact_form input.sub_send[type="submit"]:active {
    background: linear-gradient(#4e9b00,#7fba00);
}

#contact_form input.sub_back[type="submit"] {
    width: 200px;
    height: 40px;
    letter-spacing: 0.1em;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    background: #cccccc;
    border: 0;
    margin: 0 auto;
    border: 1px solid #aaaaaa;
}

#contact_form input.sub_back[type="submit"]:active {
    background: linear-gradient(#aaaaaa,#cccccc);
}

.ime{
    ime-mode: disabled;
}


@media screen and (max-width:780px) {

#contact_form {
    padding: 40px 0 150px;
}

#contact_form .contact_form_bg {
    width: 95%;
}

#contact_form h1 {
    padding: 20px 0 15px;
    font-size: 1.7em;
}

#contact_form h1.contactus:after {
    width: 90%;
    margin: 15px auto 0 auto;
}

#contact_form .thanks_p {
    font-size: 0.8em;
}

#form1 {
    width:90%;
    max-width: 500px;
    margin: 0 auto;
}

input[type="text"], input[type="tel"], input[type="email"], input[type="url"] {
    -webkit-appearance: none;
    border-radius: 0px;
    width: 100%;
}

input[type="submit"] {
    -webkit-appearance: none;
    border-radius: 0px;
}

.red {
    margin: 0;
}

#form1 ul li .clabel {
    float: none;
    width: 100%;
    height: auto;
    padding-left: 15px;
    font-size: 1.2em;
}

#form1 ul li .rule {
    display: inline;
}

#form1 ul li .required, #form1 ul li .optional {
    right: 5px;
    margin: 0;
}

#form1 .agreement {
    font-size: 0.8em;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

#form1 .agreementc {
    font-size: 0.8em;
}

#form1 button {
    padding: 10px 8%;
}
#form1 button span.form_submit {
    font-size: 1em;
}

#form1 input[type="submit"] {
    width: 90%;
    max-width: 440px;
}

#contact_form .confirm_t {
    width: 90%;
    border: 0;
}

#contact_form .confirm_sub {
    padding: 30px 0 120px;
}

#contact_form .confirm_sub input[type="submit"] {
    width: 40%;
    max-width: 200px;
}

#contact_form .confirm_sub input.sub_send {
    margin-left:20px;
}

}

@media screen and (max-width:420px) {

#contact_form .confirm_t th, #contact_form .confirm_t td {
    width: 100%;
    display: block;
    padding: 10px;
    height: auto;
}

#contact_form .confirm_t tr th {
    border-width: 0 0 1px 0;
    border-style: solid;
    border-color: #aaaaaa;
}

#contact_form .confirm_t tr td {
    border: 0;
}

#contact_form .confirm_t tr{
    border-width: 1px 1px 0 1px;
    border-style: solid;
    border-color: #aaaaaa;
}

#contact_form .confirm_t tr:last-child td{
    border-width: 0 0 1px 0;
    border-style: solid;
    border-color: #aaaaaa;
}

}
