/* Contact page specific styles. */

.contact-page {
    padding-bottom: 13.8rem;
}

.contact-page-panel {
    width: calc(100% - var(--edge-padding));
    margin: 0 var(--edge-padding) 0 0;
    padding: 8.8rem 14rem 11rem;
    border-radius: 0 0.8rem 0.8rem 0;
    background: var(--mint-light);
}

.contact-page-head {
    margin-bottom: 10rem;
}

.contact-page-kicker {
    color: var(--mint-dark);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.5;
}

.contact-page-head h1 {
    margin-top: 0.8rem;
    color: var(--mint-dark);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(8.4rem, 6.46vw, 12.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.contact-page-body {
    width: min(100%, 92rem);
    margin: 0 auto;
}

.contact-page-lead {
    margin-bottom: 6.4rem;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2.1;
}

.contact-page-lead span,
.contact-form label span {
    color: #e34d3f;
}

.contact-method-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
    margin-bottom: 6.4rem;
}

.contact-method-card {
    display: flex;
    flex-direction: column;
    padding: 3.6rem 3.2rem;
    border: 0.1rem solid var(--line);
    border-radius: 0.8rem;
    background: var(--white);
}

.contact-method-card-title {
    position: relative;
    margin-bottom: 1.6rem;
    padding-left: 1.6rem;
    color: var(--mint-dark);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.5;
}

.contact-method-card-title::before {
    content: "";
    position: absolute;
    top: 0.3rem;
    left: 0;
    width: 0.5rem;
    height: calc(100% - 0.6rem);
    border-radius: 0.4rem;
    background: var(--mint);
}

.contact-method-card-text {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.95;
}

.contact-method-card-link {
    align-self: flex-start;
    margin-top: 2.4rem;
    color: var(--mint-dark);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.22s ease, opacity 0.22s ease;
}

.contact-method-card-link span {
    display: inline-block;
    transition: transform 0.22s ease;
}

.contact-method-card-link:hover,
.contact-method-card-link:focus-visible {
    color: var(--mint-deep);
    opacity: 0.85;
}

.contact-method-card-link:hover span,
.contact-method-card-link:focus-visible span {
    transform: translateX(0.4rem);
}

.contact-method-card-note {
    margin-top: 1.2rem;
    color: var(--muted);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.7;
}

.contact-form {
    display: grid;
}

.form-row {
    display: grid;
    grid-template-columns: 24rem 1fr;
    gap: 5rem;
    align-items: center;
    padding: 3.2rem 0;
    border-top: 0.1rem solid rgba(25, 139, 120, 0.17);
}

.form-row-textarea {
    align-items: start;
}

.form-row-textarea > label {
    padding-top: 2rem;
}

.contact-form label,
.form-row legend {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.6;
}

.form-row legend {
    display: block;
    float: left;
    width: 24rem;
}

.form-row-radio {
    display: block;
    min-width: 0;
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
}

.form-row-radio .form-field {
    margin-left: 29rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 0.1rem solid rgba(25, 139, 120, 0.22);
    border-radius: 0.4rem;
    background: var(--white);
    color: var(--text);
    font: inherit;
    font-size: 1.4rem;
    font-weight: 700;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.form-field input,
.form-field select {
    height: 5.4rem;
    padding: 0 1.8rem;
}

.form-field textarea {
    min-height: 20rem;
    padding: 1.6rem 1.8rem;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #99b8b2;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--mint-dark);
    box-shadow: 0 0 0 0.4rem rgba(25, 139, 120, 0.12);
    outline: none;
}

.radio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem 3rem;
}

.radio-list label,
.form-agreement label {
    display: inline-flex;
    gap: 0.9rem;
    align-items: center;
    color: var(--muted);
    font-size: 1.4rem;
    font-weight: 700;
}

.radio-list input,
.form-agreement input {
    width: 1.7rem;
    height: 1.7rem;
    accent-color: var(--mint-dark);
}

.form-agreement {
    padding: 6rem 0 4.8rem;
    border-top: 0.1rem solid rgba(25, 139, 120, 0.17);
    text-align: center;
}

.form-agreement label {
    justify-content: center;
}

.form-agreement a {
    color: var(--mint-deep);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

.form-agreement a:hover,
.form-agreement a:focus-visible {
    color: var(--mint-dark);
    opacity: 0.78;
}

.contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    width: 100%;
    height: 7.2rem;
    border: 0.2rem solid var(--mint-dark);
    border-radius: 0.7rem;
    background: var(--mint-dark);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
}

.contact-submit:hover,
.contact-submit:focus-visible {
    background: var(--white);
    color: var(--mint-dark);
    transform: translateY(-0.2rem);
    box-shadow: 0 1.2rem 2.4rem rgba(25, 139, 120, 0.16);
}

.contact-submit span {
    transition: transform 0.22s ease;
}

.contact-submit:hover span,
.contact-submit:focus-visible span {
    transform: translateX(0.4rem);
}

.form-field .wpcf7-form-control-wrap {
    display: block;
    min-width: 0;
}

.form-field .wpcf7-form-control {
    display: block;
}

.radio-list .wpcf7-form-control {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem 3rem;
}

.radio-list .wpcf7-list-item,
.form-agreement .wpcf7-list-item {
    margin: 0;
}

.radio-list .wpcf7-list-item label {
    display: inline-flex;
    gap: 0.9rem;
    align-items: center;
}

.radio-list .wpcf7-list-item-label,
.form-agreement .wpcf7-list-item-label {
    color: var(--muted);
}

.contact-submit.wpcf7-submit {
    font-family: inherit;
}

.wpcf7-spinner {
    margin: 1.6rem auto 0;
}

.wpcf7-not-valid-tip {
    margin-top: 0.8rem;
    color: #e34d3f;
    font-size: 1.2rem;
    font-weight: 700;
}

.wpcf7-response-output {
    margin: 3rem 0 0;
    padding: 1.6rem 2rem;
    border-radius: 0.4rem;
    color: var(--text);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.8;
}

.form-agreement-note {
    max-width: 64rem;
    margin: 1.8rem auto 0;
    color: var(--muted);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.9;
}

.form-agreement-note a {
    color: var(--mint-deep);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

.form-agreement-note a:hover,
.form-agreement-note a:focus-visible {
    color: var(--mint-dark);
    opacity: 0.78;
}

.contact-flow {
    margin-top: 7.2rem;
    padding: 5.6rem 4.8rem;
    border-radius: 0.8rem;
    background: var(--mint-pale);
}

.contact-flow-title {
    margin-bottom: 3.6rem;
    color: var(--mint-dark);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
}

.contact-flow-list {
    display: grid;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-flow-item {
    display: grid;
    grid-template-columns: 4.8rem 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.4rem 2.8rem;
    border-radius: 0.8rem;
    background: var(--white);
}

.contact-flow-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 50%;
    background: var(--mint-dark);
    color: var(--white);
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.contact-flow-text {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.85;
}

.contact-flow-note {
    margin-top: 2.8rem;
    color: var(--muted);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.9;
}

@media (max-width: 1024px) {
    .contact-page {
        padding-bottom: 7.2rem;
    }

    .contact-page-panel {
        width: calc(100% - 2rem);
        margin: 0 2rem 0 0;
        padding: 4.8rem 2rem 5.2rem;
    }

    .contact-page-head {
        margin-bottom: 5.2rem;
    }

    .contact-page-kicker {
        font-size: 1.4rem;
    }

    .contact-page-head h1 {
        font-size: 5.6rem;
    }

    .contact-page-body {
        width: 100%;
    }

    .contact-page-lead {
        margin-bottom: 3.8rem;
        font-size: 1.5rem;
        line-height: 2;
    }

    .contact-method-list {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        margin-bottom: 3.8rem;
    }

    .contact-method-card {
        padding: 2.8rem 2.2rem;
    }

    .contact-method-card-title {
        font-size: 1.7rem;
    }

    .form-row {
        display: block;
        padding: 2.6rem 0;
    }

    .form-row-textarea > label {
        padding-top: 0;
    }

    .contact-form label,
    .form-row legend {
        display: block;
        margin-bottom: 1.1rem;
        font-size: 1.4rem;
    }

    .form-row legend {
        float: none;
        width: auto;
    }

    .form-row-radio .form-field {
        margin-left: 0;
    }

    .form-field input,
    .form-field select {
        height: 5.2rem;
    }

    .form-field textarea {
        min-height: 18rem;
    }

    .radio-list {
        display: grid;
        gap: 1.2rem;
    }

    .form-agreement {
        padding: 3.6rem 0 3rem;
        text-align: left;
    }

    .form-agreement label {
        justify-content: flex-start;
        align-items: flex-start;
        line-height: 1.8;
    }

    .form-agreement input {
        margin-top: 0.4rem;
        flex: 0 0 auto;
    }

    .contact-submit {
        height: 6.2rem;
    }

    .form-agreement-note {
        margin-top: 1.4rem;
    }

    .contact-flow {
        margin-top: 4.8rem;
        padding: 3.6rem 2rem;
    }

    .contact-flow-title {
        margin-bottom: 2.6rem;
        font-size: 1.9rem;
    }

    .contact-flow-item {
        grid-template-columns: 4rem 1fr;
        gap: 1.6rem;
        align-items: start;
        padding: 2rem 2rem;
    }

    .contact-flow-step {
        width: 4rem;
        height: 4rem;
        font-size: 1.7rem;
    }

    .contact-flow-text {
        font-size: 1.5rem;
    }
}

/* 送信完了(thanks)ページ */
.thanks-panel {
    display: flex;
    justify-content: center;
}

.thanks-inner {
    width: min(100%, 68rem);
    padding: 1.6rem 0 1rem;
    text-align: center;
}

.thanks-eyebrow {
    color: var(--mint-dark);
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.thanks-title {
    margin-top: 1.4rem;
    font-size: clamp(2.8rem, 2.4vw, 3.8rem);
    font-weight: 800;
    line-height: 1.45;
}

.thanks-text {
    margin-top: 3.4rem;
    text-align: left;
}

.thanks-text p {
    margin-bottom: 1.8rem;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 2;
}

.thanks-note {
    margin-top: 2.6rem;
    color: var(--muted);
    font-size: 1.35rem;
    line-height: 1.9;
}

.thanks-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 4.2rem;
}

.thanks-sub-link {
    color: var(--mint-dark);
    font-size: 1.4rem;
    font-weight: 700;
}

.thanks-sub-link:hover,
.thanks-sub-link:focus-visible {
    opacity: 0.7;
}
