/*
 * フロントエンドのRSS表示用のスタイル
 * 例:
 */
.my-rss-widget {
	margin-bottom: 2em;
	border: 1px solid #eee;
	padding: 1em;
	border-radius: 5px;
	background-color: #fff;
}

.my-rss-widget h2 a {
	text-decoration: none;
	color: #333;
}

.notecardtype {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 1em;
}

.notecardtype__article {
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	background-color: #fff;
	display: flex;
	flex-direction: column;
	position: relative;
}

.notecardtype__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.notecardtype__img img {
	width: 100%;
	height: 276px; /* アイキャッチ画像の高さを固定 */
	object-fit: cover; /* 画像がコンテナを埋めるように調整 */
	display: block;
}

.notecardtype__article-info {
	padding: 15px;
	flex-grow: 1; /* 残りのスペースを埋める */
}

.notecardtype__article-info time {
	font-size: 0.8em;
	color: #666;
	display: block;
	margin-bottom: 5px;
}

.notecardtitle {
	font-size: 1.1em;
	margin: 0;
	line-height: 1.4;
	color: #333;
	font-weight: bold;
}

.notedescription {
	font-size: 0.9em;
	color: #555;
	padding: 0 15px 15px;
	margin: 0;
}

.notecat-name {
	padding: 0 15px 15px;
	text-align: right;
	margin: 0;
	position:absolute;
	bottom: 0;
	right: 0;
}

.notecat-name img {
	height: 18px;
	width: auto;
	vertical-align: middle;
}

.align-right.note {
	text-align: right;
	margin-top: 1em;
}

.align-right.note a {
	display: inline-flex;
	align-items: center;
	padding: 8px 15px;
	 background-color: var(--wp--preset--color--vk-color-primary, #999);
	border-radius: 5px;
	text-decoration: none;
	color: #fff;
	font-weight: bold;
}

.align-right.note a img {
	height: 16px;
	width: auto;
	margin-right: 8px;
	filter: invert(100%);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	.notecardtype {
		grid-template-columns: 1fr; /* 小画面では1列に */
	}
}
