@charset "UTF-8";

/* =========================================================
   RECRUIT LIST PAGE
   Mobile First
========================================================= */

body {
    background-color: var(--color-white);
}
/* =========================================================
   Recruit list
========================================================= */

.recruit-list {
    position: relative;
    z-index: 5;

    margin-top: -105px;
    padding:
        0
        var(--content-padding-sp)
        72px;

    background-color: transparent;
    /* background-color: #fff; */
}

.recruit-list__background {
    position: relative;
    z-index: 6;

    width: 100%;
    margin-inline: auto;
    padding: 46px 16px;

    border-radius: 6px;
    background-color: #ededed8c;
    opacity: 1;
}
.recruit-list__inner {
    width: 100%;
    margin-inline: auto;
}


/* =========================================================
   Job card
========================================================= */

.job-listing {
    padding: 30px 20px 34px;
    border-radius: 6px;
    background-color: var(--color-white);
}

.job-listing + .job-listing {
    margin-top: 34px;
}

.job-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "title"
        "image"
        "text";
    row-gap: 26px;
}


/* =========================================================
   Job title
========================================================= */

.job-title {
    grid-area: title;
    position: relative;
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
}

.job-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 96px;
    height: 1px;
    background-color: var(--color-primary);
}


/* =========================================================
   Job image
========================================================= */

.image-wrap {
    grid-area: image;
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #c8c8c8;
}

.image-wrap::before {
    content: "";
    display: block;
    padding-top: 70%;
}

.job-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   Job text
========================================================= */

.text-wrap {
    grid-area: text;
    min-width: 0;
}

.list-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.job-message {
    margin: 0 0 18px;
    color: var(--color-black);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
}

.job-meta {
    margin: 0;
    font-size: 13px;
    line-height: 2;
}

.job-meta + .job-meta {
    margin-top: 4px;
}


/* =========================================================
   Detail button
========================================================= */

.joblink-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.details-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 132px;
    min-height: 46px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    color: var(--color-white);
    background-color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition:
        background-color var(--transition-base),
        transform var(--transition-base);
}

.details-link::before {
    content: "›";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: var(--color-primary);
    background-color: var(--color-white);
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
}


/* =========================================================
   Empty / error message
========================================================= */

.recruit-list__inner > p {
    margin: 0;
    padding: 40px 20px;
    border-radius: 6px;
    background-color: var(--color-white);
    text-align: center;
}


/* =========================================================
   Loader
========================================================= */

.loader {
    width: 42px;
    height: 42px;
    margin: 50px auto;
    border: 4px solid rgb(58 117 187 / 20%);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: loader-rotate 0.8s linear infinite;
}

@keyframes loader-rotate {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   Tablet
========================================================= */

@media screen and (min-width: 768px) {

    .recruit-list {
        margin-top: -145px;
        padding-inline: var(--content-padding-pc);
        padding-bottom: 150px;
    }

    .recruit-list__background {
        width: min(100%, 1040px);
        padding: 58px 42px;
    }

    .job-listing {
        width: 100%;
        min-width: 0;
        padding: 42px 42px 46px;
        overflow: hidden;
    }

    .job-listing + .job-listing {
        margin-top: 48px;
    }

    .job-content {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(0, 1.1fr);
        grid-template-areas:
            "title title"
            "image text";
        column-gap: 42px;
        row-gap: 34px;
        align-items: stretch;
        width: 100%;
        min-width: 0;
    }

    .job-title {
        min-width: 0;
        padding-bottom: 16px;
        font-size: 20px;
        overflow-wrap: anywhere;
    }

    .job-title::after {
        width: 160px;
    }

    .image-wrap {
        min-width: 0;
    }

    .image-wrap::before {
        padding-top: 78%;
    }

    .text-wrap,
    .list-wrap {
        width: 100%;
        min-width: 0;
    }

    .job-message {
        font-size: 15px;
    }

    .job-meta {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .joblink-wrap {
        margin-top: auto;
        padding-top: 30px;
    }

    .details-link {
        min-width: 148px;
        min-height: 48px;
        font-size: 13px;
    }
}


/* =========================================================
   PC
========================================================= */

@media screen and (min-width: 1024px) {

    .recruit-list {
        /* margin-top: -205px;
        padding-bottom: 190px; */
        margin-top: -315px;
        background-color: transparent;
    }

    .recruit-list__background {
        width: min(
            calc(100% - 160px),
            1260px
        );
        padding: 72px 64px;
    }

    .recruit-list__inner {
        width: min(100%, 1060px);
    }

    /* .job-listing {
        padding: 54px 58px 58px;
    } */
         .job-listing {
        width: 100%;
        min-width: 0;
        padding: 54px 58px 58px;
        overflow: hidden;
    }

    .job-listing + .job-listing {
        margin-top: 60px;
    }

    /* .job-content {
        grid-template-columns:
            minmax(330px, 0.92fr)
            minmax(420px, 1.08fr);
        column-gap: 58px;
        row-gap: 40px;
    } */
    .job-content {
        grid-template-columns:
            minmax(0, 0.92fr)
            minmax(0, 1.08fr);
        grid-template-areas:
            "title title"
            "image text";
        column-gap: 58px;
        row-gap: 40px;
        align-items: stretch;
        width: 100%;
        min-width: 0;
    }
    /* .job-title {
        padding-bottom: 18px;
        font-size: 22px;
    } */
         .job-title {
        min-width: 0;
        padding-bottom: 18px;
        font-size: 22px;
        overflow-wrap: anywhere;
    }


    .job-title::after {
        width: 220px;
    }

    .image-wrap {
        width: 100%;
        min-width: 0;
    }

    .image-wrap::before {
        padding-top: 76%;
    }

    .text-wrap {
        width: 100%;
        min-width: 0;
    }

    .list-wrap {
        width: 100%;
        min-width: 0;
    }

    .job-message {
        margin-bottom: 20px;
        font-size: 15px;
        line-height: 1.9;
        overflow-wrap: anywhere;
    }

    .job-meta {
        max-width: 100%;
        font-size: 14px;
        line-height: 2.05;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .joblink-wrap {
        margin-top: auto;
        padding-top: 30px;
    }

    .details-link {
        min-width: 160px;
        min-height: 50px;
    }
}


/* =========================================================
   Large PC
========================================================= */

@media screen and (min-width: 1280px) {

    .recruit-list__background {
        width: min(calc(100% - 300px), 1380px);
        padding: 78px 72px;
    }

    .recruit-list__inner {
        width: min(100%, 1120px);
    }

    .job-listing {
        padding: 58px 64px 62px;
    }

    .job-content {
        grid-template-columns:
            minmax(0, 0.94fr)
            minmax(0, 1.06fr);
        column-gap: 68px;
    }
}


/* =========================================================
   Hover
========================================================= */

@media (hover: hover) and (pointer: fine) {

    .details-link:hover {
        background-color: var(--color-primary-dark);
        transform: translateY(-2px);
    }
}




.site-footer {
    background-color: var(--color-primary);
}

/* =========================================================
   Recruit page Contact adjustment
========================================================= */

    .top-contact__inner {
        position: relative;
    }
/* 
.recruit-list + .top-contact {
    position: relative;
    z-index: 10;

    width: 100%;
    margin: 0;
    padding:
        0
        var(--content-padding-sp)
        72px;

    color: var(--color-white);
    background-color: var(--color-primary);
    overflow: visible;
} */
    /* .top-contact__inner {
        position: absolute;

   
        top: 0;
        left: 50%;

        width: min(calc(100% - 40px), 1040px);
        max-width: 1040px;

        transform: translateX(-50%);
    } */



@media screen and (min-width: 768px) {

    .recruit-list + .top-contact {
        padding:
            0
            var(--content-padding-pc)
            90px;
    }



    .recruit-list + .top-contact .top-contact__heading {
        grid-area: heading;
    }

}

@media screen and (min-width: 1024px) {




         .top-contact {
        position: relative;

        /* Contactカードの高さを確保してFooterの食い込みを防ぐ */
        min-height: 295px;
        padding-bottom: 60px;
    }

    .top-contact__inner {
        position: absolute;

        /* Contactカードを画面中央に配置 */
        top: 0;
        left: 50%;

        width: min(calc(100% - 160px), 1040px);
        max-width: 1040px;

        transform: translateX(-50%);
    }

    .site-footer {
        position: relative;
        z-index: 1;
    }
    .top-contact::before {
    content: "";
    display: block;
    position: absolute;
    top: -34%;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: #fff;
}
}
