/* ============================================
   NK News List v1.0.0
   アクセント色は --nk-accent 変数で一括変更可
   （ショートコードの accent="#xxxxxx" 属性でも指定可能）
   ============================================ */

.nk-news {
	--nk-accent: #2e9aa6;
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
}

/* ---- カテゴリタブ ---- */
.nk-news__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}
.nk-news__tabs li {
	margin: 0;
}
.nk-news__tab {
	background: none;
	border: none;
	padding: 4px 2px;
	font-size: 15px;
	color: #888;
	cursor: pointer;
	position: relative;
	transition: color .2s;
}
.nk-news__tab:hover {
	color: var(--nk-accent);
}
.nk-news__tab.is-active {
	color: var(--nk-accent);
	font-weight: 600;
}
.nk-news__tab.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 2px;
	background: var(--nk-accent);
}

/* ---- リスト ---- */
.nk-news__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #ddd;
}
.nk-news__item {
	margin: 0;
	border-bottom: 1px solid #ddd;
}
.nk-news__link {
	display: flex;
	align-items: baseline;
	gap: 20px;
	padding: 20px 8px;
	text-decoration: none;
	color: #333;
	transition: background .2s;
}
.nk-news__link:hover {
	background: #f7f9fa;
}

/* 日付 */
.nk-news__date {
	flex: 0 0 auto;
	min-width: 92px;
	font-size: 15px;
	letter-spacing: .05em;
	color: #333;
	font-weight: 500;
}

/* カテゴリラベル */
.nk-news__cat {
	flex: 0 0 auto;
	min-width: 96px;
	text-align: center;
	font-size: 12px;
	line-height: 1;
	padding: 5px 12px;
	border: 1px solid var(--nk-accent);
	color: var(--nk-accent);
	background: #fff;
	border-radius: 2px;
}

/* カテゴリごとの色分けの例（スラッグに合わせて追加） */
.nk-news__cat--campaign {
	border-color: #d98e32;
	color: #d98e32;
}

/* タイトル */
.nk-news__title {
	flex: 1 1 auto;
	font-size: 15px;
	line-height: 1.6;
}
.nk-news__link:hover .nk-news__title {
	color: var(--nk-accent);
	text-decoration: underline;
}

/* ---- ページネーション ---- */
.nk-news__pager {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
}
.nk-news__pager li {
	margin: 0;
}
.nk-news__page {
	display: inline-block;
	min-width: 40px;
	padding: 9px 12px;
	text-align: center;
	font-size: 14px;
	line-height: 1;
	border: 1px solid #ccc;
	color: #333;
	text-decoration: none;
	transition: all .2s;
}
.nk-news__page:hover {
	border-color: var(--nk-accent);
	color: var(--nk-accent);
}
.nk-news__page.is-current {
	background: var(--nk-accent);
	border-color: var(--nk-accent);
	color: #fff;
}
.nk-news__page--arrow {
	border: none;
	min-width: 0;
}

/* ---- 一覧を見るボタン ---- */
.nk-news__more {
	text-align: center;
	margin-top: 32px;
}
.nk-news__more a {
	display: inline-block;
	min-width: 260px;
	padding: 14px 32px;
	border: 1px solid #333;
	color: #333;
	font-size: 14px;
	letter-spacing: .1em;
	text-decoration: none;
	transition: all .25s;
}
.nk-news__more a:hover {
	background: var(--nk-accent);
	border-color: var(--nk-accent);
	color: #fff;
}

/* ---- スマホ ---- */
@media (max-width: 640px) {
	.nk-news__link {
		flex-wrap: wrap;
		gap: 10px 16px;
		padding: 16px 4px;
	}
	.nk-news__date {
		min-width: 0;
	}
	.nk-news__title {
		flex-basis: 100%;
	}
}

/* リンク型タブ（ページ送りモード）用 */
a.nk-news__tab {
	display: inline-block;
	text-decoration: none;
}
