/* ========================================
   FV・求人検索フォーム
======================================== */
:root {
    --color-pink: #ec4c87;
    --color-pink-dark: #dc3978;
    --content-width: 1200px;
}

.hero-search {
    height: 243px;
    background-color: #fde9eb;
    background-image: var(--hero-image);
    background-position: center 18%;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-search__inner {
    position: relative;
    width: min(100%, var(--content-width));
    height: 100%;
    margin: 0 auto;
    padding-top: 14px;
    background-color: transparent;
    background-image: none;
}

.hero-search__copy {
    margin-left: 17px;
}

.hero-search__title {
    margin: 0;
    color: #080808;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: 0.02em;
}

.hero-search__title span {
    color: var(--color-pink);
}

.hero-search__lead {
    margin: 3px 0 0;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}

.job-search {
    position: absolute;
    z-index: 10;
    bottom: 13px;
    left: 0;
/*
    width: 555px;
*/
    width: 655px;
    padding: 17px 13px 16px;
    border: 1px solid rgba(214, 207, 209, 0.72);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 9px rgba(95, 54, 67, 0.07);
}

.job-search__selects {
    display: grid;
    grid-template-columns: minmax(0, 0.6fr) repeat(2, minmax(0, 1fr));
    gap: 13px;
		font-size: 1.3rem;
}

.job-search__field {
    display: block;
    min-width: 0;
}

.job-search__label {
    display: block;
    margin: 0 0 3px 3px;
    color: #403a3c;
    font-size: 1.05rem;
    line-height: 1.2;
}

.job-search select {
    width: 100%;
    height: 29px;
    padding: 0 32px 0 12px;
    border: 1px solid #cfc9cb;
    border-radius: 6px;
    color: #3c3638;
    background-color: #fff;
    cursor: pointer;
}

.job-search__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 10px;
		font-size: 1.35rem;
}

.job-search__more,
.job-search__submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 29px;
    border-radius: 5px;
    cursor: pointer;
}

.job-search__more {
    padding: 0 34px 0 12px;
    border: 1px solid #c8c2c4;
    color: #494345;
    background: #fff;
}

.job-search__plus {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
}

.job-search__plus::before,
.job-search__plus::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1px;
    background: #8b8587;
    content: "";
    transform: translate(-50%, -50%);
}

.job-search__plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.job-search__more.is-open .job-search__plus::after {
    display: none;
}

.job-search__submit {
    border: 1px solid var(--color-pink);
    color: #fff;
    background: var(--color-pink);
}

.job-search__submit:hover,
.job-search__submit:focus-visible {
    border-color: var(--color-pink-dark);
    background: var(--color-pink-dark);
}

.job-search__glass {
    position: relative;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.job-search__glass::after {
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transform: rotate(45deg);
    transform-origin: left center;
}

.job-search__active-keyword {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 5px 8px;
    border: 1px solid #f2c6d6;
    border-radius: 6px;
    color: #6f5861;
    background: #fff4f8;
    font-size: 1.1rem;
    line-height: 1.35;
}

.job-search__active-keyword-label {
    flex: 0 0 auto;
}

.job-search__active-keyword strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--color-pink-dark);
}

.job-search__active-keyword-clear {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 2px 7px;
    border: 1px solid #e8aec3;
    border-radius: 999px;
    color: #c84e7b;
    background: #fff;
    cursor: pointer;
    font-size: 1.05rem;
}

.job-search__active-keyword-clear:hover,
.job-search__active-keyword-clear:focus-visible {
    border-color: var(--color-pink);
    color: #fff;
    background: var(--color-pink);
}

.job-search__details {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    width: 100%;
    padding: 14px 16px 16px;
    border: 1px solid #d8d2d4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(95, 54, 67, 0.14);
}

.job-search__details-controls {
    position: absolute;
    top: 9px;
    right: 11px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.job-search__clear,
.job-search__details-close {
    border: 1px solid #d8d2d4;
    color: #6f686b;
    background: #fff;
    cursor: pointer;
}

.job-search__clear {
    min-height: 27px;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 1.1rem;
    line-height: 1.2;
}

.job-search__details-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    padding: 0 0 2px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}

.job-search__clear:hover,
.job-search__clear:focus-visible,
.job-search__details-close:hover,
.job-search__details-close:focus-visible {
    border-color: #db779b;
    color: var(--color-pink-dark);
    background: #fcecf2;
}

.job-search__details[hidden] {
    display: none;
}

.job-search__fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.job-search__details-title {
    padding: 0 130px 0 0;
    color: #403a3c;
    font-size: 1.35rem;
    font-weight: 700;
}

.job-search__details-note {
    margin: 2px 0 9px;
    color: #817a7d;
    font-size: 1.1rem;
    line-height: 1.5;
}

.treatment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    max-height: 230px;
    overflow-y: auto;
    padding-right: 4px;
}

.treatment-option {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    padding: 5px 7px;
    border-radius: 5px;
    color: #494345;
    background: #faf8f9;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1.4;
}

.treatment-option:hover {
    background: #fcecf2;
}

.treatment-option[hidden],
.treatment-options__empty[hidden] {
    display: none;
}

.treatment-option input {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 1px 6px 0 0;
    accent-color: var(--color-pink);
}

.treatment-options__empty {
    grid-column: 1 / -1;
    margin: 0;
    color: #817a7d;
    font-size: 1.2rem;
}

.job-search__keyword {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eee8ea;
}

.job-search__keyword-label {
    display: block;
    margin-bottom: 6px;
    color: #403a3c;
    font-size: 1.25rem;
    font-weight: 700;
}

.job-search__keyword-input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #cfc9cb;
    border-radius: 6px;
    color: #3c3638;
    background: #fff;
    font-size: 1.2rem;
}

.job-search__keyword-input::placeholder {
    color: #aaa3a6;
}

.job-search__keyword-input:focus {
    border-color: #db779b;
    outline: 2px solid rgba(236, 76, 135, 0.14);
    outline-offset: 1px;
}

.popular-search {
    display: none;
}

/* トップページではPCでも人気の検索条件を表示 */
@media (min-width: 768px) {
    .hero-search--top {
        height: 350px;
        background-color: #fde9eb;
        background-image: var(--hero-image);
        background-position: center top;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .hero-search--top .hero-search__inner {
        background-color: transparent;
        background-image: none;
    }

    .hero-search--top .popular-search {
        display: block;
        margin-top: 11px;
    }

    .hero-search--top .popular-search__group {
        display: grid;
        grid-template-columns: 90px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
    }

    .hero-search--top .popular-search__group + .popular-search__group {
        margin-top: 6px;
    }

    .hero-search--top .popular-search__title {
        margin: 0;
        color: #db779b;
        font-size: 1.05rem;
        line-height: 1.35;
    }

    .hero-search--top .popular-search__links {
        display: flex;
        min-width: 0;
        flex-wrap: wrap;
        gap: 4px;
    }

    .hero-search--top .popular-search__links a {
        display: inline-flex;
        min-height: 23px;
        align-items: center;
        padding: 2px 8px;
        border: 1px solid #d7d2d4;
        border-radius: 999px;
        color: #817a7d;
        background: #f8f7f7;
        font-size: 1.05rem;
        line-height: 1.35;
    }
}

@media (max-width: 767px) {
    .hero-search {
        height: auto;
        background-color: #fff;
        background-image: none;
    }

    .hero-search__inner {
        width: 100%;
        padding: 0;
        background-color: transparent;
        background-image: none;
    }

    .hero-search__copy {
        height: 110px;
        margin: 0;
        padding: 20px 10px 0;
        background-color: #fde9eb;
        background-image: var(--hero-image);
        background-position: center top;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .hero-search__title {
        font-size: 2rem;
        line-height: 1.27;
    }

    .hero-search__lead {
        margin-top: 2px;
        font-size: 1.2rem;
        white-space: nowrap;
    }

    .job-search {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        margin-top: -3px;
        padding: 10px 10px 13px;
        border-color: #ddd7d9;
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(95, 54, 67, 0.05);
    }

    .job-search__selects {
        gap: 8px;
    }

    .job-search__label {
        margin: 0 0 2px 2px;
        font-size: 1.2rem;
    }

    .job-search select {
        height: 34px;
        padding: 0 10px 0 6px;
        font-size: 1.1rem;
    }

    .job-search__actions {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-top: 7px;
    }

    .job-search__more,
    .job-search__submit {
        width: 100%;
        height: 36px;
        font-size: 1.3rem;
    }

    .job-search__submit {
        order: 2;
    }

    .job-search__more {
        order: 1;
    }

    .job-search__active-keyword {
        margin-top: 7px;
        padding: 6px 8px;
        font-size: 1.15rem;
    }

    .job-search__details {
        position: relative;
        width: auto;
        margin-top: 8px;
        padding: 12px 10px 13px;
        box-shadow: none;
    }

    .job-search__details-title {
        font-size: 1.3rem;
    }

    .job-search__details-note {
        margin-bottom: 7px;
        font-size: 1.1rem;
    }

    .treatment-options {
        gap: 5px 7px;
        max-height: 230px;
    }

    .treatment-option {
        padding: 6px;
        font-size: 1.15rem;
    }

    .job-search__keyword {
        margin-top: 12px;
        padding-top: 10px;
    }

    .job-search__keyword-label {
        font-size: 1.2rem;
    }

    .job-search__keyword-input {
        height: 40px;
        font-size: 1.2rem;
    }

    .job-search__glass {
        width: 11px;
        height: 11px;
    }

    .popular-search {
        display: block;
        margin-top: 10px;
    }

    .popular-search__group + .popular-search__group {
        margin-top: 8px;
    }

    .popular-search__title {
        margin: 0 0 3px;
        color: #db779b;
        font-size: 1.2rem;
        line-height: 1.35;
    }

    .popular-search__links {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .popular-search__links a {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        padding: 3px 8px;
        border: 1px solid #d7d2d4;
        border-radius: 999px;
        color: #817a7d;
        background: #f8f7f7;
        font-size: 1.2rem;
        line-height: 1.35;
    }
}

@media (max-width: 359px) {
    .hero-search__title {
        font-size: 1.8rem;
    }

    .hero-search__lead {
        font-size: 1.1rem;
    }

    .job-search {
        padding-right: 7px;
        padding-left: 7px;
    }

    .job-search__selects {
        gap: 5px;
    }

    .job-search select {
        padding-left: 7px;
        font-size: 1.2rem;
    }

    .treatment-options {
        grid-template-columns: 1fr;
    }
}
/* iOS：検索フォームのタップ領域を少し広げる */
/* iOS：検索フォームを少し大きく見せる */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 767px) {
        .job-search select {
            height: 40px;
            font-size: 1.2rem;
						 padding: 0 10px 0 8px;
        }

        .job-search__more,
        .job-search__submit {
            height: 42px;
            font-size: 1.4rem;
        }
    }
}
