/*!
 * ress.css • v5.0.2
 * MIT License
 * github.com/filipelinhares/ress
 */

.select_detail {

    padding: 0.5rem;
    background-color: #FFF;
    border-radius: 1rem;

    span {
        padding: 0.1rem 0.5rem;
        background: var(--base-color-bg-white);
        border-radius: var(--base-border-radius2);
        font-size: var(--base-font-size1);
        border: 2px solid var(--color-font-accent1);
        color: var(--color-font-accent1);
        margin: 4px;
        display: inline-block;
    }
}

/* 求人カード */
.job-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
}

.pageNavi {

    text-align: center;
    background-color: #FFF;
    border-radius: 3rem;
    margin: 0 auto;
    width: 100%;

    .kensu {
        width: 60%;
    }
    .back,.next {
        width: 20%;
        padding: 4px;
    }
    a {
        background-color: #000;
        border-radius: 100px;
        color: #FFF;
        text-decoration: none;
        display: inline-block;
        width: 4rem;
        line-height: 4rem;

        @media (min-width: 600px) {
            width: 5rem;
            line-height: 5rem;
        }
    }

    @media (min-width: 600px) {
        width: 90%;
        max-width: 580px;

        .kensu {
            width: 80%;
        }
        .back,.next {
            width: 10%;
        }
        a {
            width: 5rem;
            line-height: 5rem;
        }
    }

}

.job-card {
    background: white;
    border: 1px solid #eee;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
    border-top: 8px solid var(--color-font-accent1);

    &:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        border-color: var(--color-font-accent1);
    }

    .job-header {
        margin-bottom: 0;
    }

    .job-title {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #1f2937;

        @media (max-width: 480px) {
            font-size: 20px;
            line-height: 1.6;
        }

        a {
            text-decoration: none;
            color: #000;

            &:hover {
                color: var(--color-font-accent1);
                text-decoration: underline;
            }

        }

    }

    .company-name {
        color: #000;
        font-size: 18px;
        border-bottom: 1px solid var(--color-font-accent1);
        margin-bottom: 0.3rem;
    }

    .job-catch-copy {
        font-size: 22px;
        font-weight: 700;
        color: #059669;
        line-height: 1.4;
        margin-bottom: 0.2rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .job-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.7rem;
        margin: 1.2rem auto;
        max-width: 600px;
    }

    .tag {
        padding: 0.3rem 1rem;
        background: var(--base-color-bg-white);
        border-radius: var(--base-border-radius2);
        font-size: var(--base-font-size1);
        border: 2px solid var(--color-font-accent1);
        color: var(--color-font-accent1);
    }

    .tag-ms-m {
        padding: 0.3rem 1rem;
        background: orange;
        border-radius: var(--base-border-radius2);
        font-size: var(--base-font-size1);
        border: 2px solid orange;
        color: white;
    }

    .tag-ms-s {
        padding: 0.3rem 1rem;
        background: sienna;
        border-radius: var(--base-border-radius2);
        font-size: var(--base-font-size1);
        border: 2px solid sienna;
        color: white;
    }

    .job-salary {
        font-size: 22px;
        font-weight: 700;
        color: #000;
        margin: 1.2rem auto;
        max-width: 600px;
    }

    .job-description {
        color: #4b5563;
        font-size: 18px;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .job-image {
        width: 100%;
        aspect-ratio: 2.5 / 1;
        background: var(--color-accent-bg);
        border-radius: 10px;
        margin-bottom: 1.2rem;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;

        &:hover {
            opacity: 0.9;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            max-width: 600px;
        }
    }

    .view-detail-btn {
        width: 100%;
        padding: 1rem;
        background: var(--color-bg-accent2);
        color: white;
        border-radius: var(--base-border-radius2);
        font-size: var(--base-font-title-size2);
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s;

        &:hover {
            opacity: 0.9;
        }
    }

    a.view-detail {
        width: 100%;
        padding: 1rem;
        background: var(--color-bg-accent1);
        color: white;
        border-radius: var(--base-border-radius2);
        font-size: var(--base-font-title-size2);
        font-weight: bold;
        transition: background 0.3s;
        display: block;
        text-align: center;
        text-decoration: none;

        &:hover {
            opacity: 0.9;
        }
    }

    .keisaikikan {
        text-align: right;
        margin-top: 4px;
    }

}

.link-toppage {
    a {
        width: 90%;
        margin: 0 auto;
        max-width: 600px;
        padding: 1rem;
        background: var(--color-bg-accent1);
        color: white;
        border-radius: var(--base-border-radius2);
        font-size: var(--base-font-title-size2);
        font-weight: bold;
        transition: background 0.3s;
        display: block;
        text-align: center;
        text-decoration: none;

        &:hover {
            opacity: 0.9;
        }
    }
}
