: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 {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    ;
    overflow: hidden;
}

.kensaku-wrap {
    background: linear-gradient(135deg, #be2b02 0%, #a02401 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    border-radius: 7px;
}

.find-work {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: box-shadow 0.3s;
}

.find-work:focus {
    box-shadow: 0 0 0 3px rgba(190, 43, 2, 0.3);
}

.on-is,
.off-is {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.on-is:hover,
.off-is:hover {
    background: rgba(255, 255, 255, 0.3);
}

.on-is {
    display: none;
}

.find_wrap {
    padding: 20px;
}

.find {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.find:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.find_title {
    background: #fff;
    padding: 15px 20px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.find_title:hover {
    background: #e9ecef;
}

.find_title.active {
    background: #be2b02;
    color: white;
}

.find_title::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s;
}

.price_title::after {
    display: none;
}

.find_title.active::after {
    transform: rotate(180deg);
}

.clear {
    background: rgba(190, 43, 2, 0.1);
    color: #be2b02;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.clear:hover {
    background: #be2b02;
    color: white;
}

.find_title.active .clear {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.find_title.active .clear:hover {
    background: rgba(255, 255, 255, 0.3);
}

.label3 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.label3.active {
    max-height: 800px;
}

.label3 label {
    display: block;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.label3 label:hover {
    background: #f8f9fa;
}

.label3 label:last-child {
    border-bottom: none;
}

.label3 input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #be2b02;
    cursor: pointer;
}

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

.project_nobody div.find_wrap div.find_bottom {
    padding: 20px !important;
}

.money_up,
.money_down {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 120px;
    text-align: right;
}

.money_up:focus,
.money_down:focus {
    outline: none;
    border-color: #be2b02;
}

.mushimegane {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.btn_search {
    background: linear-gradient(135deg, #be2b02 0%, #a02401 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.search_img {
    width: 20px;
    height: 20px;
}

.hyouji_option {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hyouji_option label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
}

.hyouji_option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #be2b02;
}

.client_wrap {
    display: block;
    margin-top: 15px;
}

.client_box {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.client_box:focus {
    outline: none;
    border-color: #be2b02;
}

.selected-count {
    background: #be2b02;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
}

.search-filter {
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    margin-bottom: 15px;
    font-size: 14px;
    width: 100%;
}

.search-filter:focus {
    outline: none;
    border-color: #be2b02;
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.quick-tag {
    background: #f0f0f0;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-tag:hover {
    background: #e0e0e0;
}

.quick-tag.active {
    background: #be2b02;
    color: white;
}

@media (max-width: 768px) {
    .mushimegane {
        flex-direction: column;
        align-items: stretch;
    }

    .hyouji_option {
        justify-content: center;
    }

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

    .label3.active {
        max-height: 1000px;
    }

    .label3 {
        overflow-y: auto;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .find {
        margin-bottom: 15px;
    }

    .search-filter {
        font-size: 16px;
        padding: 10px 15px;
    }

    .quick-tags {
        margin-bottom: 10px;
    }

    .quick-tag {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* スクロールバーのスタイル */
.label3::-webkit-scrollbar {
    width: 6px;
}

.label3::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.label3::-webkit-scrollbar-thumb {
    background: #be2b02;
    border-radius: 3px;
}

.label3::-webkit-scrollbar-thumb:hover {
    background: #a02401;
}

.project_nobody div.main div.search_table form#search_form {
    padding: 0;
}

.project_nobody div.find_wrap div.find {
    padding-bottom: 0;
}

.project_nobody div.find_wrap div.find p.find_title {
    margin-bottom: 0;
}

.project_nobody .kensaku-wrap .find-work {
    margin-bottom: 0;
    padding: 0 10px;
}

.project_nobody div.find_wrap div.find div.label3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.mushimegane {
    justify-content: center;
    flex-direction: column-reverse;
}

.mushimegane .button {
    max-width: 240px;
}


.mushimegane p.button .btn_search {
    margin: 0;
    max-width: initial;
}

@media (max-width:768px) {
    .max768 {
        display: none;
    }
}

.contents_box.other .modanTitle {
    font-size: 22px;
}