/**
 * お知らせブロック（日付・カテゴリー・タイトル型）
 */
.p-postListWrap.swell-child-announcement,
[data-type="swell-child/announcement"] .p-postListWrap {
	pointer-events: none;
}

.p-postList.-type-meta_stack,
.swell-child-announcement .p-postList.-type-meta_stack {
	list-style: none;
	margin: 0 0 2em;
	padding: 0;
	border-top: 1px solid var(--color_border);
}

.p-postList.-type-meta_stack .p-postList__item {
	margin: 0;
}

.p-postList.-type-meta_stack .p-postList__link {
	display: block;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid var(--color_border);
	padding: 0.85em 0.25em;
	transition: background-color 0.25s;
}

.p-postList.-type-meta_stack .p-postList__link:hover {
	background-color: var(--swl-color_hov_gray, rgba(0, 0, 0, 0.03));
}

/* 日付 + カテゴリー + タイトル */
.swell-child-announcement {
	--swell-child-announcement-date-col: max-content;
	--swell-child-announcement-cat-col: 7.5em;
}

.swell-child-announcement--date-dot {
	--swell-child-announcement-date-col: 7.2em;
}

.p-postList.-type-meta_stack .swell-child-announcement__row {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.5em 0.85em;
}

.p-postList.-type-meta_stack .swell-child-announcement__times,
.p-postList.-type-meta_stack .p-postList__times {
	flex-shrink: 0;
	margin: 0;
	padding: 0;
	font-size: 0.85em;
	line-height: 1.4;
	opacity: 0.8;
	white-space: nowrap;
}

.swell-child-announcement--date-dot .swell-child-announcement__times {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

.p-postList.-type-meta_stack .c-postTimes {
	flex-wrap: nowrap;
	gap: 0.5em;
}

/* アイコン非表示 */
.p-postList.-type-meta_stack .c-postTimes__posted::before,
.p-postList.-type-meta_stack .c-postTimes__modified::before,
.p-postList.-type-meta_stack .p-postList__cat::before,
.p-postList.-type-meta_stack .swell-child-announcement__cat::before {
	content: none !important;
	display: none !important;
	margin: 0 !important;
}

.p-postList.-type-meta_stack .c-postTimes__posted,
.p-postList.-type-meta_stack .c-postTimes__modified {
	margin-right: 0;
}

/* カテゴリー列（幅固定でタイトル開始位置を揃える） */
.p-postList.-type-meta_stack .swell-child-announcement__cat-slot {
	display: block;
	flex: 0 0 var(--swell-child-announcement-cat-col);
	width: var(--swell-child-announcement-cat-col);
	max-width: var(--swell-child-announcement-cat-col);
	min-width: 0;
}

/* カテゴリー（枠付き） */
.p-postList.-type-meta_stack .swell-child-announcement__cat {
	display: inline-block;
	box-sizing: border-box;
	max-width: 100%;
	margin: 0;
	padding: 0.15em 1em;
	font-size: 0.72em;
	line-height: 1.6;
	font-weight: 600;
	letter-spacing: 0.03em;
	border: 1px solid var(--color_main);
	color: var(--color_main);
	background: transparent;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: middle;
}

.swell-child-announcement--cat-radius-none .swell-child-announcement__cat {
	border-radius: 0;
}

.swell-child-announcement--cat-radius-slight .swell-child-announcement__cat {
	border-radius: 3px;
}

.swell-child-announcement--cat-radius-max .swell-child-announcement__cat {
	border-radius: 9999px;
	padding-left: 1.15em;
	padding-right: 1.15em;
}

/* カテゴリー：塗りつぶし（デフォルトはメインカラー） */
.swell-child-announcement--cat-style-filled .swell-child-announcement__cat {
	background-color: var(--color_main);
	border-color: var(--color_main);
	color: #fff;
}

/* タイトル */
.p-postList.-type-meta_stack .p-postList__title {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.5;
	background: none;
	border: none;
	color: inherit;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.p-postList.-type-meta_stack .p-postList__title::before,
.p-postList.-type-meta_stack .p-postList__title::after {
	content: none;
}

@media (max-width: 599px) {
	/* SP: 日付・カテゴリー → タイトル（2段） */
	.p-postList.-type-meta_stack .swell-child-announcement__row {
		flex-wrap: wrap;
		align-items: center;
		gap: 0.45em 0.75em;
	}

	.p-postList.-type-meta_stack .swell-child-announcement__cat-slot {
		flex: 0 1 auto;
		width: auto;
		max-width: 100%;
	}

	.p-postList.-type-meta_stack .p-postList__title {
		flex: 1 1 100%;
		width: 100%;
		margin-top: 0.15em;
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
	}
}

@media (min-width: 600px) {
	.p-postList.-type-meta_stack .swell-child-announcement__row {
		display: grid;
		grid-template-columns:
			var(--swell-child-announcement-date-col)
			var(--swell-child-announcement-cat-col)
			minmax(0, 1fr);
		align-items: center;
		column-gap: 1.25em;
		row-gap: 0;
	}

	.p-postList.-type-meta_stack .swell-child-announcement__times,
	.p-postList.-type-meta_stack .p-postList__times {
		grid-column: 1;
	}

	.p-postList.-type-meta_stack .swell-child-announcement__cat-slot {
		grid-column: 2;
		width: 100%;
		max-width: none;
	}

	.p-postList.-type-meta_stack .p-postList__title {
		grid-column: 3;
	}

	.swell-child-announcement--no-date .p-postList.-type-meta_stack .swell-child-announcement__row {
		grid-template-columns:
			var(--swell-child-announcement-cat-col)
			minmax(0, 1fr);
	}

	.swell-child-announcement--no-date .p-postList.-type-meta_stack .swell-child-announcement__cat-slot {
		grid-column: 1;
	}

	.swell-child-announcement--no-date .p-postList.-type-meta_stack .p-postList__title {
		grid-column: 2;
	}

	.p-postList.-type-meta_stack .swell-child-announcement__times,
	.p-postList.-type-meta_stack .p-postList__times {
		font-size: 0.8em;
	}

	.p-postList.-type-meta_stack .swell-child-announcement__cat {
		font-size: 0.68em;
	}
}

@media (min-width: 960px) {
	.p-postList.-type-meta_stack .p-postList__link {
		padding-top: 1.15em;
		padding-bottom: 1.15em;
	}

	.p-postList.-type-meta_stack .swell-child-announcement__row {
		column-gap: 1.6em;
	}
}

/* MORE ボタン */
.swell-child-announcement + .is-style-more_btn,
.p-postListWrap.swell-child-announcement + .is-style-more_btn {
	margin-top: 2em;
}

/* エディタープレビュー（ビューポートに応じて CSS のメディアクエリが効く） */
.wp-block .p-postList.-type-meta_stack .swell-child-announcement__row {
	display: flex;
}
