/**
 * =====================================================
 * みつピタジョブ
 * トップページ：お知らせ
 * -----------------------------------------------------
 * 対象：
 * [lilac_news site="mitsupita" count="5"]
 * =====================================================
 */

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

.mpj-home-news {
	width: 100%;
	margin: 0;
	padding: clamp(64px, 8vw, 104px) 20px;
	background:
		linear-gradient(
			180deg,
			#ffffff 0%,
			#f7f4ff 100%
		);
	overflow: hidden;
}

.mpj-home-news *,
.mpj-home-news *::before,
.mpj-home-news *::after {
	box-sizing: border-box;
}

.mpj-home-news__inner {
	width: min(100%, 1180px);
	margin: 0 auto;
}

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

.mpj-home-news__header {
	width: min(100%, 760px);
	margin: 0 auto 34px;
	text-align: center;
}

.mpj-home-news__label {
	margin: 0 0 10px;
	color: #07824f;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.14em;
}

.mpj-home-news__title {
	margin: 0;
	color: #19352a;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.03em;
}

.mpj-home-news__title::after {
	display: block;
	width: 52px;
	height: 4px;
	margin: 18px auto 0;
	border-radius: 999px;
	background: #07824f;
	content: "";
}

.mpj-home-news__description {
	margin: 22px auto 0;
	color: #53645d;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.9;
	letter-spacing: 0.03em;
}

/* =====================================================
 * お知らせメイン画像
 * PCでは小さめ、スマホでは横幅に自動調整
 * ===================================================== */

.mpj-home-news__image-wrap {
	width: min(100%, 720px);
	margin: 0 auto 36px;
	overflow: hidden;
	border: 1px solid #e2ece7;
	border-radius: 20px;
	background: #ffffff;
	box-shadow:
		0 14px 36px
		rgba(20, 79, 54, 0.10);
}

.mpj-home-news__image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	object-fit: contain;
	object-position: center center;
}

/* =====================================================
 * お知らせ一覧
 * ===================================================== */

.mpj-home-news__content {
	width: 100%;
	margin: 0 auto;
}

.mpj-home-news__content .lilac-news-list {
	display: grid;
	grid-template-columns:
		repeat(3, minmax(0, 1fr));
	gap: 22px;
	width: 100%;
	margin: 0;
}

/* =====================================================
 * お知らせカード
 * ===================================================== */

.mpj-home-news__content .lilac-news-card {
	min-width: 0;
	height: 100%;
	margin: 0;
}

.mpj-home-news__content .lilac-news-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid #dcebe3;
	border-radius: 18px;
	background: #ffffff;
	box-shadow:
		0 12px 32px
		rgba(20, 79, 54, 0.09);
	color: inherit;
	text-decoration: none;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.mpj-home-news__content .lilac-news-card__link:hover,
.mpj-home-news__content .lilac-news-card__link:focus {
	border-color: #b8dccc;
	transform: translateY(-4px);
	box-shadow:
		0 18px 42px
		rgba(20, 79, 54, 0.14);
}

/* =====================================================
 * カード画像
 * ===================================================== */

.mpj-home-news__content .lilac-news-card__image {
	width: 100%;
	overflow: hidden;
	background: #eef7f2;
	aspect-ratio: 16 / 9;
}

.mpj-home-news__content .lilac-news-card__thumbnail {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

.mpj-home-news__content
.lilac-news-card__link:hover
.lilac-news-card__thumbnail,
.mpj-home-news__content
.lilac-news-card__link:focus
.lilac-news-card__thumbnail {
	transform: scale(1.03);
}

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

.mpj-home-news__content .lilac-news-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}

.mpj-home-news__content .lilac-news-card__date {
	margin: 0 0 10px;
	color: #07824f;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.04em;
}

.mpj-home-news__content .lilac-news-card__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #19352a;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.65;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.mpj-home-news__content .lilac-news-card__excerpt {
	display: -webkit-box;
	margin: 14px 0 0;
	overflow: hidden;
	color: #627169;
	font-size: 14px;
	line-height: 1.85;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.mpj-home-news__content .lilac-news-card__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 20px;
	color: #07824f;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}

.mpj-home-news__content .lilac-news-card__more::after {
	margin-left: 7px;
	content: "→";
	transition: transform 0.2s ease;
}

.mpj-home-news__content
.lilac-news-card__link:hover
.lilac-news-card__more::after,
.mpj-home-news__content
.lilac-news-card__link:focus
.lilac-news-card__more::after {
	transform: translateX(4px);
}

/* =====================================================
 * 画像がないカード
 * ===================================================== */

.mpj-home-news__content
.lilac-news-card__link
> .lilac-news-card__content:first-child {
	position: relative;
	padding-top: 54px;
}

.mpj-home-news__content
.lilac-news-card__link
> .lilac-news-card__content:first-child::before {
	position: absolute;
	top: 20px;
	left: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e9f7ef;
	color: #07824f;
	font-size: 14px;
	font-weight: 800;
	content: "i";
}

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

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

	.mpj-home-news__image-wrap {
		width: min(100%, 650px);
		margin-bottom: 30px;
	}

	.mpj-home-news__content .lilac-news-list {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
	}

	.mpj-home-news__header {
		margin-bottom: 30px;
	}
}

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

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

	.mpj-home-news {
		padding: 52px 16px 68px;
	}

	.mpj-home-news__header {
		margin-bottom: 24px;
	}

	.mpj-home-news__label {
		margin-bottom: 8px;
		font-size: 11px;
	}

	.mpj-home-news__title {
		font-size: 27px;
	}

	.mpj-home-news__title::after {
		width: 44px;
		height: 3px;
		margin-top: 14px;
	}

	.mpj-home-news__description {
		margin-top: 17px;
		font-size: 14px;
	}

	.mpj-home-news__image-wrap {
		width: 100%;
		margin-bottom: 24px;
		border-radius: 16px;
	}

	.mpj-home-news__image {
		width: 100%;
		height: auto;
		object-fit: contain;
	}

	.mpj-home-news__content .lilac-news-list {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.mpj-home-news__content .lilac-news-card__link {
		border-radius: 15px;
	}

	.mpj-home-news__content .lilac-news-card__content {
		padding: 19px 18px 21px;
	}

	.mpj-home-news__content .lilac-news-card__title {
		font-size: 16px;
		-webkit-line-clamp: 2;
	}

	.mpj-home-news__content .lilac-news-card__excerpt {
		margin-top: 11px;
		font-size: 13px;
		-webkit-line-clamp: 2;
	}

	.mpj-home-news__content .lilac-news-card__more {
		padding-top: 16px;
	}
}

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

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

	.mpj-home-news {
		padding-right: 12px;
		padding-left: 12px;
	}

	.mpj-home-news__title {
		font-size: 24px;
	}
}