/*
 * クリアソンの記事ページ
 */

/* ===========================
   ページ1: カテゴリー一覧
   =========================== */
.articles-top {
	padding: 48px 0 80px;
}

.articles-cat-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.articles-cat-item__link {
	display: block;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.articles-cat-item__link:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 24px rgba(60, 35, 120, 0.18);
}

.articles-cat-item__img-wrap {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eee;
}
.articles-cat-item__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}
.articles-cat-item__link:hover .articles-cat-item__img {
	transform: scale(1.04);
}

.articles-cat-item__name {
	display: block;
	text-align: center;
	font-size: clamp(18px, 2.5vw, 24px);
	font-weight: 700;
	color: #3C2378;
	padding: 16px 12px;
	background: #fff;
}

/* ===========================
   ページ2: カテゴリー詳細
   =========================== */
.articles-cat-detail {
	padding-bottom: 80px;
}

/* ヒーロー画像エリア */
.articles-cat-detail__hero {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #1a0a3c;
	margin-bottom: 0;
}
.articles-cat-detail__hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.articles-cat-detail__hero-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #3C2378 0%, #6a3fbb 100%);
}
/* カテゴリー名・文言 */
.articles-cat-detail__meta {
	background: #fff;
	padding: 32px 40px;
	text-align: center;
}
.articles-cat-detail__name {
	font-size: clamp(20px, 3.5vw, 30px);
	font-weight: 700;
	color: #3C2378;
	margin: 0 0 12px;
	letter-spacing: 0.04em;
}
.articles-cat-detail__text {
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 700;
	color: #3C2378;
	line-height: 1.8;
	max-width: 720px;
	margin: 0 auto;
}

/* 記事リスト */
.articles-cat-detail__posts {
	margin-top: 48px;
}

.articles-post-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.articles-post-item__link {
	display: flex;
	gap: 24px;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	text-decoration: none;
	color: #191919;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.articles-post-item__link:hover {
	box-shadow: 0 6px 24px rgba(60, 35, 120, 0.16);
	transform: translateY(-2px);
}

.articles-post-item__thumb {
	flex-shrink: 0;
	width: 45%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eee;
}
.articles-post-item__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.articles-post-item__link:hover .articles-post-item__img {
	transform: scale(1.04);
}

.articles-post-item__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px 28px 24px 0;
}
.articles-post-item__title {
	font-size: clamp(15px, 2vw, 19px);
	font-weight: 700;
	line-height: 1.5;
	margin: 0 0 12px;
	color: #1a1a2e;
}
.articles-post-item__excerpt {
	font-size: 1.4rem;
	color: #555;
	line-height: 1.7;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* もっと見るリンク */
.articles-cat-detail__more {
	margin-top: 32px;
	text-align: center;
}
.articles-cat-detail__more--sp-only {
	display: none;
}
.articles-more-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	background: #3C2378;
	border: 2px solid #3C2378;
	border-radius: 40px;
	padding: 12px 28px;
	transition: background 0.2s ease, color 0.2s ease;
}
.articles-more-link:hover {
	background: #fff;
	color: #3C2378;
}
.articles-more-link__arrow {
	font-size: 1.6rem;
}

/* 戻るリンク */
.articles-cat-detail__back {
	margin-top: 48px;
	text-align: center;
}
.articles-back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 1.5rem;
	font-weight: 700;
	color: #3C2378;
	text-decoration: none;
	border: 2px solid #3C2378;
	border-radius: 40px;
	padding: 12px 28px;
	transition: background 0.2s ease, color 0.2s ease;
}
.articles-back-link:hover {
	background: #3C2378;
	color: #fff;
}
.articles-back-link__arrow {
	font-size: 1.6rem;
}

/* ===========================
   空状態
   =========================== */
.articles-no-posts {
	text-align: center;
	padding: 60px 20px;
	color: #888;
	font-size: 1.5rem;
}

/* ===========================
   レスポンシブ
   =========================== */
@media screen and (max-width: 768px) {
	.articles-cat-detail__meta {
		padding: 24px 20px;
	}
}

@media screen and (max-width: 640px) {
	.articles-post-item--sp-hidden {
		display: none;
	}
	.articles-cat-detail__more--sp-only {
		display: block;
	}
	.articles-cat-grid {
		grid-template-columns: repeat(1, 1fr);
		gap: 16px;
	}
	.articles-cat-item__name {
		font-size: 1.4rem;
		padding: 12px 8px;
	}
	.articles-post-item__link {
		flex-direction: column;
		gap: 0;
	}
	.articles-post-item__thumb {
		width: 100%;
	}
	.articles-post-item__body {
		padding: 16px;
	}
}
