/**
 * Contact Form 7 スタイルカスタマイズ
 */

/* ======== リセット部分 ======== */
/* デフォルトスタイルのリセット */
.wpcf7 form .wpcf7-response-output {
    margin: 2em 0.5em 1em;
    padding: 0.5em 1em;
    border: 2px solid transparent;
}

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

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #E39792;
    background-color: rgba(227, 151, 146, 0.1);
    color: #333;
    font-weight: bold;
    text-align: center;
    border-radius: 10px;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    border-color: #dc3232;
    background-color: rgba(220, 50, 50, 0.1);
    color: #333;
    font-weight: bold;
    text-align: center;
    border-radius: 10px;
}

.wpcf7 form.spam .wpcf7-response-output {
    border-color: #f56e28;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    border-color: #ffb900;
    background-color: rgba(255, 185, 0, 0.1);
    color: #333;
    font-weight: bold;
    text-align: center;
    border-radius: 10px;
}

.wpcf7-form-control-wrap {
    position: relative;
    width: 100%;
}

.wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 0.9em;
    font-weight: normal;
    display: block;
    margin-top: 0.5em;
}

.use-floating-validation-tip .wpcf7-not-valid-tip {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

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

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

/* ======== カスタムスタイル部分 ======== */
/* コンタクトフォームセクション */
.contactForm {
    margin-top: 122px;
    padding-bottom: 150px;
}

@media screen and (max-width: 767px) {
    .contactForm {
        margin-top: 69px;
        padding-bottom: 95px;
    }
}

.contactForm__text {
    font-weight: 700;
    margin-top: 98px;
}

.wpcf7-form .contactForm__container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 100px;
}

.wpcf7-form .form-group {
    align-items: flex-start;
    display: flex;
    gap: 50px;
}

@media screen and (max-width: 767px) {
    .wpcf7-form .form-group {
        flex-direction: column;
        gap: 16px;
    }
}

.wpcf7-form .form-group:not(:last-child) {
    align-items: center;
}

.wpcf7-form .form-label {
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    width: 245px;
}
.wpcf7-form .form-label p{
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width: 767px) {
    .wpcf7-form .form-label {
        gap: 16px;
        justify-content: center;
        max-width: 100%;
    }
}

.wpcf7-form .form-input {
    flex-grow: 1;
}

@media screen and (max-width: 767px) {
    .wpcf7-form .form-input {
        width: 100%;
    }
}

.wpcf7-form .form-input[data-type="privacy"] {
    display: flex;
    font-size: 22px;
    font-weight: 700;
    justify-content: center;
}

@media screen and (max-width: 767px) {
    .wpcf7-form .form-input[data-type="privacy"] {
        font-size: 14px;
    }
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"] {
    max-width: 300px;
}

@media screen and (max-width: 767px) {
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"] {
        max-width: 100%;
    }
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 8px;
    width: 100%;
}

.wpcf7-form textarea {
    height: 300px;
    resize: vertical;
}

@media screen and (max-width: 767px) {
    .wpcf7-form textarea {
        max-width: 100%;
    }
}

.wpcf7-form .required {
    background-color: #E4352B;
    border-radius: 12px;
    color: white;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 25px;
}

.wpcf7-form .checkbox-group {
    display: flex;
    font-weight: 700;
    gap: 20px;
}

@media screen and (max-width: 767px) {
    .wpcf7-form .checkbox-group {
        flex-direction: column;
        gap: 30px;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
    }
}

.wpcf7-form .checkbox-item {
    align-items: center;
    display: flex;
    gap: 32px;
}
@media screen and (max-width: 767px) {
    .wpcf7-form .checkbox-item {
        flex-direction: column;
        align-items: baseline;
    }
}

/* カスタムチェックボックス */
.wpcf7-form .wpcf7-checkbox input[type="checkbox"],
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    height: 0;
    opacity: 0;
    position: absolute;
    width: 0;
}

.wpcf7-form .wpcf7-list-item-label,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label {
    align-items: center;
    cursor: pointer;
    display: flex;
    padding-left: 30px;
    position: relative;
}

.wpcf7-form .wpcf7-list-item-label::before,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label::before {
    -webkit-transform: translateY(-50%);
    background-color: white;
    border: 1px solid #ccc;
    box-sizing: border-box;
    content: "";
    height: 20px;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
}

.wpcf7-form input[type="checkbox"]:checked + .wpcf7-list-item-label::after,
.wpcf7-form .wpcf7-acceptance input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
    -webkit-transform: translateY(-70%) rotate(45deg);
    border-bottom: 2px solid #E39792;
    border-right: 2px solid #E39792;
    content: "";
    height: 10px;
    left: 7px;
    position: absolute;
    top: 50%;
    transform: translateY(-70%) rotate(45deg);
    width: 5px;
}

/* 送信ボタン */
.wpcf7-form .contactForm__submit {
    text-align: center;
    background-color: #fff;
    border: 1px solid #E39792;
    border-radius: 50px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    color: #E39792;
    cursor: pointer;
    display: block;
    font-size: 24px;
    font-weight: 700;
    height: 100px;
    margin: 64px auto 0;
    max-width: 500px;
    transition: all 0.3s ease;
    width: 100%;
}

@media screen and (max-width: 767px) {
    .wpcf7-form .contactForm__submit {
        font-size: 16px;
        height: 60px;
        margin-top: 64px;
        max-width: 312px;
    }
}

.wpcf7-form .contactForm__submit:hover {
    background-color: #E39792;
    box-shadow: none;
    color: #fff;
}

/* アニメーション */
.wpcf7-form .ajax-loader {
    visibility: hidden;
    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-form.submitting .ajax-loader {
    visibility: visible;
}

.wpcf7-form .ajax-loader::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;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.wpcf7-list-item-label a{
    color: #E39792;
    border-bottom: 1px solid #E39792;
}
.wpcf7-list-item-label a:hover{
    opacity: .7;
}
.screen-reader-response{
    display: none;
  }