/* ==================================================
cf7.css
コンタクトフォームのスタイル
================================================== */
/*---------- 基本スタイル ----------*/
.mail_form table {
    width: 100%;
    border-collapse: collapse;
}
.mail_form table th,
.mail_form table td {
    padding: 1.5em 0;
    border-top: 1px solid #eee;
}
.mail_form table th {
    width: 16em;
    font-weight: 500;
    text-align: left;
    position: relative;
}
.mail_form table th span {
    padding: 0.5em;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    background-color: var(--accent-color);
    border-radius: 4px;
    position: absolute;
    top: 50%;
    right: 1.5em;
    transform: translateY(-50%);
    display: block;
}
.mail_form table th span.item_any {
    background-color: #aaa;
}
.mail_form input,
.mail_form textarea,
.mail_form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    vertical-align: middle;
}
.mail_form input:not([type="radio"]):not([type="checkbox"]),
.mail_form textarea,
.mail_form select {
    width: 100%;
    padding: 12px;
    font-family: YakuHanRP, 'Nunito', 'Zen Maru Gothic', sans-serif;
	outline: none;
    border: 1px solid #ccc;
    background-color: #fff;
	border-radius: 6px;
}
.mail_form select {
    width: auto;
    padding-right: calc(12px + 1.5em);
    background: url(../img/arrow.svg) no-repeat top 50% right 12px / 16px;
    cursor: pointer;
}
.mail_form input[type="radio"] {
    width: 24px;
    height: 24px;
    margin: 0;
    background: #fff;
    border: solid 1px #ccc;
    border-radius: 50%;
    position: relative;
    outline: none;
    cursor: pointer;
}
.mail_form input[type="radio"]:checked:before {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 50%;
    display: block;
    position: absolute;
    left: 2px;
    top: 2px;
}
.mail_form input[type="checkbox"] {
    width: 24px;
    height: 24px;
    background: #fff;
    border: solid 1px #ccc;
    border-radius: 4px;
    margin-right: 4px;
    position: relative;
    outline: none;
    cursor: pointer;
}
.mail_form input[type="checkbox"]:checked {
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
}
.mail_form input[type="checkbox"]:checked:before {
    content: '';
    width: 16px;
    height: 10px;
    margin-top: -8px;
    margin-left: -8px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
}
.mail_form .submit input[type="submit"] {
    width: 100%;
    padding: 12px;
    font-family: YakuHanRP, 'Nunito', 'Zen Maru Gothic', sans-serif;
	outline: none;
    background-color: var(--accent-color);
    border: none;
	border-radius: 6px;
    cursor: pointer;
}
.mail_form input[type="submit"][disabled] {
    color: #fff;
    background-color: #bbb;
    cursor: not-allowed;
}
@media (max-width: 767px) {
    .mail_form table th,
    .mail_form table td {
        width: 100%;
        display: block;
    }
    .mail_form table th {
        padding: 1em 0;
    }
    .mail_form table td {
        padding: 0 0 1em;
        border-top: none;
    }
}

/*---------- カスタマイズ ----------*/
.mail_form {
    margin-top: 0!important;
}
.mail_form table th span {
    background-color: #cf2e2e;
}
.name_wrap {
    display: flex;
    align-items: center;
}
.name_wrap + .name_wrap {
    margin-top: 10px;
}
.name_wrap_label {
    width: 2.5em;
    font-size: 0.875rem;
    color: #666;
}
.name_wrap span[data-name="lastname"],
.name_wrap span[data-name="firstname"],
.name_wrap span[data-name="lastname-kana"],
.name_wrap span[data-name="firstname-kana"] {
    flex: 1;
}
.zip_add {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.zip_label {
    width: 1.25em;
}
.zip_add span[data-name="zip"] {
    width: 7em;
}
#autozip {
	display: none !important;
}
.caution_note,
.word_count {
    font-size: 0.8125rem;
    color: #666;
}
.confirm {
    width: 100%;
    padding: var(--_padding1);
    background-color: #eee;
    border-radius: 6px;
}
.confirm_text {
	font-size: .875rem;
    display: block;
}
.confirm .checkbtn {
    margin-top: var(--_margin-1);
    padding: var(--_padding-1);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.submit {
    margin-top: 1.5em;
}
.mail_form .submit input[type="submit"] {
    height: 60px;
    padding: 1em;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1;
	border-radius: 100px;
}
.wpcf7-spinner {
    display: none;
}

/*----- 必須未入力 -----*/
.mail_form input.wpcf7-validates-as-required.wpcf7-not-valid,
.mail_form textarea.wpcf7-validates-as-required.wpcf7-not-valid {
    background-color: #ffe5e5;
    border-color: #cf2e2e;
}
.mail_form .wpcf7-not-valid-tip {
    margin-top: 2px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #cf2e2e;
    animation: blink 1.5s infinite;
}
@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@media (max-width: 767px) {
    .smb-box:has(.mail_form) {
        padding: var(--_padding1) !important;
    }
}

/*----- メッセージ関連 -----*/
.wpcf7 form .wpcf7-response-output {
    padding: 1.5em;
    border-radius: 6px;
    background: #fff;
    font-weight: 500;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    color: #cf2e2e;
    border: 2px solid #cf2e2e;
}
.wpcf7 form.sent .wpcf7-response-output {
    color: #00b48c;
    border: 2px solid #00b48c;
}

/*----- Cloudflare Turnstile -----*/
.wpcf7-turnstile {
    margin-top: 1.5em;
    text-align: center;
}
@media (max-width: 767px) {
    margin-top: 1em;
}
