/* ========================================
   ちょいであラボ NEWSページ
======================================== */

.chde-news-page {
	width: min(100%, 1100px);
	margin: 0 auto;
	padding: 24px 20px 80px;
	color: #222;
}

.chde-news-page *,
.chde-news-page *::before,
.chde-news-page *::after {
	box-sizing: border-box;
}


/* ========================================
   NEWS見出し
======================================== */

.chde-news-header {
	margin-bottom: 56px;
	text-align: center;
}

.chde-news-header-en {
	margin: 0 0 4px;
	color: #999;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
}

.chde-news-header-title {
	margin: 0;
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.2;
}

.chde-news-header-description {
	margin: 10px 0 0;
	color: #777;
	font-size: 14px;
}


/* ========================================
   共通セクション見出し
======================================== */

.chde-news-featured,
.chde-news-categories,
.chde-news-list-section {
	margin-bottom: 56px;
}

.chde-news-section-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
}



.chde-news-section-heading h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}


/* ========================================
   開催中・重要なお知らせ
======================================== */

.chde-news-featured-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.chde-news-featured-card {
	position: relative;
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr) 28px;
	align-items: stretch;
	min-height: 140px;
	overflow: hidden;
	border: 1px solid #e2e2e2;
	border-radius: 14px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.chde-news-featured-card:hover {
	transform: translateY(-2px);
	border-color: #c8c8c8;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.chde-news-featured-image {
	min-height: 140px;
	overflow: hidden;
	background: #f5f5f5;
}

.chde-news-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.chde-news-featured-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px 16px;
}

.chde-news-featured-label {
	align-self: flex-start;
	margin-bottom: 8px;
	padding: 5px 10px;
	border-radius: 4px;
	background: #222;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.chde-news-featured-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
}

.chde-news-featured-deadline {
	margin: 8px 0 0;
	color: #666;
	font-size: 12px;
	font-weight: 600;
}


/* ========================================
   カテゴリーボタン
======================================== */

.chde-news-category-nav {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	padding: 8px;
	border: 1px solid #dedede;
	border-radius: 12px;
	background: #fff;
}

.chde-news-category-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 12px;
	border-radius: 8px;
	color: #555;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.chde-news-category-button:hover,
.chde-news-category-button.is-active {
	background: #222;
	color: #fff;
}


/* ========================================
   NEWS一覧
======================================== */

.chde-news-list {
	display: grid;
	gap: 14px;
}

.chde-news-card {
	margin: 0;
	overflow: hidden;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	background: #fff;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.chde-news-card:hover {
	transform: translateY(-2px);
	border-color: #c9c9c9;
	box-shadow: 0 9px 26px rgba(0, 0, 0, 0.07);
}

.chde-news-card-link {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr) 44px;
	align-items: stretch;
	min-height: 160px;
	color: inherit;
	text-decoration: none;
}

.chde-news-card-image {
	position: relative;
	overflow: hidden;
	background: #f4f4f4;
}

.chde-news-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.chde-news-card:hover .chde-news-card-image img {
	transform: scale(1.025);
}

.chde-news-no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 140px;
	background:
		linear-gradient(
			135deg,
			#f7f7f7,
			#ececec
		);
	color: #aaa;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.15em;
}

.chde-news-new-label {
	position: absolute;
	z-index: 2;
	top: 10px;
	left: 10px;
	padding: 5px 8px;
	border-radius: 4px;
	background: #58a85b;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
}

.chde-news-card-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px;
	min-width: 0;
}

.chde-news-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.chde-news-card-date {
	color: #777;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.chde-news-category-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 9px;
	border-radius: 4px;
	background: #777;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.chde-news-category-label.is-new-product,
.chde-news-featured-card.is-new-product .chde-news-featured-label {
	background: #377bc0;
}

.chde-news-category-label.is-collaboration,
.chde-news-featured-card.is-collaboration .chde-news-featured-label {
	background: #8761aa;
}

.chde-news-category-label.is-event,
.chde-news-featured-card.is-event .chde-news-featured-label {
	background: #d78a2d;
}

.chde-news-category-label.is-information,
.chde-news-featured-card.is-information .chde-news-featured-label {
	background: #777;
}

.chde-news-card-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.45;
}

.chde-news-card-excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 10px 0 0;
	color: #666;
	font-size: 14px;
	line-height: 1.7;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.chde-news-card-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #555;
	font-size: 30px;
	font-weight: 300;
}


/* ========================================
   ページ送り
======================================== */

.chde-news-pagination {
	margin-top: 36px;
}

.chde-news-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chde-news-pagination .page-numbers li {
	margin: 0;
}

.chde-news-pagination a,
.chde-news-pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #ddd;
	border-radius: 7px;
	background: #fff;
	color: #333;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.chde-news-pagination a:hover,
.chde-news-pagination .current {
	border-color: #222;
	background: #222;
	color: #fff;
}


/* ========================================
   記事がない場合
======================================== */

.chde-news-empty {
	padding: 60px 24px;
	border: 1px solid #e1e1e1;
	border-radius: 12px;
	background: #fafafa;
	text-align: center;
}

.chde-news-empty p {
	margin: 0;
	color: #777;
}


/* ========================================
   スマートフォン・タブレット対応
======================================== */

@media screen and (max-width: 900px) {

	.chde-news-featured-list {
		grid-template-columns: 1fr;
	}

	.chde-news-card-link {
		grid-template-columns: 190px minmax(0, 1fr) 38px;
	}

	.chde-news-card-content {
		padding: 20px;
	}
}


@media screen and (max-width: 600px) {

	.chde-news-page {
		padding: 16px 12px 56px;
	}

	.chde-news-header {
		margin-bottom: 38px;
	}

	.chde-news-featured,
	.chde-news-categories,
	.chde-news-list-section {
		margin-bottom: 42px;
	}

	.chde-news-section-heading {
		margin-bottom: 14px;
	}



	.chde-news-section-heading h2 {
		font-size: 17px;
	}

	/* カテゴリーはスマホで横スクロール */
	.chde-news-category-nav {
		display: flex;
		overflow-x: auto;
		justify-content: flex-start;
		gap: 6px;
		padding: 7px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.chde-news-category-nav::-webkit-scrollbar {
		display: none;
	}

	.chde-news-category-button {
		flex: 0 0 auto;
		min-width: 86px;
		min-height: 40px;
		padding: 7px 14px;
		font-size: 13px;
	}

	/* 重要なお知らせカード */
	.chde-news-featured-card {
		grid-template-columns: 96px minmax(0, 1fr) 24px;
		min-height: 112px;
		border-radius: 10px;
	}

	.chde-news-featured-image {
		min-height: 112px;
	}

	.chde-news-featured-content {
		padding: 14px 10px;
	}

	.chde-news-featured-label {
		margin-bottom: 6px;
		padding: 4px 7px;
		font-size: 10px;
	}

	.chde-news-featured-title {
		display: -webkit-box;
		overflow: hidden;
		font-size: 14px;
		line-height: 1.45;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.chde-news-featured-deadline {
		margin-top: 6px;
		font-size: 10px;
	}

	/* NEWS一覧カード */
	.chde-news-card {
		border-radius: 9px;
	}

	.chde-news-card-link {
		grid-template-columns: 106px minmax(0, 1fr) 24px;
		min-height: 110px;
	}

	.chde-news-card-content {
		padding: 12px 9px;
	}

	.chde-news-card-meta {
		gap: 6px;
		margin-bottom: 6px;
	}

	.chde-news-card-date {
		font-size: 10px;
	}

	.chde-news-category-label {
		padding: 4px 6px;
		font-size: 9px;
	}

	.chde-news-card-title {
		display: -webkit-box;
		overflow: hidden;
		font-size: 14px;
		line-height: 1.45;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.chde-news-card-excerpt {
		display: none;
	}

	.chde-news-card-arrow {
		font-size: 22px;
	}

	.chde-news-new-label {
		top: 6px;
		left: 6px;
		padding: 4px 6px;
		font-size: 8px;
	}

	.chde-news-pagination a,
	.chde-news-pagination span {
		min-width: 36px;
		height: 38px;
		padding: 0 9px;
		font-size: 12px;
	}
}