/**
 * みつピタジョブ
 * トップページ：職種から探す
 */

.mpj-home-job-categories {
	width: 100%;
	margin: 0;
	padding: 68px 20px 76px;
	background: #f5faf7;
}

.mpj-home-job-categories__inner {
	width: min(1120px, 100%);
	margin: 0 auto;
}

.mpj-home-job-categories__header {
	margin: 0 0 36px;
	text-align: center;
}

.mpj-home-job-categories__eyebrow {
	margin: 0 0 8px;
	color: #16824f;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.1em;
}

.mpj-home-job-categories__heading {
	margin: 0;
	color: #20372d;
	font-size: clamp(29px, 3vw, 40px);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.mpj-home-job-categories__description {
	margin: 12px 0 0;
	color: #5c6d65;
	font-size: 15px;
	line-height: 1.8;
}

.mpj-home-job-categories__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	width: 100%;
}

.mpj-home-job-category {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	min-height: 94px;
	padding: 20px 18px;
	color: #20372d;
	background: #ffffff;
	border: 1px solid #dcece3;
	border-radius: 16px;
	box-shadow: 0 8px 20px rgba(20, 94, 62, 0.06);
	text-decoration: none;
	transition:
		color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.mpj-home-job-category:hover {
	color: #087b43;
	border-color: #9fcdb6;
	box-shadow: 0 12px 26px rgba(20, 94, 62, 0.12);
	transform: translateY(-3px);
}

.mpj-home-job-category:focus-visible {
	outline: 3px solid rgba(8, 123, 67, 0.2);
	outline-offset: 3px;
}

.mpj-home-job-category__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	color: #087b43;
	background: #e8f5ee;
	border-radius: 14px;
}

.mpj-home-job-category__icon svg,
.mpj-home-job-category__arrow svg {
	display: block;
	fill: currentColor;
}

.mpj-home-job-category__name {
	flex: 1;
	min-width: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.mpj-home-job-category__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: #87a598;
	transition: color 0.2s ease;
}

.mpj-home-job-category:hover .mpj-home-job-category__arrow {
	color: #087b43;
}

.mpj-home-job-categories__actions {
	display: flex;
	justify-content: center;
	margin-top: 38px;
}

.mpj-home-job-categories__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 280px;
	min-height: 58px;
	padding: 14px 28px;
	color: #ffffff;
	background: #087b43;
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(8, 123, 67, 0.2);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.mpj-home-job-categories__button:hover {
	color: #ffffff;
	background: #066738;
	box-shadow: 0 10px 24px rgba(8, 123, 67, 0.26);
	transform: translateY(-2px);
}

.mpj-home-job-categories__button:focus-visible {
	outline: 3px solid rgba(8, 123, 67, 0.24);
	outline-offset: 3px;
}

.mpj-home-job-categories__empty {
	padding: 36px 20px;
	background: #ffffff;
	border: 1px solid #dcece3;
	border-radius: 16px;
	text-align: center;
}

.mpj-home-job-categories__empty p {
	margin: 0;
	color: #5c6d65;
	font-size: 15px;
	line-height: 1.8;
}

@media screen and (max-width: 991px) {
	.mpj-home-job-categories {
		padding: 58px 20px 66px;
	}

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

@media screen and (max-width: 767px) {
	.mpj-home-job-categories {
		padding: 46px 15px 54px;
	}

	.mpj-home-job-categories__header {
		margin-bottom: 28px;
	}

	.mpj-home-job-categories__heading {
		font-size: 28px;
	}

	.mpj-home-job-categories__description {
		font-size: 14px;
	}

	.mpj-home-job-categories__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.mpj-home-job-category {
		min-height: 82px;
		padding: 15px 16px;
		border-radius: 14px;
	}

	.mpj-home-job-category__icon {
		flex-basis: 48px;
		width: 48px;
		height: 48px;
		border-radius: 12px;
	}

	.mpj-home-job-category__name {
		font-size: 15px;
	}

	.mpj-home-job-categories__actions {
		margin-top: 30px;
	}

	.mpj-home-job-categories__button {
		width: 100%;
		min-width: 0;
		min-height: 56px;
	}
}
