/**
 * News Geek Japan コンポーネントCSS（第3版・2026-07-02）。
 *
 * 正典：`Web design samples/Grok_Expert/index.html`（確定デザインベース）。
 * 数値・構造はサンプルを忠実に移植し、クラス名のみ ngj-* 規約に置換。
 * 「赤は点を打つ」：アクティブ/ホバー・スコア・タグ文字色・CTA・キッカーのみ。
 */

:root {
	--ngj-bg: var(--wp--preset--color--ngj-bg, #f8f9fa);
	--ngj-surface: var(--wp--preset--color--ngj-surface, #ffffff);
	--ngj-text: var(--wp--preset--color--ngj-text, #1a1a1a);
	--ngj-accent: var(--wp--preset--color--ngj-accent, #E60012);
	--ngj-text-secondary: #555555;
	--ngj-glass-bg: rgba(255, 255, 255, 0.85);
	--ngj-header-glass: rgba(255, 255, 255, 0.82);
	--ngj-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.06);
	--ngj-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
	--ngj-hairline: rgba(0, 0, 0, 0.06);
}

body {
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

/* 背景の方眼紙テクスチャは廃止（2026-07-03 たく老さん指示：サンプル由来だがセンスが無いため削除。
   背景はプレーンな --ngj-bg 一色＋ホワイトスペースで構成する） */

main.wp-block-group {
	padding-top: 20px;
	padding-bottom: 100px;
}

/* WPのblockGapが注入する余計なセクション間マージンを無効化
   （間隔は .ngj-section 側で管理＝サンプルの緻密な余白を維持） */
main.wp-block-group > * {
	margin-block-start: 0;
}

/* クエリページネーション（サンプル同等のピル意匠） */
.wp-block-query-pagination {
	margin-top: 40px;
	gap: 8px;
	justify-content: center;
	font-size: 0.9rem;
	font-weight: 600;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 9999px;
	background: var(--ngj-surface);
	box-shadow: var(--ngj-shadow);
	color: var(--ngj-text-secondary);
	text-decoration: none;
	transition: all 0.2s ease;
}

.wp-block-query-pagination a:hover {
	color: var(--ngj-text);
	box-shadow: var(--ngj-shadow-hover);
	transform: translateY(-1px);
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--ngj-accent);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(230, 0, 18, 0.3);
}

/* 記事一覧ページ（/reviewlist/）のページ送り（paginate_links type=list） */
/* ページ送り（自前フラットマークアップ・専用クラス .ngj-page。横並びflex） */
.ngj-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 48px;
}

/* 検索/アーカイブ 空表示・404 */
.ngj-empty {
	color: var(--ngj-text-secondary);
	font-size: 0.95rem;
	padding: 8px 0 24px;
}

.ngj-404 {
	text-align: center;
	padding: 40px 0 32px;
}

.ngj-404__title {
	font-size: clamp(1.5rem, 4vw, 2.2rem);
	font-weight: 600;
	margin: 0 0 12px;
}

.ngj-404__text {
	color: var(--ngj-text-secondary);
	margin: 0 0 28px;
}

.ngj-404__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.ngj-404__search {
	width: 100%;
	max-width: 360px;
}

.ngj-404__search input[type="search"] {
	width: 100%;
}

.ngj-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	padding: 9px 14px;
	border-radius: 9999px;
	background: var(--ngj-surface);
	box-shadow: var(--ngj-shadow);
	color: var(--ngj-text-secondary);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	transition: color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.ngj-page:hover {
	color: var(--ngj-text);
	box-shadow: var(--ngj-shadow-hover);
	transform: translateY(-1px);
}

.ngj-page--current {
	background: var(--ngj-accent);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(230, 0, 18, 0.3);
}

.ngj-page--dots {
	background: transparent;
	box-shadow: none;
	min-width: 0;
	padding: 9px 4px;
}

.ngj-page--nav {
	font-weight: 700;
}

/* ============ ヘッダー（sticky・スクロールでガラス化） ============ */

.ngj-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	background: var(--ngj-surface);
	border-bottom: 1px solid var(--ngj-hairline);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ngj-header.is-scrolled {
	background: var(--ngj-header-glass);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.ngj-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	gap: 24px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ロゴ：2行右揃え「News Geek / Japan(大文字化表示)」・Gに赤丸（サンプル準拠の実値） */
.ngj-logo {
	text-decoration: none;
	color: var(--ngj-text);
	flex-shrink: 0;
}

.ngj-logo__wordmark {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.15;
	color: var(--ngj-text);
}

.ngj-logo__line1 {
	font-size: 1.2rem;
	font-weight: 600; /* 2026-07-03 たく老さん指示で800→600に（圧迫感の軽減） */
	letter-spacing: -0.5px;
}

.ngj-logo__line2 {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	opacity: 0.75;
}

.ngj-logo__g {
	position: relative;
}

.ngj-logo__g::after {
	content: '';
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: -0.13em;
	width: 0.37em;
	height: 0.37em;
	background: #E60012; /* 赤丸はダークモードでも固定 */
	border-radius: 50%;
}

/* グローバルナビ（ピル型タブ・アクティブ＝赤文字＋赤下線ドット） */
.ngj-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ngj-tab {
	padding: 9px 20px;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--ngj-text-secondary);
	text-decoration: none;
	border-radius: 9999px;
	transition: all 0.2s ease;
	position: relative;
	white-space: nowrap; /* 幅不足時の縦書き崩壊防止 */
	flex-shrink: 0;
}

.ngj-tab:hover {
	color: var(--ngj-text);
	background: rgba(0, 0, 0, 0.04);
}

.ngj-tab.is-active {
	color: var(--ngj-accent);
	font-weight: 600;
}

.ngj-tab.is-active::after {
	content: '';
	position: absolute;
	bottom: 4px;
	left: 50%;
	transform: translateX(-50%);
	width: 22px;
	height: 2px;
	background: var(--ngj-accent);
	border-radius: 2px;
}

.ngj-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* SNSリンク（検索窓・メインメニューと同列・2026-07-03たく老さん指示） */
.ngj-sns {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ngj-sns__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: var(--ngj-text-secondary);
	transition: color 0.15s ease, transform 0.15s ease;
}

.ngj-sns__link:hover {
	color: var(--ngj-accent);
	transform: translateY(-1px);
}

.ngj-sns__link svg {
	width: 17px;
	height: 17px;
}

.ngj-mobile-menu__sns {
	margin-top: 20px;
	gap: 16px;
}

.ngj-mobile-menu__sns .ngj-sns__link svg {
	width: 20px;
	height: 20px;
}

/* 検索ボックス（確定仕様：トグルの隣。サンプルの意匠に合わせたピル型） */
.ngj-search input[type="search"] {
	appearance: none;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: var(--ngj-bg);
	border-radius: 9999px;
	padding: 8px 18px;
	font-size: 0.875rem;
	color: var(--ngj-text);
	width: 180px;
	transition: width 0.25s ease;
}

.ngj-search input[type="search"]:focus {
	outline: none;
	width: 230px;
}

.ngj-search input[type="search"]::placeholder {
	color: var(--ngj-text-secondary);
	opacity: 0.7;
}

/* ダークモードトグル（ピル型スイッチ・サンプル準拠） */
.ngj-mode-toggle {
	appearance: none;
	width: 56px;
	height: 30px;
	background: #e5e5e5;
	border-radius: 9999px;
	position: relative;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.12s ease;
	border: 1px solid rgba(0, 0, 0, 0.08);
	flex-shrink: 0;
	padding: 0;
}

.ngj-mode-toggle::before {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	background: white;
	border-radius: 9999px;
	box-shadow: 0 2px 4px rgb(0 0 0 / 0.15);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

[data-theme="dark"] .ngj-mode-toggle {
	background: #3a3a3a;
}

[data-theme="dark"] .ngj-mode-toggle::before {
	transform: translateX(26px);
	background: #1a1a1a;
}

.ngj-mode-toggle span {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	line-height: 1;
	transition: opacity 0.2s ease;
}

.ngj-mode-toggle__sun {
	left: 8px;
	opacity: 1;
}

.ngj-mode-toggle__moon {
	right: 8px;
	opacity: 0;
}

[data-theme="dark"] .ngj-mode-toggle__sun {
	opacity: 0;
}

[data-theme="dark"] .ngj-mode-toggle__moon {
	opacity: 1;
}

/* ハンバーガー（900px以下で表示・サンプル準拠） */
.ngj-hamburger {
	display: none;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	font-size: 1.4rem;
	color: var(--ngj-text);
	cursor: pointer;
	border-radius: 8px;
	flex-shrink: 0;
}

.ngj-hamburger:hover {
	background: rgba(0, 0, 0, 0.05);
}

/* モバイルメニュー（右スライドパネル・サンプル準拠） */
.ngj-mobile-menu {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 300;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.ngj-mobile-menu.is-open {
	display: block;
}

.ngj-mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 78%;
	max-width: 320px;
	height: 100%;
	background: var(--ngj-surface);
	padding: 24px;
	box-shadow: -10px 0 30px rgb(0 0 0 / 0.15);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.ngj-mobile-menu__close {
	position: absolute;
	top: 24px;
	right: 24px;
	font-size: 1.8rem;
	background: none;
	border: none;
	color: var(--ngj-text);
	cursor: pointer;
	line-height: 1;
}

.ngj-mobile-menu__nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 32px;
}

.ngj-mobile-menu__nav a {
	padding: 14px 18px;
	font-size: 1.05rem;
	font-weight: 500;
	color: var(--ngj-text);
	border-radius: 12px;
	text-decoration: none;
}

.ngj-mobile-menu__nav a:hover {
	background: rgba(0, 0, 0, 0.04);
}

.ngj-mobile-menu__nav a.is-active {
	background: rgba(230, 0, 18, 0.08);
	color: var(--ngj-accent);
}

.ngj-mobile-menu__search {
	margin-top: 20px;
}

.ngj-mobile-menu__search input[type="search"] {
	width: 100%;
	appearance: none;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: var(--ngj-bg);
	border-radius: 9999px;
	padding: 10px 18px;
	font-size: 0.95rem;
	color: var(--ngj-text);
}

.ngj-mobile-menu__footer {
	margin-top: auto;
	padding-top: 40px;
	font-size: 0.8rem;
	color: var(--ngj-text-secondary);
}

/* カテゴリチップバー（グレー地・アクティブのみ赤＝点を打つ） */
.ngj-category-bar {
	background: var(--ngj-surface);
	border-bottom: 1px solid var(--ngj-hairline);
	padding: 12px 0;
}

.ngj-header.is-scrolled .ngj-category-bar {
	background: transparent;
}

/* チップは切らずに折り返す（バランス重視・2026-07-02 たく老さん指示） */
.ngj-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 24px;
	max-width: 1440px;
	margin: 0 auto;
}

.ngj-chip {
	flex-shrink: 0;
	padding: 7px 18px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--ngj-text-secondary);
	background: #f1f1f1;
	border-radius: 9999px;
	white-space: nowrap;
	text-decoration: none;
	transition: all 0.2s ease;
}

.ngj-chip:hover {
	background: #e5e5e5;
	color: var(--ngj-text);
}

.ngj-chip.is-active {
	background: var(--ngj-accent);
	color: white;
	box-shadow: 0 2px 8px rgba(230, 0, 18, 0.3);
}

/* ============ お知らせ枠（注目記事ティッカー・チップとコンテンツの間） ============ */

/* お知らせ枠：ヘッダー内・チップ帯の上（2026-07-03 たく老さん指示で移設） */
.ngj-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 800px;
	margin: 10px auto 4px;
	padding: 8px 18px;
	background: var(--ngj-surface);
	border-radius: 9999px;
	box-shadow: var(--ngj-shadow);
	font-size: 0.9rem;
}

.ngj-notice__badge {
	flex-shrink: 0;
	padding: 4px 12px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
	color: var(--ngj-surface);
	background: var(--ngj-text);
	border-radius: 9999px;
}

.ngj-notice__link {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--ngj-text);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ngj-notice__link:hover {
	color: var(--ngj-accent);
}

.ngj-notice__controls {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ngj-notice__controls button {
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	color: var(--ngj-text-secondary);
}

.ngj-notice__controls button:hover {
	color: var(--ngj-accent);
}

.ngj-notice__controls button:disabled {
	opacity: 0.4;
	cursor: default;
}

/* ============ セクションヘッダー（赤キッカー＋タイトル） ============ */

.ngj-section {
	margin-block: 0 80px; /* 余白拡大（空気感JR寄せ・2026-07-03確定） */
}

.ngj-section-header {
	margin-bottom: 18px;
}

.ngj-section-kicker {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--ngj-accent);
	margin: 0 0 6px;
}

.ngj-section-title {
	font-size: clamp(1.2rem, 2.2vw, 1.55rem);
	font-weight: 600;
	letter-spacing: -0.4px;
	color: var(--ngj-text);
	margin: 0;
}

/* ============ Bento Grid ヒーロー（左:メイン記事+広告／右:バナー3+PICKUP3） ============ */

.ngj-bento {
	display: grid;
	/* メイン:小カード列:小カード列＝2:1:1（2026-07-05確定）。右側は内部で1fr 1frの2列なので
	   外側を1fr 1frにするとメイン=全体の50%・小カード列各25%になり2:1:1の比率になる。 */
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	align-items: stretch; /* 左右カラムの高さを揃える */
	margin-bottom: 80px;
}

.ngj-bento__left,
.ngj-bento__right {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.ngj-bento__right > * {
	flex: 0 0 auto;
}

.ngj-bento-card {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	background: var(--ngj-surface);
	box-shadow: var(--ngj-shadow);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ngj-bento-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ngj-shadow-hover);
}

/* 左カラム：広告枠を廃止（2026-07-05）したため、メイン記事画像が右カラムの高さまで伸びる */
.ngj-bento__left .ngj-bento__main {
	flex: 1 1 auto;
	min-height: 340px;
}

/* 広告エリア：浮いた枠にせず、広告を縦に並べて余白を埋める */
.ngj-bento__ad {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 150px;
}

.ngj-ad-item {
	position: relative;
	isolation: isolate; /* 独立した重ね順を作り、PRを必ず広告/バナーの上に置く */
	border-radius: 12px;
	overflow: hidden;
	min-width: 0;
}

/* 隅の「PR」（両タイプ共通）。画像バナー等より必ず上のレイヤー＋下地チップで確実に視認 */
.ngj-ad-item::after {
	content: 'PR';
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 5;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.5;
	color: #ffffff;
	background: rgba(0, 0, 0, 0.42);
	padding: 1px 6px;
	border-radius: 4px;
	pointer-events: none;
}

/* 自由カスタマイズ型（シンVPS等）：帯なし。余白を自身で埋めるよう縦に伸びる */
.ngj-ad-item--flex {
	flex: 1 1 auto;
	display: flex;
	min-height: 130px;
}

.ngj-ad-item--flex > .ngj-ad-item__body {
	flex: 1;
	display: flex;
	min-width: 0;
}

.ngj-ad-item--flex > .ngj-ad-item__body > * {
	flex: 1;
	display: flex;
	min-width: 0;
}

.ngj-ad-item--flex > .ngj-ad-item__body > * > * {
	flex: 1;
	min-width: 0;
}

/* 固定画像バナー型（DMM等）：帯を敷いて中央寄せ（長さ不足を帯が埋める） */
.ngj-ad-item--banner {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef1f5;
	padding: 12px;
	min-height: 92px;
}

.ngj-ad-item--banner .ngj-ad-item__body {
	width: 100%;
	max-width: 100%;
	text-align: center;
}

/* モバイル等ではみ出す固定バナーを縮小（画像/iframe/insを枠幅に収める） */
.ngj-ad-item--banner .ngj-ad-item__body img,
.ngj-ad-item--banner .ngj-ad-item__body iframe,
.ngj-ad-item--banner .ngj-ad-item__body ins {
	max-width: 100% !important;
	height: auto !important;
	margin-inline: auto;
}

.ngj-bento-card__link {
	display: block;
	position: relative;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

/* サムネイル＋下部グラデーション */
.ngj-thumb {
	position: relative;
	width: 100%;
	background: #e5e5e5;
	overflow: hidden;
}

.ngj-bento__main .ngj-thumb {
	height: 100%;
	min-height: 340px;
}

/* 右カラム：カテゴリカード4枚を2×2グリッドで（2026-07-05・旧バナー/PICKUPから変更）。 */
.ngj-bento__right--cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 16px;
	height: 100%;
}

.ngj-bento__right--cards > * {
	flex: initial; /* 親.ngj-bento__right > *のflex指定を打ち消しgridセルに収める */
	min-height: 0;
}

.ngj-bento__right--cards .ngj-bento__sub .ngj-thumb {
	height: 100%;
	min-height: 130px;
}

.ngj-bento__right--cards .ngj-bento-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.ngj-bento__right--cards .ngj-card-content {
	padding: 10px 12px;
}

.ngj-bento__right--cards .ngj-card-title {
	font-size: 0.88rem;
	-webkit-line-clamp: 2;
}

.ngj-bento__right--cards .ngj-card-meta {
	font-size: 0.72rem;
}

.ngj-thumb__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* グラデーションは軽く（黒幕の圧迫感を減らす・2026-07-03確定） */
.ngj-bento-card .ngj-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 48%, rgba(0, 0, 0, 0.55) 92%);
	opacity: 0.8;
}

/*
 * オーバーレイ本文（Bento用・2026-07-05改訂）。
 * 上段＝カテゴリ＋日付の行、下段＝タイトルの統一レイアウト（タイトルが長くても上段と
 * 衝突しない）。カテゴリタグは画像背景でも視認できるよう白ガラスチップに変更
 * （スコアバッジと同じ「白ガラス＋赤文字」の視認性パターンに揃える）。
 */
.ngj-bento-card .ngj-card-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 26px 28px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ngj-bento__main .ngj-card-content {
	padding: 22px 26px;
}

.ngj-bento-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

/* 通常カード用（白ボディ上の文字のみ・面で塗らないブランドルール）。Bento内は下記で上書き。 */
.ngj-card-tag {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--ngj-accent);
	margin-bottom: 8px;
	letter-spacing: 0.5px;
}

.ngj-bento-card .ngj-card-tag {
	display: inline-block;
	flex: 0 1 auto;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--ngj-accent);
	letter-spacing: 0.5px;
	background: rgba(255, 255, 255, 0.88);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	padding: 3px 11px;
	border-radius: 9999px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ngj-bento-card .ngj-card-meta {
	flex: 0 0 auto;
	margin-left: auto;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 500;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* 明るい画像背景でも視認できるように */
	white-space: nowrap;
}

.ngj-bento-card .ngj-card-title {
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.35;
	color: white;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.ngj-bento__main .ngj-card-title {
	font-size: 1.3rem;
	line-height: 1.3;
}

/* Bentoサブ枠のサービスバナー（画像型／テキスト型） */
.ngj-bento-banner {
	display: block;
	border-radius: 20px;
	overflow: hidden;
	background: var(--ngj-surface);
	box-shadow: var(--ngj-shadow);
	text-decoration: none;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ngj-bento-banner:hover {
	transform: translateY(-4px);
	box-shadow: var(--ngj-shadow-hover);
}

.ngj-bento-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* テキスト型バナー（Lyrics Bridge等・現行サイトの紫グラデーション様式） */
.ngj-bento-banner--text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	padding: 14px 18px;
	background: linear-gradient(135deg, #4c3f8f 0%, #6a5acd 55%, #8677d9 100%);
	color: #ffffff;
}

.ngj-bento-banner__label {
	font-size: 0.82rem;
	opacity: 0.88;
}

.ngj-bento-banner__title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.ngj-bento-banner__cta {
	align-self: flex-start;
	background: rgba(255, 255, 255, 0.92);
	color: #4c3f8f;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 6px 16px;
	border-radius: 9999px;
	margin-top: 6px;
}

/* 広告スロットのラベル（PR表記必須・確定仕様） */
.ngj-ad-slot__label {
	font-size: 0.75rem;
	color: var(--ngj-text-secondary);
	margin: 0 0 8px;
	max-width: 800px;
	margin-inline: auto;
	text-align: left;
}

/* ============ スコアバッジ（リキッドガラス・ピル型） ============ */

.ngj-score {
	position: absolute;
	bottom: 18px;
	right: 18px;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 6px 13px 6px 11px;
	background: var(--ngj-glass-bg);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-radius: 9999px;
	box-shadow: 0 4px 12px rgb(0 0 0 / 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.5);
}

.ngj-score__star {
	color: var(--ngj-accent);
	font-size: 1rem;
	line-height: 1;
	margin-top: -1px;
}

.ngj-score__num {
	color: var(--ngj-accent);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: -0.3px;
}

/* ============ 記事グリッド（サムネ上＋白ボディ） ============ */

/*
 * 列数は 1/2/3/4/6 のみを使用し5列は使わない（2026-07-05確定・たく老さん指示）。
 * 12はこれら全ての公倍数のため、一覧の総件数を12の倍数にすれば
 * どの列数でも最終行が半端に余らずきれいに揃う（archive-grid.php等のposts_per_page参照）。
 */
.ngj-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr); /* ≥1440px */
	gap: 18px;
	padding: 0;
	margin: 0;
}

@media (max-width: 1439px) {
	.ngj-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 1099px) {
	.ngj-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.ngj-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 479px) {
	.ngj-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}

.ngj-grid > li {
	list-style: none;
	margin: 0;
}

/* 3枚構成のセクション用：空トラックを作らず全幅に伸ばす（右側スカスカ対策） */
.ngj-grid--fit {
	grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
}

/* PICK UPのテキストカードは詰めすぎると窮屈なので専用に最小幅を確保 */
.ngj-pickup .ngj-grid--fit {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ngj-article-card {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: var(--ngj-surface);
	box-shadow: var(--ngj-shadow);
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.6s ease; /* リビールをゆったりに（空気感JR寄せ） */
}

.ngj-article-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ngj-shadow-hover);
}

.ngj-article-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.ngj-article-card .ngj-thumb {
	aspect-ratio: 16 / 9;
	height: auto;
	transition: transform 0.4s ease;
}

.ngj-article-card:hover .ngj-thumb {
	transform: scale(1.03);
}

/* コンパクトカードのスコアバッジは一回り小さく・端に寄せる */
.ngj-article-card .ngj-score {
	bottom: 12px;
	right: 12px;
	padding: 4px 10px 4px 8px;
	font-size: 0.85rem;
}

.ngj-article-card .ngj-card-content {
	position: relative;
	padding: 13px 15px 15px;
	background: var(--ngj-surface);
}

.ngj-article-card .ngj-card-title {
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ngj-text);
	margin: 0 0 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ngj-card-excerpt {
	font-size: 0.8rem;
	color: var(--ngj-text-secondary);
	line-height: 1.5;
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 14px;
}

.ngj-card-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.8rem;
}

.ngj-card-date {
	color: var(--ngj-text-secondary);
	font-weight: 500;
}

/* スクロールリビール（サンプル準拠：translateY 22px） */
.ngj-reveal {
	opacity: 0;
	transform: translateY(16px);
}

.ngj-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.ngj-reveal {
		opacity: 1;
		transform: none;
	}
}

/* CSSアート（サムネ無しフォールバック・ベタ塗り禁止） */
.ngj-cssart {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 82% 22%, rgba(230, 0, 18, 0.6) 0 0.5rem, transparent 0.55rem),
		linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		linear-gradient(135deg, #23252b 0%, #3a3d46 100%);
	background-size: auto, 24px 24px, 24px 24px, auto;
}

.ngj-cssart__initial {
	font-size: 3.2rem;
	font-weight: 800;
	color: #ffffff;
	opacity: 0.92;
}

/* ============ PICK UPカード（現行サイト様式・テキスト主体パステルカード） ============ */

.ngj-pickup-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	border-radius: 16px;
	background: #fdf6e9; /* 1枚目：クリーム */
	box-shadow: var(--ngj-shadow);
	text-decoration: none;
	color: var(--ngj-text);
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.ngj-pickup-card--c2 {
	background: #edf3fb; /* 2枚目：ライトブルー */
}

.ngj-pickup-card--c3 {
	background: #f4f0fa; /* 3枚目：ラベンダー */
}

.ngj-pickup-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ngj-shadow-hover);
}

.ngj-pickup-card__label {
	align-self: flex-start;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.9);
	padding: 4px 12px;
	border-radius: 9999px;
	color: var(--ngj-text);
}

.ngj-pickup-card__title {
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.3px;
}

.ngj-pickup-card__desc {
	font-size: 0.875rem;
	color: var(--ngj-text-secondary);
	line-height: 1.6;
	padding-bottom: 18px;
}

.ngj-pickup-card__arrow {
	position: absolute;
	right: 22px;
	bottom: 18px;
	font-size: 0.8rem;
	color: var(--ngj-accent); /* 点を打つ */
	transition: transform 0.2s ease;
}

.ngj-pickup-card:hover .ngj-pickup-card__arrow {
	transform: translateX(3px);
}

/* カテゴリ別セクションの見出し行（タイトル＋一覧へリンク） */
.ngj-section-header--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

/* ピル型ボタン＋シェブロンアイコン（2026-07-05・矢印文字単体だと見劣りする指摘で変更） */
.ngj-section-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ngj-text-secondary);
	text-decoration: none;
	white-space: nowrap;
	padding: 7px 8px 7px 16px;
	border-radius: 9999px;
	background: var(--ngj-surface-alt, #f1f2f4);
	border: 1px solid rgba(0, 0, 0, 0.06);
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ngj-section-more__icon {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.ngj-section-more:hover {
	color: var(--ngj-accent);
	background: #ffffff;
	border-color: var(--ngj-accent);
}

/* ============ 最新記事＋人気記事ランキング（2カラムパネル・2026-07-05追加） ============ */

.ngj-latest-ranking {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 32px;
	align-items: start;
	margin-bottom: 64px;
}

.ngj-latest-ranking__col {
	min-width: 0;
}

.ngj-latest-list,
.ngj-ranking-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* 各行を白いカードとして独立させる（2026-07-05・Fable案参照でごちゃつき解消） */
.ngj-latest-row,
.ngj-ranking-row {
	background: var(--ngj-surface);
	border-radius: 14px;
	box-shadow: var(--ngj-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ngj-latest-row:hover,
.ngj-ranking-row:hover {
	transform: translateY(-2px);
	box-shadow: var(--ngj-shadow-hover);
}

.ngj-latest-row__link,
.ngj-ranking-row__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	color: inherit;
	text-decoration: none;
}

.ngj-latest-row__thumb,
.ngj-ranking-row__thumb {
	position: relative;
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	background: #e5e5e5;
}

.ngj-latest-row__body,
.ngj-ranking-row__body {
	min-width: 0;
	flex: 1;
}

.ngj-latest-row__meta,
.ngj-ranking-row__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.ngj-latest-row__time,
.ngj-ranking-row__time {
	font-size: 0.75rem;
	color: var(--ngj-text-secondary);
}

.ngj-badge-new {
	font-size: 0.65rem;
	font-weight: 700;
	color: #ffffff;
	background: var(--ngj-accent);
	padding: 1px 6px;
	border-radius: 4px;
	letter-spacing: 0.05em;
}

.ngj-latest-row__title,
.ngj-ranking-row__title {
	font-size: 0.92rem;
	font-weight: 600;
	margin: 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ngj-ranking-row__num {
	flex: 0 0 auto;
	width: 28px;
	font-size: 1.3rem;
	font-weight: 800;
	font-style: italic;
	text-align: center;
	color: var(--ngj-text-secondary);
}

.ngj-ranking-row__num--top {
	color: var(--ngj-accent);
}

.ngj-latest-col__ad {
	margin-top: 16px;
}

@media (max-width: 900px) {
	.ngj-latest-ranking {
		grid-template-columns: 1fr;
	}
}

/* ============ 自社サービスバナー帯 ============ */

.ngj-banner-band {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.ngj-banner-band a {
	flex: 1 1 300px;
	display: block;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--ngj-shadow);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.ngj-banner-band a:hover {
	transform: translateY(-4px);
	box-shadow: var(--ngj-shadow-hover);
}

.ngj-banner-band img {
	width: 100%;
	height: auto;
	display: block;
}

/* ============ 記事ページ（single・サンプル準拠） ============ */

.ngj-single-hero {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 20px;
	margin-bottom: 32px;
	position: relative;
	box-shadow: var(--ngj-shadow);
	overflow: hidden;
}

.ngj-single-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.45) 75%);
}

.ngj-single-hero .ngj-thumb__img,
.ngj-single-hero .ngj-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 記事ヘッダー（カテゴリタグピル＋メタ行） */
.ngj-single-meta {
	max-width: 820px;
	margin: 0 auto 4px;
}

.ngj-category-tag {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--ngj-accent);
	background: rgba(230, 0, 18, 0.08);
	padding: 4px 14px;
	border-radius: 9999px;
	margin-bottom: 14px;
	text-decoration: none;
}

.ngj-meta-row {
	display: flex;
	align-items: center;
	gap: 16px;
	color: var(--ngj-text-secondary);
	font-size: 0.9rem;
}

h1.wp-block-post-title {
	font-size: clamp(1.85rem, 4.5vw, 2.85rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -1.2px;
	margin: 12px auto 24px;
}

/* ============ スコアヒーロー（記事ページ・案B / 2026-07-06確定） ============
   白カード1枚：左=たく老アイコン+REVIEW SCOREキッカー+大数値+星行、
   右=AI評価チップ（AI評価がある記事のみ）。patterns/single-score.php参照。 */
.ngj-score-hero {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 auto 32px;
	padding: 22px 30px;
	background: var(--ngj-surface);
	border-radius: 20px;
	box-shadow: var(--ngj-shadow);
	width: fit-content;
	max-width: 100%;
}

.ngj-score-hero__avatar {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top center;
	flex: 0 0 auto;
}

.ngj-score-hero__kicker {
	margin: 0 0 2px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 2.5px;
	color: var(--ngj-accent);
}

/* ヒーロー数値：score.jsのfull描画（stars→value→totalの順で注入）を
   CSS gridのorderで「数値+分母を1行目・星を2行目」に再配置する。 */
.ngj-score-hero__value {
	position: static;
	bottom: auto;
	right: auto;
	z-index: auto;
	display: grid;
	grid-template-columns: auto auto;
	justify-content: start;
	align-items: baseline;
	column-gap: 6px;
	padding: 0;
	background: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.ngj-score-hero__value .ngj-score-value {
	order: 1;
	font-size: 2.4rem;
	font-weight: 800;
	color: var(--ngj-text);
	letter-spacing: -2px;
	line-height: 1;
}

.ngj-score-hero__value .ngj-score-total {
	order: 2;
	font-size: 1rem;
	color: var(--ngj-text-secondary);
	font-weight: 500;
}

.ngj-score-hero__value .ngj-stars {
	order: 3;
	grid-column: 1 / -1;
	display: inline-flex;
	font-size: 1.05rem;
	gap: 2px;
	color: var(--ngj-accent);
	margin-top: 4px;
}

/* 半星表現：☆の上に右50%をclip-pathで隠した★を重ねる（score.js参照）。 */
.ngj-star {
	position: relative;
	display: inline-block;
}

.ngj-star--half .ngj-star__full {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	overflow: hidden;
	clip-path: inset(0 50% 0 0);
}

/* AI評価（補助情報・ヒーロー右端）。たく老側と対になる「画像＋縦積みラベル/スコア」構成
   （2026-07-06・ピル型チップから変更。画像が小さすぎるとの指摘対応）。 */
.ngj-score-hero__ai {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 14px;
	padding-left: 26px;
}

.ngj-score-hero__ai-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top center;
	flex: 0 0 auto;
}

.ngj-score-hero__ai-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ngj-score-hero__ai-label {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--ngj-text-secondary);
}

/* スコアはカードバッジ用 .ngj-score のガラス装飾を打ち消して素のテキストに。 */
.ngj-score-hero__ai-score {
	position: static;
	bottom: auto;
	right: auto;
	z-index: auto;
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	padding: 0;
	background: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	border: 0;
	box-shadow: none;
}

.ngj-score-hero__ai-score .ngj-score__star {
	font-size: 1.1rem;
}

.ngj-score-hero__ai-score .ngj-score__num {
	font-size: 1.15rem;
	color: var(--ngj-text);
}

.ngj-score-hero__ai-note {
	font-size: 0.62rem;
	color: var(--ngj-text-secondary);
	opacity: 0.75;
}

@media (max-width: 600px) {
	.ngj-score-hero {
		flex-wrap: wrap;
	}

	.ngj-score-hero__ai {
		margin-left: 0;
		padding-left: 0;
		align-items: flex-start;
	}
}

/* 本文タイポグラフィ */
.wp-block-post-content {
	font-size: 1.02rem;
	line-height: 1.85;
}

.wp-block-post-content h2 {
	font-size: 1.45rem;
	margin: 42px 0 16px;
	font-weight: 700;
	letter-spacing: -0.4px;
}

.wp-block-post-content h3 {
	font-size: 1.15rem;
	margin: 28px 0 12px;
	font-weight: 600;
}

.wp-block-post-content p {
	margin-bottom: 18px;
}

.wp-block-post-content blockquote {
	margin: 28px 0;
	padding: 22px 28px;
	background: rgba(0, 0, 0, 0.03);
	border-left: 5px solid var(--ngj-accent);
	font-style: italic;
	color: var(--ngj-text-secondary);
	border-radius: 0 8px 8px 0;
}

/* 関連レビュー */
.ngj-related {
	margin-top: 60px;
	padding-top: 32px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* 常に固定4件表示のセクション専用グリッド（2026-07-06）。
   auto-fit任せ（.ngj-grid--fit）だと幅次第で3列になり4件目が孤立するため、
   4の約数（4/2/1）だけを使う固定列数にして孤立行を作らない。 */
.ngj-grid--related {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
	.ngj-grid--related {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.ngj-grid--related {
		grid-template-columns: repeat(1, 1fr);
	}
}

/* 1ページ目末尾のCTA（赤＝点を打つ許可範囲） */
.ngj-cta-next {
	text-align: center;
	margin: 2.5rem 0;
}

.ngj-cta-next a {
	display: inline-block;
	background: var(--ngj-accent);
	color: #ffffff;
	font-weight: 600;
	text-decoration: none;
	padding: 0.9rem 2.6rem;
	border-radius: 9999px;
	box-shadow: 0 8px 24px rgba(230, 0, 18, 0.3);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ngj-cta-next a:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(230, 0, 18, 0.4);
}

/* AIクローラー向け簡易情報ブロック */
.ngj-ai-info {
	max-width: 820px;
	margin: 56px auto 0;
	background: var(--ngj-surface);
	border-radius: 16px;
	box-shadow: var(--ngj-shadow);
	padding: 20px 24px;
	font-size: 0.9rem;
}

.ngj-ai-info dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 20px;
	margin: 0;
}

.ngj-ai-info dt {
	font-weight: 700;
}

.ngj-ai-info dd {
	margin: 0;
}

/* 広告スロット（実コードはT010で接続） */
.ngj-ad-slot {
	margin: 32px auto;
	max-width: 820px;
	text-align: center;
}

/* ============ フッター ============ */

.ngj-footer {
	position: relative;
	overflow: hidden;
	margin-top: 56px;
	padding: 48px 24px calc(28px + env(safe-area-inset-bottom));
	font-size: 0.8rem;
	color: var(--ngj-text-secondary);
	border-top: 1px solid var(--ngj-hairline);
}

.ngj-footer__inner {
	position: relative;
	z-index: 1;
	max-width: 1440px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px 48px;
	text-align: left;
}

.ngj-footer__brand {
	max-width: 480px;
}

.ngj-footer__logomark {
	display: inline-block;
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: -0.5px;
	color: var(--ngj-text);
	text-decoration: none;
	margin-bottom: 12px;
}

.ngj-footer__tagline {
	font-size: 1rem;
	font-weight: 600;
	color: var(--ngj-text);
	margin: 0 0 8px;
}

.ngj-footer__desc {
	font-size: 0.85rem;
	line-height: 1.7;
	margin: 0 0 10px;
	max-width: 420px;
}

.ngj-footer__concept {
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: var(--ngj-accent);
	opacity: 0.85;
	margin: 0;
}

/* 背景イラスト（軽量SVGラインアート・右下に薄く） */
.ngj-footer__art {
	position: absolute;
	right: 3%;
	bottom: 8px;
	width: 240px;
	height: 160px;
	color: var(--ngj-accent);
	opacity: 0.07;
	pointer-events: none;
	z-index: 0;
}

/* フッターメニュー（Home | Privacy Policy | Contact | RSS） */
.ngj-footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
}

.ngj-footer-menu a {
	position: relative;
	color: var(--ngj-text-secondary);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 500;
	padding: 4px 16px;
	transition: color 0.15s ease;
}

.ngj-footer-menu a:first-child {
	padding-left: 0;
}

.ngj-footer-menu a:hover {
	color: var(--ngj-accent);
}

.ngj-footer-menu a:not(:last-child)::after {
	content: '|';
	position: absolute;
	right: -2px;
	color: var(--ngj-text-secondary);
	opacity: 0.35;
	font-weight: 400;
}

/* 著作権（下段・中央） */
.ngj-footer .ngj-copyright {
	position: relative;
	z-index: 1;
	margin: 28px 0 0;
	text-align: center;
}

/* ============ レスポンシブ（サンプル準拠：900px/768px/480px） ============ */

@media (max-width: 900px) {
	.ngj-bento {
		grid-template-columns: 1fr; /* 左右カラムが縦積み */
	}

	.ngj-bento__left .ngj-bento__main {
		min-height: 300px;
	}

	.ngj-bento__main .ngj-thumb {
		min-height: 300px;
	}

	/* 1カラム時は広告を伸ばさず自然高に */
	.ngj-bento__ad {
		flex: 0 0 auto;
	}
}

/* タブレット：検索を隠してタブの横幅を確保（縦書き崩壊ゾーンを作らない） */
@media (max-width: 1100px) {
	.ngj-search {
		display: none;
	}
}

/* タブが収まらない幅：タブを隠しハンバーガー＋スライドメニューに切替 */
@media (max-width: 900px) {
	.ngj-tabs {
		display: none;
	}

	.ngj-hamburger {
		display: flex;
	}

	.ngj-header__actions .ngj-sns {
		display: none; /* SNSはスライドメニュー内に表示 */
	}
}

@media (max-width: 768px) {
	.ngj-header__inner {
		padding: 0 16px;
	}

	.ngj-chips {
		padding: 0 16px;
	}

	main.wp-block-group {
		padding-top: 28px;
		padding-bottom: 80px;
	}

	.ngj-score {
		padding: 5px 11px 5px 9px;
	}
}

@media (max-width: 480px) {
	.ngj-header__inner {
		height: 64px;
	}
}
