/*!
 * ress.css • v5.0.2
 * MIT License
 * github.com/filipelinhares/ress
 */
html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    word-break: normal;
    -moz-tab-size: 4;
    tab-size: 4;
}

*,
::before,
::after {
    background-repeat: no-repeat;
    box-sizing: inherit;
}

::before,
::after {
    text-decoration: inherit;
    vertical-align: inherit;
}

* {
    padding: 0;
    margin: 0;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

hr {
    overflow: visible;
    height: 0;
}

details,
main {
    display: block;
}

summary {
    display: list-item;
}

small {
    font-size: 80%;
}

[hidden] {
    display: none;
}

abbr[title] {
    border-bottom: 1px dotted;
    text-decoration: none;
}

a {
    background-color: transparent;
}

a:active,
a:hover {
    outline-width: 0;
}

code,
kbd,
pre,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

b,
strong {
    font-weight: bolder;
}

sub,
sup {
    position: relative;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

table {
    border-color: inherit;
    text-indent: 0;
}

input {
    border-radius: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-input-placeholder {
    color: inherit;
    opacity: 0.54;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

button,
input,
optgroup,
select,
textarea {
    font: inherit;
    margin: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button {
    border-color: transparent;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button[disabled],
[type="button"][disabled],
[type="reset"][disabled],
[type="submit"][disabled] {
    cursor: default;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    padding: 0;
    border-style: none;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    display: table;
    max-width: 100%;
    padding: 0;
    color: inherit;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    padding: 0;
}

::-webkit-datetime-edit,
::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute-field,
::-webkit-datetime-edit-second-field,
::-webkit-datetime-edit-millisecond-field,
::-webkit-datetime-edit-ampm-field {
    padding: 0;
}

::-webkit-inner-spin-button {
    height: auto;
}

%form-element {
    appearance: none;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: inline-block;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    padding: 0;
    margin: 0;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    @extend %form-element;
}

ul,
ol {
    list-style: none;
}

img {
    border-style: none;
    vertical-align: middle;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

body {
    font-family: var(--font-family);
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: 2px;
    background-image: radial-gradient(circle, var(--color-bg-primary-opacity1) calc(100% - 25rem), var(--color-bg-accent1-opacity1) calc(100% - 25rem)), url('../img/bg4.jpg');
    background-size: 100%;
    background-position: top left;
    background-repeat: repeat;
    color: var(--base-color-font-black);
    overflow-x: hidden;
    /* 横揺れ防止 */

    span.__unit {
        display: inline-block;
    }

    img {
        width: 100%;
        height: auto;
        vertical-align: middle;
    }

    button {
        color: var(--base-color-font-black);
    }

    @media (max-width: 768px) {
        background-image: radial-gradient(circle, var(--color-bg-primary-opacity1) 90%, var(--color-bg-accent1-opacity1) 90%), url('../img/bg4.jpg');
        font-size: 18px;
    }
}

/* ヘッダー */
header {
    background: #fff;
    overflow: hidden;

    .__text1 {
        white-space: nowrap;
    }

    .title1 {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--base-color-font-black);
        padding: 0 1rem;
        font-family: var(--font-family-accent3);

        .__w1 {
            flex: 0 0 auto;
            font-weight: 500;
        }
    }

    .logo1 {
        a {
            display: block;
            max-width: 300px;
        }
    }

    .__text1 {
        padding: 0.25rem 1rem;
        font-size: 0.75rem;
        background: #cccccc33;
    }
}

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    ul {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        font-size: 0.8rem;
        line-height: 1;
    }

    li {
        padding: 0.25rem 0;
        list-style: none;

        &:nth-child(1) {
            margin-right: 0.5rem;
            background: var(--color-bg-accent4);
            color: white;

            a {
                color: white;
            }

            .__c1 {
                font-size: 1.25rem;
                font-weight: bold;
            }
        }

        .__c2 {
            font-size: 1.25rem;
            color: var(--color-font-accent2);
            font-weight: bold;
        }

        .__c3 {
            margin: 0 0.25rem;
        }

        .__w1 {
            margin-left: 0.25rem;
            font-size: 1rem;
            text-decoration: underline;
            font-style: italic;

        }
    }

    a {
        text-decoration: none;
        color: var(--color-font-accent1);
        font-weight: 500;
        transition: opacity 0.3s;
        display: flex;
        align-items: center;

        &:hover {
            opacity: 0.7;
        }
    }
}

/* ヒーローセクション */
.hero {
    padding: 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;

    h1 {
        font-size: 42px;
        margin-bottom: 1rem;
        line-height: 1.4;

        @media (max-width: 768px) {
            font-size: 32px;
        }
    }

    p {
        font-size: 22px;
        margin-bottom: 2.5rem;
        opacity: 0.95;

        @media (max-width: 768px) {
            font-size: 20px;
        }
    }

    @media (max-width: 768px) {
        overflow: hidden;
    }
}

.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;

    .ccopy1 {
        margin-top: 0.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;
        }
    }

    #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;
        }
    }

    .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;
        }
    }
}

/* 求人詳細 */
.job-detail {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;

    &.active {
        display: block;
    }

    .detail-header {
        padding-bottom: 2rem;
        border-bottom: 2px solid #e5e7eb;
        margin-bottom: 2rem;

        @media (max-width: 768px) {
            flex-direction: column;
        }
    }

    .detail-logo {
        display: none;
    }

    .detail-info {
        h2 {
            font-size: 36px;
            margin-bottom: 0.7rem;
            color: #1f2937;

            @media (max-width: 768px) {
                font-size: 28px;
            }
        }
    }

    .detail-company {
        font-size: 22px;
        color: #6b7280;
        margin-bottom: 1.2rem;
    }

    .apply-btn {
        padding: 1.2rem 3rem;
        background: #059669;
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 22px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.3s;
        margin-top: 1.2rem;

        &:hover {
            background: #047857;
        }
    }

    .detail-section {
        margin-bottom: 2.5rem;

        h3 {
            font-size: 24px;
            margin-bottom: 1.2rem;
            color: #1f2937;
            font-weight: 600;
            border-left: 5px solid var(--color-accent-border);
            padding-left: 1rem;
        }

        p {
            font-size: 18px;
            line-height: 1.8;
            color: #4b5563;
        }

        ul {
            list-style: none;
            padding-left: 0;
        }

        li {
            padding: 0.7rem 0;
            color: #4b5563;
            line-height: 1.8;
            font-size: 18px;

            &::before {
                content: "・";
                margin-right: 0.5rem;
                color: var(--color-accent-border);
                font-weight: bold;
            }
        }
    }

    .main-image {
        width: 100%;
        aspect-ratio: 2 / 1;
        background: var(--color-accent-bg);
        border-radius: 12px;
        margin-bottom: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-accent-border);
        font-size: 24px;
        overflow: hidden;

        @media (max-width: 768px) {
            height: 250px;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .image-gallery {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;

        @media (max-width: 768px) {
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }
    }

    .gallery-item {
        width: 100%;
        aspect-ratio: 2 / 1;
        background: var(--color-accent-bg);
        border: 1px solid var(--color-accent-border);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-accent-border);
        font-size: 18px;
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.3s, box-shadow 0.3s;

        &:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        @media (max-width: 768px) {
            height: 150px;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}

.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;
    }
}

/* フッター */
footer {
    background: var(--color-bg-accent1);
    color: var(--base-color-font-white);
    padding: 2rem 1rem 1rem;
    text-align: center;
    margin-top: 4rem;
    font-size: 0 var(--base-font-size1);

    .farea1 {
        margin-top: 1rem;
    }

    .farea2 {
        ul {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin: 0 auto;

            li {
                width: 300px;
            }
        }

        a {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            background: white;
            color: var(--base-color-font-black);

            .__img1 {
                flex: 0 0 5rem;
                aspect-ratio: 1/1;

                >img {
                    height: 100%;
                    object-fit: cover;
                }
            }

            .__text1 {
                flex: 0 0 auto;

                .__w2 {
                    display: flex;
                    align-items: center;
                    font-size: 1rem;

                    &::before {
                        content: '';
                        display: block;
                        height: 1px;
                        background: #ccc;
                        flex: 1 1 auto;
                    }
                }
            }

            text-decoration: none;
        }
    }
}

/* ページ切り替え */
.page {
    display: none;

    &.active {
        display: block;

    }
}