@charset "utf-8";
.dj-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: var(--mg-gap)
}
.dj-item {
	position: relative;
	overflow: hidden;
	align-self: start; /* グリッド内で高さを揃えない */
}
.thumbnail {
    position: relative;
}
.dj-item .name {
	position: absolute;
	bottom: 0.5rem;
	left: 0.5rem;
	width: calc(100% - 2rem - 4px);
	border: 2px solid #fff;
	background: #000;
	color: #fff;
	padding: 0.25rem 0.5rem;
	border-bottom-right-radius: 10px;
	border-bottom-left-radius: 10px;
	font-weight: bold;
}
.article-content {
    padding: var(--mg-gap);
}

.article-content {
    display: none; /* 初期状態では非表示 */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out; /* アニメーション */
}

.article-content.open {
    display: block;
    max-height: 1000px; /* 記事が完全に開かれる最大高さ */
}
@media (max-width: 800px){
	.dj-grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 600px){
	.dj-grid {
		grid-template-columns: 1fr;
		column-gap: 0;
	}
}