/**
 * =====================================================
 * みつピタジョブ
 * 求人詳細ページ：関連求人
 * -----------------------------------------------------
 * ・最大3件表示
 * ・PC：3列
 * ・タブレット：2列
 * ・スマートフォン：1列
 * ・キャッチコピー表示
 * ・勤務地／雇用形態／給与
 * ・SVGアイコン
 * =====================================================
 */

/* =====================================================
 * セクション全体
 * ===================================================== */

.mpj-related-jobs {
	width: 100%;
	margin: 32px 0 0;
	padding: 0;
	color: #26352f;
}

.mpj-related-jobs *,
.mpj-related-jobs *::before,
.mpj-related-jobs *::after {
	box-sizing: border-box;
}

/* =====================================================
 * 見出し
 * ===================================================== */

.mpj-related-jobs__heading-wrap {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	margin: 0 0 22px;
	padding: 20px 22px;
	background: #ffffff;
	border: 1px solid #dfe8e3;
	border-radius: 18px;
	box-shadow: 0 6px 18px rgba(30, 73, 58, 0.06);
}

.mpj-related-jobs__heading-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	background: #176247;
	border-radius: 14px;
	color: #ffffff;
}

.mpj-related-jobs__heading-icon svg {
	display: block;
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mpj-related-jobs__heading-content {
	min-width: 0;
}

.mpj-related-jobs__eyebrow {
	margin: 0 0 3px;
	color: #8b7440;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.4;
}

.mpj-related-jobs__heading {
	margin: 0;
	color: #176247;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.4;
}

.mpj-related-jobs__heading-note {
	margin: 5px 0 0;
	color: #66766f;
	font-size: 14px;
	line-height: 1.7;
}

/* =====================================================
 * 一覧
 * ===================================================== */

.mpj-related-jobs__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	margin: 0;
	padding: 0;
}

/* =====================================================
 * 求人カード
 * ===================================================== */

.mpj-related-jobs__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #dfe8e3;
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(30, 73, 58, 0.07);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.mpj-related-jobs__card:hover {
	transform: translateY(-3px);
	border-color: #c5d8cf;
	box-shadow: 0 13px 30px rgba(30, 73, 58, 0.12);
}

/* =====================================================
 * アイキャッチ画像
 * ===================================================== */

.mpj-related-jobs__image-link {
	display: block;
	width: 100%;
	overflow: hidden;
	background: #eef6f2;
	text-decoration: none;
}

.mpj-related-jobs__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: center;
	transition: transform 0.28s ease;
}

.mpj-related-jobs__card:hover
.mpj-related-jobs__image {
	transform: scale(1.035);
}

.mpj-related-jobs__image-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 20px;
	background:
		linear-gradient(
			135deg,
			#edf7f2 0%,
			#f9fcfa 58%,
			#f3ead0 100%
		);
	color: #176247;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.5;
	text-align: center;
}

.mpj-related-jobs__image-placeholder-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.86);
	border-radius: 50%;
	color: #176247;
	box-shadow: 0 4px 12px rgba(30, 73, 58, 0.09);
}

.mpj-related-jobs__image-placeholder-icon svg {
	display: block;
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* =====================================================
 * カード本文
 * ===================================================== */

.mpj-related-jobs__card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	padding: 20px;
}

/* =====================================================
 * キャッチコピー
 * ===================================================== */

.mpj-related-jobs__catch-copy {
	margin: 0;
	color: #26352f;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.65;
	overflow-wrap: anywhere;
	word-break: normal;
}

.mpj-related-jobs__catch-copy a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.mpj-related-jobs__catch-copy a:hover {
	color: #176247;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* =====================================================
 * 求人メタ情報
 * ===================================================== */

.mpj-related-jobs__meta {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin-top: 18px;
}

.mpj-related-jobs__meta-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	min-width: 0;
	padding: 11px 12px;
	background: #f7fbf9;
	border: 1px solid #e4ece8;
	border-radius: 12px;
}

.mpj-related-jobs__meta-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-top: 1px;
	background: #e9f4ef;
	border-radius: 9px;
	color: #176247;
}

.mpj-related-jobs__meta-icon svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mpj-related-jobs__meta-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.mpj-related-jobs__meta-label {
	margin: 0 0 2px;
	color: #6e7d76;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
}

.mpj-related-jobs__meta-value {
	color: #26352f;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
	overflow-wrap: anywhere;
	word-break: normal;
}

/* =====================================================
 * 求人詳細ボタン
 * ===================================================== */

.mpj-related-jobs__detail-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	margin-top: auto;
	padding: 11px 18px;
	background: #176247;
	border: 2px solid #176247;
	border-radius: 999px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.mpj-related-jobs__meta + .mpj-related-jobs__detail-link {
	margin-top: 20px;
}

.mpj-related-jobs__catch-copy + .mpj-related-jobs__detail-link {
	margin-top: 20px;
}

.mpj-related-jobs__detail-link:hover {
	background: #0f5039;
	border-color: #0f5039;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(23, 98, 71, 0.18);
}

.mpj-related-jobs__detail-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.mpj-related-jobs__detail-icon svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* =====================================================
 * フォーカス表示
 * ===================================================== */

.mpj-related-jobs__image-link:focus-visible,
.mpj-related-jobs__catch-copy a:focus-visible,
.mpj-related-jobs__detail-link:focus-visible {
	outline: 3px solid rgba(23, 98, 71, 0.24);
	outline-offset: 3px;
}

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

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

	.mpj-related-jobs {
		margin-top: 28px;
	}

	.mpj-related-jobs__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	.mpj-related-jobs__heading-wrap {
		padding: 18px 20px;
	}

	.mpj-related-jobs__card-body {
		padding: 18px;
	}
}

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

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

	.mpj-related-jobs {
		margin-top: 24px;
	}

	.mpj-related-jobs__heading-wrap {
		align-items: flex-start;
		gap: 12px;
		margin-bottom: 16px;
		padding: 16px;
		border-radius: 15px;
	}

	.mpj-related-jobs__heading-icon {
		width: 46px;
		height: 46px;
		border-radius: 12px;
	}

	.mpj-related-jobs__heading-icon svg {
		width: 24px;
		height: 24px;
	}

	.mpj-related-jobs__eyebrow {
		font-size: 10px;
	}

	.mpj-related-jobs__heading {
		font-size: 21px;
	}

	.mpj-related-jobs__heading-note {
		font-size: 13px;
		line-height: 1.6;
	}

	.mpj-related-jobs__list {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.mpj-related-jobs__card {
		border-radius: 16px;
	}

	.mpj-related-jobs__card-body {
		padding: 17px;
	}

	.mpj-related-jobs__catch-copy {
		font-size: 17px;
		line-height: 1.6;
	}

	.mpj-related-jobs__meta {
		gap: 8px;
		margin-top: 15px;
	}

	.mpj-related-jobs__meta-item {
		padding: 10px 11px;
	}

	.mpj-related-jobs__detail-link {
		min-height: 50px;
	}
}

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

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

	.mpj-related-jobs__heading-wrap {
		padding: 14px;
	}

	.mpj-related-jobs__heading-icon {
		width: 42px;
		height: 42px;
	}

	.mpj-related-jobs__heading {
		font-size: 19px;
	}

	.mpj-related-jobs__heading-note {
		margin-top: 4px;
		font-size: 12px;
	}

	.mpj-related-jobs__card-body {
		padding: 15px;
	}

	.mpj-related-jobs__catch-copy {
		font-size: 16px;
	}

	.mpj-related-jobs__meta-value {
		font-size: 12px;
	}
}

/* =====================================================
 * モーション軽減
 * ===================================================== */

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

	.mpj-related-jobs__card,
	.mpj-related-jobs__image,
	.mpj-related-jobs__catch-copy a,
	.mpj-related-jobs__detail-link {
		transition: none;
	}

	.mpj-related-jobs__card:hover,
	.mpj-related-jobs__detail-link:hover {
		transform: none;
	}

	.mpj-related-jobs__card:hover
	.mpj-related-jobs__image {
		transform: none;
	}
}