:root {
    --main-colr: linear-gradient(135deg, #be2b02 0%, #a02401 100%);
    --sub-colr: #6abe02;
    --Hiragino: "Hiragino Sans", sans-serif;
    --jost: font-family: "Jost", sans-serif;
    --box-shadow: 0 0 20px rgba(148, 148, 148, 0.2);
}

.search_table {
    width: 100%;
    position: relative;
}

.search_table::before {
    display: none;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.form-group {
    display: grid;
    gap: 30px;
}

.form_innner_wrap {
    position: relative;
    transition: all 0.3s ease;
}

.form_innner_wrap:hover {
    transform: translateY(-2px);
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 16px;
    position: relative;
    padding-left: 20px;
}

.form-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #be2b02, #ff6b35);
    border-radius: 2px;
}

.form_innner_wrap p {
    position: relative;
}

select[name="_ageA"],
select[name="_ageB"] {
    max-width: 135px;
}


/* セレクトボックスのスタイル */
.search_table select {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.search_table select:focus {
    outline: none;
    transform: translateY(-1px);
}

/* テキスト入力のスタイル */
.contents_m input[type="text"],
.contents_m input[type="password"] {
    width: 100%;
    padding: 15px 10px !important;
    font-size: 16px;
    color: #2d3748;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus {
    outline: none;
    transform: translateY(-1px);
}

/* チェックボックスエリアのスタイル */
.chack_box_nuser {
    transition: all 0.3s ease;
    position: relative;
}

/* 本人確認セクション（通常のチェックボックス） */
.form_innner_wrap:has(input[name="identification[]"]) .chack_box_nuser {
    padding: 20px;
}

.form_innner_wrap:has(input[name="identification[]"]) .chack_box_nuser label {
    display: block;
    padding: 12px 16px;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px;
}

.form_innner_wrap:has(input[name="identification[]"]) .chack_box_nuser label:hover {
    background: rgba(56, 161, 105, 0.1);
    transform: translateX(4px);
}

.form_innner_wrap:has(input[name="identification[]"]) .chack_box_nuser label:has(input:checked) {
    background: rgba(56, 161, 105, 0.15);
    color: #38a169;
    font-weight: 500;
}

.form_innner_wrap:has(input[name="identification[]"]) input[type="checkbox"] {
    accent-color: #38a169;
}

/* 業種セクション（アコーディオン） */
.form_innner_wrap:has(input[name="manage_type[]"]) .chack_box_nuser {
    padding: 0;
}

/* アコーディオンヘッダー */
.contents_m .accordion-header {
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header.active {
    background: #be2b02;
    color: white;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

/* アコーディオンコンテンツ */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-radius: 0 0 8px 8px;
    opacity: 0;
}

.accordion-content.active {
    max-height: 600px;
    overflow-y: auto;
    opacity: 1;
}

.accordion-content .checkbox-list {
    padding: 0;
    transition: padding 0.3s ease;
}

.accordion-content.active .checkbox-list {
    padding: 20px;
}

/* チェックボックスラベルのスタイル */
.accordion-content label {
    display: block;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(-10px);
}

.accordion-content.active label {
    padding: 12px 16px;
    margin: 8px 0;
    opacity: 1;
    transform: translateY(0);
}

.accordion-content label:hover {
    background: rgba(190, 43, 2, 0.1);
    transform: translateX(4px);
}

.accordion-content label:has(input:checked) {
    background: rgba(190, 43, 2, 0.15);
    color: #be2b02;
    font-weight: 500;
}

/* チェックボックス自体のスタイル */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: #be2b02;
    cursor: pointer;
    transform: scale(1.1);
}

/* 本人確認セクションの特別スタイル - 削除 */

/* 検索ボタンのスタイル */
.contents_m .search_table .button,
.contents_m .form_table .button {
    text-align: center;
    margin-top: 25px;
}

.btn_search {
    background: var(--main-colr);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(190, 43, 2, 0.3);
    position: relative;
    overflow: hidden;
}

.btn_search::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn_search:hover::before {
    left: 100%;
}

.btn_search:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(190, 43, 2, 0.4);
}

.btn_search:active {
    transform: translateY(-1px);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .form-group {
        gap: 20px;
    }

    .form-label {
        font-size: 14px;
    }

    .search_table select,
    .search_table input[type="text"] {
        padding: 12px 16px;
        font-size: 14px;
    }

    .accordion-header {
        padding: 12px 15px;
        font-size: 14px;
    }

    .accordion-content {
        max-height: 0;
    }

    .accordion-content.active {
        max-height: 400px;
    }

    .simple-checkbox {
        padding: 15px;
    }

    .simple-checkbox label {
        padding: 10px 12px;
        margin: 6px 0;
        font-size: 14px;
    }

    .btn_search {
        padding: 15px 30px;
        font-size: 16px;
    }
}

/* フォーカス時のアニメーション */
@keyframes focusGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(190, 43, 2, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(190, 43, 2, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(190, 43, 2, 0);
    }
}

input:focus,
select:focus {
    animation: focusGlow 1.5s ease-in-out;
}

/* セクション間の区切り線 */
.form_innner_wrap:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.form-group .hint {
    display: block;
    margin: 10px 0;
}

.button button {
    padding: 10px 50px;
    border: inherit;
    border-radius: 5px;
    color: #fff;
    background-color: gray;
}

.requisite {
    padding: 5px 10px;
    font-weight: 400;
    color: #fff;
    font-size: 12px;
    margin-right: 10px;
    background: var(--main-colr);
}

.optional {
    padding: 5px 10px;
    font-weight: 400;
    color: #fff;
    font-size: 12px;
    margin-right: 10px;
    background: #555;

}

input[name="salary_max"] {
    max-width: 200px;
}
input[name="establish_date"] {
    max-width: 120px;
}
input[name="zip1"] {
    max-width: 80px;
}
input[name="zip2"] {
    max-width: 100px;
}

input[name="work_time_year"],
input[name="limits_year"],
input[name="employee"],
input[name="mean_age"]
{
    max-width: 100px;
}
input[value="全てに適用"] {
    max-width: 100px;
}
img[width="133"] {
    margin-bottom: 10px;
}

#input_hidden {
    display: none;
}