/* ========================================
   CONTACT PAGE
======================================== */

.contact-page {
    background: #fff;
    overflow: hidden;
}


/* ========================================
   HERO
======================================== */

.contact-hero {
    position: relative;
    min-height: 55vh;

    padding:
        130px
        max(6vw, 30px)
        100px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-bottom: 1px solid #d8d8d8;
}

.contact-index {
    position: absolute;

    top: 80px;
    right: max(6vw, 30px);

    margin: 0;

    font-size: 13px;
    letter-spacing: .15em;
}

.contact-hero h1 {
    margin: 0;

    font-size: clamp(72px, 11vw, 160px);
    line-height: .85;

    font-weight: 700;
    letter-spacing: -.06em;
}

.contact-jp {
    margin: 20px 0 0;

    font-size: 16px;
    letter-spacing: .15em;
}

.contact-intro {
    max-width: 650px;

    margin: 60px 0 0;

    font-size: clamp(18px, 2vw, 25px);
    line-height: 1.7;
}


/* ========================================
   COMMON SECTION
======================================== */

.contact-guide,
.contact-form-section,
.contact-other {
    padding:
        120px
        max(6vw, 30px);
}

.contact-section-heading {
    margin-bottom: 70px;
}

.contact-section-heading h2 {
    margin: 0;

    font-size: clamp(38px, 5vw, 70px);
    line-height: 1;

    letter-spacing: -.04em;
}

.contact-section-heading h2 + p {
    margin: 15px 0 0;

    font-size: 14px;
    letter-spacing: .1em;
}


/* ========================================
   INQUIRY GUIDE
======================================== */

.contact-guide {
    
}

.contact-guide-row {
    display: grid;
    grid-template-columns:
        80px
        minmax(160px, 280px)
        minmax(0, 1fr);

    align-items: center;
    gap: 30px;

    padding: 34px 0;

    border-top: 1px solid #d8d8d8;
}

.contact-guide-row:last-child {
    border-bottom: 1px solid #d8d8d8;
}

.contact-guide-row > p:first-child {
    margin: 0;

    font-size: 12px;
    letter-spacing: .15em;
}

.contact-guide-row h3 {
    margin: 0;

    font-size: clamp(24px, 2.7vw, 40px);
    line-height: 1;

    letter-spacing: -.03em;
}

.contact-guide-row > p:last-child {
    max-width: 600px;

    margin: 0;

    font-size: 15px;
    line-height: 1.7;
}


/* ========================================
   FORM SECTION
======================================== */

.contact-form-section {
    
}


/* Contact Form 7 wrapper */

.contact-form-section .wpcf7 {
    max-width: 900px;
}


/* Each field */

.contact-form-section .wpcf7-form p {
    margin: 0 0 38px;
}


/* Labels */

.contact-form-section .wpcf7-form label {
    display: block;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;

    line-height: 1.6;
}


/* Inputs */

.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section input[type="url"],
.contact-form-section input[type="tel"],
.contact-form-section input[type="number"],
.contact-form-section select,
.contact-form-section textarea {

    box-sizing: border-box;

    width: 100%;

    margin-top: 10px;

    padding: 15px 0;

    background: transparent;

    color: inherit;

    border: 0;
    border-bottom: 1px solid #999;

    border-radius: 0;

    font: inherit;

    outline: none;

    transition:
        border-color .2s ease;
}


/* Focus */

.contact-form-section input:focus,
.contact-form-section select:focus,
.contact-form-section textarea:focus {
    border-bottom-color: #111;
}


/* Textarea */

.contact-form-section textarea {
    min-height: 180px;

    padding: 15px;

    border: 1px solid #999;

    resize: vertical;
}

.contact-form-section textarea:focus {
    border-color: #111;
}


/* Select */

.contact-form-section select {
    appearance: auto;
}


/* Submit */

.contact-form-section input[type="submit"] {
    display: block;

    min-width: 220px;

    margin: 55px 0 0 auto;

    padding: 18px 28px;

    background: #171717;
    color: #fff;

    border: 1px solid #171717;
    border-radius: 0;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.contact-form-section input[type="submit"]:hover {
    background: transparent;
    color: #171717;
}


/* ========================================
   CF7 MESSAGES
======================================== */

.contact-form-section .wpcf7-not-valid-tip {
    margin-top: 7px;

    font-size: 12px;
}

.contact-form-section .wpcf7-response-output {
    margin: 35px 0 0 !important;
    padding: 18px 20px !important;

    border-width: 1px !important;

    font-size: 13px;
}


/* Spinner */

.contact-form-section .wpcf7-spinner {
    vertical-align: middle;
}


/* ========================================
   OTHER CONTACT
======================================== */

.contact-other {
    

    border-top: 1px solid #d8d8d8;
}

.contact-other > p:first-child {
    margin: 0 0 50px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: .15em;
}

.contact-other > .wp-block-group {
    display: grid;
    grid-template-columns: 220px 1fr;

    gap: 30px;

    padding: 30px 0;

    border-top: 1px solid #d8d8d8;
}

.contact-other > .wp-block-group:last-child {
    border-bottom: 1px solid #d8d8d8;
}

.contact-other .wp-block-group p {
    margin: 0;
}

.contact-other a {
    color: inherit;
    text-decoration: none;
}

.contact-other a:hover {
    text-decoration: underline;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 781px) {

    .contact-hero {
        min-height: 520px;

        padding-top: 110px;
        padding-bottom: 70px;
    }

    .contact-index {
        top: 50px;
    }

    .contact-intro {
        margin-top: 45px;
    }


    .contact-guide,
    .contact-form-section,
    .contact-other {
        padding-top: 85px;
        padding-bottom: 85px;
    }


    .contact-section-heading {
        margin-bottom: 50px;
    }


    .contact-guide-row {
        grid-template-columns: 45px 1fr;

        gap: 10px 20px;

        padding: 28px 0;
    }

    .contact-guide-row > p:last-child {
        grid-column: 2;

        margin-top: 8px;
    }


    .contact-form-section .wpcf7-form p {
        margin-bottom: 30px;
    }

    .contact-form-section input[type="submit"] {
        width: 100%;

        margin-top: 40px;
    }


    .contact-other > .wp-block-group {
        grid-template-columns: 1fr;

        gap: 12px;
    }

}