/* Search Modal Styles */
.search {
padding: 30px 0;
}

.search-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.search-buttons {
display: flex;
justify-content: center;
gap: 5%;
max-width: 900px;
margin: 0 auto;
}

.search-button {
display: flex;
flex-direction: row;
gap: 13%;
align-items: center;
justify-content: center;
padding: 16px 20px;
background: #fff;
border: 1px solid #e0e0e0;
border-radius: 8px;
text-decoration: none;
color: #333;
position: relative;
flex: 1;
min-height: 80px;
transition: all 0.2s ease;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-button:hover {
border-color: #ff4d00;
background: #f1f2f3;
transform: translateY(-1px);
box-shadow: 0 4px 12px hsl(18.12deg 100% 50% / 15%);
}

.search-icon {
line-height: 1;
}

.search-icon img {
width: 24px;
}

.search-text {
font-size: 18px;
font-weight: bold;
line-height: 1.2;
}

.search-arrow {
/* position: absolute;
top: 50%;
right: 8px;
transform: translateY(-50%);
font-size: 12px;
color: #999; */
border-right: 2px solid #2d2d2d;
border-top: 2px solid #2d2d2d;
border-radius: 0px;
content: "";
height: 10px;
position: absolute;
right: 20px;
top: 45%;
transform: rotate(45deg) translate(-1px, 1px);
transition: all .2sease;
width: 10px;
}

.search-button:hover .search-arrow {
border-right: 2px solid #ff4d00;
border-top: 2px solid #ff4d00;
}

@media (max-width: 768px) {
.search-container {
    padding: 0;
}

.search-buttons {
    gap: 2%;
}

.search-button {
    padding: 12px 8px;
    min-height: 70px;
    flex-direction: column;
    gap: 10px;
}

.search-text {
    font-size: 14px;
}

.search-arrow {
    right: 10px;
    width: 8px;
    height: 8px;
}
}

/* Modal footer button styles */
body.home #modal-area .modal-footer,
body.home #modal-occupation .modal-footer {
padding: 20px;
border-top: 1px solid #eee;
}

body.home #modal-area .modal-footer__buttons,
body.home #modal-occupation .modal-footer__buttons {
display: flex;
width: 70%;
gap: 10px;
margin-bottom: 15px;
}

body.home #modal-area .modal-footer__button,
body.home #modal-occupation .modal-footer__button {
flex;
1;
position: relative;
top: 0;
bottom: 0;
margin: auto 0;
padding: 3% 10%;
background: #000000;
border-radius: 0;
color: #fefefe;
font-size: 16px;
font-weight: 600;
line-height: 1;
}

body.home #modal-area .modal-footer__button.additional,
body.home #modal-occupation .modal-footer__button.additional {
background: transparent;
color: #000;
border: 1px solid #000;
width: 48%;
text-align: center;
}

body.home #modal-area .modal-footer__button.additional:hover,
body.home #modal-occupation .modal-footer__button.additional:hover {
background: #f5f5f5;
}

body.home #modal-area .modal-footer__button.submit,
body.home #modal-occupation .modal-footer__button.submit {
background: #000;
color: white;
width: 48%;
text-align: center;
}

body.home #modal-area .modal-footer__button.submit:hover,
body.home #modal-occupation .modal-footer__button.submit:hover {
background: #333;
}

body.home #modal-area .modal-footer__clear,
body.home #modal-occupation .modal-footer__clear {
text-align: center;
}

body.home #modal-area .modal-footer__clear a,
body.home #modal-occupation .modal-footer__clear a {
color: #666;
font-size: 13px;
text-decoration: underline;
}

body.home #modal-area .modal-footer__clear a:hover,
body.home #modal-occupation .modal-footer__clear a:hover {
color: #333;
}

@media (max-width: 768px) {

body.home #modal-area .modal-footer__buttons,
body.home #modal-occupation .modal-footer__buttons {
    flex-direction: row;
    width: 100%;
}

body.home #modal-area .modal-footer__button.additional,
body.home #modal-occupation .modal-footer__button.additional {
    text-align: center;
    font-size: 13px;
    padding: 5% 4%;
}

body.home #modal-area .modal-footer__button.submit,
body.home #modal-occupation .modal-footer__button.submit {
    text-align: center;
    font-size: 13px;
    padding: 5% 4%;
}
}

/* 詳細条件モーダルのPC用スタイル */
@media (min-width: 769px) {
#modal-conditions .modal-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#modal-conditions .modal-content {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    background: #f1f2f3;
    border: 2px solid #000;
    overflow: hidden;
}

#modal-conditions .modal-body {
    padding: 30px 40px;
    max-height: calc(80vh - 160px);
    overflow-y: auto;
}

#modal-conditions .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 23px 40px 20px;
    background: #fff;
    border-bottom: 1px solid #000000;
}

#modal-conditions .modal-header__title {
    color: #000;
    font-size: 1.4rem;
    line-height: 1;
    margin: 0 auto;
}

#modal-conditions .part {
    margin-bottom: 30px;
    padding-bottom: 25px;
}

#modal-conditions .part:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

#modal-conditions dt {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

#modal-conditions dt svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

#modal-conditions .text {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

#modal-conditions .text:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* 勤務地・職種選択を横並びに */
#modal-conditions .select-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

#modal-conditions .select-item {
    flex: 1;
    flex-direction: column;
}

#modal-conditions .spModal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: all 0.2s ease;
}

#modal-conditions .spModal:hover {
    background: #f8f9fa;
    border-color: #000;
}

#modal-conditions .spModal span {
    display: flex;
    align-items: center;
}

#modal-conditions .spModal .cat-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

#modal-conditions .spModal .arrow01 {
    width: 16px;
    height: 16px;
    fill: #999;
}

/* 職種モーダルと同じチェックボックススタイル */
#modal-conditions .list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4px 8px;
    padding: 0;
    margin: 15px 0 0 0;
    list-style: none;
}

#modal-conditions .list li {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    line-height: 1.2;
    margin: 0;
}

#modal-conditions .list li label {
    font-size: 15px;
    letter-spacing: 0.08em;
    text-align: left;
    width: 100%;
    display: flex;
    padding: 10px 15px;
    word-break: auto-phrase;
    min-width: auto;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
    outline: none;
    white-space: normal;
    background: #fff;
    border: none;
    transition: all 0.2s ease;
}

#modal-conditions .list li label:hover {
    background: #f8f9fa;
}

#modal-conditions .list li:has(input:checked) {
    background: #DCDDDF;
}

#modal-conditions .list li:has(input:checked) label {
    background: #DCDDDF;
}

#modal-conditions .list input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin-right: 10px;
}

#modal-conditions .list input[type="checkbox"]:checked {
    background-color: #000;
    border-color: #000;
}

#modal-conditions .list input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
}

#modal-conditions .modal-footer {
    padding: 20px 40px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: center;
    background: #fff;
}

#modal-conditions .modal-footer__button {
    min-width: 200px;
    padding: 12px 24px;
    background: #000;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

#modal-conditions .modal-footer__button:hover {
    background: #333;
}
}

/* SP表示では既存のスタイルを維持 */
@media (max-width: 768px) {
#modal-conditions .modal-inner {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    width: 100%;
    height: 100%;
    border-radius: 0;
    transform: none;
}

#modal-conditions.open .modal-inner {
    top: 0;
}
}