/* NG Board Top — テーマの見出し装飾などを打ち消すため #ngb で範囲を限定しています */

#ngb {
	--ngb-accent: #d6336c;
	--ngb-accent-soft: #fdeef3;
	--ngb-ink: #1f2328;
	--ngb-sub: #656d76;
	--ngb-line: #e3e6ea;
	--ngb-bg: #ffffff;
	--ngb-bg2: #f6f7f9;
	--ngb-radius: 8px;
	color: var(--ngb-ink);
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 32px;
}

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

/* テーマの見出し・リスト装飾をリセット */
#ngb h2, #ngb h3 {
	all: unset;
	display: block;
}
#ngb h2::before, #ngb h2::after,
#ngb h3::before, #ngb h3::after { content: none !important; display: none !important; }
#ngb ul { list-style: none; margin: 0; padding: 0; }
#ngb ul li { list-style: none; margin: 0; padding: 0; border: 0; background: none; }
#ngb ul li::before, #ngb ul li::after { content: none !important; }
#ngb p { margin: 0; padding: 0; }
#ngb a { text-decoration: none; box-shadow: none; }
#ngb img { max-width: 100%; height: auto; border: 0; }
#ngb .ngb-ic { display: inline-block; vertical-align: -2px; margin-right: 3px; flex: none; }

/* ヘッダー帯 */
#ngb .ngb-head {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
	padding: 10px 14px; border: 1px solid var(--ngb-line); border-radius: var(--ngb-radius);
	background: var(--ngb-bg2); margin-bottom: 12px;
}
#ngb .ngb-notice { font-size: 13px; color: var(--ngb-sub); display: flex; align-items: center; gap: 8px; }
#ngb .ngb-18 {
	display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 22px;
	border-radius: 4px; background: var(--ngb-accent); color: #fff; font-weight: 700; font-size: 12px;
}
#ngb .ngb-total { font-size: 13px; color: var(--ngb-sub); }
#ngb .ngb-total strong { color: var(--ngb-ink); font-size: 16px; font-weight: 700; }

/* はじめに */
#ngb .ngb-intro { margin-bottom: 12px; border: 1px solid var(--ngb-line); border-radius: var(--ngb-radius); background: var(--ngb-bg); }
#ngb .ngb-intro summary { cursor: pointer; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--ngb-sub); }
#ngb .ngb-intro-body { padding: 0 14px 12px; font-size: 13px; }

#ngb .ngb-ad { margin: 0 0 16px; text-align: center; }

#ngb .ngb-h { font-size: 13px; font-weight: 700; color: var(--ngb-sub); margin: 0 0 8px; letter-spacing: .04em; }

/* 特集 */
#ngb .ngb-feature { margin-bottom: 18px; }
#ngb .ngb-feature-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
#ngb .ngb-feature-item {
	display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--ngb-radius);
	background: var(--ngb-accent-soft); border: 1px solid transparent; color: var(--ngb-ink);
	transition: border-color .15s;
}
#ngb .ngb-feature-item:hover { border-color: var(--ngb-accent); }
#ngb .ngb-feature-label { font-size: 11px; font-weight: 700; color: var(--ngb-accent); }
#ngb .ngb-feature-title {
	font-size: 13px; font-weight: 600; line-height: 1.45;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* カテゴリナビ */
#ngb .ngb-cats { margin-bottom: 14px; }
#ngb .ngb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#ngb .ngb-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
	border: 1px solid var(--ngb-line); background: var(--ngb-bg); color: var(--ngb-ink);
	font-size: 13px; line-height: 1.4; transition: border-color .15s, background .15s;
}
#ngb .ngb-chip:hover { border-color: var(--ngb-accent); }
#ngb .ngb-chip.is-active { background: var(--ngb-accent); border-color: var(--ngb-accent); color: #fff; }
#ngb .ngb-chip-n { font-size: 11px; color: var(--ngb-sub); }
#ngb .ngb-chip.is-active .ngb-chip-n { color: rgba(255,255,255,.85); }
#ngb .ngb-chip-all { font-weight: 700; }
#ngb .ngb-more { margin-top: 6px; }
#ngb .ngb-more summary { cursor: pointer; font-size: 13px; color: var(--ngb-accent); padding: 4px 0; display: inline-block; }
#ngb .ngb-more[open] summary { margin-bottom: 6px; }

/* 検索 */
#ngb .ngb-search { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
#ngb .ngb-search input[type="search"],
#ngb .ngb-search select {
	height: 38px; border: 1px solid var(--ngb-line); border-radius: 6px; padding: 0 10px;
	font-size: 14px; background: var(--ngb-bg); color: var(--ngb-ink); margin: 0;
}
#ngb .ngb-search input[type="search"] { flex: 1 1 220px; min-width: 0; }
#ngb .ngb-search select { flex: 0 1 220px; min-width: 0; }
#ngb .ngb-search button {
	height: 38px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--ngb-ink); color: #fff;
	font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center;
}
#ngb .ngb-search button:hover { background: #000; }

/* 並び順タブ */
#ngb .ngb-tabs {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px;
	border-radius: var(--ngb-radius); background: var(--ngb-bg2); margin-bottom: 10px; scroll-margin-top: 80px;
}
#ngb .ngb-tab-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0 6px; border-left: 1px solid var(--ngb-line); border-right: 1px solid var(--ngb-line); }
#ngb .ngb-tab-label { font-size: 12px; font-weight: 700; color: var(--ngb-sub); margin-right: 2px; display: inline-flex; align-items: center; white-space: nowrap; flex: none; }
#ngb .ngb-tab {
	display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 6px; font-size: 13px;
	color: var(--ngb-ink); white-space: nowrap;
}
#ngb .ngb-tab:hover { background: var(--ngb-bg); }
#ngb .ngb-tab.is-active { background: var(--ngb-bg); color: var(--ngb-accent); font-weight: 700; box-shadow: 0 0 0 1px var(--ngb-line); }

#ngb .ngb-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 13px; color: var(--ngb-sub); margin-bottom: 12px; }
#ngb .ngb-status-main { color: var(--ngb-ink); font-weight: 600; }
#ngb .ngb-status-order { font-weight: 400; color: var(--ngb-sub); margin-left: 6px; }
#ngb .ngb-clear { color: var(--ngb-accent); }

/* カード一覧 */
#ngb .ngb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
#ngb .ngb-card {
	display: flex; flex-direction: column; min-width: 0; background: var(--ngb-bg);
	border: 1px solid var(--ngb-line); border-radius: var(--ngb-radius); overflow: hidden;
	transition: box-shadow .15s, transform .15s;
}
#ngb .ngb-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); }
#ngb .ngb-thumb { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--ngb-bg2); overflow: hidden; }
#ngb .ngb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
#ngb .ngb-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; letter-spacing: .1em; color: #a0a7b0; }
#ngb .ngb-new {
	position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 4px;
	background: var(--ngb-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.5;
}
#ngb .ngb-rank {
	position: absolute; top: 0; left: 0; min-width: 30px; height: 30px; padding: 0 6px;
	display: flex; align-items: center; justify-content: center; border-bottom-right-radius: 8px;
	background: rgba(31,35,40,.85); color: #fff; font-size: 14px; font-weight: 800;
}
#ngb .ngb-rank-1 { background: #c9a227; }
#ngb .ngb-rank-2 { background: #8f9aa6; }
#ngb .ngb-rank-3 { background: #b06f3a; }
#ngb .ngb-rank ~ .ngb-new { left: auto; right: 8px; }
#ngb .ngb-score {
	position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center;
	padding: 2px 7px; border-radius: 4px; background: rgba(0,0,0,.72); color: #ffd36b;
	font-size: 12px; font-weight: 700; line-height: 1.5;
}
#ngb .ngb-score .ngb-ic { width: 12px; height: 12px; }

#ngb .ngb-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
#ngb .ngb-cat {
	align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--ngb-accent);
	background: var(--ngb-accent-soft); padding: 1px 8px; border-radius: 999px; max-width: 100%;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#ngb .ngb-title { font-size: 14px; font-weight: 700; line-height: 1.45; margin: 0; padding: 0; }
#ngb .ngb-title a {
	color: var(--ngb-ink);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#ngb .ngb-title a:hover { color: var(--ngb-accent); }
#ngb .ngb-spec { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--ngb-sub); }
#ngb .ngb-foot {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: auto; padding-top: 8px;
	border-top: 1px solid var(--ngb-line); font-size: 12px; color: var(--ngb-sub);
}
#ngb .ngb-stat { display: inline-flex; align-items: center; color: var(--ngb-sub); }
#ngb a.ngb-stat:hover { color: var(--ngb-accent); }
#ngb .ngb-date { margin-left: auto; font-variant-numeric: tabular-nums; }

#ngb .ngb-empty { padding: 32px 16px; text-align: center; color: var(--ngb-sub); background: var(--ngb-bg2); border-radius: var(--ngb-radius); }

/* ページ送り */
#ngb .ngb-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 24px 0 8px; }
#ngb .ngb-pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px;
	border: 1px solid var(--ngb-line); border-radius: 6px; color: var(--ngb-ink); background: var(--ngb-bg); font-size: 14px;
}
#ngb .ngb-pager a.page-numbers:hover { border-color: var(--ngb-accent); color: var(--ngb-accent); }
#ngb .ngb-pager .page-numbers.current { background: var(--ngb-accent); border-color: var(--ngb-accent); color: #fff; font-weight: 700; }
#ngb .ngb-pager .page-numbers.dots { border: 0; background: none; min-width: 20px; }

/* サイドバーなし */
.ngb-nosidebar #contentInner { float: none !important; width: 100% !important; margin: 0 !important; }
.ngb-nosidebar #contentInner main { margin: 0 !important; }

/* スマホ */
@media (max-width: 599px) {
	#ngb { font-size: 13px; }
	#ngb .ngb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	#ngb .ngb-body { padding: 8px 8px 10px; gap: 4px; }
	#ngb .ngb-title { font-size: 13px; }
	#ngb .ngb-date { margin-left: 0; width: 100%; }
	#ngb .ngb-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	#ngb .ngb-tab-group { flex-wrap: nowrap; }
	#ngb .ngb-search select { flex: 1 1 100%; }
	#ngb .ngb-feature-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
	#ngb .ngb-feature-item { flex: 0 0 78%; scroll-snap-align: start; }
}
