@charset "utf-8";

/* ==========================================================
   応募フォームページ (form/)  prefix: apf_
   Figma: 採用サイト｜応募フォーム node 2213:58
   gold: #AE8D5E / sub-gold: #D0B691 / line-gray: #AAA
========================================================== */

#form__page main {
    font-family: var(--serif);
    color: #333;
}

.apf_inner {
    width: 1140px;
    max-width: 92%;
    margin: 0 auto;
}

/* ---------- 共通見出し ---------- */
.apf_heading {
    font-family: "Noto Serif JP", serif;
    font-weight: 300;
    font-size: 40px;
    letter-spacing: 0.1em;
    line-height: 1.4;
    color: #333;
    text-align: center;
    margin-bottom: 88px;
}

.apf_heading_bar {
    display: block;
    width: 84px;
    height: 4px;
    margin: 28px auto 0;
    background: linear-gradient(to right, #D0B691 50%, #AE8D5E 50%);
}

@media (max-width: 767px) {
    .apf_heading {
        font-size: 24px;
        margin-bottom: 56px;
    }

    .apf_heading_bar {
        height: 4px;
        margin-top: 20px;
    }
}

/* ---------- MV ---------- */
.apf_mv {
    position: relative;
    overflow: hidden;
}

.apf_mv_photo img {
    width: 100%;
    height: clamp(320px, 30.94vw, 594px);
    object-fit: cover;
    object-position: center;
}

.apf_mv::after {
    /* デザイン上のMV下部の細い飾り線 */
    content: "";
    position: absolute;
    left: 14.9%;
    bottom: 8px;
    width: 35%;
    height: 1px;
    background-color: #AAA;
}

.apf_mv_panel {
    position: absolute;
    left: 11.9%;
    top: 33.3%;
    width: 36.5%;
    min-width: 480px;
    padding: 44px 56px 44px 64px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0));
}

.apf_mv_en {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 17px;
    color: #AE8D5E;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.apf_mv_title {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2;
    color: #333;
    margin-bottom: 24px;
}

.apf_mv_line {
    display: block;
    width: 100%;
    max-width: 475px;
    height: 1px;
    background-color: #AE8D5E;
    margin-bottom: 24px;
}

.apf_mv_lead {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 18px;
    line-height: 2;
    color: #333;
}

@media (max-width: 1279px) {
    .apf_mv_panel {
        min-width: 420px;
        padding: 32px 40px;
    }

    .apf_mv_title {
        font-size: 38px;
    }

    .apf_mv_lead {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .apf_mv {
        overflow: visible;
    }

    .apf_mv::after {
        display: none;
    }

    .apf_mv_photo img {
        height: auto;
        aspect-ratio: 390 / 375;
    }

    .apf_mv_panel {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 88%;
        min-width: 0;
        margin-top: -23vw;
        padding: 20px 24px 24px;
        background: rgba(255, 255, 255, 0.92);
        z-index: 2;
    }

    .apf_mv_en {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .apf_mv_title {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .apf_mv_line {
        margin-bottom: 12px;
    }

    .apf_mv_lead {
        font-size: 12.5px;
    }
}

/* ---------- 採用の流れ ---------- */
.apf_flow {
    background-image: url("/recruit/assets/img/form/flow-bg.jpg");
    background-size: 12px 12px;
    background-repeat: repeat;
    padding: 92px 0 120px;
}

/* デザインのコンテンツ幅は1108px（カード520×2+間67） */
.apf_flow .apf_inner {
    width: 1108px;
}

.apf_flow_list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px 67px;
    margin-bottom: 45px;
}

.apf_flow_item {
    position: relative;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.18);
    padding: 26px 33px 32px;
}

.apf_flow_head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #AE8D5E;
}

.apf_flow_num {
    font-family: "Noto Serif JP", serif;
    font-weight: 400;
    font-size: 53px;
    line-height: 1;
    color: #AE8D5E;
    letter-spacing: 0.05em;
}

.apf_flow_name {
    font-family: "Noto Serif JP", serif;
    font-weight: 400;
    font-size: 24px;
    color: #333;
    letter-spacing: 0.05em;
}

.apf_flow_text {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 17px;
    line-height: 2;
    color: #333;
    text-align: justify;
    margin: 16px 0 22px;
}

.apf_flow_photo {
    margin-top: auto;
}

.apf_flow_photo img {
    width: 100%;
    aspect-ratio: 456 / 237;
    object-fit: cover;
    object-position: center;
}

/* PC: 1→2, 3→4 の間の右向き矢印（次カード左端に先端がかかる位置） */
.apf_flow_item-arrow::after {
    content: "";
    position: absolute;
    top: 45.7%;
    right: -81px;
    width: 30px;
    height: 50px;
    background-color: #AE8D5E;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

@media (max-width: 767px) {
    .apf_flow {
        padding: 68px 0 80px;
    }

    .apf_flow .apf_inner {
        width: 1140px;
    }

    .apf_flow_list {
        grid-template-columns: 1fr;
        gap: 52px;
        margin-bottom: 72px;
    }

    .apf_flow_item {
        padding: 18px 21px 24px;
    }

    /* SP: 各カードの間の下向き矢印 */
    .apf_flow_item-arrow::after,
    .apf_flow_item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: auto;
        right: auto;
        bottom: -50px;
        left: 50%;
        transform: translateX(-50%);
        width: 31px;
        height: 19px;
        background-color: #AE8D5E;
        clip-path: polygon(0 0, 100% 0, 50% 100%);
    }

    .apf_flow_item:last-child::after {
        display: none;
    }

    .apf_flow_num {
        font-size: 38px;
    }

    .apf_flow_name {
        font-size: 18px;
    }

    .apf_flow_text {
        font-size: 14px;
        margin: 12px 0 16px;
    }
}

/* 見学・相談カード */
.apf_visit {
    display: flex;
    align-items: center;
    gap: 48px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.18);
    padding: 40px 41px 40px 74px;
}

.apf_visit_body {
    flex: 1;
    min-width: 0;
}

.apf_visit_title {
    font-family: "Noto Serif JP", serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.4;
    letter-spacing: 0.125em;
    color: #333;
    text-align: center;
    margin-bottom: 24px;
}

.apf_visit_deco {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.apf_visit_deco_line {
    flex: 0 1 210px;
    height: 1px;
    background-color: #AE8D5E;
}

.apf_visit_deco_diamond {
    width: 11px;
    height: 11px;
    border: 1px solid #AE8D5E;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.apf_visit_text {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 18px;
    line-height: 2;
    color: #333;
    text-align: justify;
}

.apf_visit_photo {
    flex: 0 0 48.1%;
}

.apf_visit_photo img {
    width: 100%;
    aspect-ratio: 478 / 305;
    object-fit: cover;
}

@media (max-width: 1279px) {
    .apf_visit {
        padding: 40px;
    }

    .apf_visit_title {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .apf_visit {
        flex-direction: column;
        gap: 24px;
        padding: 38px 19px 28px;
    }

    .apf_visit_title {
        font-size: 19px;
    }

    .apf_visit_deco {
        margin-bottom: 20px;
    }

    .apf_visit_deco_line {
        flex: 0 1 120px;
    }

    .apf_visit_text {
        font-size: 14px;
    }

    .apf_visit_photo {
        flex: none;
        width: 100%;
    }

    .apf_visit_photo img {
        aspect-ratio: 287 / 183;
    }
}

/* ---------- よくある質問 ---------- */
.apf_faq {
    background-image: url("/recruit/assets/img/form/faq-bg.jpg");
    background-size: cover;
    background-position: center;
    padding: 116px 0;
}

.apf_faq_list {
    width: 949px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.apf_faq_item {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.apf_faq_q {
    display: flex;
    align-items: center;
    gap: 45px;
    width: 100%;
    padding: 22px 43px 22px 41px;
    text-align: left;
    cursor: pointer;
}

.apf_faq_icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 49.5px;
    height: 49.5px;
    border-radius: 50%;
    background-color: #0060DF;
    color: #fff;
    font-family: "Noto Serif JP", serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1;
    padding-bottom: 4px;
}

.apf_faq_q_text {
    flex: 1;
    font-family: "Noto Serif JP", serif;
    font-weight: 500;
    font-size: 24px;
    letter-spacing: 4px;
    color: #444;
    line-height: 1.5;
}

.apf_faq_arrow {
    flex-shrink: 0;
    width: 15px;
    height: 9px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 8.25' fill='none'%3E%3Cpath d='M1 1L7.5 7.25L14 1' stroke='%23AAAAAA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition: transform 0.3s ease;
}

.apf_faq_item.is-open .apf_faq_arrow {
    transform: rotate(180deg);
}

.apf_faq_a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.apf_faq_a_inner {
    overflow: hidden;
}

.apf_faq_item.is-open .apf_faq_a {
    grid-template-rows: 1fr;
}

.apf_faq_a_inner p {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 17px;
    line-height: 2;
    letter-spacing: 4px;
    color: #444;
    padding: 0 43px 32px 136px;
}

@media (max-width: 767px) {
    .apf_faq {
        background-image: url("/recruit/assets/img/form/faq-bg-sp.jpg");
        padding: 88px 0 76px;
    }

    .apf_faq_list {
        width: 330px;
        max-width: 92%;
        gap: 32px;
    }

    .apf_faq_item {
        border-radius: 8px;
    }

    .apf_faq_q {
        gap: 13px;
        padding: 14px 16px;
    }

    .apf_faq_icon {
        width: 37px;
        height: 37px;
        font-size: 24px;
        padding-bottom: 2px;
    }

    .apf_faq_q_text {
        font-size: 19px;
        letter-spacing: 4px;
        line-height: 1.4;
    }

    .apf_faq_arrow {
        width: 13px;
        height: 7px;
    }

    .apf_faq_a_inner p {
        font-size: 13px;
        letter-spacing: 1px;
        padding: 0 16px 20px 66px;
    }
}

/* ---------- 応募フォーム ---------- */
.apf_apply {
    background-image: url("/recruit/assets/img/form/flow-bg.jpg");
    background-size: 12px 12px;
    background-repeat: repeat;
    padding: 118px 0 176px;
}

.apf_card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.18);
    padding: 78px 119px 110px;
}

/* セレクト4項目 2カラム */
.apf_form_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 56px;
    margin-bottom: 48px;
}

.apf_field {
    width: 100%;
}

.apf_field + .apf_field {
    margin-top: 48px;
}

.apf_form_grid .apf_field + .apf_field {
    margin-top: 0;
}

.apf_label {
    display: block;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
}

.apf_input_set {
    display: flex;
    align-items: stretch;
}

.apf_badge {
    flex: 0 0 83px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #AE8D5E;
    border-radius: 8px 0 0 8px;
    color: #fff;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 16px;
}

.apf_badge-optional {
    background-color: #B3B3B3;
}

.apf_input_set input,
.apf_input_set select,
.apf_input_set textarea {
    flex: 1;
    min-width: 0;
    height: 64px;
    background-color: #fff;
    border: 1px solid #DDD;
    border-radius: 0 8px 8px 0;
    padding: 0 16px;
    font-family: var(--sans);
    font-size: 16px;
    color: #333;
}

.apf_input_set input:focus,
.apf_input_set select:focus,
.apf_input_set textarea:focus {
    outline: 2px solid #AE8D5E;
    outline-offset: -1px;
}

.apf_select_wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
}

.apf_select_wrap select {
    width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21.4 11.7' fill='none'%3E%3Cpath d='M1 1L10.7 10.7L20.4 1' stroke='%23AE8D5E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 19px auto;
    padding-right: 44px;
}

.apf_field-note textarea {
    height: 220px;
    padding: 14px 16px;
    resize: vertical;
    line-height: 1.8;
}

/* 各入力の幅（PCデザイン準拠） */
.apf_field-name  .apf_input_set { max-width: 628px; }
.apf_field-school .apf_input_set { max-width: 628px; }
.apf_field-address .apf_input_set { max-width: 785px; }
.apf_field-tel   .apf_input_set { max-width: 685px; }
.apf_field-email .apf_input_set { max-width: 525px; }
.apf_field-note  .apf_input_set { max-width: 907px; }

/* プライバシー */
.apf_privacy {
    border: 1px solid #DDD;
    padding: 44px 40px;
    margin-top: 96px;
}

.apf_privacy_title {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 4px;
    color: #333;
    text-align: center;
    margin-bottom: 24px;
}

.apf_privacy_text {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 2;
    color: #333;
    max-width: 753px;
    margin: 0 auto;
}

.apf_privacy_tel {
    color: #AE8D5E;
    font-weight: 500;
    font-size: 20px;
    white-space: nowrap;
    margin: 0 0.5em;
}

/* 送信ボタン */
.apf_submit {
    margin-top: 48px;
    text-align: center;
}

.apf_submit_btn {
    display: inline-block;
    width: 502px;
    max-width: 100%;
    height: 107px;
    background-color: #AE8D5E;
    border: 1px solid #AE8D5E;
    color: #fff;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.apf_submit_btn:hover {
    opacity: 0.8;
}

@media (max-width: 1279px) {
    .apf_card {
        padding: 56px 6% 72px;
    }
}

@media (max-width: 767px) {
    .apf_apply {
        padding: 88px 0 94px;
    }

    /* SPのみセレクト4項目の並び順: 応募職種→性別→雇用形態→見学希望（デザイン準拠・表示順のみ） */
    .apf_form_grid .apf_field:nth-child(1) { order: 1; }
    .apf_form_grid .apf_field:nth-child(2) { order: 3; }
    .apf_form_grid .apf_field:nth-child(3) { order: 2; }
    .apf_form_grid .apf_field:nth-child(4) { order: 4; }

    .apf_inner {
        max-width: 94%;
    }

    .apf_card {
        padding: 28px 10px 56px;
        width: 100%;
        max-width: 348px;
        margin: 0 auto;
    }

    .apf_form {
        width: 325px;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 6px;
    }

    .apf_form_grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }

    .apf_field + .apf_field {
        margin-top: 32px;
    }

    .apf_label {
        font-size: 16px;
        margin-bottom: 11px;
    }

    .apf_badge {
        flex: 0 0 45px;
        font-size: 12px;
    }

    .apf_input_set input,
    .apf_input_set select,
    .apf_input_set textarea {
        height: 48px;
        font-size: 16px;
    }

    .apf_select_wrap select {
        background-position: right 12px center;
        background-size: 15px auto;
        padding-right: 34px;
    }

    .apf_field-note textarea {
        height: 165px;
        padding: 10px 12px;
    }

    .apf_field-name .apf_input_set,
    .apf_field-school .apf_input_set,
    .apf_field-address .apf_input_set,
    .apf_field-tel .apf_input_set,
    .apf_field-email .apf_input_set,
    .apf_field-note .apf_input_set {
        max-width: 100%;
    }

    .apf_privacy {
        padding: 28px 15px;
        margin-top: 64px;
    }

    .apf_privacy_title {
        font-size: 15px;
        letter-spacing: 2px;
        margin-bottom: 16px;
    }

    .apf_privacy_text {
        font-size: 13px;
    }

    .apf_privacy_tel {
        font-size: 15px;
    }

    .apf_submit {
        margin-top: 40px;
    }

    .apf_submit_btn {
        width: 277px;
        height: 59px;
        font-size: 16px;
    }
}

/* ============================================
   mailformpro.css（mfp_element_*）の打ち消し
   mfpのJSが実行時に入力要素へクラス付与するため、
   ID付きセレクタで設計デザインを強制する
   ============================================ */
#mailformpro .apf_input_set input,
#mailformpro .apf_input_set select,
#mailformpro .apf_input_set textarea {
    box-shadow: none;
    margin: 0;
    vertical-align: baseline;
    border: 1px solid #DDD;
    border-radius: 0 8px 8px 0;
}

#mailformpro .apf_submit_btn {
    background: #AE8D5E;
    text-shadow: none;
    border-radius: 0;
    padding: 0;
    border: 1px solid #AE8D5E;
    outline: none;
}

#mailformpro .apf_submit_btn:hover {
    background: #AE8D5E;
    box-shadow: none;
    opacity: 0.8;
}
