@charset "utf-8";

/* =========================
   採用情報エリア
========================= */

.recruit_area {
    margin: 50px 20px;
}

.fv_sub_title {
    display: block;
    text-align: center;
}

/* 採用情報の白いカード */
.recruit_tab_area {
    width: 100%;
    max-width: 850px;
    margin: 35px auto 0;
    padding: 30px 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #9acb74;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

/* タブ */
.recruit_tab_list {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.recruit_tab_list li {
    width: 50%;
}

.recruit_tab {
    width: 100%;
    padding: 13px 2px;
    background: #fff;
    border: 1px solid #9acb74;
    color: #5e9f45;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.recruit_tab.active {
    background: #6abf4b;
    color: #fff;
}

/* 採用タブ：光が流れるホバーエフェクト */
.recruit_tab {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* 光の線 */
.recruit_tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;

    width: 100%;
    height: 100%;

    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.55),
            transparent);

    transition: left 0.3s ease;
    z-index: -1;
}

/* ホバーした時に光を流す */
.recruit_tab:hover::before {
    left: 120%;
}

/* タブの中身 */
.recruit_panel {
    display: none;
}

.recruit_panel.active {
    display: block;
}

/* 写真 */
.recruit_photo {
    width: 100%;
    margin-bottom: 30px;
}

.recruit_photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* 採用情報テキスト */
.recruit_info {
    width: 100%;
    margin: 0 auto;
}

.recruit_info_item {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid #d9e8cf;
}

.recruit_info_item dt {
    margin-bottom: 6px;
    color: #5e9f45;
    font-weight: 500;
}


/* 福利厚生・研修制度の箇条書き */
.recruit_info_list {
    padding-left: 1.2em;
}

.recruit_info_list li {
    list-style: disc;
}

.recruit_info_list li::marker {
    color: #6abf4b;
}

/* ボタンエリア */
.recruit_button_area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 40px;
}

/* エントリーボタン */
.recruit_btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 260px;
    height: 64px;

    background: linear-gradient(90deg, #6bd286 0%, #5bb852 100%);
    color: #fff;
    font-size: 18px;

}

/* 見学会ボタン */
.recruit_btn_orange {
    background: linear-gradient(90deg, #ffbd4a 0%, #f3a52c 100%);
}

/* ボタン文字 */
.recruit_btn span {
    position: relative;
    z-index: 2;
    transform: translateX(-20px);

    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.recruit_btn small {
    font-size: 12px;
    font-weight: 400;
}

/* 白い線 */
.recruit_btn::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;

    width: 50px;
    height: 1px;

    background: #fff;
    transform: translateY(-50%);
    z-index: 1;
}

/* 動く丸 */
.recruit_btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 42px;

    width: 8px;
    height: 8px;
    border-radius: 50%;

    background: #fff;
    transform: translateY(-50%);
    transition: right 0.4s ease;
    z-index: 3;
}

/* ホバー時 */
.recruit_btn:hover::after {
    right: 6px;
}

/* =========================
   PC版
========================= */

@media(min-width: 768px) {
    .recruit_area {
        margin: 100px 40px;
    }

    .recruit_area h2 {
        width: fit-content;
        margin: 0 auto;
        position: relative;
        text-align: center;
    }

    .recruit_tab_area {
        margin-top: 80px;
        padding: 40px 30px;
    }

    .recruit_tab {
        padding: 14px 10px;
        font-size: 16px;
    }

    .recruit_photo {
        margin-bottom: 40px;
    }

    .recruit_info {
        max-width: 680px;
    }

    .recruit_info_item {
        display: flex;
        gap: 30px;
    }

    .recruit_info_item dt {
        width: 140px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .recruit_btn {
        width: 280px;
        height: 70px;
        font-size: 20px;
        font-weight: 400;
    }
}

/* =========================
   採用までの流れ
========================= */

.flow_area {
    margin: 100px 40px;
}

.flow_area h2 {
    width: fit-content;
    margin: 0 auto;
    position: relative;
    text-align: center;

}

.flow_area h2::after {
    content: "";
    display: block;
    width: 200px;
    height: 1px;
    background-color: #4C9153;
    margin: 10px auto 0;
}

/* リスト全体：スマホは縦並び */
.flow_list {
    display: flex;
    flex-direction: column;
    gap: 30px;

    max-width: 320px;
    margin: 40px auto 0;


}

/* 1つずつのカード */
.flow_item {
    position: relative;

    width: 100%;
    min-height: 145px;
    padding: 36px 20px 24px;

    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #6abf4b;
    border-radius: 8px;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
    text-align: center;
}

/* 上の番号丸 */
.flow_number {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    background: #fff;
    border: 1px solid #6abf4b;
    border-radius: 50%;

    color: #555;
    font-size: 13px;
    font-weight: 700;
}

/* アイコン */
.flow_icon {
    width: 56px;
    margin: 0 auto 14px;
}

.flow_icon img {
    width: 100%;
    height: auto;
    display: block;
}

/* 下のテキスト */
.flow_text {
    color: #555;
    font-size: 15px;
    font-weight: 500;
}

/* =========================
   PC版
========================= */

@media (min-width: 768px) {
    .flow_area {
        margin: 200px 40px;
    }

    /* PCでは横並び */
    .flow_list {
        flex-direction: row;
        justify-content: center;
        gap: 22px;

        max-width: 980px;
        margin-top: 50px;
    }

    .flow_item {
        width: 160px;
        min-height: 170px;
        padding: 38px 14px 24px;
    }

    .flow_number {
        top: -24px;
        width: 50px;
        height: 50px;
        font-size: 13px;
    }

    .flow_icon {
        width: 58px;
        margin-bottom: 16px;
    }

    .flow_text {
        font-size: 14px;
    }
}

/* =========================
   左からフェードイン
========================= */

.flow_item {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 表示された時 */
.flow_item.show {
    opacity: 1;
    transform: translateX(0);
}

@media(min-width: 768px) {
    .flow_item:nth-child(1) {
        transition-delay: 0s;
    }

    .flow_item:nth-child(2) {
        transition-delay: 0.1s;
    }

    .flow_item:nth-child(3) {
        transition-delay: 0.2s;
    }

    .flow_item:nth-child(4) {
        transition-delay: 0.3s;
    }

    .flow_item:nth-child(5) {
        transition-delay: 0.4s;
    }

    .flow_item:nth-child(6) {
        transition-delay: 0.5s;
    }
}