@charset "UTF-8";

.contact-page .h1::before{
    background-image: url(../assets/img/contact_bg.webp);
}

/* 送信完了 */
.contact-thanks .btn{
    margin-top: 2rem;
}

/* 入力フォーム */
.contact-form__lead{
    color: #000;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 29px;
    text-align: center;
    margin-bottom: 1rem;
}
.contact-form__lead strong{
    color: var(--main);
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-skip-ink: none;
}
.contact-form__img{
    aspect-ratio: 370 / 222;
    margin-bottom: 1.25rem;
}
.contact-form__img img{
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

.contact-form__item{
    margin-bottom: 1.25rem;
}
.contact-form__label{
    display: block;
    color: var(--main);
    font-weight: bold;
    line-height: 26px;
    margin-bottom: .5rem;
}
.contact-form .wpcf7-form-control-wrap{
    display: block;
}
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea{
    box-sizing: border-box;
    width: 100%;
    height: 61px;
    padding: 0 1rem;
    border: solid 1px #e8e8e8;
    border-radius: 8px;
    background: #f8f8f8;
    box-shadow: inset 2px 2px 4px 2px #0000001a;
    font: inherit;
    color: #333;
}
.contact-form textarea{
    height: 250px;
    padding: 1rem;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus{
    outline: solid 2px var(--main);
    outline-offset: -1px;
}
.contact-form__zip{
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .5rem;
}
.contact-form__zip > span:first-child{
    color: var(--main);
    font-weight: bold;
}
.contact-form__zip .wpcf7-form-control-wrap{
    flex: 1;
}

/* ラジオボタン */
.contact-form .wpcf7-radio{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.8rem;
}
.contact-form .wpcf7-list-item{
    margin: 0;
}
.contact-form .wpcf7-radio label{
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #000;
    font-weight: 500;
    line-height: 26px;
    cursor: pointer;
}
.contact-form input[type="radio"]{
    appearance: none;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin: 0;
    border: solid 2px var(--main);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
.contact-form input[type="radio"]:checked{
    background: radial-gradient(var(--main) 0 5px, #fff 6px);
}

/* 送信ボタン（入力内容の確認 / 送信 / キャンセル） */
.contact-form__submit,
.contact-form__back{
    position: relative;
    margin-top: 2rem;
}
.contact-form__back{
    margin-top: 1rem;
}
.contact-form__submit input,
.contact-form__back input{
    appearance: none;
    display: block;
    width: 100%;
    height: 70px;
    border: none;
    border-radius: 10px;
    background: var(--main);
    color: #fff;
    font: inherit;
    font-size: 1.125rem;
    font-weight: bold;
    letter-spacing: .02em;
    cursor: pointer;
}
.contact-form__back input{
    background: #c2c2c2;
}
.contact-form__submit input:disabled{
    opacity: .5;
    cursor: not-allowed;
}
.contact-form__submit::after,
.contact-form__back::after{
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 39px;
    height: 39px;
    box-sizing: border-box;
    border: solid 1px #fff;
    border-radius: 8px;
    background: url(../assets/img/icon-arrow-white.svg) no-repeat center / 1.1rem auto;
    transform: translateY(-50%);
    pointer-events: none;
}
.contact-form__back::after{
    transform: translateY(-50%) rotate(180deg);
}

/* ホバーで押し込んだように縮小（矢印ごと縮むよう枠ごと scale） */
.contact-form__submit,
.contact-form__back{
    transition: transform .3s ease;
}
@media (hover: hover){
    .contact-form__submit:not(:has(input:disabled)):hover,
    .contact-form__back:hover{
        transform: scale(.95);
    }
}

/* ホバーで矢印が右へ抜けて左から戻る（common.css の .btn と同じ動き） */
@media (hover: hover){
    .contact-form__submit:not(:has(input:disabled)):hover::after{
        animation: submit-arrow .6s ease;
    }
}
@keyframes submit-arrow{
    0%{
        background-position: center;
    }
    40%{
        background-position: calc(50% + 1.8rem) center;
    }
    40.01%{
        background-position: calc(50% - 1.8rem) center;
    }
    100%{
        background-position: center;
    }
}
.contact-form .wpcf7-spinner{
    position: absolute;
    top: 50%;
    left: 1rem;
    margin: -12px 0 0;
}

/* エラー・送信結果メッセージ */
.contact-form .wpcf7-not-valid-tip{
    color: #d93025;
    font-size: .875rem;
    margin-top: .3rem;
}
.contact-form .wpcf7-response-output{
    margin: 1.5rem 0 0;
    padding: .8rem 1rem;
    border-radius: 8px;
    font-size: .9rem;
}

/* 確認画面 */
.contact-page--confirm .contact-form .tit_b{
    margin-bottom: 1.2rem;
}
.contact-form__text{
    color: #000;
    font-weight: 500;
    line-height: 26px;
    margin-bottom: 3rem;
}
.contact-confirm__item{
    margin-bottom: 1.25rem;
}
.contact-confirm__label{
    color: var(--main);
    font-weight: bold;
    line-height: 26px;
    margin-bottom: .25rem;
}
.contact-confirm__value{
    color: #333;
    font-weight: 500;
    line-height: 26px;
    word-break: break-all;
}
.contact-confirm__check{
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}
.contact-confirm__check label{
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #000;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: .02em;
    cursor: pointer;
}
.contact-confirm__check input[type="checkbox"]{
    appearance: none;
    flex-shrink: 0;
    width: 27px;
    height: 27px;
    margin: 0;
    border: solid 1px #0e0e0e;
    background: #fff;
    cursor: pointer;
}
.contact-confirm__check input[type="checkbox"]:checked{
    background: var(--main) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / 70%;
    border-color: var(--main);
}
.contact-page--confirm .contact-form{
    margin-bottom: 3.75rem;
}

/* プライバシーポリシー */
.privacy{
    margin: 2rem 0 3.75rem;
}
.privacy .tit_b{
    margin-bottom: 1.8rem;
}
.privacy p,
.privacy li{
    color: #000;
    font-weight: 500;
    line-height: 26px;
}
.privacy p + p{
    margin-top: 26px;
}
.privacy ul{
    margin-top: 26px;
}
.privacy li::before{
    content: "・ ";
}


/* ==========================================================================
   TAB（768px〜）
   ========================================================================== */
@media (min-width: 768px){
    .contact-form__lead,
    .contact-form__text,
    .contact-form__img,
    .contact-form .wpcf7{
        max-width: 40rem;
        margin-left: auto;
        margin-right: auto;
    }
    .contact-form__lead{
        font-size: 1.15rem;
        line-height: 1.8;
        margin-bottom: 2rem;
    }
    .contact-form__lead strong{
        font-size: 1.4rem;
    }
    .contact-form__img{
        margin-bottom: 3rem;
        border-radius: 1rem;
        overflow: hidden;
    }
    .contact-form__item{
        margin-bottom: 1.8rem;
    }
    .contact-form__label{
        font-size: 1.05rem;
    }
    .contact-form__submit,
    .contact-form__back{
        max-width: 30rem;
        margin-left: auto;
        margin-right: auto;
    }
    .contact-form__submit{
        margin-top: 3rem;
    }

    /* 確認画面：項目名｜内容 の2カラム */
    .contact-form__text{
        text-align: center;
        margin-bottom: 3.5rem;
    }
    .contact-confirm__item{
        display: flex;
        gap: 1rem;
        padding: 1.2rem 0;
        margin-bottom: 0;
        border-bottom: solid 1px #ccc;
    }
    .contact-confirm__label{
        flex-shrink: 0;
        width: 30%;
        margin-bottom: 0;
    }
    .contact-confirm__value{
        flex: 1;
    }
    .contact-confirm__check{
        margin-top: 2.5rem;
    }
    .contact-page--confirm .contact-form{
        margin-bottom: 6rem;
    }

    /* プライバシーポリシー */
    .privacy{
        margin: 5rem 0 6rem;
    }
    .privacy .tit_b{
        margin-bottom: 2.5rem;
    }
    .privacy .inner{
        max-width: 40rem;
    }
}

@media (min-width: 1024px){
    .contact-page .h1::before{
        background-image: url(../assets/img/contact_bg_pc.webp);
    }

    .contact-form__lead,
    .contact-form__text,
    .contact-form .wpcf7{
        max-width: 1000px;
    }
    .contact-form__img{
        max-width: 800px;
    }
    .privacy .inner{
        max-width: 1000px;
    }
}
