/* Contact Form 7が生成したhtmlはコーディング済データとずれるので、その調整用のCSS */

/* スピナー */
.wpcf7-spinner {
    display: none;
}

/* ラジオボタン */
div.form__radio {
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    padding-inline-start: 0;
}
.wpcf7-radio label {
    padding-block: 0;
    font-size: 2rem;
    line-height: 1.6;
    margin-right: 3em;
    position: relative;
    padding: 10px 0 10px 36px;
}
.wpcf7-list-item {
    display: block;
    margin: 0;
}
.wpcf7-list-item.last {
    margin-top: 24px;
}
.wpcf7-radio label input {
    display: none;
}
.wpcf7-radio label input + span {
    vertical-align: middle;
    font-size: 2rem;
    line-height: 1.6;
    transition: 0.3s all;
}
.wpcf7-radio label input + span::before {
    content: "";
    display: block;
    width: 21px;
    height: 21px;
    border: 1px solid #212121;
    border-radius: 100px;
    box-sizing: border-box;
    background: #ffffff;
    position: absolute;
    inset: 0 auto -2px 0;
    margin: auto;
    transition: 0.3s all;
}
.wpcf7-radio label input + span::after {
    opacity: 0;
    content: "";
    display: block;
    width: 13px;
    height: 13px;
    border-radius: 100px;
    background: #212121;
    position: absolute;
    inset: 0 auto -2px 4px;
    margin: auto;
    transition: 0.3s all;
}
.wpcf7-radio label input:checked + span::after {
    opacity: 1;
}

/* メールアドレス */
input[type="email"] {
    box-sizing: border-box;
    appearance: none;
    transition: 0.3s all;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1.6;
    padding: 12px 16px;
    border: 1px solid #45830E;
    background: #edf4e7;
    width: 100%;
    border-radius: 10px;
}

/* 電話番号 */
input[type="tel"] {
    appearance: none;
    transition: 0.3s all;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1.6;
    padding: 12px 16px;
    border: 1px solid #45830E;
    background: #edf4e7;
    width: 100%;
    border-radius: 10px;
}

input[type="email"]:hover, input[type="tel"]:hover {
    background-color: #ffffff;
}

/* チェックボックス */
.form__check label {
    font-size: 2rem;
    line-height: 1.6;
    display: inline-block;
    position: relative;
    padding: 10px 0 10px 30px;
    cursor: pointer;
}
.form__check label input {
    display: none;
}
.form__check label input + span::before {
    content: "";
    display: block;
    width: 21px;
    height: 21px;
    border: 1px solid #212121;
    border-radius: 5px;
    box-sizing: border-box;
    background: #ffffff;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.3s all;
}
.form__check label input:checked + span::before {
    border-color: #45830E;
}
.form__check label input + span::after {
    opacity: 0;
    content: "";
    display: block;
    width: 6px;
    height: 11px;
    border-bottom: 2px solid #212121;
    border-right: 2px solid #212121;
    position: absolute;
    left: 7px;
    top: 45%;
    transform: translateY(-50%) rotate(45deg);
    transition: 0.3s all;
}
.form__check label input:checked + span::after {
    opacity: 1;
    border-color: #45830E;
}