#contact {
    padding-top: 100px;
}

#contact .inner {
    max-width: 1200px;
}

#contact h2 {
    margin: 15px 0 50px;
    font-size: 3.5rem;
    letter-spacing: 0.15em;
}

.contact_form {
    max-width: 1200px;
    margin: 70px auto;
}

.contact_form h3 {
    font-size: 2.75rem;
}

.contact_flow::before {
    content: '';
    position: absolute;
    left: 0;
    top: calc(50% + 15px);
    width: 100%;
    height: 14px;
    background: #f19ec2;
    transform: translateY(-50%);
}

.contact_flow li {
    width: 21%;
    height: 200px;
    margin-top: 30px;
    padding: 15px;
    font-size: 2rem;
    background: #f19ec2;
}

.contact_num {
    position: absolute;
    right: 0;
    top: 50%;
    width: 86px;
    height: 118px;
    padding-right: 5px;
    font-size: 3rem;
    color: #3366ff;
    background: url(images/shape.png) no-repeat center right / contain;
    transform: translateY(-50%);
}

.contact_flow li:first-child,
.contact_flow.step2 li:nth-child(2) {
    background: #00b7ee;
}

.contact_flow.step2 li:first-child {
    background: #f19ec2;
}

.contact_step2 {
    display: none;
}

.contact_first_ttl {
    margin-top: 30px;
    font-size: 2.75rem;
    line-height: 1.2;
}

.contact_first_ttl h4 {
    font-size: 115%;
}

.contact_second_ttl {
    margin-top: 30px;
    font-size: 2rem;
    line-height: 1.2;
}

.contact_form .col-blue {
    color: #0033ff;
}

.contact_form .col-purple {
    color: #cc00cc;
}

.contact_form .col-green {
    color: #009966;
}

.contact_form .col-yellow {
    color: #cc9900;
}

.contact_table {
    margin: 40px 0;
    padding: 50px 4%;
    font-size: 2rem;
    background: #eee;
    border-top: 14px solid #f19ec2;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

.contact_table ul li {
    max-width: 900px;
    margin: 0 auto;
}

.contact_table ul li:not(:last-child) {
    margin-bottom: 30px;
}

.contact_table ul li .table_value {
    margin-bottom: 20px;
}

.contact_table ul li .table_value span {
    padding: 3px 15px;
    font-size: 70%;
    color: #fff;
    border-radius: 5px;
}

.contact_table ul li .table_value span.required {
    background: #ff0000;
}

.contact_table ul li .table_value span.option {
    background: #3366ff;
}

.contact_table ul li .w60 {
    width: 55% !important;
    margin: 0;
}

.contact_table ul li p.w40 {
    font-size: 1.5rem;
}

.contact_step_btn {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 10px;
    font-size: 3rem;
    color: #fff;
    background: #F63B3B;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, .2);
    border-radius: 10px;
    cursor: pointer;
}

.contact_step_after p {
    font-size: 2.5rem;
    line-height: 1.2;
}

.contact_step_after p span {
    font-size: 70%;
}

.contact_img_option {
    position: relative;
    margin-top: 40px;
    padding: 20px 4%;
    background: #f19ec2;
    font-size: 2rem;
    z-index: 2;
}

.contact_img_option input[type=radio] {
    width: 40px;
    height: 21px;
}

.contact_table.contact_img {
    margin-top: 0;
    border: none;
}

.contact_table_ttl {
    font-size: 3.5rem;
}

.contact_table .bg-yellow,
.contact_table .bg-green {
    margin-top: 30px;
    padding: 20px 10px;
    background: #fff799;
    border-radius: 10px;
}

.contact_table .bg-yellow h4,
.contact_table .bg-green h4 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact_table .bg-green {
    margin-bottom: 30px;
    background: #cce198;
}

.contact_table input,
.contact_table select {
    width: 100%;
    height: 55px;
    padding: 0 10px;
    font-size: 1.5rem;
}

.contact_table textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    font-size: 1.5rem;
}

input[type="submit"] {
    margin-bottom: 30px;
    width: 100%;
    height: 130px;
    font-size: 3rem;
    color: #fff;
    background: #ff0000;
    border-radius: 10px;
    box-shadow: 0px 7px 7px #9c0000;
    border: none;
    outline: none;
    cursor: pointer;
}

::placeholder {
    color: #ccc;
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #ccc;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #ccc;
}

#contact .thanks_wrap {
    max-width: 1000px;
    margin: 50px auto;
    line-height: 1.3;
}

#contact h2.thanks-ttl {
    font-size: 1.5rem;
}

.thanks_link_wrapper {
    max-width: 600px;
    margin: 50px auto;
}

.thanks_link {
    width: 48%;
    border: 2px solid;
}

.thanks_link a {
    display: block;
    padding: 35px 10px;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.5;
    color: #cc1216;
}

.back-btn a {
    padding: 10px 30px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #5d3fff;
    color: #5d3fff;
    display: inline-block;
}

.contact_flow.confirm_step li,
.contact_flow.thanks_step li {
    background: #f19ec2 !important;
}

.contact_flow.confirm_step li:nth-child(3),
.contact_flow.thanks_step li:nth-child(4) {
    background: #00b7ee !important;
}

input[type="submit"][value="送信"] {
    width: auto;
    height: auto;
    box-shadow: none;
}

.tb,
.input_tel {
    display: none;
}

.error {
    display: none;
    margin-top: 15px;
    font-size: 70%;
}

@media screen and (max-width: 991px) {
    .contact_num {
        width: 60px;
        height: 80px;
        font-size: 2.5rem;
    }
    .contact_flow li {
        font-size: 1.75rem;
    }
    .contact_table ul li .w40 {
        width: 40%;
        margin: 0;
    }
}

@media screen and (max-width: 768px) {
    .tb {
        display: block !important;
    }
    #contact h2 {
        font-size: 2.75rem;
    }
    .contact_form h3 {
        position: relative;
        font-size: 2.25rem;
        z-index: 2;
    }
    .contact_flow::before {
        top: calc(50% + 15px);
    }
    .contact_num {
        top: 0;
    }
    .contact_flow li {
        width: 23%;
        height: 125px;
        padding: 10px;
        font-size: 1.5rem;
    }
    .contact_first_ttl,
    .contact_step_btn {
        font-size: 2rem;
    }
    .contact_table,
    .contact_step_after p,
    .contact_second_ttl,
    .contact_img_option {
        font-size: 1.5rem;
    }
    .contact_table ul li .w60,
    .contact_table ul li .w40 {
        width: 100% !important;
    }
    .contact_table ul li p.w40 {
        margin-top: 10px;
        font-size: 1.25rem;
    }
    .contact_table_ttl {
        font-size: 2.5rem;
    }
    .contact_table .bg-yellow h4,
    .contact_table .bg-green h4 {
        font-size: 1.75rem;
    }
    input[type="submit"] {
        height: 85px;
        font-size: 2rem;
    }
    .confirm_step,
    .thanks_step {
        margin-top: 50px;
    }
    .contact_img_option input[type=radio] {
        height: 18px;
        position: relative;
        top: 1px;
    }
}

@media screen and (max-width: 480px) {
    #contact {
        padding-top: 40px;
    }
    #contact h2,
    .contact_table_ttl {
        font-size: 2rem;
        text-align: center !important;
    }
    .contact_form h3,
    .contact_table .bg-yellow h4,
    .contact_table .bg-green h4 {
        font-size: 1.5rem;
        text-align: center !important;
    }
    .contact_first_ttl,
    .contact_step_btn,
    .contact_table,
    .contact_step_after p,
    .contact_second_ttl,
    .contact_img_option {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    .contact_form {
        margin: 50px auto;
    }
    .contact_num {
        width: 35px;
        height: 45px;
        font-size: 1.5rem;
    }
    .contact_flow li {
        height: 75px;
        font-size: 1rem;
    }
    .contact_table input,
    .contact_table select,
    .contact_table textarea {
        font-size: 1rem;
    }
    .contact_step_btn {
        padding: 20px 10px;
    }
    input[type="submit"] {
        height: 65px;
        font-size: 1.5rem;
    }
    .contact_img_option input[type=radio] {
        width: 30px;
        height: 15px;
        top: 2px;
    }
    #contact h2.thanks-ttl {
        font-size: 1.25rem;
    }
    .thanks_link a {
        font-size: 4vw;
    }
}