.contact_wrap {
    margin: 56px 0;
    text-align: center;
}

.contact_wrap h2 {
    font-size: 48px;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin: 8px 0 32px;
}

.contact_wrap_text {
    line-height: 1.4;
}

.contact_in {
    max-width: 720px;
    width: 90%;
    box-sizing: border-box;
    margin: 90px auto 120px;
}

.contact_table p {
    text-align: left;
}

.contact_table .must {
    font-size: 12px;
    text-align: center;
    margin-left: 8px;
    line-height: 12px;
    padding: 1px 10px;
    border-radius: 4px;
    color: #fff;
    background: var(--accent-color);
    margin-top: -12px;
}

.contact_table input,
.contact_table textarea,
.contact_table select {
    background: #f6f6f6;
    width: 100%;
    border: none;
    margin: 12px 0 18px;
    border-radius: 4px;
}

.contact_table input {
    height: 50px;
    padding: 10px;
    box-sizing: border-box;
}

.wpcf7-list-item {
    display: inline-block;
    margin: 0 0 0 1em;
}

.wpcf7-list-item.first {
    line-height: 24px;
}

.contact_table .mt-20 {
    text-align: center;
    line-height: 1.4;
}

.contact_table input[type='radio'] {
    display: inline-block;
    width: 20px;
    height: 20px;
    -webkit-appearance: radio;
    -moz-appearance: radio;
    appearance: radio;
    vertical-align: top;
    margin-top: 3px;
    margin-right: 5px;
}

.contact_table select::-ms-expand {
    /* IE用 */
    display: none;
}

.contact_table select {
    width: 100%;
    background: #f6f6f6;
    height: 50px;
    padding: 10px;
    box-sizing: border-box;
    background-image: url(../img/drop_down.png);
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    cursor: pointer;
    /* 既存の矢印を消す */
    -webkit-appearance: none;
    appearance: none;
}

.contact_table input[type='checkbox'] {
    display: inline-block;
    width: 20px;
    height: 20px;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    appearance: checkbox;
    vertical-align: top;
    margin-top: 3px;
    margin-right: 5px;
}

.wpcf7-list-item-label::before,
.wpcf7-list-item-label::after {
    content: " ";
}

.contact_table textarea {
    height: 158px;
    padding: 10px;
    box-sizing: border-box;
}

.contact_alert {
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
}

.submit_div {
    margin-top: 40px;
    text-align: center;
}

input.submit_btn {
    display: block;
    text-align: center;
    position: relative;
    width: 300px;
    height: 60px;
    margin: 0 auto;
    border-radius: 4px;
    letter-spacing: 2px;
    background: var(--accent-color);
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

input.submit_btn:hover {
    opacity: 0.8;
    transition: 0.3s ease-in-out;
}

.wpcf7-spinner {
    /* visibility: hidden; */
    display: none !important;
    display: inline-block;
    background-color: #23282d;
    opacity: 0.75;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 100%;
    padding: 0;
    margin: 0 24px;
    position: relative;
}

.wpcf7-spinner::before {
    content: '';
    position: absolute;
    background-color: #fbfbfc;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border: none;
    border-radius: 100%;
    transform-origin: 8px 8px;
    animation-name: spin;
    animation-duration: 1000ms;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output {
    display: none;
}

.wpcf7 form .wpcf7-response-output {
    margin: 2em 0.5em 1em;
    padding: 0.2em 1em;
    border: 2px solid #00a0d2;
}

.contact_wrap_text {
    line-height: 1.4;
}

.contact_thanks {
    max-width: 800px;
    margin: 160px auto 120px;
    padding: 32px 40px;
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); */
}

.contact_thanks h2 {
    font-size: 40px;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin: 8px 0 32px;
    color: #666;
}

.contact_thanks p {
    line-height: 1.6;
}

.contact_thanks p:last-of-type {
    margin-bottom: 16px;
}

.contact_thanks a:link,
.contact_thanks a:visited,
.contact_thanks a:active {
    color: #4682b4;
    text-decoration: none;
}

.contact_thanks a:hover {
    color: #b22222;
    transition: 0.3s ease-in-out;
}

@media screen and (max-width:820px) {
    .contact_wrap {
        margin: 32px 0;
    }
    .contact_in {
        width: 78%;
        margin: 56px auto 80px;
    }
}

@media screen and (max-width:480px) {
    .contact_wrap {
        margin: 24px 0;
    }
    .sub_title {
        font-size: 14px;
    }
    .contact_wrap h2 {
        font-size: 32px;
        margin: 8px 0 32px;
    }
    .contact_wrap_text {
        font-size: 14px;
    }
    .contact_in {
        width: 92%;
        margin: 40px auto 80px;
    }
    .contact_table input {
        height: 40px;
    }
    .contact_table label {
        font-size: 14px;
    }
}