/* ========================================
   NJES お問い合わせページ専用CSS
   assets/css/contact.css
======================================== */


/* ========================================
   共通
======================================== */

.contact-hero,
.contact-main {
    position: relative;
}

.contact-hero__inner,
.contact-main__inner {
    width: min(1100px, calc(100% - 48px));
    margin-inline: auto;
}


/* ========================================
   ファーストビュー
======================================== */

.contact-hero {
    overflow: hidden;
    padding: 94px 0 100px;
    background:
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #eef6ff 52%,
            #effcff 100%
        );
}

.contact-hero__background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.contact-hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-image:
        linear-gradient(
            rgb(3 81 248 / 5%) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgb(3 81 248 / 5%) 1px,
            transparent 1px
        );
    background-size: 56px 56px;
    mask-image:
        linear-gradient(
            90deg,
            #000 0%,
            #000 55%,
            transparent 100%
        );
    -webkit-mask-image:
        linear-gradient(
            90deg,
            #000 0%,
            #000 55%,
            transparent 100%
        );
}

.contact-hero__orb {
    position: absolute;
    border-radius: 50%;
}

.contact-hero__orb--blue {
    top: -280px;
    right: -100px;
    width: 650px;
    height: 650px;
    background:
        radial-gradient(
            circle,
            rgb(3 81 248 / 17%) 0%,
            rgb(3 81 248 / 4%) 55%,
            transparent 72%
        );
}

.contact-hero__orb--cyan {
    right: 24%;
    bottom: -300px;
    width: 520px;
    height: 520px;
    background:
        radial-gradient(
            circle,
            rgb(55 183 233 / 18%) 0%,
            transparent 70%
        );
}

.contact-hero__line {
    position: absolute;
    top: 20%;
    right: -80px;
    width: 520px;
    height: 220px;
    border: 1px solid rgb(3 81 248 / 10%);
    border-radius: 50%;
    transform: rotate(-20deg);
}

.contact-hero__line::before,
.contact-hero__line::after {
    position: absolute;
    content: "";
    border: 1px solid rgb(55 183 233 / 12%);
    border-radius: 50%;
}

.contact-hero__line::before {
    inset: 24px;
}

.contact-hero__line::after {
    inset: 50px;
}

.contact-hero__inner {
    position: relative;
    z-index: 1;
}

.contact-hero__label {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 18px;
    color: var(--color-primary, #0351f8);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.contact-hero__label span {
    width: 42px;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            var(--color-primary, #0351f8),
            var(--color-cyan, #37b7e9)
        );
    border-radius: 999px;
}

.contact-hero__title {
    margin: 0;
    color: var(--color-navy, #102b4e);
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.contact-hero__lead {
    margin: 28px 0 0;
    color: var(--color-navy, #102b4e);
    font-size: clamp(21px, 2.4vw, 30px);
    font-weight: 800;
    line-height: 1.65;
}

.contact-hero__description {
    max-width: 680px;
    margin: 17px 0 0;
    color: #5f7489;
    font-size: 15px;
    line-height: 2;
}


/* ========================================
   お問い合わせメイン
======================================== */

.contact-main {
    padding: 105px 0 120px;
    background: #ffffff;
}

.contact-main__inner {
    width: min(1100px, calc(100% - 48px));
}


/* ========================================
   共通見出し
======================================== */

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

.contact-section-heading__label {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 14px;
    color: var(--color-primary, #0351f8);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.contact-section-heading__label span {
    width: 42px;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            var(--color-primary, #0351f8),
            var(--color-cyan, #37b7e9)
        );
    border-radius: 999px;
}

.contact-section-heading__title {
    margin: 0;
    color: var(--color-navy, #102b4e);
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 850;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

.contact-section-heading__description {
    margin: 14px 0 0;
    color: #687d92;
    font-size: 14px;
    line-height: 1.9;
}


/* ========================================
   フォーム全体レイアウト
======================================== */

.contact-main__layout {
    display: grid;
    grid-template-columns:
        minmax(270px, 0.68fr)
        minmax(0, 1.62fr);
    align-items: start;
    gap: 32px;
}


/* ========================================
   左側 お問い合わせ案内
======================================== */

.contact-guide {
    position: sticky;
    top: 100px;
    padding: 36px 31px;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #0a3970 0%,
            #07548a 60%,
            #087a93 100%
        );
    border-radius: 20px;
    box-shadow:
        0 20px 50px rgb(0 38 78 / 16%);
}

.contact-guide::before {
    position: absolute;
    top: -140px;
    right: -130px;
    width: 300px;
    height: 300px;
    content: "";
    background:
        radial-gradient(
            circle,
            rgb(105 220 237 / 21%) 0%,
            transparent 70%
        );
    border-radius: 50%;
    pointer-events: none;
}

.contact-guide__label,
.contact-guide__title,
.contact-guide__text,
.contact-guide__divider,
.contact-guide__item,
.contact-guide__note {
    position: relative;
    z-index: 1;
}

.contact-guide__label {
    margin: 0 0 12px;
    color: #83dce7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.contact-guide__title {
    margin: 0;
    color: #ffffff;
    font-size: 27px;
    font-weight: 850;
    line-height: 1.55;
    letter-spacing: 0.03em;
}

.contact-guide__text {
    margin: 19px 0 0;
    color: rgb(255 255 255 / 78%);
    font-size: 13px;
    line-height: 1.95;
}

.contact-guide__divider {
    height: 1px;
    margin: 27px 0;
    background: rgb(255 255 255 / 17%);
}

.contact-guide__item + .contact-guide__item {
    margin-top: 26px;
}

.contact-guide__item-label {
    margin: 0 0 7px;
    color: #83dce7;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.6;
}

.contact-guide__telephone {
    display: inline-block;
    color: #ffffff;
    font-size: 24px;
    font-weight: 850;
    line-height: 1.4;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.contact-guide__telephone:hover {
    text-decoration: underline;
}

.contact-guide__address {
    color: rgb(255 255 255 / 78%);
    font-size: 13px;
    font-style: normal;
    line-height: 1.9;
}

.contact-guide__note {
    margin: 29px 0 0;
    padding: 17px 18px;
    color: rgb(255 255 255 / 66%);
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgb(255 255 255 / 13%);
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.85;
}


/* ========================================
   Contact Form 7 外枠
======================================== */

.contact-form-wrapper {
    min-width: 0;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #d9e6f2;
    border-radius: 20px;
    box-shadow:
        0 18px 50px rgb(26 72 119 / 8%);
}

.contact-form-wrapper .wpcf7 {
    margin: 0;
}

.contact-form-wrapper form {
    margin: 0;
}

.contact-form {
    width: 100%;
}


/* ========================================
   フォーム上部の注意書き
======================================== */

.contact-form__notice {
    margin-bottom: 28px;
    padding: 15px 18px;
    background: #f4f8fd;
    border: 1px solid #dce8f4;
    border-radius: 10px;
}

.contact-form__notice p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    color: #61768b;
    font-size: 12px;
    line-height: 1.8;
}

.contact-form__notice .contact-form__required {
    flex: 0 0 auto;
    margin-left: 0;
}

.contact-form__notice-text {
    display: inline;
}


/* ========================================
   必須ラベル
======================================== */

.contact-form__required {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 21px;
    margin-left: 7px;
    padding: 2px 7px;
    color: #ffffff;
    background: #e34d59;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}


/* ========================================
   フォーム各行
======================================== */

.contact-form__row {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #e2eaf2;
}

.contact-form__row:first-of-type {
    border-top: 1px solid #e2eaf2;
}

.contact-form__heading {
    padding-top: 13px;
}

.contact-form__heading label {
    display: block;
    margin: 0;
    color: var(--color-navy, #102b4e);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.7;
}

.contact-form__field {
    min-width: 0;
}

.contact-form__field .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}


/* ========================================
   入力欄共通
======================================== */

.contact-form__control,
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper input[type="url"],
.contact-form-wrapper input[type="number"],
.contact-form-wrapper select,
.contact-form-wrapper textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: #334b63;
    background: #f8fbfe;
    border: 1px solid #cfddea;
    border-radius: 9px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper input[type="url"],
.contact-form-wrapper input[type="number"],
.contact-form-wrapper select {
    min-height: 54px;
    padding: 12px 16px;
}

.contact-form-wrapper textarea {
    min-height: 210px;
    padding: 15px 16px;
    resize: vertical;
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: #9baaba;
    opacity: 1;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper select:focus,
.contact-form-wrapper textarea:focus {
    background: #ffffff;
    border-color: var(--color-primary, #0351f8);
    box-shadow:
        0 0 0 4px rgb(3 81 248 / 9%);
}

.contact-form-wrapper select {
    cursor: pointer;
}


/* ========================================
   Contact Form 7 エラー入力欄
======================================== */

.contact-form-wrapper .wpcf7-not-valid {
    border-color: #df4a58 !important;
    box-shadow:
        0 0 0 3px rgb(223 74 88 / 8%);
}

.contact-form-wrapper .wpcf7-not-valid-tip {
    display: block;
    margin-top: 7px;
    color: #d83e4c;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
}


/* ========================================
   個人情報同意
======================================== */

.contact-form__privacy {
    margin-top: 30px;
    padding: 22px 24px;
    background: #f4f8fd;
    border: 1px solid #dce7f2;
    border-radius: 10px;
    text-align: center;
}

.contact-form__privacy .wpcf7-form-control-wrap {
    display: block;
}

.contact-form__privacy .wpcf7-acceptance {
    display: block;
}

.contact-form__privacy .wpcf7-list-item {
    margin: 0;
}

.contact-form__privacy label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #536a81;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
    cursor: pointer;
}

.contact-form__privacy input[type="checkbox"] {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: var(--color-primary, #0351f8);
    cursor: pointer;
}


/* ========================================
   送信ボタン
======================================== */

.contact-form__submit {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.contact-form__button,
.contact-form-wrapper input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 360px);
    min-height: 62px;
    margin: 0;
    padding: 14px 30px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--color-primary, #0351f8) 0%,
            #0878d5 100%
        );
    border: 0;
    border-radius: 10px;
    box-shadow:
        0 14px 30px rgb(3 81 248 / 22%);
    font-family: inherit;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.5;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition:
        box-shadow 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}

.contact-form__button:hover,
.contact-form-wrapper input[type="submit"]:hover {
    box-shadow:
        0 18px 38px rgb(3 81 248 / 28%);
    transform: translateY(-2px);
}

.contact-form__button:active,
.contact-form-wrapper input[type="submit"]:active {
    transform: translateY(0);
}

.contact-form-wrapper input[type="submit"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}


/* ========================================
   Contact Form 7 スピナー
======================================== */

.contact-form-wrapper .wpcf7-spinner {
    position: absolute;
    top: 50%;
    right: calc(50% - 205px);
    margin: 0;
    transform: translateY(-50%);
}


/* ========================================
   Contact Form 7 送信結果メッセージ
======================================== */

.contact-form-wrapper .wpcf7-response-output {
    margin: 28px 0 0 !important;
    padding: 17px 20px !important;
    color: #3f566d;
    background: #f4f8fd;
    border: 1px solid #cddbe8 !important;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
}

.contact-form-wrapper form.sent .wpcf7-response-output {
    color: #176643;
    background: #effbf5;
    border-color: #8dd3b0 !important;
}

.contact-form-wrapper form.invalid .wpcf7-response-output,
.contact-form-wrapper form.unaccepted .wpcf7-response-output,
.contact-form-wrapper form.payment-required
.wpcf7-response-output {
    color: #a7323e;
    background: #fff3f4;
    border-color: #e4a1a8 !important;
}

.contact-form-wrapper form.spam .wpcf7-response-output,
.contact-form-wrapper form.failed .wpcf7-response-output,
.contact-form-wrapper form.aborted .wpcf7-response-output {
    color: #8d4f18;
    background: #fff8ed;
    border-color: #dfbb85 !important;
}


/* ========================================
   Contact Form 7 自動補完・ブラウザ対策
======================================== */

.contact-form-wrapper input:-webkit-autofill,
.contact-form-wrapper input:-webkit-autofill:hover,
.contact-form-wrapper input:-webkit-autofill:focus {
    -webkit-text-fill-color: #334b63;
    box-shadow:
        0 0 0 1000px #f8fbfe inset;
}


/* ========================================
   タブレット
======================================== */

@media (max-width: 960px) {
    .contact-main__layout {
        grid-template-columns: 1fr;
    }

    .contact-guide {
        position: relative;
        top: auto;
    }

    .contact-guide__title br {
        display: none;
    }

    .contact-guide__item {
        display: inline-block;
        width: calc(50% - 13px);
        vertical-align: top;
    }

    .contact-guide__item + .contact-guide__item {
        margin-top: 0;
        margin-left: 22px;
    }

    .contact-form-wrapper {
        padding: 36px;
    }
}


/* ========================================
   スマートフォン
======================================== */

@media (max-width: 700px) {
    .contact-hero__inner,
    .contact-main__inner {
        width: calc(100% - 28px);
    }


    /* ファーストビュー */

    .contact-hero {
        padding: 72px 0 76px;
    }

    .contact-hero__title {
        font-size: 40px;
    }

    .contact-hero__lead {
        margin-top: 22px;
        font-size: 20px;
    }

    .contact-hero__description {
        font-size: 13px;
        line-height: 1.9;
    }


    /* メイン */

    .contact-main {
        padding: 78px 0 88px;
    }

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

    .contact-guide {
        padding: 29px 23px;
        border-radius: 16px;
    }

    .contact-guide__title {
        font-size: 23px;
    }

    .contact-guide__item {
        display: block;
        width: 100%;
    }

    .contact-guide__item + .contact-guide__item {
        margin-top: 24px;
        margin-left: 0;
    }

    .contact-guide__telephone {
        font-size: 22px;
    }


    /* フォーム外枠 */

    .contact-form-wrapper {
        padding: 25px 20px;
        border-radius: 16px;
    }


    /* フォーム各項目 */

    .contact-form__row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 21px 0;
    }

    .contact-form__heading {
        padding-top: 0;
    }

    .contact-form__heading label {
        font-size: 13px;
    }

    .contact-form-wrapper input[type="text"],
    .contact-form-wrapper input[type="email"],
    .contact-form-wrapper input[type="tel"],
    .contact-form-wrapper input[type="url"],
    .contact-form-wrapper input[type="number"],
    .contact-form-wrapper select {
        min-height: 52px;
        padding-inline: 14px;
        font-size: 16px;
    }

    .contact-form-wrapper textarea {
        min-height: 190px;
        padding: 14px;
        font-size: 16px;
    }

    .contact-form__privacy {
        padding: 19px 17px;
        text-align: left;
    }

    .contact-form__privacy label {
        justify-content: flex-start;
        font-size: 12px;
    }

    .contact-form__button,
    .contact-form-wrapper input[type="submit"] {
        width: 100%;
        min-height: 59px;
    }

    .contact-form-wrapper .wpcf7-spinner {
        position: static;
        margin: 16px auto 0;
        transform: none;
    }
}


/* ========================================
   小さいスマートフォン
======================================== */

@media (max-width: 420px) {
    .contact-hero__lead br {
        display: none;
    }

    .contact-form-wrapper {
        padding: 22px 15px;
    }

    .contact-form__notice {
        padding: 13px 14px;
    }

    .contact-form__required {
        min-width: 34px;
        margin-left: 5px;
        padding-inline: 5px;
    }

    .contact-form__privacy {
        padding: 17px 14px;
    }

    .contact-form__privacy label {
        align-items: flex-start;
    }

    .contact-guide__telephone {
        font-size: 20px;
    }
}

.contact-guide__business-hours {
    margin: 8px 0 0;
    color: rgb(255 255 255 / 68%);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 0.04em;
}