/**
 * =====================================================
 * みつピタジョブ
 * 全国版求人検索ページ
 * 検索フォーム
 * -----------------------------------------------------
 * ・キーワード検索
 * ・勤務地・表示設定
 * ・職種・働き方
 * ・こだわり条件（折り畳み式）
 * ・チェックボックス
 * ・検索／リセットボタン
 * ・PC／タブレット／スマートフォン対応
 * =====================================================
 */

/* =====================================================
 * 検索フォームセクション全体
 * ===================================================== */

.mpj-job-search-form-section {
	width: 100%;
	margin: 0;
	padding: 48px 0;
	color: #26352f;
}

.mpj-job-search-form-section *,
.mpj-job-search-form-section *::before,
.mpj-job-search-form-section *::after {
	box-sizing: border-box;
}

/* =====================================================
 * 上部見出し
 * ===================================================== */

.mpj-job-search-form-section__header {
	width: 100%;
	margin: 0 0 28px;
	text-align: center;
}

.mpj-job-search-form-section__eyebrow {
	margin: 0 0 8px;
	color: #b88b35;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.4;
}

.mpj-job-search-form-section__heading {
	margin: 0;
	color: #176247;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.mpj-job-search-form-section__description {
	max-width: 720px;
	margin: 12px auto 0;
	color: #5d6c66;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.8;
}

/* =====================================================
 * フォーム全体
 * ===================================================== */

.mpj-job-search-form {
	width: 100%;
	margin: 0;
	padding: 0;
}

/* =====================================================
 * 検索ブロック
 * ===================================================== */

.mpj-job-search-form__block {
	width: 100%;
	margin: 0 0 22px;
	padding: 26px;
	border: 1px solid #dce9e3;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(23, 98, 71, 0.06);
}

.mpj-job-search-form__block:last-of-type {
	margin-bottom: 0;
}

/* ブロックごとの淡いアクセント */
.mpj-job-search-form__block--keyword {
	border-top: 4px solid #176247;
}

.mpj-job-search-form__block--location {
	border-top: 4px solid #6ea98f;
}

.mpj-job-search-form__block--occupation {
	border-top: 4px solid #d1aa59;
}

.mpj-job-search-form__block--conditions {
	border-top: 4px solid #86b8a2;
}

/* =====================================================
 * ブロック見出し
 * ===================================================== */

.mpj-job-search-form__block-header {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	margin: 0 0 22px;
}

.mpj-job-search-form__block-number {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #176247;
	color: #ffffff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.04em;
}

.mpj-job-search-form__block-title-wrap {
	flex: 1 1 auto;
	min-width: 0;
}

.mpj-job-search-form__block-title {
	margin: 0;
	color: #176247;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.4;
}

.mpj-job-search-form__block-description {
	margin: 5px 0 0;
	color: #6a7872;
	font-size: 14px;
	line-height: 1.7;
}

/* =====================================================
 * グリッド
 * ===================================================== */

.mpj-job-search-form__grid {
	display: grid;
	width: 100%;
	gap: 18px;
}

.mpj-job-search-form__grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mpj-job-search-form__keyword-row {
	width: 100%;
}

.mpj-job-search-form__field {
	min-width: 0;
}

.mpj-job-search-form__field--full {
	width: 100%;
}

/* =====================================================
 * ラベル
 * ===================================================== */

.mpj-job-search-form__label {
	display: block;
	margin: 0 0 8px;
	color: #26352f;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

/* =====================================================
 * 入力欄・セレクト
 * ===================================================== */

.mpj-job-search-form__input,
.mpj-job-search-form__select {
	display: block;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 15px;
	border: 1px solid #cbdcd4;
	border-radius: 12px;
	background-color: #ffffff;
	color: #26352f;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	box-shadow: 0 2px 8px rgba(23, 98, 71, 0.03);
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease;
}

.mpj-job-search-form__input::placeholder {
	color: #99a59f;
	opacity: 1;
}

.mpj-job-search-form__select {
	padding-right: 42px;
	cursor: pointer;
}

.mpj-job-search-form__input:hover,
.mpj-job-search-form__select:hover {
	border-color: #78aa93;
}

.mpj-job-search-form__input:focus,
.mpj-job-search-form__select:focus {
	border-color: #176247;
	outline: none;
	background-color: #ffffff;
	box-shadow: 0 0 0 4px rgba(23, 98, 71, 0.11);
}

.mpj-job-search-form__select option {
	color: #26352f;
	background: #ffffff;
}

/* =====================================================
 * こだわり条件全体
 * ===================================================== */

.mpj-job-search-form__checkbox-groups {
	display: grid;
	width: 100%;
	gap: 18px;
}


/* =====================================================
 * こだわり条件・折り畳み
 * ===================================================== */

.mpj-job-search-form__conditions-details {
	width: 100%;
	margin: 0;
	padding: 0;
}

.mpj-job-search-form__conditions-summary {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	cursor: pointer;
}

.mpj-job-search-form__conditions-summary::-webkit-details-marker {
	display: none;
}

.mpj-job-search-form__conditions-summary::marker {
	content: "";
}

.mpj-job-search-form__conditions-summary
.mpj-job-search-form__block-header {
	flex: 1 1 auto;
	margin-bottom: 0;
}

.mpj-job-search-form__conditions-toggle {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid #cfe0d8;
	border-radius: 50%;
	background: #f3f9f6;
	color: #176247;
	box-shadow: 0 4px 12px rgba(23, 98, 71, 0.07);
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.mpj-job-search-form__conditions-toggle svg {
	display: block;
	width: 22px !important;
	height: 22px !important;
	min-width: 22px;
	min-height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.25s ease;
}

.mpj-job-search-form__conditions-summary:hover
.mpj-job-search-form__conditions-toggle {
	border-color: #91b7a5;
	background: #eaf5ef;
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(23, 98, 71, 0.1);
}

.mpj-job-search-form__conditions-summary:focus-visible {
	outline: 3px solid rgba(23, 98, 71, 0.22);
	outline-offset: 6px;
	border-radius: 12px;
}

.mpj-job-search-form__conditions-details[open]
.mpj-job-search-form__conditions-toggle {
	background: #176247;
	color: #ffffff;
	border-color: #176247;
}

.mpj-job-search-form__conditions-details[open]
.mpj-job-search-form__conditions-toggle svg {
	transform: rotate(180deg);
}

.mpj-job-search-form__conditions-content {
	padding-top: 22px;
}

.mpj-job-search-form__conditions-details[open]
.mpj-job-search-form__conditions-content {
	animation: mpj-job-search-conditions-open 0.22s ease;
}

@keyframes mpj-job-search-conditions-open {

	from {
		opacity: 0;
		transform: translateY(-4px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}

}

/* =====================================================
 * チェックボックスグループ
 * ===================================================== */

.mpj-job-search-form__checkbox-group {
	min-width: 0;
	margin: 0;
	padding: 20px;
	border: 1px solid #d9e7e0;
	border-radius: 15px;
	background: #f8fcfa;
}

.mpj-job-search-form__checkbox-group--features {
	background: #f6fbf8;
}

.mpj-job-search-form__checkbox-group--benefits {
	background: #fffdf7;
	border-color: #eadfbe;
}

.mpj-job-search-form__checkbox-group--holidays {
	background: #f7fbfd;
	border-color: #d9e7ea;
}

.mpj-job-search-form__checkbox-heading {
	width: auto;
	margin: 0 0 15px;
	padding: 0 10px 0 0;
	color: #176247;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.4;
}

/* =====================================================
 * チェックボックス一覧
 * ===================================================== */

.mpj-job-search-form__checkbox-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
}

.mpj-job-search-form__checkbox-item {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #d4e2dc;
	border-radius: 10px;
	background: #ffffff;
	color: #3b4a44;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	cursor: pointer;
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.mpj-job-search-form__checkbox-item:hover {
	border-color: #6fa68d;
	background: #f2f9f5;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(23, 98, 71, 0.06);
}

.mpj-job-search-form__checkbox {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0 9px 0 0;
	accent-color: #176247;
	cursor: pointer;
}

.mpj-job-search-form__checkbox-text {
	display: block;
	min-width: 0;
	overflow-wrap: anywhere;
}

/* チェックされた項目 */
.mpj-job-search-form__checkbox-item:has(
	.mpj-job-search-form__checkbox:checked
) {
	border-color: #176247;
	background: #eaf5ef;
	color: #104c37;
	box-shadow: 0 0 0 2px rgba(23, 98, 71, 0.08);
}

/* キーボード操作 */
.mpj-job-search-form__checkbox-item:has(
	.mpj-job-search-form__checkbox:focus-visible
) {
	outline: 3px solid rgba(23, 98, 71, 0.22);
	outline-offset: 2px;
}

/* =====================================================
 * 操作ボタン
 * ===================================================== */

.mpj-job-search-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	margin-top: 30px;
}

/* =====================================================
 * 検索ボタン
 * ===================================================== */

.mpj-job-search-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 260px;
	min-height: 56px;
	margin: 0;
	padding: 13px 28px;
	border: 1px solid #176247;
	border-radius: 14px;
	background: #176247;
	color: #ffffff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(23, 98, 71, 0.2);
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.mpj-job-search-form__submit:hover {
	border-color: #104c37;
	background: #104c37;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(23, 98, 71, 0.25);
}

.mpj-job-search-form__submit:focus-visible {
	outline: 3px solid rgba(23, 98, 71, 0.3);
	outline-offset: 3px;
}

/* =====================================================
 * リセットボタン
 * ===================================================== */

.mpj-job-search-form__reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-width: 210px;
	min-height: 56px;
	margin: 0;
	padding: 13px 24px;
	border: 1px solid #176247;
	border-radius: 14px;
	background: #ffffff;
	color: #176247;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: 0 5px 14px rgba(23, 98, 71, 0.08);
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.mpj-job-search-form__reset:hover {
	background: #edf7f1;
	color: #104c37;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(23, 98, 71, 0.13);
}

.mpj-job-search-form__reset:focus-visible {
	outline: 3px solid rgba(23, 98, 71, 0.25);
	outline-offset: 3px;
}

/* =====================================================
 * ボタンアイコン
 * ===================================================== */

.mpj-job-search-form__submit-icon,
.mpj-job-search-form__reset-icon {
	display: block;
	flex: 0 0 auto;
	width: 20px !important;
	height: 20px !important;
	max-width: 20px;
	max-height: 20px;
	overflow: visible;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mpj-job-search-form__submit svg,
.mpj-job-search-form__reset svg {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px;
	min-height: 20px;
}

/* =====================================================
 * タブレット
 * ===================================================== */

@media screen and (max-width: 1024px) {

	.mpj-job-search-form-section {
		padding: 40px 0;
	}

	.mpj-job-search-form__block {
		padding: 24px;
	}

	.mpj-job-search-form__grid--three {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mpj-job-search-form__grid--three
	.mpj-job-search-form__field:last-child {
		grid-column: 1 / -1;
	}

	.mpj-job-search-form__checkbox-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

}

/* =====================================================
 * スマートフォン
 * ===================================================== */

@media screen and (max-width: 767px) {

	.mpj-job-search-form-section {
		padding: 32px 0;
	}

	.mpj-job-search-form-section__header {
		margin-bottom: 22px;
		padding: 0 4px;
		text-align: left;
	}

	.mpj-job-search-form-section__description {
		margin-top: 10px;
		font-size: 14px;
	}

	.mpj-job-search-form__block {
		margin-bottom: 16px;
		padding: 20px 16px;
		border-radius: 15px;
	}

	.mpj-job-search-form__block-header {
		gap: 11px;
		margin-bottom: 18px;
	}

	.mpj-job-search-form__block-number {
		width: 38px;
		height: 38px;
		font-size: 12px;
	}

	.mpj-job-search-form__block-title {
		font-size: 18px;
	}

	.mpj-job-search-form__block-description {
		font-size: 13px;
		line-height: 1.6;
	}

	.mpj-job-search-form__grid,
	.mpj-job-search-form__grid--three {
		grid-template-columns: minmax(0, 1fr);
		gap: 15px;
	}

	.mpj-job-search-form__grid--three
	.mpj-job-search-form__field:last-child {
		grid-column: auto;
	}

	.mpj-job-search-form__input,
	.mpj-job-search-form__select {
		min-height: 50px;
		font-size: 16px;
	}

	.mpj-job-search-form__checkbox-group {
		padding: 17px 14px;
		border-radius: 13px;
	}


	.mpj-job-search-form__conditions-summary {
		align-items: flex-start;
		gap: 10px;
	}

	.mpj-job-search-form__conditions-toggle {
		width: 38px;
		height: 38px;
		margin-top: 1px;
	}

	.mpj-job-search-form__conditions-toggle svg {
		width: 20px !important;
		height: 20px !important;
		min-width: 20px;
		min-height: 20px;
	}

	.mpj-job-search-form__conditions-content {
		padding-top: 18px;
	}

	.mpj-job-search-form__checkbox-heading {
		font-size: 16px;
	}

	.mpj-job-search-form__checkbox-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.mpj-job-search-form__checkbox-item {
		min-height: 44px;
		padding: 9px 10px;
		font-size: 12px;
	}

	.mpj-job-search-form__checkbox {
		width: 17px;
		height: 17px;
		margin-right: 7px;
	}

	.mpj-job-search-form__actions {
		flex-direction: column;
		gap: 11px;
		margin-top: 24px;
	}

	.mpj-job-search-form__submit,
	.mpj-job-search-form__reset {
		width: 100%;
		min-width: 0;
		min-height: 54px;
	}

}

/* =====================================================
 * 小さいスマートフォン
 * ===================================================== */

@media screen and (max-width: 420px) {

	.mpj-job-search-form__checkbox-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.mpj-job-search-form__checkbox-item {
		font-size: 13px;
	}

}

/* =====================================================
 * 動きを減らす設定
 * ===================================================== */

@media (prefers-reduced-motion: reduce) {

	.mpj-job-search-form__conditions-toggle,
	.mpj-job-search-form__conditions-toggle svg,
	.mpj-job-search-form__conditions-content {
		animation: none;
		transition: none;
	}

}