@charset "UTF-8";

/* ====================================
   Articles Template 専用スタイル
   stocks.css のリスト表示を参考に
   ==================================== */

/* 記事リスト */
.articles-list {
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: light-dark(#ddd, #444);
	border: 1px solid light-dark(#ddd, #444);
	border-radius: 4px;
	overflow: hidden;
}

/* 各記事アイテム */
.article-item {
	background: light-dark(#fff, #2a2a2a);
}

/* リンク全体 - stocks.css の stock-card と同様のグリッドレイアウト */
.article-item-link {
	display: grid;
	grid-template-columns: 80px 1fr;
	align-items: center;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s;
}

.article-item-link:hover {
	background: light-dark(#f8f8f8, #333);
}

/* 画像エリア */
.article-item-image {
	width: 80px;
	height: 80px;
	overflow: hidden;
	background: light-dark(#f0f0f0, #333);
	flex-shrink: 0;
}

.article-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-item-noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: light-dark(#e8e8e8, #3a3a3a);
	color: light-dark(#bbb, #555);
	font-size: 0.7em;
}

.article-item-noimage::before {
	content: 'NO IMAGE';
	font-size: 0.8em;
	color: light-dark(#aaa, #666);
}

/* 本文エリア */
.article-item-body {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
	padding: 0.6em 0.75em;
	min-width: 0;
	overflow: hidden;
}

/* 日付 */
.article-item-date {
	font-size: 0.75em;
	color: light-dark(#888, #888);
	font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* タイトル */
.article-item-title {
	font-weight: bold;
	font-size: 1em;
	color: light-dark(#333, #eee);
	line-height: 1.4;
}

/* 抜粋 */
.article-item-excerpt {
	font-size: 0.85em;
	color: light-dark(#666, #999);
	line-height: 1.5;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 記事なしメッセージ */
.no-articles-message {
	color: light-dark(#666, #999);
	text-align: center;
	padding: 2em;
}

/* SP調整 */
@media (max-width: 767px) {
	.article-item-link {
		grid-template-columns: 60px 1fr;
	}

	.article-item-image {
		width: 60px;
		height: 60px;
	}

	.article-item-title {
		font-size: 0.9em;
	}

	.article-item-excerpt {
		display: none;
	}
}
