/**アイコン設定 **/
.icon-occupation::before,
.detail-name.occupation::before {
	background-image: url(../img/occupation.png);
}

.icon-area::before,
.detail-name.area::before {
	background-image: url(https://test.spem-agent.jp/wp-content/uploads/2025/08/Vector-2.png);
}

.icon-conditions::before {
	background-image: url(../img/commitment.png);
}

.detail-name.salary::before {
	background-image: url(../img/salary.png);
}

.searchPanelButton_icon::before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    margin: 5px auto;
    background-size: contain;
    background-repeat: no-repeat;
	background-position: center;
}

.modal_header .title span:before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    border: 0;
    top: 7px;
	margin-right: 10px;
	background-position: center;
}

span.has-icon::before {
	content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    border: 0;
    margin-right: 5px;
	top: 3px;
	background-position: center;
}

.search-result .detail-name::before {
	content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    border: 0;
    margin-right: 7px;
	background-position: center;
}
/*********/

div#custom-search-form {
	width: 100%;
	max-width: 650px;
	margin: 0 auto;
}

.search-group-container {
	display: flex;
    justify-content: center;
    background: #fff;
    border-radius: 5px;
	box-shadow: 2px 2px 4px #92969f;
	padding: 20px 0;
	align-items: stretch;
}

.search-group {
	width: 33%;
}

.search-group-container .search-group:not(:last-child) {
	border-right: 1px solid #92969f;
}

button.searchPanelButton {
	cursor: pointer;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 100%;
	padding: 16px;
	background-color: transparent;
	border-style: none;
    color: #92969f;
	font-size: 1rem;
}

.searchPanelButton_icon {
	font-size: 1em;
	font-weight: bold;
}

.searchPanelButton_categoryName {
	flex: 1 1;
	text-align: left;
	margin-top: 15px;
}

.searchPanelButton_guidanceText {
	font-weight: 700;
}

.searchPanelButton_Select {
    font-size: 1.3rem;
}

.modal_window {
	display: none;
}

.modal_window.active{
	display: block;
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.modal_wrap {
	width: 80vw;
	height: 80vh;
	background: #fff;
	border: solid 0.5px #92969f;
	border-radius: 5px;
	padding: 20px;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
}

.modal_header {
	text-align: center;
	height: 40px;
	position: relative;
}

.modal_header .title {
	font-size: 1.1rem;
	color: #92969f;
	font-weight: 700;
}

button.modal-close {
	border: none;
	background: inherit;
	font-size: 2rem;
	color: #92969f;
	cursor: pointer;
	position: absolute;
	top: -5px;
	right: 0;
}

.modal_inner {
	height: calc(100% - 90px);
	overflow: auto;
}

.modal_window .contents ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.modal_window .contents ul li {
	list-style: none;
}

.search_condition,
.search_condition_children {
	display: flex;
	position: relative;
	width: 100%;
	padding: 16px;
	background: #fff;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
	border: none;
	border-bottom: 1px solid #92969f;
}

.toggle-icon {
	position: absolute;
	width: 30px;
	height: 30px;
	right: 20px;
	border-radius: 50%;
	background-color: #9fa3ab;
}

/* 横線 */
.toggle-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 25%;
	width: 50%;
	height: 2px;
	background-color: #fff;
	transform: translateY(-50%);
}

/* 縦線（+ の縦線）、.opened のときは非表示 */
.search_condition .toggle-icon:not(.opened)::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 25%;
	width: 2px;
	height: 50%;
	background-color: #fff;
	transform: translateX(-50%);
}


.search_condition input[type="checkbox"],
.search_condition_children input[type="checkbox"]{
	position: relative;
	width: 20px;
	height: 20px;
	margin-right: 8px;
	border: 2px solid #92969f;
	border-radius: 3px;
	background: #fff;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	outline: 0;
	cursor: pointer;
	transition: background .2s;
}

.search_condition input[type="checkbox"]:checked,
.search_condition_children input[type="checkbox"]:checked {
	border: 2px solid #239de0;
}

.search_condition input[type="checkbox"]:checked::before,
.search_condition_children input[type="checkbox"]:checked::before {
	content: "";
	display: block;
	position: absolute;
	top: 2px;
	left: 5px;
	transform: rotate(45deg);
	width: 7px;
	height: 10px;
	border-color: #239de0;
	border-style: solid;
	border-width: 0 2px 2px 0;
}

.search_condition_children {
	padding-left: 30px;
}

.search_condition label,
.search_condition_children label{
	display: flex;
	align-items: center;
}

.search_condition span,
.search_condition_children span {
	font-size: 1.1rem;
	font-weight: normal;
}

.modal_footer {
	margin: 0 auto;
	text-align: center;
	height: 50px;
}

.modal_footer {
	display: flex;
	justify-content: center;
	gap: 20px;
}

button.modal-clear {
	background: #fff;
	color: #818181;
	border-radius: 5px;
	max-width: 110px;
	padding: 6px 20px;
	border: 1px solid #92969f;
	font-weight: 700;
	cursor: pointer;
}

button.modal-submit,
button.search {
	background: #239de0;
	color: #ffffff;
	border-radius: 5px;
	width: 200px;
	padding: 6px 20px;
	border: 1px solid #239de0;
	font-weight: 700;
	cursor: pointer;
}

button.modal-submit:disabled {
    background: #818181;
	border-color: #818181;
	opacity: 0.5;
}

.button-area {
	text-align: center;
	margin-top: 20px;
}

input[type="checkbox"]:checked + span,
label span.active  {
	color: #239de0;
}

/**ローディング**/
#loading-spinner {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.spinner {
	width: 50px;
	height: 50px;
	border: 6px solid #92969f;
	border-top: 6px solid #5FC7E6; /* アクティブな色 */
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/** 検索結果のレイアウト **/
.search-result {
    margin: auto;
    margin-top: 40px;
    max-width: 500px;
}

.search-count {
    margin-bottom: 15px;
}

.total-count span {
    font-size: 1.3rem;
    color: #5FC7E6;
	margin: 0 3px;
}

.current-view {
    font-size: 0.9rem;
}

.post-card {
    border: solid 0.5px #92969f;
    border-radius: 15px;
    padding: 15px 25px;
	background: #fff;
	margin-top: 25px;
}

span.emp-type {
    background: #5FC7E6;
    color: #fff;
    padding: 5px 10px;
}

span.tag {
    margin: 0 2px;
    font-weight: 700;
    background: #e5f1fa;
    border-radius: 10px;
    padding: 2px 10px;
	font-size: 0.9rem;
}

.post-card .title {
    font-size: 1.3rem;
    font-weight: 700;
}

.company {
	margin-top: 5px;
	font-size: 0.9rem;
    color: #92969f;
}

.company-base-info {
	margin: 20px 0;
}

.detail-item:not(:last-child) {
    border-bottom: 0.5px solid #92969f;
}

.detail-item {
    display: flex;
    gap: 10px;
	align-items: center;
	color: #92969f;
    padding-bottom: 5px;
    margin-top: 5px;
}

.detail-name {
    display: flex;
	align-items: center;
	font-size: 0.9rem;
	width: 110px;
}

.buton-area {
    margin-top: 20px;
	display: flex;
	gap: 20px;
	justify-content: center;
}

.buton-area a {
	display: inline-flex;
	width: 50%;
	align-items: center;
	justify-content: center;
	padding: 16px 5px;
	font-size: 16px;
	font-weight: bold;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
	position: relative;
}

.buton-area a::after {
	content: "";
    position: absolute;
	right: 10px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	display: inline-block;
	padding: 4px;
	transform: rotate(-45deg);
}

.search-clear {
    max-width: 350px;
    margin: auto;
    text-align: right;
    padding-top: 5px;
}

@media (min-width: 576px) {
    .search-clear {
        max-width: 500px;
    }
}

.search-clear p {
    cursor: pointer;
}

/* 求人を見るボタン（塗りつぶし） */
.to_post {
	background-color: #5FC7E6;
	color: #fff;
	border: none;
}

/* お問い合わせボタン（枠線タイプ） */
.to_contact {
	background-color: #fff;
	color: #5FC7E6;
	border: 2px solid #5FC7E6;
}

/* hover時（共通） */
.buton-area a:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/** ページネーション **/
.search-pagination {
    margin-top: 50px;
}

/**SPサイズのレイアウト**/
@media (max-width: 782px) {
	div#custom-search-form {
		width: 100%;
	}
	
	.toggle-icon {
		width: 25px;
		height: 25px;
		right: 5px;
	}
	
	button.modal-submit, button.search {
		width: 100%;
	}
	
}
