/*
Theme Name: Neo Business
Theme URI: https://neo-business.jp/
Author: Neo Business
Description: 白と紺を基調にしたプロフェッショナルなビジネスメディア向けテーマです。
Version: 2.8.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neo-business
*/

/* --------------------------------------------------------------------------
   トークン — 白 × ネイビー（クリーン・ビジネスメディア）
   -------------------------------------------------------------------------- */
:root {
	--nb-bg: #f9fafb;
	--nb-surface: #ffffff;
	--nb-bg-elevated: #f3f4f6;
	--nb-card-bg: #ffffff;
	--nb-text: #1e293b;
	--nb-text-muted: #64748b;
	--nb-text-dim: #94a3b8;
	--nb-nav-navy: #0f172a;
	--nb-accent: #1e3a8a;
	--nb-accent-hover: #172554;
	--nb-accent-bright: #2563eb;
	--nb-nav-link: #0f172a;
	--nb-nav-underline: #1e3a8a;
	--nb-border: #e5e7eb;
	--nb-border-fine: #e5e7eb;
	--nb-border-soft: #f1f5f9;
	--nb-card-edge: #e5e7eb;
	--nb-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
	--nb-shadow-card: 0 4px 20px rgba(15, 23, 42, 0.06);
	--nb-shadow-card-hover: 0 14px 40px rgba(30, 58, 138, 0.12);
	--nb-font: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto,
		"Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	--nb-font-heading: "Noto Sans JP", system-ui, -apple-system, sans-serif;
	--nb-feed-max: 1040px;
	--nb-content-max: 720px;
	--nb-radius: 3px;
	--nb-header-blur: 12px;
	--nb-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--nb-duration: 0.35s;
	--nb-duration-fast: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--nb-duration: 0.01ms;
		--nb-duration-fast: 0.01ms;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 4.5rem;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.screen-reader-text:focus {
	background-color: var(--nb-surface);
	border-radius: var(--nb-radius);
	box-shadow: 0 0 0 2px var(--nb-accent-bright);
	clip: auto !important;
	clip-path: none;
	color: var(--nb-text);
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	height: auto;
	left: 0.5rem;
	line-height: 1.4;
	padding: 0.5rem 0.75rem;
	text-decoration: none;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}

.nb-skip-link:focus {
	position: fixed;
}

.nb-breadcrumbs {
	margin: 0 0 1rem;
	font-size: 0.8125rem;
	color: var(--nb-text-muted);
}

.nb-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nb-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
}

.nb-breadcrumbs__item:not(:last-child)::after {
	content: "/";
	margin: 0 0.35rem;
	color: var(--nb-text-dim);
	font-weight: 400;
}

.nb-breadcrumbs__link {
	color: var(--nb-accent);
	text-decoration: none;
}

.nb-breadcrumbs__link:hover,
.nb-breadcrumbs__link:focus-visible {
	text-decoration: underline;
}

.nb-breadcrumbs__current {
	color: var(--nb-text);
	font-weight: 500;
}


body {
	margin: 0;
	font-family: var(--nb-font);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.75;
	color: var(--nb-text);
	background-color: var(--nb-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--nb-accent);
	text-decoration: none;
	font-weight: 500;
	transition: color var(--nb-duration-fast);
}

a:hover,
a:focus-visible {
	color: var(--nb-accent-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nb-brand:hover,
.nb-brand:focus-visible {
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.nb-site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--nb-bg);
}

/* ---------- ページ遷移：トッププログレスバー ---------- */
.nb-page-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	z-index: 2147483000;
	pointer-events: none;
	overflow: hidden;
	background: transparent;
}

.nb-page-progress__bar {
	display: block;
	height: 100%;
	width: 0;
	margin: 0;
	background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 55%, #1e40af 100%);
	box-shadow: 0 0 12px rgba(37, 99, 235, 0.45);
	transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.nb-page-progress.is-active .nb-page-progress__bar {
	width: 88%;
}

/* クリック直後：メインを一瞬だけ薄く */
.nb-site--navigating #main.nb-main {
	opacity: 0.68;
	transition: opacity 0.2s ease;
}

/* ---------- メイン：読み込み時フェード＋下から ---------- */
@keyframes nb-main-enter {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#main.nb-main {
	opacity: 0;
	animation: nb-main-enter 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
	will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
	#main.nb-main {
		animation: none;
		opacity: 1;
		transform: none;
		will-change: auto;
	}

	.nb-page-progress__bar {
		transition: none;
	}

	.nb-site--navigating #main.nb-main {
		opacity: 1;
	}

	.nb-subnav__link::after {
		transition: none;
	}
}

/* ---------- メイン ---------- */
.nb-main {
	flex: 1;
	width: 100%;
	padding: 2rem 1.25rem 2.75rem;
	border-bottom: 1px solid var(--nb-border-fine);
}

.nb-main--feed {
	padding-top: 1.25rem;
}

.nb-feed {
	width: 100%;
	max-width: var(--nb-feed-max);
	margin-left: auto;
	margin-right: auto;
}

.nb-feed__header {
	text-align: center;
	margin-bottom: 2rem;
	padding: 0 0.5rem 1.25rem;
	border-bottom: 1px solid var(--nb-border-fine);
}

.nb-feed__title {
	font-family: var(--nb-font-heading);
	font-size: clamp(1.5rem, 3.8vw, 2.125rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.25;
	margin: 0;
	color: var(--nb-nav-navy);
}

/* アーカイブ：タクソノミーはネイビー地＋白抜きタグ */
.nb-feed__title--archive-pill {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	font-feature-settings: "palt" 1;
	color: #ffffff;
	background: var(--nb-nav-navy);
	padding: 0.45rem 1rem;
	border-radius: 2px;
	line-height: 1.3;
	box-shadow: var(--nb-shadow-sm);
}

/* 著者・日付・その他：太字ネイビーでシンプル */
.nb-feed__title--archive-plain {
	font-size: clamp(1rem, 2.2vw, 1.1875rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--nb-nav-navy);
	font-feature-settings: "palt" 1;
}

.nb-feed__title--search {
	font-size: clamp(0.9375rem, 2vw, 1.0625rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--nb-text-muted);
}

.nb-feed__lead {
	margin: 1rem auto 0;
	max-width: 40rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.8;
	color: var(--nb-text-muted);
	text-align: center;
}

.nb-feed__lead p {
	margin: 0 0 1em;
}

/* ---------- トップ：2カラム（記事 ~2/3・Ranking ~1/3） ---------- */
.nb-feed.nb-feed--split {
	max-width: min(1180px, 100%);
}

.nb-feed__split-inner {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(10.5rem, 1fr);
	gap: clamp(0.5rem, 2.2vw, 1.5rem);
	align-items: start;
}

.nb-feed__main {
	min-width: 0;
}

.nb-feed__aside {
	min-width: 0;
	align-self: start;
}

.nb-feed__aside .nb-feed-sidebar {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

@media (min-width: 960px) {
	.nb-feed__split-inner {
		grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr);
		gap: 1.55rem;
	}
}

@media (max-width: 520px) {
	.nb-feed__split-inner {
		grid-template-columns: minmax(0, 1.7fr) minmax(8.75rem, 1fr);
		gap: 0.45rem;
	}
}

.nb-feed__main .nb-feed__header {
	margin-bottom: 1.65rem;
}

.nb-card.nb-card--dummy .nb-card__thumb--dummy {
	min-height: 11rem;
	aspect-ratio: 16 / 10;
	background: linear-gradient(155deg, #eef2ff 0%, #e2e8f0 50%, #cbd5e1 100%);
}

/* ---------- WEEKLY RANKING（右カラム・コンパクト・7位） ---------- */
.nb-ranking.nb-ranking--sidebar {
	margin: 0;
	padding: 0.55rem 0.45rem 0.65rem;
	background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
	border: 1px solid var(--nb-border-fine);
	border-radius: var(--nb-radius);
	box-shadow: var(--nb-shadow-sm);
	font-size: 0.6875rem;
}

.nb-ranking--sidebar .nb-ranking__head {
	text-align: center;
	margin-bottom: 0.55rem;
}

.nb-ranking--sidebar .nb-ranking__title {
	margin: 0;
	font-family: var(--nb-font-heading);
	font-size: clamp(1rem, 2vw, 1.375rem);
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.15;
	font-feature-settings: "palt" 1;
	text-transform: uppercase;
	color: var(--nb-nav-navy);
}

.nb-ranking__stack {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.nb-ranking__medal {
	position: absolute;
	top: 0.3rem;
	left: 0.3rem;
	z-index: 6;
	box-sizing: border-box;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.625rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	pointer-events: none;
	border-style: solid;
	border-width: 1px;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2), 0 1px 2px rgba(15, 23, 42, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.nb-ranking__medal--gold {
	background: linear-gradient(165deg, #fff4b8 0%, #ffd700 38%, #e6ac00 100%);
	color: #422006;
	border-color: rgba(180, 130, 20, 0.55);
}

.nb-ranking__medal--silver {
	background: linear-gradient(165deg, #f8fafc 0%, #c0c0c0 42%, #94a3b8 100%);
	color: #0f172a;
	border-color: rgba(100, 116, 139, 0.45);
}

.nb-ranking__medal--bronze {
	background: linear-gradient(165deg, #ea9b3e 0%, #cd7f32 45%, #8b4513 100%);
	color: #ffffff;
	border-color: rgba(120, 53, 15, 0.5);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.nb-ranking__medal--muted {
	background: linear-gradient(165deg, #64748b 0%, #475569 55%, #334155 100%);
	color: #f8fafc;
	border-color: rgba(30, 41, 59, 0.45);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nb-ranking__item--compact {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	background: var(--nb-card-bg);
	border: 1px solid var(--nb-card-edge);
	border-radius: 2px;
	box-shadow: var(--nb-shadow-sm);
	overflow: hidden;
	transition: transform var(--nb-duration-fast) var(--nb-ease), box-shadow var(--nb-duration-fast),
		border-color var(--nb-duration-fast);
}

.nb-ranking__link {
	display: block;
	position: relative;
	z-index: 1;
	color: inherit;
	text-decoration: none;
	text-align: left;
	cursor: pointer;
}

.nb-ranking__link:hover,
.nb-ranking__link:focus-visible {
	color: inherit;
	text-decoration: none;
}

.nb-ranking__media {
	position: relative;
	aspect-ratio: 16 / 9;
	min-height: 2.25rem;
	overflow: hidden;
	border-radius: 2px;
	background: var(--nb-border-soft);
}

.nb-ranking__media--thumb .nb-ranking__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--nb-duration-fast) var(--nb-ease);
}

.nb-ranking__item--compact:hover .nb-ranking__media--thumb .nb-ranking__img,
.nb-ranking__item--compact:focus-within .nb-ranking__media--thumb .nb-ranking__img {
	transform: scale(1.02);
}

.nb-ranking__media--empty {
	background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 55%, #cbd5e1 100%);
}

.nb-ranking__item--placeholder .nb-ranking__post-title {
	color: var(--nb-text-muted);
}

.nb-ranking--sidebar .nb-ranking__body {
	padding: 0.3rem 0.4rem 0.38rem;
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
}

.nb-ranking--sidebar .nb-ranking__post-title {
	margin: 0;
	font-size: 0.5625rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	color: var(--nb-nav-navy);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nb-ranking--sidebar .nb-ranking__time {
	font-size: 0.4375rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--nb-text-dim);
}

.nb-ranking--sidebar .nb-ranking__excerpt {
	margin: 0;
	font-size: 0.5rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--nb-text-muted);
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nb-ranking__item--compact:hover,
.nb-ranking__item--compact:focus-within {
	transform: translateY(-1px);
	box-shadow: var(--nb-shadow-card);
	border-color: #d4d4d8;
}

.nb-ranking__item--compact:hover .nb-ranking__post-title,
.nb-ranking__item--compact:focus-within .nb-ranking__post-title {
	color: var(--nb-accent);
}

@media (prefers-reduced-motion: reduce) {
	.nb-ranking__item--compact {
		transition: none;
	}

	.nb-ranking__item--compact:hover,
	.nb-ranking__item--compact:focus-within {
		transform: none;
	}

	.nb-ranking__media--thumb .nb-ranking__img {
		transition: none;
	}

	.nb-ranking__item--compact:hover .nb-ranking__media--thumb .nb-ranking__img,
	.nb-ranking__item--compact:focus-within .nb-ranking__media--thumb .nb-ranking__img {
		transform: none;
	}
}

/* ---------- トップ：イチオシ（1 大 + 2 小 グリッド） ---------- */
.nb-spotlight {
	margin: 0 0 2.35rem;
	padding: 0 0.5rem;
}

.nb-spotlight__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 0.65rem 1.25rem;
	margin-bottom: 1.35rem;
}

.nb-spotlight__heading {
	margin: 0;
	font-family: var(--nb-font-heading);
	font-size: clamp(1.25rem, 3vw, 1.5rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--nb-nav-navy);
}

.nb-spotlight__more {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--nb-accent);
	text-decoration: none;
}

.nb-spotlight__more:hover,
.nb-spotlight__more:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--nb-accent-hover);
}

.nb-spotlight__grid {
	display: grid;
	gap: 1rem;
}

.nb-spotlight__item {
	display: flex;
	flex-direction: column;
	margin: 0;
	background: var(--nb-card-bg);
	border: 1px solid var(--nb-card-edge);
	border-radius: var(--nb-radius);
	box-shadow: var(--nb-shadow-card);
	overflow: hidden;
	transition: transform var(--nb-duration) var(--nb-ease), box-shadow var(--nb-duration) var(--nb-ease),
		border-color var(--nb-duration-fast);
}

@media (prefers-reduced-motion: reduce) {
	.nb-spotlight__item {
		transition: none;
	}
}

.nb-spotlight__item:hover,
.nb-spotlight__item:focus-within {
	transform: translateY(-2px);
	box-shadow: var(--nb-shadow-card-hover);
	border-color: #d1d5db;
}

.nb-spotlight__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	height: 100%;
	color: inherit;
	text-decoration: none;
	text-align: left;
}

.nb-spotlight__link:hover,
.nb-spotlight__link:focus-visible {
	color: inherit;
	text-decoration: none;
}

.nb-spotlight__media {
	position: relative;
	background: linear-gradient(160deg, #f3f4f6 0%, #e5e7eb 100%);
	overflow: hidden;
}

.nb-spotlight__media:empty {
	min-height: 10rem;
}

.nb-spotlight__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--nb-duration) var(--nb-ease);
}

.nb-spotlight__item:hover .nb-spotlight__media img,
.nb-spotlight__item:focus-within .nb-spotlight__media img {
	transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
	.nb-spotlight__media img {
		transition: none;
	}

	.nb-spotlight__item:hover,
	.nb-spotlight__item:focus-within {
		transform: none;
	}
}

.nb-spotlight__body {
	padding: 1rem 1.1rem 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1;
}

.nb-spotlight__post-title {
	margin: 0;
	font-family: var(--nb-font-heading);
	font-size: clamp(1rem, 2.1vw, 1.1875rem);
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.02em;
	color: var(--nb-nav-navy);
	transition: color var(--nb-duration-fast);
}

.nb-spotlight__item--lead .nb-spotlight__post-title {
	font-size: clamp(1.15rem, 2.6vw, 1.45rem);
}

.nb-spotlight__item:hover .nb-spotlight__post-title,
.nb-spotlight__item:focus-within .nb-spotlight__post-title {
	color: var(--nb-accent);
}

.nb-spotlight__time {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--nb-text-dim);
	font-variant-numeric: tabular-nums;
}

/* 1 件：中央のワイドカード */
.nb-spotlight__grid--1 {
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
}

.nb-spotlight__item--single .nb-spotlight__media {
	aspect-ratio: 16 / 9;
}

/* 2 件：左大・右小（タブレット以上） */
@media (min-width: 640px) {
	.nb-spotlight__grid--2 {
		grid-template-columns: 1.2fr 1fr;
		align-items: stretch;
	}

	.nb-spotlight__item--lead .nb-spotlight__media {
		min-height: 100%;
		aspect-ratio: auto;
	}

	.nb-spotlight__item--sub .nb-spotlight__media {
		aspect-ratio: 16 / 10;
	}
}

@media (max-width: 639px) {
	.nb-spotlight__grid--2 .nb-spotlight__item--lead .nb-spotlight__media {
		aspect-ratio: 16 / 10;
	}

	.nb-spotlight__grid--2 .nb-spotlight__item--sub .nb-spotlight__media {
		aspect-ratio: 16 / 10;
	}
}

/* 3 件：左に大きく 1、右に 2 段 */
@media (min-width: 768px) {
	.nb-spotlight__grid--3 {
		grid-template-columns: 1.22fr 1fr;
		grid-template-rows: 1fr 1fr;
		gap: 1rem 1.2rem;
		align-items: stretch;
		min-height: 14rem;
	}

	.nb-spotlight__grid--3 .nb-spotlight__item:nth-child(1) {
		grid-column: 1;
		grid-row: 1 / -1;
	}

	.nb-spotlight__grid--3 .nb-spotlight__item:nth-child(1) .nb-spotlight__media {
		flex: 1 1 auto;
		min-height: 12rem;
		aspect-ratio: auto;
	}

	.nb-spotlight__grid--3 .nb-spotlight__item:nth-child(2) {
		grid-column: 2;
		grid-row: 1;
	}

	.nb-spotlight__grid--3 .nb-spotlight__item:nth-child(3) {
		grid-column: 2;
		grid-row: 2;
	}

	.nb-spotlight__grid--3 .nb-spotlight__item--sub .nb-spotlight__media {
		aspect-ratio: 16 / 10;
		min-height: 0;
	}

	.nb-spotlight__grid--3 .nb-spotlight__item--sub .nb-spotlight__body {
		padding: 0.75rem 0.9rem 0.85rem;
	}

	.nb-spotlight__grid--3 .nb-spotlight__item--sub .nb-spotlight__post-title {
		font-size: 0.9375rem;
		line-height: 1.4;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

@media (max-width: 767px) {
	.nb-spotlight__grid--3 .nb-spotlight__media {
		aspect-ratio: 16 / 10;
	}
}

.nb-archive-desc p:last-child {
	margin-bottom: 0;
}

/* ---------- ヘッダー ---------- */
.nb-header {
	position: sticky;
	top: 0;
	z-index: 300;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(var(--nb-header-blur));
	-webkit-backdrop-filter: blur(var(--nb-header-blur));
	padding-bottom: 0.2rem;
	border-bottom: 1px solid var(--nb-border-fine);
	box-shadow: var(--nb-shadow-sm);
}

@supports not (backdrop-filter: blur(12px)) {
	.nb-header {
		background: var(--nb-surface);
	}
}

.nb-header__inner {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0.75rem clamp(1rem, 3vw, 2rem) 0.55rem;
}

.nb-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(0.75rem, 2vw, 1.5rem);
	width: 100%;
}

.nb-header__brand-group {
	display: flex;
	align-items: center;
	gap: clamp(0.65rem, 1.6vw, 1.15rem);
	min-width: 0;
	flex: 1 1 auto;
}

.nb-brand {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: flex-start;
	width: auto;
	max-width: none;
	color: var(--nb-nav-navy);
	text-decoration: none;
	line-height: 1;
	transition: opacity var(--nb-duration-fast);
}

.nb-brand__svg {
	display: block;
	width: auto;
	height: 3.25rem;
	max-width: min(20rem, 52vw);
	margin: 0;
}

.nb-brand__fallback {
	display: block;
	font-family: var(--nb-font-heading);
	font-size: 1.625rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--nb-nav-navy);
	line-height: 1.2;
	white-space: nowrap;
}

.nb-brand:hover,
.nb-brand:focus-visible {
	opacity: 0.9;
	color: var(--nb-nav-navy);
	text-decoration: none;
}

.nb-site-tagline {
	margin: 0;
	min-width: 0;
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--nb-text-muted);
	letter-spacing: 0.04em;
	line-height: 1.45;
}

.nb-site-tagline--bar {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
	padding: 0;
	border-left: 1px solid var(--nb-border-fine);
	padding-left: clamp(0.65rem, 1.6vw, 1.15rem);
}

.nb-header__search {
	flex-shrink: 0;
	width: auto;
	min-width: 12rem;
	max-width: 22rem;
	padding-top: 0;
	margin-left: 0;
}

.nb-search {
	display: flex;
	align-items: stretch;
	width: 100%;
	border: 1px solid var(--nb-border);
	border-radius: var(--nb-radius);
	background: var(--nb-surface);
	overflow: hidden;
	box-shadow: var(--nb-shadow-sm);
}

.nb-search__field {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0.5rem 0.75rem;
	border: 0;
	background: transparent;
	color: var(--nb-text);
	font-family: var(--nb-font);
	font-size: 0.875rem;
	line-height: 1.4;
}

.nb-search__field::placeholder {
	color: var(--nb-text-dim);
}

.nb-search__field:focus {
	outline: none;
}

.nb-search:focus-within {
	border-color: var(--nb-accent-bright);
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.nb-search__submit {
	flex-shrink: 0;
	margin: 0;
	padding: 0 0.85rem;
	border: 0;
	border-left: 1px solid var(--nb-border);
	background: var(--nb-bg-elevated);
	color: var(--nb-accent);
	font-family: var(--nb-font);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: background-color var(--nb-duration-fast), color var(--nb-duration-fast);
}

.nb-search__submit:hover,
.nb-search__submit:focus-visible {
	background: var(--nb-accent);
	color: #fff;
}

.nb-subnav {
	width: 100%;
	max-width: var(--nb-feed-max);
	margin: 0 auto;
	padding-top: 0.45rem;
}

.nb-subnav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.3rem 1.35rem;
}

.nb-subnav__item {
	display: flex;
	align-items: center;
}

.nb-subnav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.1rem;
	padding: 0.2rem 0.35rem 0.35rem;
	color: var(--nb-nav-link);
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	font-feature-settings: "palt" 1;
	line-height: 1.25;
	transition: color var(--nb-duration-fast);
}

/* 下線が左からスッと伸びる */
.nb-subnav__link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0.08rem;
	width: 0;
	height: 1px;
	background-color: var(--nb-nav-underline);
	transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nb-subnav__link:hover,
.nb-subnav__link:focus-visible {
	color: var(--nb-accent);
	text-decoration: none;
}

.nb-subnav__link:hover::after,
.nb-subnav__link:focus-visible::after {
	width: 100%;
}

@media (max-width: 640px) {
	.nb-header__inner {
		padding: 0.65rem 1rem 0.45rem;
	}

	.nb-header__bar {
		gap: 0.5rem;
	}

	.nb-header__brand-group {
		gap: 0.5rem;
	}

	.nb-brand__svg {
		height: 2.65rem;
		max-width: 11.5rem;
	}

	.nb-site-tagline--bar {
		font-size: 0.625rem;
		line-height: 1.3;
		padding-left: 0.5rem;
	}

	.nb-header__search {
		min-width: 7.5rem;
		max-width: 10.5rem;
	}

	.nb-search__field {
		padding: 0.4rem 0.5rem;
		font-size: 0.8125rem;
	}

	.nb-search__submit {
		padding: 0 0.55rem;
		font-size: 0.75rem;
	}

	.nb-subnav__list {
		gap: 0.2rem 0.85rem;
	}

	.nb-subnav__link {
		padding: 0.3rem 0.15rem;
	}
}

@media (max-width: 400px) {
	.nb-header__brand-group {
		align-items: center;
	}

	.nb-site-tagline--bar {
		display: none;
	}

	.nb-brand__svg {
		height: 2.35rem;
		max-width: 9.5rem;
	}

	.nb-header__search {
		min-width: 6.5rem;
		max-width: 9rem;
	}
}

/* ---------- グリッド・カード ---------- */
.nb-grid--feed {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem 1.5rem;
	justify-items: center;
}

@media (min-width: 768px) {
	.nb-grid--feed {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.5rem 1.75rem;
	}
}

.nb-card--feed {
	width: 100%;
	max-width: 32rem;
	background: var(--nb-card-bg);
	border: 1px solid var(--nb-card-edge);
	border-radius: var(--nb-radius);
	box-shadow: var(--nb-shadow-card);
	overflow: hidden;
	transition: transform var(--nb-duration) var(--nb-ease), box-shadow var(--nb-duration) var(--nb-ease),
		border-color var(--nb-duration-fast);
	will-change: transform;
}

@media (min-width: 768px) {
	.nb-card--feed {
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nb-card--feed {
		transition: none;
	}

	.nb-card--feed:hover,
	.nb-card--feed:focus-within {
		transform: none;
	}
}

.nb-card--feed:hover,
.nb-card--feed:focus-within {
	transform: translateY(-2px) scale(1.02);
	border-color: #d1d5db;
	box-shadow: 0 22px 50px -12px rgba(30, 58, 138, 0.14), 0 10px 28px -8px rgba(15, 23, 42, 0.08);
}

.nb-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
	text-align: left;
}

.nb-card__link:hover,
.nb-card__link:focus-visible {
	color: inherit;
	text-decoration: none;
}

.nb-card--feed .nb-card__thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--nb-border-soft);
	overflow: hidden;
}

.nb-card--feed .nb-card__thumb:empty {
	min-height: 12rem;
	aspect-ratio: auto;
	background: linear-gradient(160deg, #f3f4f6 0%, #e5e7eb 100%);
}

.nb-card--feed .nb-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--nb-duration) var(--nb-ease);
	transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
	.nb-card--feed .nb-card__thumb img {
		transition: none;
	}
}

.nb-card--feed:hover .nb-card__thumb img,
.nb-card--feed:focus-within .nb-card__thumb img {
	transform: scale(1.01);
}

.nb-card--feed .nb-card__body {
	padding: 1.1rem 1.2rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.nb-card--feed .nb-card__title {
	font-family: var(--nb-font-heading);
	font-size: clamp(1.0625rem, 2vw, 1.3125rem);
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.02em;
	margin: 0;
	color: var(--nb-nav-navy);
	transition: color var(--nb-duration-fast);
}

.nb-card--feed:hover .nb-card__title,
.nb-card--feed:focus-within .nb-card__title {
	color: var(--nb-accent);
}

.nb-card--feed .nb-card__excerpt {
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.7;
	color: var(--nb-text-muted);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nb-card__byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.65rem;
	margin-top: 0.35rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--nb-text-dim);
}

.nb-card__date {
	font-variant-numeric: tabular-nums;
	color: var(--nb-text-dim);
}

.nb-card__sep {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--nb-text-dim);
	opacity: 0.65;
}

.nb-card__author {
	color: var(--nb-text-muted);
	font-weight: 600;
	text-decoration: none;
}

.nb-card__author:hover,
.nb-card__author:focus-visible {
	color: var(--nb-accent);
	text-decoration: none;
}

/* ---------- もっと見る（トップ → 新着一覧） ---------- */
.nb-read-more {
	margin: 2.5rem 0 0;
	text-align: center;
}

.nb-read-more__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 10rem;
	padding: 0.65rem 1.75rem;
	border: 1px solid var(--nb-accent);
	border-radius: var(--nb-radius);
	background: var(--nb-surface);
	color: var(--nb-accent);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
	box-shadow: var(--nb-shadow-sm);
	transition: background-color var(--nb-duration-fast), color var(--nb-duration-fast), border-color var(--nb-duration-fast), box-shadow var(--nb-duration-fast);
}

.nb-read-more__link:hover,
.nb-read-more__link:focus-visible {
	background: var(--nb-accent);
	border-color: var(--nb-accent);
	color: #fff;
	text-decoration: none;
	box-shadow: var(--nb-shadow-card);
}

/* ---------- ページネーション ---------- */
.navigation.nb-pagination {
	margin-top: 2.5rem;
	display: flex;
	justify-content: center;
}

.navigation.nb-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.navigation.nb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.65rem;
	height: 2.65rem;
	padding: 0 0.65rem;
	font-size: 0.8125rem;
	font-weight: 600;
	border-radius: var(--nb-radius);
	border: 1px solid var(--nb-border);
	background: var(--nb-surface);
	color: var(--nb-text-muted);
	text-decoration: none;
	transition: border-color var(--nb-duration-fast), color var(--nb-duration-fast),
		background var(--nb-duration-fast), box-shadow var(--nb-duration-fast);
}

.navigation.nb-pagination a.page-numbers:hover,
.navigation.nb-pagination a.page-numbers:focus-visible {
	border-color: var(--nb-accent);
	color: var(--nb-accent);
	background: #eff6ff;
	box-shadow: var(--nb-shadow-sm);
	text-decoration: none;
}

.navigation.nb-pagination span.page-numbers.current {
	background: var(--nb-accent);
	border-color: var(--nb-accent);
	color: #ffffff;
	font-weight: 700;
}

.navigation.nb-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: var(--nb-text-dim);
	min-width: auto;
}

/* ---------- シングル（2カラム） ---------- */
.nb-main--single {
	padding-top: 1.25rem;
}

.nb-single-layout.nb-feed--split {
	max-width: min(1180px, 100%);
}

.nb-single-layout .nb-single__inner {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.nb-single-layout__aside .nb-single-sidebar {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.nb-sidebar-widget {
	margin: 0;
	padding: 0.55rem 0.45rem 0.65rem;
	background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
	border: 1px solid var(--nb-border-fine);
	border-radius: var(--nb-radius);
	box-shadow: var(--nb-shadow-sm);
}

.nb-sidebar-widget__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.55rem;
	padding: 0 0.15rem;
}

.nb-sidebar-widget__title {
	margin: 0;
	font-family: var(--nb-font-heading);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.3;
	color: var(--nb-nav-navy);
}

.nb-sidebar-widget__more {
	flex-shrink: 0;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--nb-accent);
	text-decoration: none;
}

.nb-sidebar-widget__more:hover,
.nb-sidebar-widget__more:focus-visible {
	text-decoration: underline;
}

.nb-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.nb-sidebar-list__item {
	margin: 0;
}

.nb-sidebar-list__link {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	padding: 0.35rem;
	border: 1px solid var(--nb-border-fine);
	border-radius: 2px;
	background: var(--nb-surface);
	color: inherit;
	text-decoration: none;
	transition: border-color var(--nb-duration-fast), box-shadow var(--nb-duration-fast);
}

.nb-sidebar-list__link:hover,
.nb-sidebar-list__link:focus-visible {
	border-color: #d4d4d8;
	box-shadow: var(--nb-shadow-sm);
	color: inherit;
	text-decoration: none;
}

.nb-sidebar-list__media {
	flex-shrink: 0;
	width: 3.25rem;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 2px;
	background: var(--nb-border-soft);
}

.nb-sidebar-list__media:empty {
	background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 55%, #cbd5e1 100%);
}

.nb-sidebar-list__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nb-sidebar-list__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.nb-sidebar-list__post-title {
	font-size: 0.5625rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--nb-nav-navy);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nb-sidebar-list__link:hover .nb-sidebar-list__post-title,
.nb-sidebar-list__link:focus-visible .nb-sidebar-list__post-title {
	color: var(--nb-accent);
}

.nb-sidebar-list__time {
	font-size: 0.4375rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--nb-text-dim);
}

/* おすすめ記事（ランキングよりやや大きめ） */
.nb-sidebar-widget--recommended {
	padding: 0.7rem 0.55rem 0.8rem;
}

.nb-sidebar-widget--recommended .nb-sidebar-widget__head {
	margin-bottom: 0.7rem;
}

.nb-sidebar-widget--recommended .nb-sidebar-widget__title {
	font-size: 0.9375rem;
	letter-spacing: 0.07em;
}

.nb-sidebar-widget--recommended .nb-sidebar-widget__more {
	font-size: 0.6875rem;
}

.nb-sidebar-widget--recommended .nb-sidebar-list {
	gap: 0.5rem;
}

.nb-sidebar-widget--recommended .nb-sidebar-list__link {
	gap: 0.55rem;
	padding: 0.45rem;
}

.nb-sidebar-widget--recommended .nb-sidebar-list__media {
	width: 4.5rem;
}

.nb-sidebar-widget--recommended .nb-sidebar-list__body {
	gap: 0.2rem;
}

.nb-sidebar-widget--recommended .nb-sidebar-list__post-title {
	font-size: 0.6875rem;
	line-height: 1.4;
}

.nb-sidebar-widget--recommended .nb-sidebar-list__time {
	font-size: 0.5625rem;
}

.nb-single-layout .nb-ranking--sidebar .nb-ranking__title {
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: none;
}

@media (max-width: 959px) {
	.nb-single-layout .nb-feed__split-inner {
		grid-template-columns: 1fr;
	}

	.nb-single-layout__aside {
		position: static;
	}
}

/* ---------- シングル ---------- */
.nb-main .nb-single {
	width: 100%;
}

.nb-single__inner {
	max-width: var(--nb-content-max);
	margin-left: auto;
	margin-right: auto;
}

.nb-single__header {
	margin-bottom: 1.65rem;
	padding-bottom: 1.1rem;
	border-bottom: 1px solid var(--nb-border-fine);
	text-align: left;
}

.nb-single__title {
	font-family: var(--nb-font-heading);
	font-size: clamp(1.65rem, 4.2vw, 2.25rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 1.25rem;
	letter-spacing: -0.03em;
	color: var(--nb-nav-navy);
	text-align: left;
}

.nb-single__meta {
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.65;
	color: var(--nb-text-muted);
}

.nb-single__meta a {
	font-weight: 500;
	color: var(--nb-accent);
}

.nb-single__meta a:hover {
	color: var(--nb-accent-hover);
}

.nb-single__thumb {
	margin-bottom: 1.65rem;
	border-radius: var(--nb-radius);
	overflow: hidden;
	background: var(--nb-border-soft);
	border: 1px solid var(--nb-border-fine);
	box-shadow: var(--nb-shadow-sm);
}

.nb-single__content {
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.88;
	color: var(--nb-text);
	letter-spacing: 0.01em;
	text-align: left;
}

.nb-single__content p {
	margin: 0 0 1.45em;
}

.nb-single__content h2,
.nb-single__content h3,
.nb-single__content h4 {
	font-family: var(--nb-font-heading);
	font-weight: 700;
	line-height: 1.35;
	margin: 2em 0 0.75em;
	color: var(--nb-nav-navy);
	letter-spacing: -0.02em;
}

.nb-single__content h2 {
	font-size: 1.45rem;
	padding-bottom: 0.35em;
	border-bottom: 1px solid var(--nb-border-fine);
}

.nb-single__content h3 {
	font-size: 1.2rem;
	font-weight: 600;
}

.nb-single__content ul,
.nb-single__content ol {
	margin: 0 0 1.45em;
	padding-left: 1.35em;
}

.nb-single__content blockquote {
	margin: 1.65em 0;
	padding: 1.1rem 1.2rem;
	background: var(--nb-border-soft);
	color: var(--nb-text-muted);
	font-style: normal;
	font-size: 1.025rem;
	line-height: 1.85;
	border-radius: var(--nb-radius);
	border-left: 3px solid var(--nb-accent);
}

.nb-single__page-nav {
	margin-top: 1.65rem;
	padding-top: 1rem;
	border-top: 1px solid var(--nb-border-fine);
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--nb-text-muted);
	line-height: 1.8;
}

.nb-single__page-nav .page-links-title {
	font-weight: 600;
	color: var(--nb-text-dim);
	margin-right: 0.5rem;
}

.nb-single__page-nav a {
	font-weight: 600;
	margin: 0 0.3rem;
}

.nb-single__footer {
	margin-top: 1.65rem;
	padding-top: 1rem;
	border-top: 1px solid var(--nb-border-fine);
	font-size: 0.9375rem;
	text-align: left;
	color: var(--nb-text-muted);
}

.nb-single__footer a {
	font-weight: 500;
}

/* ---------- フッター ---------- */
.nb-footer {
	margin-top: auto;
	padding: 1.5rem 1.25rem 1.75rem;
	text-align: center;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.75;
	color: var(--nb-text-muted);
	background: var(--nb-surface);
	border-top: 1px solid var(--nb-border-fine);
}

.nb-footer p {
	margin: 0 0 1rem;
}

.nb-footer p:last-child {
	margin-bottom: 0;
}

.nb-footer a {
	color: var(--nb-accent);
	font-weight: 500;
}

.nb-footer a:hover,
.nb-footer a:focus-visible {
	color: var(--nb-accent-hover);
}

/* ---------- 空状態 ---------- */
.nb-empty {
	text-align: center;
	padding: 2.5rem 1.25rem;
	max-width: 28rem;
	margin: 0 auto;
	color: var(--nb-text-muted);
	background: var(--nb-surface);
	border-radius: var(--nb-radius);
	font-size: 0.95rem;
	font-weight: 500;
	border: 1px solid var(--nb-border-fine);
	box-shadow: var(--nb-shadow-sm);
}

.nb-empty p {
	margin: 0;
}
