/* ============================================
   RESET: SWELLカード系CSS全リセット（サイドバー + フッター）
   ============================================ */
#sidebar .p-postList.-type-card,
#sidebar .p-postList.-type-card .p-postList__item,
#sidebar .p-postList.-type-card .p-postList__link,
#sidebar .p-postList.-type-card .p-postList__thumb,
#sidebar .p-postList.-type-card .p-postList__body,
#sidebar .p-postList.-type-card .p-postList__title,
#sidebar .p-postList.-type-card .p-postList__meta,
#sidebar .p-postList.-type-card .c-postThumb,
#sidebar .p-postList.-type-card .c-postThumb__figure,
#sidebar .p-postList.-type-card .c-postThumb__img,
.l-footer__widgetArea .p-postList.-type-card,
.l-footer__widgetArea .p-postList.-type-card .p-postList__item,
.l-footer__widgetArea .p-postList.-type-card .p-postList__link,
.l-footer__widgetArea .p-postList.-type-card .p-postList__thumb,
.l-footer__widgetArea .p-postList.-type-card .p-postList__body,
.l-footer__widgetArea .p-postList.-type-card .p-postList__title,
.l-footer__widgetArea .p-postList.-type-card .p-postList__meta,
.l-footer__widgetArea .p-postList.-type-card .c-postThumb,
.l-footer__widgetArea .p-postList.-type-card .c-postThumb__figure,
.l-footer__widgetArea .p-postList.-type-card .c-postThumb__img {
	all: revert !important;
	box-sizing: border-box !important;
}

#sidebar .p-postList.-type-card .c-postThumb__figure::before,
.l-footer__widgetArea .p-postList.-type-card .c-postThumb__figure::before {
	all: unset !important;
	display: none !important;
}

#sidebar .p-postList.-type-card .p-postList__body::after,
.l-footer__widgetArea .p-postList.-type-card .p-postList__body::after {
	all: unset !important;
	display: none !important;
}

/* ============================================
   カード: 横並びリスト
   ============================================ */
#sidebar .p-postList.-type-card,
.l-footer__widgetArea .p-postList.-type-card {
	display: flex !important;
	flex-direction: column !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

#sidebar .p-postList.-type-card .p-postList__item,
.l-footer__widgetArea .p-postList.-type-card .p-postList__item {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	position: relative !important;
}

#sidebar .p-postList.-type-card .p-postList__link,
.l-footer__widgetArea .p-postList.-type-card .p-postList__link {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 10px !important;
	padding: 10px 0 !important;
	border-bottom: 1px solid #f0f0f0 !important;
	text-decoration: none !important;
	color: inherit !important;
}

#sidebar .p-postList.-type-card .p-postList__item:last-child .p-postList__link,
.l-footer__widgetArea .p-postList.-type-card .p-postList__item:last-child .p-postList__link {
	border-bottom: none !important;
}

/* サムネイル */
#sidebar .p-postList.-type-card .p-postList__thumb,
#sidebar .p-postList.-type-card .c-postThumb,
.l-footer__widgetArea .p-postList.-type-card .p-postList__thumb,
.l-footer__widgetArea .p-postList.-type-card .c-postThumb {
	width: 80px !important;
	min-width: 80px !important;
	max-width: 80px !important;
	height: 52px !important;
	flex-shrink: 0 !important;
	box-shadow: none !important;
	overflow: hidden !important;
	border-radius: 4px !important;
}

#sidebar .p-postList.-type-card .c-postThumb__figure,
.l-footer__widgetArea .p-postList.-type-card .c-postThumb__figure {
	width: 80px !important;
	height: 52px !important;
	margin: 0 !important;
	overflow: hidden !important;
	border-radius: 4px !important;
	position: relative !important;
}

#sidebar .p-postList.-type-card .c-postThumb__img,
.l-footer__widgetArea .p-postList.-type-card .c-postThumb__img {
	display: block !important;
	width: 80px !important;
	height: 52px !important;
	object-fit: cover !important;
	position: static !important;
	border-radius: 4px !important;
}

/* ボディ */
#sidebar .p-postList.-type-card .p-postList__body,
.l-footer__widgetArea .p-postList.-type-card .p-postList__body {
	flex: 1 !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

#sidebar .p-postList.-type-card .p-postList__title,
.l-footer__widgetArea .p-postList.-type-card .p-postList__title {
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.5 !important;
	margin: 0 !important;
	padding: 0 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	color: #333 !important;
}

#sidebar .p-postList.-type-card .p-postList__meta,
.l-footer__widgetArea .p-postList.-type-card .p-postList__meta {
	margin-top: 4px !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
}

#sidebar .p-postList.-type-card .c-postTimes,
#sidebar .p-postList.-type-card .p-postList__cat,
.l-footer__widgetArea .p-postList.-type-card .c-postTimes,
.l-footer__widgetArea .p-postList.-type-card .p-postList__cat {
	font-size: 10px !important;
	color: #999 !important;
}

/* ============================================
   ランキング番号
   ============================================ */
/* all: revertでcounter-resetも消えるので再設定 */
#sidebar .p-postList.-w-ranking,
.l-footer__widgetArea .p-postList.-w-ranking {
	counter-reset: number 0 !important;
}

#sidebar .-w-ranking.-type-card .p-postList__item::before,
.l-footer__widgetArea .-w-ranking.-type-card .p-postList__item::before {
	content: counter(number) !important;
	counter-increment: number !important;
	width: 18px !important;
	height: 18px !important;
	font-size: 10px !important;
	line-height: 18px !important;
	top: 12px !important;
	left: 0 !important;
	border-radius: 50% !important;
	z-index: 2 !important;
}
