@charset "utf-8";
/* ==============================================================
   CONTACT
============================================================== */

/* ================ CONTACT VISUAL ================ */
.contact-visual {
    background-image: url("../img/contact/fv.jpg");

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* ================ CONTACT PAGE ================ */
.contact-page {
    padding: 80px 0 40px;

    .contact-page-inner {
        display: flex;
        flex-direction: column;
    }
}

/* ================ CONTACT LEAD ================ */
.contact-lead {
    font-size: 0.875rem;
    line-height: 2;

    p {
        margin: 0;
    }
}

/* ================ CONTACT TEL ================ */
.contact-tel-area {
    margin-top: 70px;
    padding: 0 60px 48px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--lightgray);

    .contact-tel-title {
        display: flex;
        align-items: center;
        gap: 1rem;

        .fa-phone {
            color: var(--green);
            font-size: 1.875rem;
        }

        h2 {
            font-size: 1.25rem;
            font-weight: 700;
            line-height: 1.5;
        }
    }

    .contact-tel-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        .contact-tel-number {
            font-size: clamp(36px, 3vw, 48px);
            font-weight: 500;
            line-height: 1;
            letter-spacing: 0.02em;

            transition: color 0.3s ease;

            @media (hover: hover) and (pointer: fine) {
                &:hover {
                    color: var(--green);
                }
            }
        }

        .contact-tel-hours {
            margin-top: 8px;

            font-size: 0.75rem;
            letter-spacing: 0.05em;
        }
    }
}

/* ================ CONTACT MAIL ================ */
.contact-mail-area {
    margin-top: 48px;

    .contact-mail-title {
        display: flex;
        align-items: center;
        gap: 1rem;

        .fa-envelope {
            color: var(--green);
            font-size: 1.75rem;
        }

        h2 {
            font-size: 1.25rem;
            font-weight: 700;
            line-height: 1.5;
        }
    }
}

/* ==============================================================
   CONTACT FORM
============================================================== */

.contact-form {
    margin-top: 70px;
    padding-inline: 80px;
    max-width: 960px;
    margin-inline: auto;

    .contact-form-item {
        margin-top: 30px;

        &:first-of-type {
            margin-top: 0;
        }
    }

    /* ================ LABEL ================ */
    .contact-form-label {
        margin-bottom: 10px;

        display: flex;
        align-items: center;
        gap: 10px;

        font-size: 0.875rem;
        font-weight: 700;
        line-height: 1.5;
    }

    /* ================ REQUIRED / OPTIONAL ================ */
    .contact-form-required,
    .contact-form-optional {
        min-width: 40px;
        height: 20px;
        padding-inline: 8px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        border-radius: 50px;

        font-size: 0.625rem;
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0.05em;
    }

    .contact-form-required {
        background-color: var(--green);
        color: var(--white);
    }

    .contact-form-optional {
        background-color: #E9E9E9;
        color: #777777;
    }

    /* ================ INPUT ================ */
    .contact-form-input,
    .contact-form-textarea {
        display: block;
        width: 100%;

        border: 1px solid var(--lightgray);
        border-radius: 5px;

        background-color: var(--white);
        color: var(--text);

        outline: none;

        transition:
            border-color 0.3s ease,
            box-shadow 0.3s ease;

        &:focus {
            border-color: var(--green);
            box-shadow: 0 0 0 3px rgba(0, 179, 143, 0.08);
        }
    }

    .contact-form-input {
        height: 56px;
        padding-inline: 16px;
    }

    /* ================ TEXTAREA ================ */
    .contact-form-textarea {
        min-height: 250px;
        padding: 16px;

        line-height: 1.8;

        resize: vertical;
    }

    /* ================ EXAMPLE ================ */
    .contact-form-example {
        margin-top: 8px;

        color: var(--gray);

        font-size: 0.75rem;
        line-height: 1.5;
    }

    /* ================ PRIVACY ================ */
    .contact-form-privacy {
        margin-top: 40px;

        .contact-form-privacy-text {
            font-size: 0.875rem;
            line-height: 1.8;

            a {
                text-decoration: underline;
                text-underline-offset: 3px;

                transition: color 0.3s ease;

                @media (hover: hover) and (pointer: fine) {
                    &:hover {
                        color: var(--green);
                    }
                }
            }
        }
    }

    .contact-form-check {
        margin-top: 14px;

        display: inline-flex;
        align-items: center;
        gap: 12px;

        cursor: pointer;

        .contact-form-checkbox {
            appearance: none;

            position: relative;

            width: 28px;
            height: 28px;

            flex-shrink: 0;

            border: 1px solid var(--lightgray);
            border-radius: 4px;

            background-color: var(--white);

            cursor: pointer;

            transition:
                border-color 0.2s ease,
                background-color 0.2s ease;

            &:checked {
                border-color: var(--green);
                background-color: var(--green);

                &::after {
                    content: "";

                    position: absolute;
                    top: 4px;
                    left: 9px;

                    width: 7px;
                    height: 13px;

                    border-right: 2px solid var(--white);
                    border-bottom: 2px solid var(--white);

                    transform: rotate(45deg);
                }
            }

            &:focus-visible {
                outline: 3px solid rgba(0, 179, 143, 0.18);
                outline-offset: 2px;
            }
        }

        .contact-form-check-text {
            font-size: 0.875rem;
            line-height: 1.6;
        }
    }

    .contact-form-btn {
        margin-top: 70px;

        display: flex;
        justify-content: center;

        .contact-form-submit {
            position: relative;
            z-index: 0;

            overflow: hidden;

            min-width: 220px;
            padding: 16px 28px;

            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 28px;

            border: 1px solid var(--green);
            border-radius: 50px;

            background-color: var(--green);
            color: var(--white);

            font-family: inherit;
            font-size: 0.875rem;
            font-weight: 500;
            letter-spacing: 0.08em;

            transition: color 0.5s ease;

            &::before {
                content: "";

                position: absolute;
                z-index: -1;

                top: 0;
                left: -10%;

                width: 130%;
                height: 100%;

                background-color: var(--white);

                transform: translateX(-100%) skewX(-45deg);

                transition:
                    transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
            }

            @media (hover: hover) and (pointer: fine) {
                &:hover {
                    color: var(--green);

                    &::before {
                        transform: translateX(0) skewX(-45deg);
                    }

                    .fa-arrow-right-long {
                        transform: translateX(4px);
                    }
                }
            }

            .fa-arrow-right-long {
                font-size: 1rem;

                transition: transform 0.3s ease;
            }
        }
    }
}

.contact-form-wana {
    display: none;
}


/* ==============================
   800px以下
============================== */

@media (max-width: 800px) {

    .contact-visual {
        background-position: 60% center;
    }


    .contact-page {
        padding: 80px 0 0;
    }


    .contact-tel-area {
        padding-right: 0;
    }


    .contact-form {
        padding-inline: 30px;
    }

}


/* ==============================
   600px以下
============================== */

@media (max-width: 600px) {

    .contact-visual {
        background-position: 65% center;
    }

    .contact-page {
        padding: 40px 0 24px;
    }

    .contact-lead {
        font-size: 0.8125rem;
        line-height: 1.9;
    }

    .contact-tel-area {
        margin-top: 50px;
        padding: 0 0 35px;

        display: block;

        .contact-tel-title {
            gap: 12px;

            .fa-phone {
                font-size: 1.5rem;
            }

            h2 {
                font-size: 1rem;
            }
        }

        .contact-tel-info {
            margin-top: 28px;

            align-items: center;

            .contact-tel-number {
                font-size: 2.25rem;
            }

            .contact-tel-hours {
                font-size: 0.6875rem;
            }
        }
    }

    .contact-mail-area {
        margin-top: 40px;

        .contact-mail-title {
            gap: 12px;

            .fa-envelope {
                font-size: 1.5rem;
            }

            h2 {
                font-size: 1rem;
            }
        }
    }

    .contact-form {
        margin-top: 48px;
        padding-inline: 0;

        .contact-form-item {
            margin-top: 28px;
        }

        .contact-form-label {
            margin-bottom: 8px;

            gap: 8px;

            font-size: 0.8125rem;
        }

        .contact-form-required,
        .contact-form-optional {
            min-width: 36px;
            height: 18px;

            padding-inline: 6px;

            font-size: 0.5625rem;
        }

        .contact-form-input {
            height: 50px;
            padding-inline: 14px;
        }

        .contact-form-textarea {
            min-height: 200px;
            padding: 14px;
        }

        .contact-form-example {
            margin-top: 6px;
            font-size: 0.6875rem;
        }

        .contact-form-privacy {
            margin-top: 34px;

            .contact-form-privacy-text {
                font-size: 0.75rem;
            }
        }

        .contact-form-check {
            gap: 10px;

            .contact-form-checkbox {
                width: 26px;
                height: 26px;

                &:checked {
                    &::after {
                        top: 3px;
                        left: 8px;
                    }
                }
            }

            .contact-form-check-text {
                font-size: 0.75rem;
            }
        }

        .contact-form-btn {
            margin-top: 55px;

            .contact-form-submit {
                min-width: 200px;
                padding: 15px 24px;

                font-size: 0.8125rem;
            }
        }
    }

}

/* ==============================
   480px以下
============================== */
@media (max-width: 480px) {
    .contact-visual {
        background-image: url("../img/contact/sp-fv.jpg");
        background-position: left center;
        background-size: cover;
    }
}