.remelabo-related-posts,
.remelabo-related-posts ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.remelabo-related-posts {
	display: block;
	margin: 15px 0;
}

/* Core owns the layout of markup generated by the [article] compatibility renderer. */
.sc_article.remelabo-related-posts.grid {
	display: flex;
	flex-wrap: wrap;
}

.content ul.remelabo-related-posts > li > a,
.remelabo-related-posts > li > a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.remelabo-related-posts.grid > li {
	box-sizing: border-box;
	display: block;
	width: calc(33.333% - 16px);
	vertical-align: top;
}

.content ul.remelabo-related-posts.grid > li,
.content ul.remelabo-related-posts.list > li,
.remelabo-related-posts.grid > li,
.remelabo-related-posts.list > li {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: 84px;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--remelabo-related-card-surface, #fff);
	box-shadow: 0 0 3px rgba(0, 0, 0, .2);
	white-space: normal;
	list-style: none;
}

.content ul.remelabo-related-posts.grid > li,
.content ul.remelabo-related-posts.list > li {
	margin: 7px !important;
	padding: 0 !important;
}

.content ul.remelabo-related-posts.list > li {
	background: var(--remelabo-related-card-surface, #fff) !important;
}

.remelabo-related-posts.grid > li::before,
.remelabo-related-posts.list > li::before {
	display: none;
	content: none;
}

.remelabo-related-posts.grid > li > a {
	display: block !important;
	min-height: 84px;
	color: var(--remelabo-related-card-text, #222) !important;
	text-decoration: none !important;
}

.content ul.remelabo-related-posts.list > li {
	min-height: 100px !important;
}

.content ul.remelabo-related-posts.list > li > a,
.remelabo-related-posts.list > li > a {
	display: flex !important;
	align-items: stretch;
	min-height: 100px !important;
	color: var(--remelabo-related-card-text, #222) !important;
	text-decoration: none !important;
}

.remelabo-related-posts.grid .post_list_thumb,
.remelabo-related-posts.list .post_list_thumb {
	position: relative;
	overflow: hidden;
	margin: 0;
}

.sc_article.remelabo-related-posts.grid .post_list_thumb {
	background: var(--remelabo-related-grid-thumb-surface, #eee);
}

.sc_article.remelabo-related-posts.list .post_list_thumb {
	background: var(--remelabo-related-list-thumb-surface, #f0edf1) !important;
}

.remelabo-related-posts.list .post_list_thumb {
	position: relative !important;
	float: none !important;
	flex: 0 0 190px !important;
	width: 190px !important;
	min-width: 190px !important;
	height: 100px !important;
	margin: 0 !important;
}

.remelabo-related-posts .post_list_thumb img,
.remelabo-getpost .sc_getpost_thumb img,
.remelabo-auto-related-list img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	opacity: 1 !important;
	visibility: visible !important;
	object-fit: cover !important;
}

.remelabo-related-posts .meta {
	overflow: hidden;
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px;
}

.remelabo-related-posts.list .meta {
	display: block !important;
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px !important;
}

.remelabo-related-posts .sc_article_title {
	overflow: hidden;
	display: -webkit-box;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 6px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.remelabo-related-posts .sc_article_excerpt,
.remelabo-related-posts .sc_article_date {
	margin-top: 5px;
	color: var(--remelabo-related-muted, #756d74);
	font-size: .78em;
}

.remelabo-related-posts .sc_article_cat,
.remelabo-getpost .sc_getpost_cat {
	display: inline-block;
	padding: 2px 7px;
	background: var(--remelabo-related-accent, #d9488b);
	color: #fff;
	font-size: 11px;
	line-height: 1.5;
}

.remelabo-related-posts figure .sc_article_cat,
.remelabo-getpost .sc_getpost_cat {
	position: absolute;
	right: 0;
	bottom: 0;
}

.remelabo-related-posts.simple {
	display: block;
	border-top: 1px solid #eee;
}

.remelabo-related-posts.simple > li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-bottom: 1px solid #eee;
	font-size: .88em;
}

.remelabo-related-posts.simple a {
	color: inherit;
	text-decoration: none;
}

.remelabo-getpost {
	margin-block: 1.2em;
	border: 1px solid #e6e1e5;
	background: #fff;
}

.remelabo-getpost > a {
	display: flex;
	color: inherit;
	text-decoration: none;
}

.remelabo-getpost .sc_getpost_thumb {
	position: relative;
	flex: 0 0 150px;
}

.remelabo-getpost .sc_getpost_thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.remelabo-getpost .sc_getpost_body {
	min-width: 0;
	padding: 12px;
}

.remelabo-getpost .title {
	font-weight: 700;
}

.remelabo-getpost .badge {
	margin-right: .5em;
	padding: 2px 6px;
	background: #d9488b;
	color: #fff;
	font-size: .75em;
}

.remelabo-getpost .date,
.remelabo-getpost .substr {
	margin-top: 4px;
	color: #756d74;
	font-size: .78em;
}

.remelabo-relpost {
	margin: 15px 0;
	border: 1px solid #eee;
}

.remelabo-relpost .editer_diver_kiji_title {
	padding: 3px 10px;
	border-bottom: 1px solid #ccc;
	font-size: .9em;
}

.remelabo-relpost .diver_rel_kiji {
	margin: 0;
	padding: 0;
	list-style: none;
}

.remelabo-relpost .diver_rel_kiji li {
	padding: 5px 12px;
	border-bottom: 1px solid #eee;
	font-size: .82em;
}

/* Automatic category-related list generated by Remelabo Core. */
.remelabo-auto-related {
	margin: 12px 0;
	padding: 12px 14px 15px;
	background: var(--remelabo-related-card-surface, #fff);
}

.remelabo-auto-related > .single_title {
	margin: 0 0 10px !important;
	padding: 5px 0 10px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--remelabo-related-border, #e8e8e8) !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--remelabo-related-heading, #6687af) !important;
	font-size: 17px;
	font-weight: 400;
}

.remelabo-auto-related-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 24px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.remelabo-auto-related-list > li {
	margin: 0 !important;
	padding: 0 !important;
	border-bottom: 1px solid var(--remelabo-related-item-border, #eee);
	list-style: none !important;
}

.remelabo-auto-related-list > li::before {
	display: none !important;
	content: none !important;
}

.remelabo-auto-related-list > li > a {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	align-items: center;
	min-height: 88px;
	color: var(--remelabo-related-link, #242033) !important;
	text-decoration: none !important;
}

.remelabo-auto-related-list .post-box-thumbnail__wrap {
	overflow: hidden;
	width: 140px;
	height: 78px;
	background: var(--remelabo-related-auto-thumb-surface, #eee);
}

.remelabo-auto-related-list .meta {
	min-width: 0;
	padding: 8px 10px;
}

.remelabo-auto-related-list .title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
}

.remelabo-auto-related-list .date {
	display: block;
	margin-top: 5px;
	color: var(--remelabo-related-auto-muted, #8890a0);
	font-size: 11px;
}

@media (max-width: 700px) {
	.remelabo-auto-related-list {
		grid-template-columns: 1fr;
	}

	.remelabo-related-posts.list .post_list_thumb {
		flex-basis: 120px !important;
		width: 120px !important;
		min-width: 120px !important;
		height: 76px !important;
	}

	.content ul.remelabo-related-posts.list > li,
	.content ul.remelabo-related-posts.list > li > a,
	.remelabo-related-posts.list > li > a {
		min-height: 76px !important;
	}
}

@media (max-width: 600px) {
	.remelabo-related-posts.grid > li {
		width: calc(50% - 12px);
		margin: 6px;
	}

	.remelabo-related-posts.list > li,
	.content ul.remelabo-related-posts.list > li > a,
	.remelabo-related-posts.list > li > a {
		min-height: 76px;
	}

	.remelabo-related-posts.list .post_list_thumb {
		flex-basis: 120px;
		width: 120px;
		min-width: 120px;
		height: 76px;
	}

	.remelabo-getpost .sc_getpost_thumb {
		flex-basis: 110px;
	}

	.remelabo-getpost .substr {
		display: none;
	}
}
