/* お問い合わせ・求人応募：MW WP Form共通 */
.first-forms-page {
    color: #fff;
    background: #020921;
    font-family: Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif
}

.first-forms-page * {
    box-sizing: border-box
}

.first-forms-hero {
    position: relative
}

.first-forms-hero-art {
    display: block;
    width: 100%;
    height: auto
}

.first-forms-hero-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap
}

.first-forms-body {
    background: url('images/forms/background.jpg') center top / 100% auto no-repeat;
    padding: clamp(80px, 11vw, 210px) 0 clamp(120px, 13vw, 250px)
}

.first-forms-layout {
    width: 88%;
    max-width: 1690px;
    margin: auto;
    display: grid;
    grid-template-columns: 43% minmax(0, 1fr);
    gap: 6%
}

.first-forms-intro h2 {
    font-size: clamp(25px, 2vw, 38px);
    line-height: 1.65;
    letter-spacing: .03em;
    margin: 0 0 35px;
    border-bottom: 1px solid #c4c9d2;
    padding-bottom: 30px
}

.first-forms-intro>p {
    font-size: clamp(15px, 1.05vw, 20px);
    line-height: 1.85;
    margin: 0 0 45px
}

.first-form-notes {
    border: 1px solid #8f9aa9;
    font-size: clamp(12px, .85vw, 16px);
    line-height: 1.8;
    padding: 18px 22px;
    list-style: none;
    margin: 0
}

.first-form-notes li {
    position: relative;
    padding-left: 1.1em
}

.first-form-notes li::before {
    position: absolute;
    left: 0;
    content: '※'
}

.first-forms-main {
    min-width: 0
}

.first-forms-main a {
    color: inherit
}

.first-form-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 25px;
    margin-bottom: 45px;
    align-items: start
}

.first-form-label {
    font-size: clamp(14px, 1vw, 19px);
    line-height: 1.6;
    font-weight: 600
}

.first-form-required {
    display: inline-block;
    font-size: 11px;
    line-height: 1.1;
    color: #131b32;
    background: #fff;
    border-radius: 20px;
    padding: 2px 7px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap
}

.first-forms-page small {
    display: block;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 400;
    margin-top: 6px
}

.first-form-field {
    min-width: 0;
    font-size: 16px;
    line-height: 1.8
}

.first-form-field input[type=text],
.first-form-field input[type=email],
.first-form-field select,
.first-form-field textarea {
    border: 1px solid #bec3cd;
    border-radius: 2px;
    background: #f7f7f7;
    color: #172031;
    max-width: 100%;
    width: 100%;
    padding: 8px 10px;
    font: inherit;
    line-height: 1.5;
    min-height: 40px
}

.first-form-field textarea {
    resize: vertical;
    min-height: 220px
}

.first-form-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 22px
}

.first-form-name-grid>div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center
}

.first-form-field fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0
}

.first-form-address>label {
    display: block;
    font-size: 14px;
    margin-top: 15px
}

.first-form-address select {
    width: auto;
    min-width: 190px
}

.first-form-choices .mwform-radio-field {
    display: inline-block;
    margin: 0 18px 8px 0 !important
}

.first-form-choices label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer
}

.first-form-choices input[type=radio] {
    accent-color: #fff;
    width: 16px;
    height: 16px;
    margin: 0;
    flex: none
}

.first-form-postal {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.first-form-field .mwform-zip-field input {
    width: 75px
}

.first-form-field .mwform-tel-field input {
    width: 85px
}

.first-form-phone .mwform-tel-field {
    display: flex;
    align-items: center;
    gap: 8px
}

.first-form-actions {
    margin-left: 245px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px
}

.first-form-submit {
    display: block;
    border: 0;
    border-radius: 100px;
    background: radial-gradient(ellipse at center, #3a9af0, #0065e9);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    width: 310px;
    max-width: 100%;
    min-height: 65px;
    padding: 15px 20px;
    cursor: pointer;
    transition: transform .25s, filter .25s
}

.first-form-submit:hover {
    transform: translateY(-3px);
    filter: brightness(1.1)
}

.mw_wp_form_confirm .first-form-submit {
    background: url('images/forms/send-button.png') center / 100% 100% no-repeat;
    color: transparent;
    aspect-ratio: 1147/241;
    min-height: 0;
    padding: 0
}

.first-form-back {
    border: 1px solid #fff;
    background: transparent;
    border-radius: 50px;
    color: #fff;
    padding: 12px 20px;
    font: inherit;
    cursor: pointer
}

.mw_wp_form_input .first-form-back {
    display: none
}

.first-form-complete {
    padding: 30px;
    border: 1px solid #a8b6d0;
    border-radius: 8px;
    line-height: 1.9
}

.first-form-complete h2 {
    font-size: 26px
}

.first-forms-page .mw_wp_form .error {
    display: block;
    font-size: 14px !important;
    font-weight: 700;
    color: #ffbdbd !important;
    line-height: 1.6;
    margin-top: 8px
}

.first-forms-page :is(input, textarea, select, button, a):focus-visible {
    outline: 3px solid #68cfff;
    outline-offset: 4px
}

.first-form-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap
}

.mw_wp_form_confirm .first-form-label small,
.mw_wp_form_confirm .first-form-address>label,
.mw_wp_form_confirm .first-form-field small {
    display: none
}

.mw_wp_form_confirm .first-form-field {
    overflow-wrap: anywhere;
    white-space: normal;
    border-bottom: 1px solid #657188;
    padding-bottom: 12px
}

.mw_wp_form_confirm .first-form-name-grid {
    gap: 10px
}

.mw_wp_form_confirm .first-form-name-grid>div {
    display: block
}

.mw_wp_form_confirm .first-form-name-grid label {
    margin-right: 10px;
    font-size: 12px
}

.first-forms-main .mw_wp_form {
    margin: 0
}

.first-form-field p {
    margin: 0
}

@media(max-width:1500px) {
    .first-form-row {
        grid-template-columns: 155px minmax(0, 1fr);
        gap: 18px
    }

    .first-form-actions {
        margin-left: 173px
    }

    .first-form-label {
        font-size: 14px
    }

    .first-form-name-grid {
        gap: 12px
    }

    .first-form-field .mwform-tel-field input {
        width: 65px
    }

    .first-form-field .mwform-zip-field input {
        width: 65px
    }
}

@media(max-width:1050px) {
    .first-forms-layout {
        grid-template-columns: 1fr;
        max-width: 780px;
        gap: 65px
    }

    .first-forms-intro h2 {
        font-size: 28px
    }

    .first-forms-intro>p {
        font-size: 16px
    }

    .first-form-row {
        grid-template-columns: 190px minmax(0, 1fr)
    }

    .first-form-actions {
        margin-left: 208px
    }

    .first-form-label {
        font-size: 16px
    }
}

@media(max-width:600px) {
    .first-forms-hero {
        min-height: 420px;
        overflow: hidden
    }

    .first-forms-hero-art {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: right center;
        opacity: .38
    }

    .first-forms-hero-copy {
        position: relative;
        clip-path: none;
        width: auto;
        height: auto;
        overflow: visible;
        white-space: normal;
        padding: 135px 6% 50px
    }

    .first-forms-hero-copy h1 {
        font-size: 62px;
        line-height: 1.1;
        font-style: italic;
        margin: 0 0 25px
    }

    .first-forms-hero-copy h1 span {
        font-size: 28px;
        display: block;
        font-style: normal;
        margin-top: 25px
    }

    .first-forms-hero-copy p {
        font-size: 14px;
        line-height: 1.7;
        margin: 0
    }

    .first-forms-body {
        background-size: auto 1800px
    }

    .first-forms-layout {
        width: 88%;
        gap: 45px
    }

    .first-forms-intro h2 {
        font-size: 25px
    }

    .first-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px
    }

    .first-form-actions {
        margin: 20px 0 0;
        align-items: center
    }

    .first-form-name-grid {
        gap: 12px
    }

    .first-form-name-grid>div {
        gap: 8px
    }

    .first-form-field .mwform-tel-field input {
        width: 26%
    }

    .first-form-submit {
        width: 310px
    }

    .first-form-notes {
        font-size: 12px;
        padding: 15px
    }
}

@media(prefers-reduced-motion:reduce) {
    .first-form-submit {
        transition: none
    }

    .first-form-submit:hover {
        transform: none
    }
}

/* PDFカンプ基準：1920pxで左案内x120、フォームx960、入力欄x1196 */
.first-forms-page .first-forms-layout {
    width: 87.5%;
    max-width: 1680px;
    grid-template-columns: minmax(0, 720fr) minmax(0, 840fr);
    gap: 7.142857%;
    align-items: start
}

.first-forms-page .first-forms-body {
    background-position: center bottom;
    background-size: 100% auto;
    padding: clamp(95px, 7.1vw, 136px) 0 clamp(120px, 7.3vw, 140px)
}

.first-forms-page--entry .first-forms-body {
    padding-top: clamp(130px, 12vw, 230px)
}

.first-forms-page .first-forms-intro h2 {
    font-size: clamp(25px, 2.0833vw, 40px);
    line-height: 1.5;
    letter-spacing: 0;
    padding: 0 0 30px;
    margin: 0 0 30px;
    font-weight: 700
}

.first-forms-page .first-forms-intro>p {
    font-size: clamp(15px, 1.042vw, 20px);
    line-height: 1.75;
    margin: 0 0 40px
}

.first-forms-page .first-form-notes {
    font-size: clamp(12px, .729vw, 14px);
    line-height: 1.65;
    padding: 14px;
    letter-spacing: 0
}

.first-forms-page .first-form-row {
    grid-template-columns: minmax(0, 210fr) minmax(0, 550fr);
    column-gap: 3.095%;
    margin: 0 0 32px;
    align-items: start
}

.first-forms-page .first-form-label {
    font-size: clamp(14px, .938vw, 18px);
    line-height: 1.6;
    font-weight: 600;
    letter-spacing: 0
}

.first-forms-page .first-form-required {
    font-size: 11px;
    padding: 1px 7px;
    line-height: 1.2
}

.first-forms-page .first-form-field {
    font-size: 16px;
    line-height: 1.65
}

.first-forms-page .first-form-field>input[type=text],
.first-forms-page .first-form-field>input[type=email],
.first-forms-page .first-form-address>input[type=text] {
    width: 77%;
    min-height: 38px;
    padding: 5px 8px;
    border-radius: 0
}

.first-forms-page .first-form-field textarea {
    width: 100%;
    max-width: 525px;
    min-height: 225px;
    height: 225px;
    border-radius: 0;
    padding: 10px
}

.first-forms-page .first-form-name-grid {
    width: 87%;
    margin-left: -8%;
    grid-template-columns: 1fr 1fr;
    gap: 15px 26px
}

.first-forms-page .first-form-name-grid>div {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px
}

.first-forms-page .first-form-name-grid input {
    height: 38px;
    min-height: 38px;
    padding: 5px 8px;
    border-radius: 0
}

.first-forms-page .first-form-choices .mwform-radio-field {
    margin: 0 12px 5px 0 !important;
    font-size: 14px;
    line-height: 1.7
}

.first-forms-page .first-form-choices label {
    gap: 4px
}

.first-forms-page .first-form-choices input[type=radio] {
    width: 14px;
    height: 14px;
    accent-color: #4e9deb
}

.first-forms-page .first-form-address>label {
    font-size: 14px;
    margin: 10px 0 4px;
    line-height: 1.6
}

.first-forms-page .first-form-address select {
    min-width: 0;
    width: 210px;
    max-width: 100%;
    min-height: 38px;
    border-radius: 0;
    padding: 5px 8px
}

.first-forms-page .first-form-postal {
    gap: 5px
}

.first-forms-page .mwform-zip-field {
    white-space: nowrap
}

.first-forms-page .first-form-field .mwform-zip-field input {
    width: 72px;
    padding: 5px;
    min-height: 38px;
    border-radius: 0
}

.first-forms-page .first-form-field .mwform-tel-field input {
    width: 72px;
    min-width: 0;
    min-height: 38px;
    border-radius: 0;
    padding: 5px
}

.first-forms-page small {
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.6
}

.first-forms-page .first-form-actions {
    margin: 12px 0 0 28.1%;
    gap: 15px;
    align-items: flex-start
}

.first-forms-page .first-form-submit {
    width: 285px;
    min-height: 62px;
    font-size: 16px;
    padding: 14px 15px;
    border-radius: 50px
}

.first-forms-page .mw_wp_form_confirm .first-form-submit {
    padding: 0;
    min-height: 0
}

.first-forms-page .first-form-actions>p {
    margin: 0
}

.first-forms-page .mw_wp_form_confirm .first-form-field {
    min-height: 38px
}

.first-forms-page .first-form-complete {
    font-size: 18px
}

@media(min-width:1051px) {
    .first-forms-page .first-form-row:has(.first-form-choices) {
        margin-bottom: 45px;
        min-height: 45px
    }

    .first-forms-page .first-form-row:has(.first-form-address) {
        margin-bottom: 34px
    }

    .first-forms-page .first-form-row:has(input[type=email]) {
        margin-bottom: 22px
    }
}

@media(max-width:1300px) and (min-width:1051px) {
    .first-forms-page .first-form-row {
        grid-template-columns: minmax(0, 180fr) minmax(0, 550fr)
    }

    .first-forms-page .first-form-actions {
        margin-left: 26%
    }

    .first-forms-page .first-form-name-grid {
        margin-left: 0;
        width: 100%;
        gap: 10px
    }

    .first-forms-page .first-form-name-grid>div {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 4px
    }

    .first-forms-page .first-form-field>input[type=text],
    .first-forms-page .first-form-field>input[type=email],
    .first-forms-page .first-form-address>input[type=text] {
        width: 100%
    }

    .first-forms-page .first-form-field .mwform-tel-field input {
        width: 26%
    }
}

@media(max-width:1050px) {
    .first-forms-page .first-forms-layout {
        grid-template-columns: 1fr;
        max-width: 760px;
        gap: 65px
    }

    .first-forms-page .first-forms-body {
        padding: 90px 0 110px;
        background-size: auto 100%
    }

    .first-forms-page .first-forms-intro h2 {
        font-size: 30px
    }

    .first-forms-page .first-forms-intro>p {
        font-size: 16px
    }

    .first-forms-page .first-form-row {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 20px
    }

    .first-forms-page .first-form-actions {
        margin-left: 210px
    }

    .first-forms-page .first-form-name-grid {
        width: 100%;
        margin-left: 0;
        gap: 12px
    }

    .first-forms-page .first-form-field>input[type=text],
    .first-forms-page .first-form-field>input[type=email],
    .first-forms-page .first-form-address>input[type=text] {
        width: 100%
    }
}

@media(max-width:600px) {
    .first-forms-page .first-forms-layout {
        width: 88%;
        gap: 50px
    }

    .first-forms-page .first-forms-body {
        padding: 60px 0 90px
    }

    .first-forms-page .first-forms-intro h2 {
        font-size: 20px;
        padding-bottom: 22px;
        margin-bottom: 24px
    }

    .first-forms-page .first-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px
    }

    .first-forms-page .first-form-label {
        font-size: 16px
    }

    .first-forms-page .first-form-name-grid {
        gap: 12px
    }

    .first-forms-page .first-form-name-grid>div {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 4px
    }

    .first-forms-page .first-form-field .mwform-tel-field input {
        width: 26%;
        min-height: 44px
    }

    .first-forms-page .first-form-field input,
    .first-forms-page .first-form-field select {
        min-height: 44px
    }

    .first-forms-page .first-form-field input[type=radio] {
        min-height: 0
    }

    .first-forms-page .first-form-actions {
        margin: 10px 0 0;
        align-items: center
    }

    .first-forms-page .first-form-choices .mwform-radio-field {
        font-size: 15px;
        margin-bottom: 12px !important
    }
}

@media(min-width:1051px) {
    .first-forms-page .first-form-row {
        width: 760px;
        max-width: 100%;
        grid-template-columns: 27.6316% minmax(0, 1fr);
        column-gap: 3.4211%
    }

    .first-forms-page .first-form-field {
        max-width: 525px
    }

    .first-forms-page .first-form-actions {
        margin-left: 28.095%;
        width: 71.905%
    }
}

/* 確認画面：名前・フリガナを入力内容の領域内に収める */
.first-forms-page .mw_wp_form_confirm .first-form-name-grid {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

.first-forms-page .mw_wp_form_confirm .first-form-name-grid>div {
    display: block;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.first-forms-page .mw_wp_form_confirm .first-form-name-grid label {
    display: inline-block;
    margin-right: 10px;
}

/* 名前欄のエラーを細いラベル列に入れず、1行分の幅で表示 */
.first-forms-page .mw_wp_form_input .first-form-name-grid>div>.error {
    grid-column: 1 / -1;
    justify-self: stretch;
    min-width: 0;
    width: 100%;
    margin-top: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .first-forms-page .mw_wp_form_input .first-form-name-grid>div>.error {
        font-size: 12px !important;
    }
}