/* お問い合わせページ */
.c-contact {
    background-color: #F0F0ED;
    padding: 100px 20px 138px;
}

.c-contact__inner {
    width: 900px;
    margin: 0 auto;
}


/* 送信完了メッセージ */
.c-contact__thanks {
    margin-top: 65px;
    text-align: center;
}

.c-contact__thanks-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.c-contact__thanks-text {
    margin-top: 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 2;
    letter-spacing: 0.03em;
}


/* 電話番号エリア */
.c-contact__tel-lead {
    margin-top: 65px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
}

.c-contact__tel {
    width: 729px;
    margin: 20px auto 0;
    padding: 30px 47px;
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #707070;
}

.c-contact__tel-link {
    display: flex;
    align-items: center;
    gap: 3px;
}

.c-contact__tel-icon {
    width: 28px;
    height: 28px;
}

.c-contact__tel-number {
    font-size: 38px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.c-contact__tel-info-item {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 30px;
}


/* ステップインジケーター */
.c-contact__steps {
    width: fit-content;
    margin: 80px auto 0;
}

.c-contact__steps img {
    width: auto;
    height: 38px;
    object-fit: contain;
}


/* フォーム */
.c-form {
    margin-top: 56px;
}

.c-form__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
}

.c-form__row.start {
    align-items: flex-start;
}

.c-form__row:first-child {
    padding-top: 0;
}

.c-form__label {
    width: 270px;
    flex-shrink: 0;
    text-align: right;
}

.c-form__label-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0;
    white-space: nowrap;
}

.c-form__label-text {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.09em;
}

.c-form__label-note {
    display: block;
    margin-top: 8px;
    color: #535353;
    font-size: 15px;
    letter-spacing: 0.09em;
    padding-right: 47px;
    font-weight: 500;
}

.c-form__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.09em;
    line-height: 1;
    position: relative;
    top: 1px;
}

.c-form__tag--required {
    background-color: #54B986;
}

.c-form__tag--optional {
    background-color: #ADADAD;
}

.c-form__control {
    width: 521px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.09em;
}

.c-form__row.start .c-form__control{
    padding-top: 2px;
}


/* テキスト系input・textarea・select共通 */
.c-form .wpcf7-form-control-wrapper {
    display: block;
}

.c-form__input,
.c-form__select,
.c-form__textarea {
    width: 100%;
    padding: 0 20px;
    background-color: #fff;
    border: none;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 0;
    border-radius: 0;
}

.c-form__input,
.c-form__select {
    height: 44px;
}

.c-form__input::placeholder,
.c-form__textarea::placeholder {
    color: #B3B3B0;
}

.c-form__textarea {
    height: 62px;
    padding: 11px 15px;
    resize: vertical;
}

.c-form__select {
    appearance: none;
    background-image: url(/../../common/img/buy/ico_arrow_down.svg);
    background-position: calc(100% - 20px) center;
    background-size: 10px 7px;
    background-repeat: no-repeat;
    cursor: pointer;
    color: #413F41;
}

.c-form__select:has(option[value="選択してください"]:checked) {
    color: #B3B3B0;
}

.c-form__select option[value="選択してください"] {
    color: #B3B3B0;
}


/* チェックボックスリスト */
.c-form__checkbox-list {
    display: flex;
    flex-direction: column;
}

.c-form__checkbox-list .wpcf7-list-item {
    margin: 0;
}

.c-form__checkbox-list .wpcf7-list-item + .wpcf7-list-item {
    margin-top: 12px;
}

.c-form__checkbox-list label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.c-form .wpcf7-list-item-label {
    font-size: 16px;
    letter-spacing: 0;
    position: relative;
    top: 1px;
    display: inline-block;
    padding-left: 6px;
    cursor: pointer;
}

.c-form input[type="checkbox"] {
    appearance: none;
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    margin: 0;
    background-color: #fff;
    border: 1px solid #707070;
    position: relative;
    cursor: pointer;
}

.c-form input[type="checkbox"]:checked {
}

.c-form input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 8px;
    border-right: 2px solid #00BC82;
    border-bottom: 2px solid #00BC82;
    transform: rotate(40deg);
}

.c-form__control .c-form__textarea {
    margin-top: 16px;
}


/* ご住所 */
.c-form__control--address {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.is-check .c-form__control--address {
    gap: 20px;
}

.c-form__sub-row {
}

.c-form__sub-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0;
}

.c-form__sub-label .c-form__label-text {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.09em;
}

.c-form__sub-control--zip {
    display: flex;
    align-items: center;
    gap: 12px;
}

.c-form__sub-control--zip .c-form__input--zip {
    width: 200px;
    flex-shrink: 0;
}

.c-form__zip-btn {
    height: 44px;
    padding: 0 12px;
    background-color: #525252;
    border: none;
    color: #F8F8F8;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.07em;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
}


.wpcf7-not-valid-tip {
    font-size: 14px;
    margin-top: 5px;
}

.wpcf7-response-output {
    border: none!important;
    color: red;
    font-size: 20px;
    text-align: center;
    line-height: 1.2;
}

/* プライバシーポリシー同意 */
.c-form__privacy {
    margin-top: 62px;
    text-align: center;
}

.c-form__privacy-text {
    font-size: 18px;
    letter-spacing: 0.03em;
    font-weight: 500;
    line-height: 1.6;
}

.is-check .c-form__privacy-text {
    line-height: 1.6;
}

.c-form__privacy-link {
    display: inline;
    text-decoration: underline;
    text-underline-offset: 5px;
    font-weight: 700;
}

.c-form__acceptance {
    margin-top: 60px;
}

.c-form__acceptance .wpcf7-list-item {
    margin: 0;
}

.c-form__acceptance label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    cursor: pointer;
}

.c-form__acceptance .wpcf7-list-item-label {
    color: #413F41;
    font-size: 16px;
    letter-spacing: 0.03em;
    top: -1px;
}


/* 確認画面の戻るボタン */
.c-form__back-btn {
    position: relative;
    display: block;
    width: 100%;
    height: 88px;
    margin: 0 auto 16px;
    background-color: #525252;
    border: 1px solid #707070;
    border-radius: 5px;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.c-form__back-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 23px;
    width: 26px;
    height: 26px;
    background-image: url(/../../common/img/buy/ico_arrow_gray.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    transform: translateY(-50%) rotate(180deg);
    pointer-events: none;
}


/* 送信ボタン */
.c-form__submit {
    position: relative;
    width: 435px;
    margin: 30px auto 0;
}

/* 送信中スピナー用の余白がc-form__submitの高さに加算され、矢印位置がずれるためフローから外す */
.c-form__submit .wpcf7-spinner {
    position: absolute;
    left: 0;
    margin: 0;
}

.c-form__submit-btn {
    width: 100%;
    height: 88px;
    background-color: #00BC82;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    border: 1px solid #707070;
}

/* [submit]タグはinput要素を生成し::afterが描画されないため、常に末尾に来る送信ボタンの中心に合わせて親のc-form__submitへ矢印を配置する */
.c-form__submit::after {
    content: '';
    position: absolute;
    bottom: 44px;
    right: 23px;
    width: 26px;
    height: 26px;
    background-image: url(/../../common/img/buy/ico_arrow_w.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    transform: translateY(50%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

@media (min-width: 769px) {
    .c-contact__tel-link {
        transition: opacity 0.3s ease;
    }

    .c-contact__tel-link:hover {
        opacity: 0.6;
    }

    .c-form__zip-btn {
        transition: opacity 0.3s ease;
    }

    .c-form__zip-btn:hover {
        opacity: 0.7;
    }

    .c-form__submit-btn {
        transition: opacity 0.3s ease;
    }

    .c-form__submit-btn:hover {
        opacity: 0.6;
    }

    .c-form__submit:has(.c-form__submit-btn:hover)::after {
        opacity: 0.6;
    }

    .c-form__back-btn {
        transition: opacity 0.3s ease;
    }

    .c-form__back-btn:hover {
        opacity: 0.85;
    }
}


@media (max-width: 768px) {
    .c-contact {
        padding: 60px 0 67px;
    }

    .c-contact__inner {
        width: 100%;
        padding: 0 24px;
    }


    /* 送信完了メッセージ */
    .c-contact__thanks {
        margin-top: 40px;
    }

    .c-contact__thanks-title {
        font-size: 19px;
    }

    .c-contact__thanks-text {
        margin-top: 16px;
        font-size: 14px;
    }


    /* 電話番号エリア */
    .c-contact__tel-lead {
        margin-top: 40px;
        font-size: 16px;
        letter-spacing: 0.05em;
    }

    .c-contact__tel {
        width: 100%;
        margin-top: 8px;
        padding: 18px 29px 18px;
        gap: 8px;
        flex-direction: column;
    }

    .c-contact__tel-link {
        gap: 2px;
    }

    .c-contact__tel-icon {
        width: 26px;
        height: 26px;
        position: relative;
        top: 1px;
    }

    .c-contact__tel-number {
        font-size: 30px;
    }

    .c-contact__tel-info {
        text-align: start;
    }

    .c-contact__tel-info-item {
        font-size: 15px;
        line-height: 25px;
        white-space: nowrap;
    }


    /* ステップインジケーター */
    .c-contact__steps {
        width: 100%;
        margin-top: 40px;
    }

    .c-contact__steps img {
        width: 100%;
        height: auto;
    }


    /* フォーム */
    .c-form {
        margin-top: 10px;
    }

    .c-form__row {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
    }

    .c-form__label {
        width: 100%;
        text-align: left;
    }

    .c-form__label-row {
        white-space: normal;
    }

    .c-form__label-text {
        font-size: 16px;
    }

    .c-form__label-text.sm {
        font-size: 14px;
    }

    .c-form .wpcf7-list-item-label {
        font-size: 14px;
        font-weight: 400;
        top: 1px;
    }

    .c-form__label-note {
        padding-right: 0;
        font-size: 14px;
        display: inline;
    }

    .c-form__control {
        width: 100%;
        font-size: 15px;
        padding-top: 15px;
    }

    .c-form__row.start .c-form__control {
        padding-top: 15px;
    }

    .c-form__row.start.pt0 .c-form__control {
        padding-top: 20px;
    }

    .c-form__input,
    .c-form__select,
    .c-form__textarea {
        font-size: 14px;
        padding: 10px 13px;
    }

    .c-form__control .c-form__textarea {
        margin-top: 5px;
    }

    .c-form__textarea::placeholder {
        letter-spacing: -0.04em;
    }


    /* ご住所 */

    .c-form__row.start .c-form__control--address {
        gap: 16px;
        padding-top: 20px;
    }

    .c-form__sub-control--zip {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .c-form__sub-control--zip .wpcf7-form-control-wrap {
        flex: 1;
        min-width: 0;
    }

    .c-form__sub-control--zip .c-form__input--zip {
        width: 100%;
    }

    .c-form__zip-btn {
        flex-shrink: 0;
        font-size: 14px;
        letter-spacing: 0;
        padding: 0 10px;
    }


    .wpcf7-response-output {
        font-size: 16px;
    }


    /* プライバシーポリシー同意 */
    .c-form__privacy {
        margin-top: 40px;
    }

    .c-form__privacy-text {
        font-size: 14px;
    }

    .c-form__acceptance {
        margin-top: 27px;
    }


    /* 送信ボタン・戻るボタン */
    .c-form__submit {
        width: 100%;
    }

    .c-form__submit-btn,
    .c-form__back-btn {
        height: 64px;
        font-size: 16px;
    }

    .c-form__submit::after {
        bottom: 32px;
        right: 17px;
        width: 19px;
        height: 19px;
    }
}