/*------------
お問い合わせ
--------------*/
.contact-form table {
    border-collapse: collapse;
    margin: 0 0 50px;
    width: 100%;
}

.contact-form table tr {
    border-bottom: 1px dashed #CCC;
}

.contact-form table th {
    padding: 20px 40px 20px 0;
    vertical-align: middle;
    text-align: left;
}

.contact-form table td {
    padding: 20px 0;
}

.contact-form table .zipcode {
    display: -webkit-box;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
}

.zipcode::before {
    content: "〒";
    display: inline-block;
    padding-right: 10px;
}

.contact-form .hissu {
    color: #E57373;
    margin-left: 5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form select,
.contact-form textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #f1f1f1;
    border: none;
    border-radius: 2px;
    font-size: 16px;
    padding: 15px;
    width: 100%;
}

.contact-form select::-ms-expand {
    display: none;
}

.contact-form textarea {
    height: 200px;
}

.contact-form input[type="file"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form input[type="number"]:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: 1px solid #419caf;
}

.contact-form .select-wrap {
    position: relative;
}

.contact-form .select-wrap::after {
    content: "";
    border-style: solid;
    border-width: 8px 5px 0 5px;
    border-color: #333 transparent transparent transparent;
    pointer-events: none;
    position: absolute;
    right: 15px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 10;
}

.contact-form .mwform-radio-field,
.contact-form .mwform-checkbox-field {
    display: inline-block;
    margin-right: 15px;
    margin-left: 0 !important;
}

.contact-form .mwform-radio-field input[type="radio"] {
    display: none;
}

.contact-form .mwform-radio-field label {
    display: inline-block;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    padding: 0 0 0 30px;
    line-height: 1;
}

.contact-form .mwform-radio-field label:before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    box-sizing: border-box;
}

.contact-form .mwform-radio-field .mwform-radio-field-text:after {
    content: "";
    border-radius: 50%;
    background: #419caf;
    position: absolute;
    top: 50%;
    left: 5px;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    transition: .4s;
    -webkit-transform: scale(0);
    transform: scale(0);
}

.contact-form .mwform-radio-field input[type="radio"]:checked+.mwform-radio-field-text:after {
    -webkit-transform: scale(1);
    transform: scale(1);
}

.contact-form .mwform-checkbox-field input[type="checkbox"] {
    display: none;
}

.contact-form .mwform-checkbox-field label {
    display: inline-block;
    cursor: pointer;
    line-height: 1;
    padding: 0 0 0 30px;
    position: relative;
}

.contact-form .mwform-checkbox-field label:before {
    content: "";
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 3px;
    position: absolute;
    top: 50%;
    left: 0;
    width: 20px;
    height: 20px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    box-sizing: border-box;
}

.contact-form .mwform-checkbox-field .mwform-checkbox-field-text:after {
    content: "";
    border-bottom: 3px solid #419caf;
    border-right: 3px solid #419caf;
    width: 7px;
    height: 12px;
    position: absolute;
    top: 1px;
    left: 7px;
    transition: .3s;
    -webkit-transform: scale(0) rotate(45deg);
    transform: scale(0) rotate(45deg);
}

.contact-form .mwform-checkbox-field input[type="checkbox"]:checked+.mwform-checkbox-field-text:after {
    -webkit-transform: scale(1) rotate(45deg);
    transform: scale(1) rotate(45deg);
}

.contact-form .mwform-tel-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-form .mwform-tel-field input[type="text"] {
    width: 29%;
}

.contact-form .mwform-tel-field input[type="text"]:nth-of-type(1) {
    margin-right: 10px;
}

.contact-form .mwform-tel-field input[type="text"]:nth-of-type(2) {
    margin: 0 10px;
}

.contact-form .mwform-tel-field input[type="text"]:nth-of-type(3) {
    margin-left: 10px;
}

.contact-form .mwform-zip-field input[type="text"] {
    width: 15%;
    min-width: 80px;
    margin: 0 10px;
}

.contact-form .preferred-date {
    overflow: hidden;
}

.contact-form .preferred-date .date {
    width: 45%;
    float: left;
}

.contact-form .preferred-date .time {
    display: flex;
    align-items: center;
    float: right;
    width: 50%;
}

.contact-form .preferred-date .time select {
    width: 80px;
}

.contact-form .preferred-date .time .hour {
    margin: 0 10px;
}

.contact-form .preferred-date .time .minute {
    margin: 0 0 0 10px;
}

.contact-form .birthday {
    display: flex;
    align-items: center;
}

.contact-form .birthday select {
    width: 100px;
}

.contact-form .birthday .year {
    margin: 0 10px;
}

.contact-form .birthday .month {
    margin: 0 10px;
}

.contact-form .birthday .day {
    margin: 0 0 0 10px;
}

.contact-form .submit-btn {
    display: flex;
    justify-content: center;
}

.contact-form .submit-btn [type="submit"] {
    -webkit-appearance: none;
    background: #419caf;
    border: 1px solid #419caf;
    border-radius: 0;
    outline: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 22px 40px;
    letter-spacing: 3px;
    transition: .3s;
    width: 250px;
}

.contact-form .submit-btn [type="submit"]:hover {
    opacity: .7;
}

.contact-form .submit-btn [type="submit"].back-btn {
    background: #999;
    border: none;
    margin-right: 50px;
}

.mw_wp_form_confirm .select-wrap::after {
    display: none;
}

@media screen and (max-width: 800px) {
    .contact-form table {
        margin: 0 0 30px;
    }

    .contact-form table tr {
        border-bottom: 1px dashed #CCC;
    }

    .contact-form table th, .contact-form table td {
        display: block;
    }

    .contact-form table th {
        padding: 15px 0 10px;
    }

    .contact-form table td {
        padding: 0 0 15px;
    }

    .contact-form .preferred-date {
        overflow: hidden;
    }

    .contact-form .preferred-date .date {
        width: 100%;
        float: none;
        margin: 0 0 10px;
    }

    .contact-form .preferred-date .time {
        width: 100%;
    }

    .contact-form .birthday select {
        width: auto;
        padding: 15px 30px 15px 15px;
    }

    .contact-form .birthday .year {
        margin: 0 5px;
    }

    .contact-form .birthday .month {
        margin: 0 5px;
    }

    .contact-form .birthday .day {
        margin: 0 0 0 5px;
    }

    .contact-form .submit-btn [type="submit"] {
        padding: 15px;
        width: 250px;
    }

    .contact-form .submit-btn [type="submit"].back-btn {
        margin-right: 25px;
    }
}
