/**
 * =====================================================
 * みつピタジョブ
 * 共通パンくず
 * -----------------------------------------------------
 * ・求人詳細ページ本文幅に揃える
 * ・PC／タブレット／スマートフォン対応
 * ・長い会社名は省略表示
 * ・見やすく、主張しすぎないデザイン
 * =====================================================
 */

/* =====================================================
 * パンくず全体
 * ===================================================== */

.mpj-breadcrumb {
	width: 100%;
	margin: 0;
	padding: 14px 20px;
	background: #ffffff;
	border-top: 1px solid #eef4f0;
	border-bottom: 1px solid #e3eee7;
	box-sizing: border-box;
}

/* =====================================================
 * 内側
 * -----------------------------------------------------
 * 求人詳細の本文幅に合わせます。
 * ===================================================== */

.mpj-breadcrumb__inner {
	width: min(100%, 1180px);
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

/* =====================================================
 * パンくず一覧
 * ===================================================== */

.mpj-breadcrumb__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: #617168;
	font-size: 13px;
	line-height: 1.6;
	list-style: none;
	box-sizing: border-box;
}

/* =====================================================
 * 各項目
 * ===================================================== */

.mpj-breadcrumb__item {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

/* 現在ページだけ残り幅を使用 */
.mpj-breadcrumb__item:last-child {
	flex: 1 1 auto;
	overflow: hidden;
}

/* =====================================================
 * 区切り
 * ===================================================== */

.mpj-breadcrumb__item:not(:last-child)::after {
	display: inline-block;
	flex: 0 0 auto;
	margin-left: 8px;
	color: #9db2a5;
	font-size: 15px;
	line-height: 1;
	content: "›";
}

/* =====================================================
 * リンク
 * ===================================================== */

.mpj-breadcrumb__link {
	display: inline-block;
	color: #247453;
	font-weight: 700;
	text-decoration: none;
	transition:
		color 0.2s ease,
		opacity 0.2s ease;
}

.mpj-breadcrumb__link:hover {
	color: #185c3f;
	text-decoration: underline;
}

.mpj-breadcrumb__link:focus-visible {
	color: #185c3f;
	text-decoration: underline;
	outline: 2px solid #8ec7a8;
	outline-offset: 3px;
	border-radius: 2px;
}

/* =====================================================
 * 現在ページ
 * ===================================================== */

.mpj-breadcrumb__current {
	display: block;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	color: #53635b;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* =====================================================
 * 大型PC
 * ===================================================== */

@media (min-width: 1440px) {

	.mpj-breadcrumb {
		padding-top: 15px;
		padding-bottom: 15px;
	}

	.mpj-breadcrumb__list {
		font-size: 14px;
	}

}

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

@media (min-width: 768px) and (max-width: 1023px) {

	.mpj-breadcrumb {
		padding: 13px 18px;
	}

	.mpj-breadcrumb__list {
		gap: 7px;
		font-size: 13px;
	}

	.mpj-breadcrumb__item:not(:last-child)::after {
		margin-left: 7px;
	}

}

/* =====================================================
 * スマートフォン
 * -----------------------------------------------------
 * 横スクロールは使わず、
 * 現在ページだけ省略表示します。
 * ===================================================== */

@media (max-width: 767px) {

	.mpj-breadcrumb {
		padding: 11px 14px;
	}

	.mpj-breadcrumb__inner {
		width: 100%;
	}

	.mpj-breadcrumb__list {
		gap: 6px;
		font-size: 12px;
		line-height: 1.5;
	}

	.mpj-breadcrumb__item:not(:last-child)::after {
		margin-left: 6px;
		font-size: 14px;
	}

	.mpj-breadcrumb__current {
		max-width: 52vw;
	}

}

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

@media (max-width: 430px) {

	.mpj-breadcrumb {
		padding: 10px 12px;
	}

	.mpj-breadcrumb__list {
		font-size: 11px;
	}

	.mpj-breadcrumb__current {
		max-width: 46vw;
	}

}