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

.title1 {
    color: var(--base-color-font-white);
    font-family: var(--font-family-accent1);
    font-size: 20px;

    position: relative;
    z-index: 1;

    .__text1 {
        font-size: 1.1rem;

        .__w1 {}

        .__w2 {
            font-size: 1rem;
        }

        .__w3 {}
    }

    .__text2 {
        margin-top: 0.5rem;
    }

    .__accent1 {
        >span {
            display: inline-block;
            aspect-ratio: 1/1;
            color: var(--base-color-font-white);
            background: orange;
            line-height: 1;
            text-align: center;
            font-size: 1.25em;
            padding: 0.25rem;
            border-radius: 3px;

            &:nth-child(1) {
                transform: rotate(5deg);
            }

            &:nth-child(2) {
                transform: rotate(-23deg);
            }
        }
    }

    .__accent2 {
        >span {
            display: inline-block;
            aspect-ratio: 1/1;
            color: var(--base-color-font-white);
            background: sienna;
            line-height: 1;
            text-align: center;
            font-size: 1.25em;
            padding: 0.125rem;
            border-radius: 3px;

            &:nth-child(1) {
                transform: rotate(5deg);
            }

            &:nth-child(2) {
                transform: rotate(23deg);
            }
        }
    }

}

.switch-container {
    display: grid;
    margin: 1rem -1rem 0;
    background: var(--base-color-bg-white);
    box-shadow: var(--base-box-shadow1);
    font-size: 1rem;
    padding: 1rem 1rem 1.5rem;

    position: relative;

    .illust1 {
        position: absolute;
        top: -5rem;
        left: -4rem;
        z-index: 1;
    }

    .illust2 {
        position: absolute;
        bottom: -5rem;
        right: -3rem;
        z-index: 1;
    }

    .illust3 {
        position: absolute;
        top: 0;
        right: 0;
        transform: translate(0, calc(-1rem - 35%));
        z-index: 1;

        display: inline-flex;
        width: auto;
        align-items: flex-start;
        justify-content: flex-end;

        .__img1 {
            flex: 0 0 9rem;
            width: 9rem;
            transform: rotate(-15deg);
            margin-right: -0.5rem;
        }

        .__text1 {
            background: red;
            color: white;
            flex: 0 0 auto;
            display: inline-block;
            font-weight: bold;
            padding: 0.25rem 0.5rem;
            line-height: 1;
        }
    }

    >* {
        grid-area: 1 / 1;
        transition: all 2.0s ease-in-out;
    }
}


.switch-auto>*:nth-child(2) {
    /*animation: fadeSwitch 20s infinite;*/
}

@keyframes fadeSwitch {

    0%,
    35% {
        opacity: 0;
    }

    50%,
    85% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.ccopy1 {
    background: var(--base-color-bg-white);
    font-weight: 500;

    .__c1 {
        font-size: 1.25rem;
        margin-right: 0.25rem;
    }

    .__c2 {
        font-size: 1.25rem;
        margin-right: 0.25rem;
    }

    .__text1 {

        .__w2,
        .__w1 {
            border-bottom: 3px solid var(--color-border-accent2);
        }
    }

    .__text2 {
        margin-top: 1rem;

        .__w2,
        .__w1 {
            border-bottom: 3px solid var(--color-border-accent3);
        }
    }
}

.illust1 {
    width: 150px;
    height: auto;

    @media (min-width: 769px) {
        width: 200px;
    }
}

.illust2 {
    width: 150px;
    height: auto;

    @media (min-width: 769px) {
        width: 200px;
    }
}




/* 検索ボックス */
.search-box {
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 1.5rem;

    .search-section {
        margin-bottom: 4rem;

        &:last-child {
            margin-bottom: 0;
        }
    }

    .i1 {
        text-align: left;
        font-weight: 600;
        color: var(--color-font-accent1);

        .__inr1 {
            display: inline-block;
        }

        .__c1 {
            color: var(--color-font-accent2);
            font-weight: bold;
            font-size: 1.25rem;
        }
    }

    .search-title {
        font-size: var(--base-font-title-size1);
        background: var(--color-bg-accent1);
        color: var(--base-color-font-white);
        padding: 1rem;
        margin-bottom: 2rem;
        position: relative;

        &::after {
            content: "";
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            border-style: solid;
            border-width: 12px 10px 0 10px;
            border-color: var(--color-bg-accent1) transparent transparent transparent;
        }

        .__bold {
            font-weight: 500;
            font-size: 1.25em;
            display: inline-block;
            background: var(--base-color-bg-white);
            color: var(--color-font-accent1);
            padding: 0 1rem;
            line-height: 1.5;
            border-radius: 100vh;
            color: var(--color-font-accent2);
        }
    }

    .option-grid {
        display: grid;
        gap: 2rem 1rem;
        grid-template-columns: 1fr;
        margin-top: 1.5rem;

        &.horizontal {
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));


            @media (max-width: 480px) {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            }
        }

        @media (min-width: 769px) {
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }
    }

    .option-btn {
        padding: 1.5rem 1.2rem 1rem;
        background: var(--base-color-bg-white);
        border: 2px solid var(--color-border-accent1);
        border-radius: var(--base-border-radius1);
        font-size: var(--base-font-title-size2);
        text-align: left;
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 0 6px 0 var(--color-bg-accent1);

        position: relative;

        &::before {
            content: '\f0c8';
            font-family: "Font Awesome 6 Free";
            font-weight: 400;
            /* Regular */
            position: absolute;
            display: block;
            line-height: 1;
            top: 0.5rem;
            left: 0.5rem;
            z-index: 1;
            color: var(--color-border-accent1);
        }

        &.selected {
            background: var(--color-bg-accent3);
            box-shadow: none;
            transform: translateY(4px);

            &::before {
                content: '\f14a';
                /* check-square */
                font-weight: 900;
                /* Solid */
                color: var(--color-bg-accent1);
            }
        }

        @media (min-width: 769px) {
            &:hover:not(.selected) {
                opacity: 0.5;
            }
        }



    }

    #age-sec .option-btn {
        text-align: center;
        font-weight: 600;
        letter-spacing: 2px;

        .__accent1 {
            display: inline-block;
            text-align: center;
            padding: 0.125rem 1rem;
            background: orange;
            color: white;
        }

        .__accent2 {
            display: inline-block;
            text-align: center;
            padding: 0.125rem 1rem;
            background: sienna;
            color: white;
        }
    }

    #work-sec .option-btn {
        margin-top: 1.5rem;

        .__icon1 {
            font-family: var(--font-family-accent2);
            position: absolute;
            top: 0;
            left: 50%;
            transform: translate(-50%, -50%);
            display: block;
            font-size: 1.5rem;
            border-radius: 50%;
            padding-bottom: 0.375rem;
            display: flex;
            width: 2rem;
            height: 2rem;
            align-items: center;
            justify-content: center;
            background: var(--color-bg-accent1);
            color: white;
        }

        .__title1 {
            font-size: var(--base-font-title-size1);
            color: var(--color-font-accent1);
            font-weight: bold;
        }
    }

    @media (max-width: 769px) {
        #riasec-A {
            .__title1 {
                letter-spacing: -1px;
            }
        }
    }

    #area-sec .option-btn {
        letter-spacing: 1px;
        padding: 1rem;
        text-align: center;
    }

    .option-description {
        font-size: var(--base-font-size1);
        margin-top: 0.3rem;
        display: block;
        padding-top: 4px;
        border-top: 1px solid var(--color-border-accent1);

        .__it1 {
            display: inline-flex;
            align-items: center;

            &::before {
                content: "";
                width: 0.5rem;
                height: 0.5rem;
                background: var(--color-bg-accent1);
                border-radius: 50%;
                aspect-ratio: 1/1;
                margin-right: 0.5rem;
            }
        }

        @media (max-width: 768px) {
            font-size: var(--base-font-size1);
        }
    }

    .search-submit {
        margin-top: 2rem;
        width: 100%;
        padding: 1.3rem 2rem;
        background: var(--color-bg-accent2);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 20px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.3s;

        &:hover {
            opacity: 0.9;
        }

        @media (min-width: 769px) {
            width: 500px;
            margin-left: auto;
            margin-right: auto;
        }
    }

    .search-button {
        margin-top: 2rem;
        width: 100%;
        padding: 1.3rem 2rem;
        background: var(--color-bg-accent2);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 20px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.3s;
        display: none;
        text-decoration: none;

        &:hover {
            opacity: 0.9;
        }

        @media (min-width: 769px) {
            width: 500px;
            margin-left: auto;
            margin-right: auto;
        }
    }
    .search-none {
        margin-top: 2rem;
        width: 100%;
        padding: 1.3rem 2rem;
        background: #AAA;
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 20px;
        font-weight: 600;
        transition: background 0.3s;
        display: block;
        text-decoration: none;

        @media (min-width: 769px) {
            width: 500px;
            margin-left: auto;
            margin-right: auto;
        }
    }

    .ln1 {
        text-align: center;
        margin-top: 2rem;

        a {
            background: black;
            color: white;
            display: inline-block;
            border-radius: 100vh;
            padding: 0.5rem 2rem;
        }
    }
}

.result-count {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--color-bg-accent1-light1);
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-font-accent1);

    @media (min-width: 769px) {
        width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* メインコンテンツ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--color-bg-primary-opacity1);

    @media (max-width: 768px) {
        padding: 2rem 1rem;
    }
}

.section-title {
    font-size: 32px;
    margin-bottom: 2rem;
    color: #1f2937;

    @media (max-width: 480px) {
        font-size: 26px;
    }
}

/* 求人カード */
.job-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;

    @media (min-width: 769px) {
        grid-template-columns: 1fr 1fr;
    }
}

.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: pointer;

    @media (max-width: 768px) {
        margin-left: -1rem;
        margin-right: -1rem;
    }

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

    .job-header {
        margin-bottom: 1.2rem;
    }

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

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

    .company-name {
        color: #6b7280;
        font-size: 18px;
    }

    .job-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.7rem;
        margin: 1.2rem 0;
    }

    .tag {
        padding: 0.5rem 1rem;
        background: var(--base-color-bg-gray);
        color: var(--base-color-font-white);
        border-radius: var(--base-border-radius2);
        font-size: var(--base-font-size1);
    }

    .job-salary {
        font-size: 22px;
        font-weight: 700;
        color: #059669;
        margin: 1.2rem 0;
    }

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

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

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

    .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;
        }
    }
}

.back-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 2rem;
    text-decoration: none;
    transition: background 0.3s;

    &:hover {
        background: #4b5563;
    }
}
