@charset "utf-8";

:root {
    --home-navy: #213a85;
    --home-blue: #73aef7;
    --home-sky: #eef5ff;
    --home-line: #d8e5fb;
    --home-text: #22304a;
    --home-sub: #6c7892;
    --home-pink: #d554bf;
}

header {
    position: relative;
    z-index: 2;
}

.home-page {
    color: var(--home-text);
    overflow-x: hidden;
}

.sp_only {
    display: none;
}

/* Hero MV メインビジュアル */
.home-hero {
    background-image: url("/img/top/mv_background.svg");
    background-size: contain;
    background-repeat: no-repeat;
    margin: 60px 3%;
}
.home-hero__copy {
    padding: 60px 0 100px;
}
.home-hero__catch {
    font-size: clamp(54px, 9vw, 130px);
    font-family: "hiragino-mincho-pron", serif;
    font-weight: 600;
    font-style: normal;
    width: fit-content;
    margin: 0 auto 8%;
}
.home-hero__catch-em {
    color: #D12D9C;
}
.home-hero__catch-em:first-of-type {
    font-size: 1.54em;
    position: relative;
}
.home-hero__catch-em:first-of-type::before {
    content: "";
    width: 1.7em;
    height: 1.7em;
    position: absolute;
    top: 0;
    left: -0.35em;
    background-image: url("/img/top/mv_circle.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
}
.home-hero__subcatch {
    width: fit-content;
    margin: 0 auto;
    margin-right: 0;
    color: #D12D9C;
    font-size: clamp(16px, 2.4vw, 26px);
    line-height: 2.3;
    letter-spacing: 0.2em;
}

/* MV直下、余白の調整 */
.content {
    padding-top: 0;
}

.home-section {
    padding-bottom: 40px;
}

.home-section__head {
    margin-bottom: 18px;
}

.home-search-card {
    margin-bottom: 40px;
    padding: 30px 50px;
    background: #fff;
    box-shadow: 0px 3px 17px 0px rgba(219, 225, 240, 1);
}

.home-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 120px;
    gap: 12px;
}

.home-search-form .select-wrap,
.home-search-form .input-wrap {
    position: relative;
}

.home-search-form select,
.home-search-form input,
.home-search-form button {
    width: 100%;
    min-height: 48px;
    border: 0;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    appearance: none;
}

.home-search-form select,
.home-search-form input {
    padding: 0 15px 0 50px;
    color: var(--home-text);
    background: #eef0f5;
}

.home-search-form input[readonly] {
    cursor: default;
}

.home-search-form .select-wrap::before {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 10px;
    height: 7px;
    transform: translateY(-50%);
    background: #5ea2ef;
    clip-path: polygon(0 0, 100% 0%, 50% 100%);
    z-index: 2;
}

.job-summary-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 2;
}

.job-summary-icon.jobtype {
    background-image: url('/img/occupation.png');
}

.job-summary-icon.person {
    background-image: url('/img/icon_person.png');
}

.job-summary-icon.corporate {
    background-image: url('/img/icon_corporate.png');
}

.job-summary-icon.worklocation {
    background-image: url('/img/icon_location.png');
}

.job-summary-icon.salary {
    background-image: url('/img/icon_money.png');
}

.home-search-form button {
    border-radius: 3px;
    background: #0b4ea2;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.home-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.home-chip-list a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(90, 142, 204, 0.5);
    background: #fff;
    color: #5a8ecc;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
}

.home-chip-list a:hover {
    border-color: #5a8ecc;
}

.home-jobs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-job-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 18px rgba(51, 83, 154, 0.11);
    border-radius: 8px;
}

.home-job-card:hover .home-job-card__title {
    text-decoration: underline;
    color: #cf2e9d;
}
.home-job-card__thumb {
    text-align: center;
}
.home-job-card__thumb-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 170px;
    max-width: 400px;
}

/* 企業情報 */
.status-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.status-tag {
    display: inline-block;
    padding: 2px 6px;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.6;
}
.status-tag.new { background: #E55F56; }
.status-tag.staff { background: #5EA2EF; }
.status-tag.tyokusetsu { background: #2EB782; }
.status-tag.agent { background: #F0AF35; }


.home-job-card__body {
    padding: 25px 20px;
    display: grid;
    gap: 10px;
}

.home-job-card__title {
    margin: 0;
    color: #172238;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 700;
    display: block;
    overflow: visible;
}

.home-job-card__company-name {
    margin: 8px 0 0;
    color: #7c7f85;
    font-size: 14px;
    line-height: 1.5;
}

.home-job-card__meta {
    margin-top: 12px;
    display: grid;
    gap: 7px;
    color: #5d6881;
    font-size: 11px;
    line-height: 1.7;
}

.home-job-card__meta p {
    position: relative;
    margin: 0;
    padding-left: 24px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-job-card__meta .job-summary-icon {
    left: 0;
    top: 2px;
    transform: none;
    width: 16px;
    height: 16px;
}

.home-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-column-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}
.home-column-card:hover h3 {
    text-decoration: underline;
    color: #cf2e9d;
}
.home-column-card figure {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eef4ff;
}

.home-column-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-column-card h3 {
    margin: 14px 0 8px;
    font-size: 17px;
    line-height: 1.7;
    color: #1f2b44;
    padding: 0;
    border: 0;
}
.home-column-card h3::before {
    content: none;
}

.home-column-card p {
    margin: 0;
    font-size: 12px;
    color: #7c869c;
}

.btn {
    width: fit-content;
    margin: 30px auto 0;
}

@media screen and (max-width: 1440px) {
    .home-hero__copy {
        padding: 40px 0 60px;
    }
    .home-hero__catch {
        margin: 0 auto 6%;
    }
}


@media screen and (max-width: 820px) {
    body {
        padding-top: 0;
    }
}

@media (max-width: 780px) {
    body {
        padding-top: 60px;
    }
    header {
        position: fixed;
        z-index: 10;
    }
    
    /* Hero MV メインビジュアル */
    .home-hero {
        margin: 40px 2%;
    }
    .home-hero__copy {
        padding: 40px 0 50px;
    }

    /* section h2 */
    .home-page .home-section__head h2 {
        flex-wrap: wrap;
        gap: 5px 10px;
    }
    .home-page .home-section__head h2 span {
        margin-left: 0;
    }

    .home-search-card {
        padding: 16px;
    }

    .home-search-form,
    .home-jobs,
    .home-columns {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 520px) {
    .sp_only {
        display: block;
    }
    
    /* Hero MV メインビジュアル */
    .home-hero__copy {
        padding: 30px 0;
    }
    .home-hero__catch {
        font-size: 14vw;
        margin: 0 auto 4%;
        margin-left: 6%;
    }
    .home-hero__subcatch {
        margin-right: auto;
    }
}
