/* =========================================================
   ACE FORM
   Form専用CSS
   ========================================================= */

/* ---------- Page ---------- */

.apply-page {
    width: 100%;
    min-height: calc(100vh - 64px);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(49, 90, 125, 0.18),
            transparent 520px
        ),
        #07111f;

    color: #eef3f8;

    padding: 80px 20px;
    box-sizing: border-box;
}


/* ---------- Main ---------- */

.apply {
    width: 100%;
    max-width: 720px;

    margin: 0 auto;
}


/* ---------- Header ---------- */

.apply__header {
    text-align: center;

    margin-bottom: 42px;
}

.apply__label {
    margin: 0;

    color: #8fb6d8;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.45em;
    text-indent: 0.45em;
}

.apply__title {
    margin: 14px 0 0;

    color: #ffffff;

    font-size: 34px;
    font-weight: 600;

    letter-spacing: 0.12em;
}

.apply__divider {
    width: 48px;
    height: 1px;

    margin: 20px auto 0;

    background: rgba(143, 182, 216, 0.65);
}

.apply__lead {
    margin: 20px 0 0;

    color: #91a0b0;

    font-size: 13px;
    line-height: 1.9;
}


/* ---------- Card ---------- */

.apply__card {
    width: 100%;

    box-sizing: border-box;

    padding: 36px;

    background: rgba(12, 27, 45, 0.92);

    border: 1px solid rgba(120, 155, 185, 0.2);

    border-radius: 14px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    backdrop-filter: blur(12px);
}


/* ---------- Field ---------- */

.field {
    margin-bottom: 26px;
}

.field:last-of-type {
    margin-bottom: 28px;
}


/* ---------- Label ---------- */

.field__label {
    display: block;

    margin-bottom: 9px;

    color: #e8eef5;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.06em;
}

.field__required {
    margin-left: 7px;

    color: #8fb6d8;

    font-size: 11px;
    font-weight: 500;
}


/* ---------- Input / Select / Textarea ---------- */

.field__input,
.field__textarea {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 13px 14px;

    border: 1px solid rgba(130, 160, 190, 0.24);

    border-radius: 8px;

    outline: none;

    background: #091827;

    color: #edf3f8;

    font-family: inherit;
    font-size: 14px;

    line-height: 1.5;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.field__input::placeholder,
.field__textarea::placeholder {
    color: #536577;
}


/* ---------- Select ---------- */

select.field__input {
    cursor: pointer;

    appearance: auto;
}


/* ---------- Focus ---------- */

.field__input:focus,
.field__textarea:focus {
    border-color: #6f9bc0;

    background: #0b1c2e;

    box-shadow:
        0 0 0 3px rgba(111, 155, 192, 0.12);
}


/* ---------- Textarea ---------- */

.field__textarea {
    min-height: 160px;

    resize: vertical;

    line-height: 1.8;
}


/* ---------- Character Count ---------- */

.reason-count {
    margin-top: 7px;

    text-align: right;

    color: #68798a;

    font-size: 11px;

    line-height: 1.5;
}

.reason-count.is-warning {
    color: #d0a765;
}

.reason-count.is-error {
    color: #d97979;
}


/* ---------- Validation ---------- */

.field__error {
    display: none;

    margin: 7px 0 0;

    color: #e47e7e;

    font-size: 12px;

    line-height: 1.6;
}

.field--invalid .field__input,
.field--invalid .field__textarea {
    border-color: #d86f6f;
}

.field--invalid .field__input:focus,
.field--invalid .field__textarea:focus {
    box-shadow:
        0 0 0 3px rgba(216, 111, 111, 0.12);
}

.field--invalid .field__error {
    display: block;
}


/* ---------- Honeypot ---------- */

.field--honeypot {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    margin: -1px !important;
    padding: 0 !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* ---------- reCAPTCHA ---------- */

.apply__recaptcha {
    margin: 0 0 22px;

    color: #718193;

    font-size: 11px;

    line-height: 1.8;

    text-align: center;
}

.apply__recaptcha a {
    color: #8fb6d8;

    text-decoration: underline;

    text-underline-offset: 2px;
}


/* ---------- Submit ---------- */

.apply__submit {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 15px 20px;

    border: 0;

    border-radius: 8px;

    background: #315a7d;

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-indent: 0.18em;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.apply__submit:hover {
    background: #3b6b94;

    transform: translateY(-1px);
}

.apply__submit:active {
    transform: translateY(0);
}

.apply__submit:disabled {
    opacity: 0.45;

    cursor: not-allowed;

    transform: none;
}


/* ---------- Note ---------- */

.apply__note {
    margin: 18px 0 0;

    color: #68798a;

    font-size: 11px;

    line-height: 1.8;

    text-align: center;
}


/* ---------- Result ---------- */

.apply__result {
    display: none;

    margin-top: 22px;

    padding: 15px 16px;

    border-radius: 8px;

    font-size: 13px;

    line-height: 1.7;

    text-align: center;
}

.apply__result--ok {
    display: block;

    background: rgba(92, 177, 119, 0.1);

    border: 1px solid rgba(92, 177, 119, 0.3);

    color: #a9ddb9;
}

.apply__result--ng {
    display: block;

    background: rgba(216, 111, 111, 0.1);

    border: 1px solid rgba(216, 111, 111, 0.3);

    color: #e6a0a0;
}


/* ---------- Back ---------- */

.apply__back {
    display: block;

    margin-top: 30px;

    color: #738395;

    font-size: 13px;

    text-align: center;

    text-decoration: none;

    transition: color 0.2s ease;
}

.apply__back:hover {
    color: #9fc0dc;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 640px) {

    .apply-page {
        padding: 50px 14px;
    }

    .apply__header {
        margin-bottom: 30px;
    }

    .apply__title {
        font-size: 27px;
    }

    .apply__lead {
        font-size: 12px;
    }

    .apply__card {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .field {
        margin-bottom: 22px;
    }

    .field__input,
    .field__textarea {
        font-size: 16px;
    }

    .field__textarea {
        min-height: 150px;
    }

}


/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .field__input,
    .field__textarea,
    .apply__submit,
    .apply__back {
        transition: none;
    }

}