/*
Theme Name: コギダス
Theme URI: https://kogidasu.com
Author: hyodorantaro
Description: コギダス（kogidasu.com）専用テーマ。暗いヘッダー、全面スライダー、3列の白カード。
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kogidasu
*/

/* XD（exp-d.com / Rever）に寄せた配色。
   ヘッダー #151515、アクセント #35c2bd、地 #f5f5f5、カードは白。 */
:root {
	--ink:     #151515;
	--text:    #444444;
	--sub:     #5c656e;
	--link:    #808080;
	--line:    #e6e6e6;
	--bg:      #f5f5f5;
	--card:    #ffffff;
	--accent:  #35c2bd;
	--header:  #151515;
	--wrap:    1170px;
	--sans:    "Roboto", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
	--display: "Poppins", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
	--shadow:  0 1px 5px rgba(0, 0, 1, .05);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font-family: var(--sans); font-size: 16px; font-weight: 400; line-height: 1.7; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color .2s ease, opacity .2s ease, background-color .2s ease; }
a:hover { color: #999; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
	margin: 0 0 10px; padding: 0; color: var(--ink);
	font-family: var(--display); font-weight: 600; line-height: 1.6; letter-spacing: -.025em;
}
h1 a, h2 a, h3 a, h4 a { color: inherit; font-weight: inherit; }
h1 a:hover, h2 a:hover, h3 a:hover { color: inherit; opacity: .8; }
p { margin: 0 0 1em; }
button, input, textarea { font: inherit; }
::selection { background: var(--accent); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.b-wrap { display: block; max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }
.t-right { text-align: right; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.b-skip { position: absolute; left: -9999px; }
.b-skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--accent); color: #fff; padding: 10px 16px; }

/* ---------- ヘッダー ---------- */
.b-header { background: var(--header); position: sticky; top: 0; z-index: 50; }
.b-header-bar {
	height: 64px; display: flex; align-items: center; padding: 0 18px; gap: 0;
}
.b-brand { display: flex; align-items: center; flex: none; color: #fff; }
.b-brand:hover { color: #fff; }
.b-brand-logo { display: block; height: 34px; width: auto; }
.b-nav { flex: 1; min-width: 0; margin-left: 8px; border-left: 1px solid #333; padding-left: 4px; }
.b-nav ul { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.b-nav ul::-webkit-scrollbar { display: none; }
.b-nav a {
	display: block; white-space: nowrap; padding: 0 16px; line-height: 64px;
	font-family: "Roboto", sans-serif; font-size: 13px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .02em; color: #fff; background: transparent;
}
.b-nav a:hover, .b-nav a.is-on { color: var(--accent); }
.b-header-tools { display: flex; align-items: center; gap: 6px; flex: none; margin-left: 8px; }
.b-header .c-search { align-items: center; }
.b-header .c-search-input {
	width: 0; min-width: 0; padding: 0; border: 0; background: transparent; color: #fff; border-radius: 0;
	transition: width .2s ease, padding .2s ease, background-color .2s ease;
}
.b-header .c-search-input::placeholder { color: #777; }
.b-header .c-search:focus-within .c-search-input,
.b-header .c-search-input:not(:placeholder-shown) {
	width: 168px; padding: 7px 12px; background: #262626; border: 1px solid #333;
}
.b-header .c-search-btn {
	background: transparent; border: 0; color: #fff; padding: 8px; border-radius: 0; cursor: pointer;
}
.b-header .c-search-btn:hover { color: var(--accent); background: transparent; }
.b-nav-toggle {
	display: none; width: 42px; height: 42px; padding: 0; border: 0; background: transparent;
	flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.b-nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
body.is-nav-open .b-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.is-nav-open .b-nav-toggle span:nth-child(2) { opacity: 0; }
body.is-nav-open .b-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 検索（ヘッダー以外） ---------- */
.c-search { display: flex; }
.c-search-input {
	background: var(--bg); border: 1px solid var(--line); color: var(--ink);
	padding: 8px 14px; width: 180px; font-size: 14px; border-radius: 0;
}
.c-search-input::placeholder { color: var(--sub); }
.c-search-btn {
	background: var(--ink); border: 1px solid var(--ink); color: #fff;
	padding: 8px 12px; cursor: pointer; display: flex;
}
.c-search-input:focus { outline: none; border-color: var(--accent); }

/* ---------- パンくず ---------- */
.c-crumbs { font-size: 12px; color: var(--sub); padding: 18px 0 0; }
.c-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.c-crumbs li + li::before { content: "/"; margin-right: 6px; color: #ccc; }
.c-crumbs a:hover { color: var(--ink); }

/* ---------- バッジ・チップ ---------- */
.c-badge {
	display: inline-block; background: transparent; color: var(--accent);
	font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	padding: 2px 0; border-bottom: 1px solid var(--accent); border-radius: 0;
}
.c-badge:hover { color: var(--ink); border-color: var(--ink); }
.c-new {
	display: inline-block; background: var(--ink); color: #fff;
	font-size: 10px; font-weight: 700; padding: 2px 7px; letter-spacing: .06em;
}
.c-thumb-fallback {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	background: #d5d5d5; color: #fff;
}
.c-thumb-fallback span { color: rgba(255,255,255,.9); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-align: center; padding: 6px; }
.c-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.c-chip {
	font-size: 10px; padding: 4px 10px; border: 0; border-radius: 0;
	color: inherit; background: var(--bg); text-transform: uppercase; letter-spacing: .04em;
}
.c-chip:hover { background: var(--ink); color: #fff; }
.c-chip-count { margin-left: 4px; opacity: .6; }
.c-count { font-size: 12px; color: var(--sub); margin-top: 8px; }
.c-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* ---------- 出典・注意書き・共有 ---------- */
.c-source { margin-top: 26px; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 13px; }
.c-source-title { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sub); margin: 0 0 6px; }
.c-source-note { color: var(--sub); }
.c-disclaimer { margin-top: 20px; font-size: 12.5px; color: var(--sub); }
.c-disclaimer-title { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 6px; }
.c-disclaimer p:last-child { margin-bottom: 0; }
.c-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.c-share-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sub); }
.c-share-btn { font-size: 12px; padding: 6px 12px; background: var(--bg); color: var(--sub); }
.c-share-btn:hover { background: var(--ink); color: #fff; }

/* ---------- 関連記事 ---------- */
.c-related { margin-top: 8px; padding: 12px 0 64px; }
.c-related-head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
	margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.c-related-head h2 { margin: 0; font-size: 28px; }
.c-related-note { margin: 6px 0 0; font-size: 13px; color: var(--sub); }
.c-related-more { flex: none; font-size: 13px; font-weight: 700; color: var(--ink); }
.c-related-more:hover { color: var(--accent); }
.c-block-title {
	font-family: var(--display); font-size: 12px; letter-spacing: .2em; font-weight: 600;
	text-transform: uppercase; color: var(--sub); margin-bottom: 16px;
}
.c-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.c-related-item { display: block; background: var(--card); box-shadow: var(--shadow); color: inherit; }
.c-related-item:hover { color: inherit; }
.c-related-thumb { display: block; aspect-ratio: 400 / 280; overflow: hidden; background: #ddd; }
.c-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.c-related-body { display: block; padding: 14px 16px 16px; }
.c-related-cat { display: block; font-size: 11px; color: var(--accent); font-weight: 700; margin-bottom: 4px; letter-spacing: .06em; }
.c-related-title { display: block; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.c-related-item:hover .c-related-title { opacity: .75; }
.c-related-ex {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
	margin-top: 8px; font-size: 13px; font-weight: 400; line-height: 1.7; color: var(--text);
}
.c-related-date { display: block; margin-top: 10px; font-size: 12px; font-weight: 400; color: var(--sub); }
.c-comments { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.c-comment-list { margin: 0 0 20px; }
.c-comment-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.c-comments input[type="text"],
.c-comments input[type="email"],
.c-comments input[type="url"],
.c-comments textarea {
	width: 100%; background: var(--bg); border: 1px solid var(--line); padding: 10px 12px; color: var(--ink);
}
.c-comments .submit, .c-comments input[type="submit"] {
	background: var(--ink); color: #fff; border: 0; padding: 10px 22px; cursor: pointer;
}

/* ---------- サイドバー ---------- */
.b-side { display: flex; flex-direction: column; gap: 20px; }
.c-widget { background: var(--card); box-shadow: var(--shadow); padding: 26px 24px; }
.c-widget-title {
	font-family: var(--display); font-size: 13px; letter-spacing: .16em; font-weight: 600;
	text-transform: uppercase; margin: 0 0 14px; padding-bottom: 10px;
	border-bottom: 1px solid var(--line); color: var(--ink);
}
.c-widget-title::after { content: ""; display: block; width: 28px; height: 2px; background: var(--accent); margin-top: 8px; }
.c-widget-note { margin: -4px 0 12px; font-size: 12px; line-height: 1.6; color: var(--sub); }
.c-rec-list { display: flex; flex-direction: column; }
.c-rec-item {
	display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center;
	padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink);
}
.c-rec-item:first-child { padding-top: 0; }
.c-rec-item:last-child { border-bottom: 0; padding-bottom: 0; }
.c-rec-thumb { display: block; aspect-ratio: 1; overflow: hidden; background: #e8e8e8; }
.c-rec-thumb img, .c-rec-noimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-rec-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.c-rec-item:hover .c-rec-title { opacity: .75; }
.c-rec-date { display: block; margin-top: 4px; font-size: 11px; color: var(--sub); font-weight: 400; }
.c-rec-more { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--ink); }
.c-rec-more:hover { color: var(--accent); }

/* ---------- ランキング（累計PV順） ---------- */
.b-rank-sec { padding: 8px 0 36px; }
.c-rankbox {
	position: relative;
	overflow: hidden;
	color: #fff;
	padding: 26px 22px 18px;
	background:
		radial-gradient(900px 220px at 100% -10%, rgba(53, 194, 189, .28), transparent 55%),
		linear-gradient(160deg, #1a222b 0%, #10151b 55%, #0c1014 100%);
	box-shadow: 0 22px 48px rgba(0, 0, 0, .22);
}
.c-rankbox::before {
	content: "RANK";
	position: absolute;
	right: -6px;
	top: 8px;
	font-family: var(--display);
	font-size: 92px;
	font-weight: 600;
	letter-spacing: -.04em;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, .08);
	pointer-events: none;
}
.c-rankbox::after {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(255, 255, 255, .08);
	pointer-events: none;
}
.c-rankbox-head, .c-rank-layout { position: relative; z-index: 1; }
.c-rankbox-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 16px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.c-rankbox-kicker {
	width: 100%;
	margin: 0;
	color: var(--accent);
	font-family: "Roboto", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .32em;
	text-transform: uppercase;
}
.c-rankbox-head h2 {
	margin: 0;
	flex: 1;
	color: #fff;
	font-size: 26px;
	letter-spacing: -.02em;
}
.c-rank-layout { display: block; }
.c-rank { margin: 0; padding: 0; }
.c-rank-card > a { color: #fff; }
.c-rank-card > a:hover { color: #fff; }
.c-rank-noimg { display: block; width: 100%; height: 100%; background: #2a333c; }
.c-rank-cat {
	display: block;
	margin-bottom: 4px;
	color: var(--accent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .16em;
}
.c-rank-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #fff;
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.45;
}
.c-rank-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.c-rank-meter {
	flex: 1;
	height: 3px;
	background: rgba(255, 255, 255, .12);
	overflow: hidden;
}
.c-rank-meter i {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--accent), #f3d27a);
}
.c-rank-pv {
	flex: none;
	color: rgba(255, 255, 255, .62);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	letter-spacing: .04em;
}
.c-rank-num {
	font-family: var(--display);
	font-weight: 600;
	letter-spacing: -.04em;
	line-height: 1;
}

/* 1位 */
.c-rank-card.is-lead > a {
	position: relative;
	display: block;
	min-height: 250px;
	overflow: hidden;
}
.c-rank-card.is-lead .c-rank-visual {
	position: absolute;
	inset: 0;
}
.c-rank-card.is-lead .c-rank-visual img,
.c-rank-card.is-lead .c-rank-noimg {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.c-rank-card.is-lead .c-rank-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12, 16, 20, .05) 15%, rgba(12, 16, 20, .88) 100%);
}
.c-rank-card.is-lead .c-rank-num {
	position: absolute;
	z-index: 2;
	left: 12px;
	bottom: 10px;
	font-size: 78px;
	color: #f3d27a;
	text-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}
.c-rank-card.is-lead .c-rank-body {
	position: absolute;
	z-index: 2;
	left: 92px;
	right: 16px;
	bottom: 16px;
}
.c-rank-card.is-lead .c-rank-title { font-size: 22px; -webkit-line-clamp: 3; }
.c-rank-card.is-lead .c-rank-visual img { transition: transform .6s ease; }
.c-rank-card.is-lead:hover .c-rank-visual img { transform: scale(1.06); }

/* 2位以降 */
.c-rank-item + .c-rank-item { border-top: 1px solid rgba(255, 255, 255, .08); }
.c-rank-item > .c-rank-card > a {
	display: grid;
	grid-template-columns: 46px 72px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 12px 0;
}
.c-rank-item .c-rank-num { font-size: 26px; color: rgba(255, 255, 255, .28); }
.c-rank-item-2 .c-rank-num { color: #e8ecef; }
.c-rank-item-3 .c-rank-num { color: #e0a06a; }
.c-rank-item .c-rank-visual {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: #2a333c;
}
.c-rank-item .c-rank-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.c-rank-item:hover .c-rank-visual img { transform: scale(1.08); }
.c-rank-item .c-rank-title { font-size: 14px; }
.c-rank-item:hover .c-rank-title { color: var(--accent); }

.c-rankbox.is-wide { padding: 32px 28px 22px; }
.c-rankbox.is-wide .c-rank-layout {
	display: grid;
	grid-template-columns: 1.15fr .95fr;
	gap: 8px 32px;
	align-items: stretch;
}
.c-rankbox.is-wide .c-rank-card.is-lead { min-height: 100%; }
.c-rankbox.is-wide .c-rank-card.is-lead > a { min-height: 380px; height: 100%; }
.c-rankbox.is-wide .c-rank {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

@media (max-width: 860px) {
	.c-rankbox.is-wide .c-rank-layout { grid-template-columns: 1fr; }
	.c-rankbox.is-wide .c-rank-card.is-lead > a { min-height: 280px; }
	.c-rankbox-head h2 { font-size: 22px; }
	.c-rank-card.is-lead .c-rank-title { font-size: 18px; }
	.c-rank-card.is-lead .c-rank-num { font-size: 60px; }
}
@media (prefers-reduced-motion: reduce) {
	.c-rank-card.is-lead .c-rank-visual img,
	.c-rank-item .c-rank-visual img { transition: none; }
}

/* ---------- 記事本文 ---------- */
.b-content { overflow-wrap: anywhere; font-size: 16px; line-height: 1.85; color: var(--text); }
.b-content > * + * { margin-top: 1.05em; }
.b-content h2 { font-size: 24px; margin: 1.6em 0 .5em; }
.b-content h3 { font-size: 18px; margin: 1.4em 0 .4em; }
.b-content ul li { list-style: disc; margin-left: 1.4em; margin-bottom: .35em; }
.b-content ol li { list-style: decimal; margin-left: 1.5em; margin-bottom: .35em; }
.b-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.b-content a:hover { color: var(--sub); }
.b-content img { margin: 1.4em auto; max-width: 100%; height: auto; }
.b-content figure { margin: 1.4em 0; text-align: center; }
.b-content figure img { margin: 0 auto; }
.b-content figcaption { font-size: 12px; color: var(--sub); margin-top: 8px; }
.b-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.b-content th, .b-content td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.b-content th { background: var(--bg); width: 30%; }
.b-content blockquote {
	position: relative; margin: 24px 0; padding: 0 8px 0 56px;
	border-left: 10px solid var(--line); color: var(--text); font-size: 16px;
}
.b-content blockquote::before {
	content: "\201c"; position: absolute; top: -8px; left: 8px; font-size: 64px; line-height: 1; color: var(--line);
}
.b-content code { background: var(--bg); padding: 2px 6px; font-size: .92em; }
.c-toc { margin: 0 0 28px; padding: 18px 20px; background: var(--bg); }
.c-toc-title { margin: 0 0 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--sub); font-weight: 700; }
.c-toc ol { margin: 0; padding: 0; }
.c-toc li { list-style: decimal; margin-left: 1.2em; margin-bottom: .3em; }
.c-toc a { color: var(--ink); }

/* ---------- 固定ページ・404 ---------- */
.b-single-thumb { background: #ddd; text-align: center; margin: 0 0 28px; }
.b-single-thumb img { margin: 0 auto; width: 100%; height: auto; }
.b-lead {
	margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px solid var(--line);
	font-size: 16px; line-height: 1.85; color: var(--ink);
}
.b-cite { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.b-cite-label {
	margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em;
	text-transform: uppercase; color: var(--accent);
}
.b-cite-line { margin: 0 0 6px; font-size: 14px; line-height: 1.7; color: var(--ink); }
.b-cite-url { margin: 0; font-size: 13px; }
.b-cite-url a { color: var(--ink); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.c-page { padding: 40px 0 70px; }
.c-page-inner { max-width: 800px; margin: 0 auto; background: var(--card); padding: 36px 40px 48px; box-shadow: var(--shadow); }
.c-page-title { font-size: 34px; margin: 0 0 20px; }
.c-page-body { overflow-wrap: anywhere; font-size: 16px; line-height: 1.85; }
.c-page-body h2 { font-size: 22px; margin: 1.6em 0 .45em; }
.c-page-body ul li { list-style: disc; margin-left: 1.4em; margin-bottom: .3em; }
.c-page-body a { color: var(--ink); text-decoration: underline; }
.c-page-body a:hover { color: var(--sub); }
.c-404 { text-align: center; }
.c-404-code { font-family: var(--display); font-size: 96px; font-weight: 600; color: var(--accent); margin: 0; line-height: 1; letter-spacing: -.04em; }
.c-404 .c-search { justify-content: center; margin: 20px 0; }
.c-404-home { color: var(--ink); text-decoration: underline; font-weight: 600; }

/* ---------- 一覧 ---------- */
.b-archive { padding: 28px 0 70px; }
.b-archive .b-single-grid .b-grid { grid-template-columns: 1fr 1fr; }
.b-arc-head { margin: 10px 0 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.b-arc-head h1 { font-size: 36px; margin: 0 0 8px; }
.b-arc-head p { color: var(--sub); font-size: 14px; margin: 0; }
.b-empty { background: var(--card); box-shadow: var(--shadow); padding: 40px 20px; text-align: center; color: var(--sub); }
.b-pager {
	max-width: 370px; margin: 50px auto 10px; min-height: 60px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
	background: var(--card); box-shadow: var(--shadow);
}
.b-pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 0; min-height: 0; padding: 10px 16px; margin: 0;
	background: transparent; border: 0; border-radius: 0;
	color: var(--sub); font-size: 16px;
}
.b-pager:empty { display: none; }
.b-pager .page-numbers:hover { color: var(--ink); }
.b-pager .page-numbers.current { color: var(--ink); font-weight: 700; }

/* ---------- スライダー ---------- */
.b-hero { position: relative; background: #999; }
.b-hero-item { display: none; height: min(680px, 78vh); }
.b-hero-item.is-on { display: block; }
.b-hero-item > a {
	position: relative; display: flex; align-items: flex-end; justify-content: center;
	height: 100%; color: #fff;
}
.b-hero-item > a:hover { color: #fff; }
.b-hero-img {
	position: absolute; inset: 0; background-color: #777;
	background-position: center; background-size: cover;
}
.b-hero-img::before {
	content: ""; position: absolute; inset: 0; background: #000; opacity: .2; transition: opacity .15s ease;
}
.b-hero-item:hover .b-hero-img::before { opacity: .5; }
.b-hero-content { position: relative; z-index: 2; width: min(var(--wrap), 100%); padding: 0 15px 56px; }
.b-hero-content h2 {
	max-width: 600px; margin: 0 0 9px; color: #fff;
	font-size: 36px; font-weight: 600; line-height: 1.45;
}
.b-hero-meta {
	display: flex; flex-wrap: wrap; gap: 14px; color: #fff; opacity: .92; font-size: 13px;
}
.b-hero-dots {
	position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3;
	display: flex; justify-content: center; gap: 8px;
}
.b-hero-dot {
	width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255,255,255,.45); cursor: pointer;
}
.b-hero-dot.is-on { background: var(--accent); }

/* ---------- カード ---------- */
.b-latest { padding: 28px 0 20px; }
.b-sec-title {
	font-size: 28px; font-weight: 600; margin: 0 0 18px; padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}
.b-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.b-card {
	display: flex; flex-direction: column; height: 100%; background: transparent;
	transition: transform .3s ease;
}
.b-card:hover { transform: translateY(-10px); }
.b-card-thumb { display: block; position: relative; aspect-ratio: 400 / 280; overflow: hidden; background: #ddd; }
.b-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.b-card-thumb::after {
	content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .2s ease;
}
.b-card:hover .b-card-thumb::after { opacity: .1; }
.b-card-body {
	display: flex; flex-direction: column; flex: 1; min-width: 0;
	background: var(--card); box-shadow: var(--shadow); padding: 25px 30px 22px;
}
.b-card-title { font-size: 22px; font-weight: 600; line-height: 1.45; margin: 0 0 10px; }
.b-card-ex {
	margin: 0 0 22px; color: var(--sub); font-size: 14px; line-height: 1.7;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.b-card-meta {
	margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
	display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--sub); font-size: 13px;
}

/* ---------- カテゴリの帯 ---------- */
.b-band { padding: 18px 0 10px; }
.b-band-title {
	font-size: 36px; font-weight: 600; margin: 0 0 28px; padding-bottom: 22px;
	border-bottom: 1px solid var(--line);
}
.b-band .b-grid { margin-bottom: 20px; }

/* ---------- 記事ページ ---------- */
.b-single-wrap { padding: 36px 0 70px; }
.b-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.b-single { min-width: 0; background: var(--card); box-shadow: var(--shadow); padding: 36px 40px 44px; }
.b-single-head { margin-bottom: 8px; }
.b-badges { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.b-single-head h1 { font-size: 34px; line-height: 1.45; margin: 0 0 14px; }
.b-single-meta {
	display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--sub);
	padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.b-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; font-size: 14px; }
.b-postnav a { display: block; padding: 14px 16px; background: var(--bg); color: var(--sub); }
.b-postnav a:hover { color: var(--ink); }

/* ---------- フッター ---------- */
.b-footer {
	background: var(--header); color: #9a9a9a; margin-top: 56px; padding: 52px 0 0; font-size: 14px;
}
.b-footer a { color: #fff; }
.b-footer a:hover { color: var(--accent); }
.b-footer-main {
	display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .8fr);
	gap: 40px 72px; padding-bottom: 36px; border-bottom: 1px solid #2c2c2c;
}
.b-footer-logo { display: inline-block; }
.b-footer-logo img { display: block; height: 32px; width: auto; }
.b-footer-tagline {
	margin: 20px 0 10px; font-family: var(--display); font-size: 20px; font-weight: 600;
	line-height: 1.5; letter-spacing: .02em; color: #fff;
}
.b-footer-summary { margin: 0; max-width: 36em; font-size: 13px; line-height: 1.85; color: #9a9a9a; }
.b-footer-label {
	margin: 4px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .16em;
	text-transform: uppercase; color: var(--accent);
}
.b-footer-cats ul { display: flex; flex-direction: column; }
.b-footer-cats a {
	display: block; padding: 14px 0; border-top: 1px solid #2c2c2c; color: #fff;
}
.b-footer-cats li:last-child a { border-bottom: 1px solid #2c2c2c; }
.b-footer-cat-name { display: block; font-size: 15px; font-weight: 600; color: #fff; line-height: 1.5; }
.b-footer-cat-desc { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: #8a8a8a; line-height: 1.6; }
.b-footer-cats a:hover .b-footer-cat-name { color: var(--accent); }
.b-footer-bar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 64px; padding: 8px 0;
}
.b-footer-copy { margin: 0; font-size: 12px; letter-spacing: .04em; color: #8a8a8a; }
.b-totop {
	display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0;
	font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #fff;
}

/* ---------- コンセプト（使わない画面でも崩れないように） ---------- */
.b-intro { padding: 36px 0 10px; }
.b-intro-eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.b-intro-title { font-size: 32px; }
.b-intro-body, .b-intro-audience { color: var(--sub); font-size: 14px; }
.b-intro-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.b-intro-cats a { display: block; background: var(--card); box-shadow: var(--shadow); padding: 16px; }
.b-intro-cat-name { display: block; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.b-intro-cat-desc { display: block; font-size: 12px; color: var(--sub); }

@media (max-width: 1199px) {
	.b-hero-item { height: 520px; }
	.b-hero-content h2 { font-size: 30px; }
}
@media (max-width: 1000px) {
	.b-grid { grid-template-columns: 1fr 1fr; }
	.b-single-grid { grid-template-columns: 1fr; }
	.c-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
	.b-nav-toggle { display: flex; }
	.b-brand-logo { height: 30px; }
	.b-nav {
		display: none; position: fixed; inset: 64px 0 0 0; z-index: 49;
		margin: 0; padding: 8px 0 24px; border: 0; background: var(--header); overflow: auto;
	}
	body.is-nav-open { overflow: hidden; }
	body.is-nav-open .b-nav { display: block; }
	.b-nav ul { flex-direction: column; align-items: stretch; overflow: visible; }
	.b-nav a { line-height: 48px; padding: 0 22px; font-size: 15px; text-transform: none; }
	.b-header .c-search:focus-within .c-search-input,
	.b-header .c-search-input:not(:placeholder-shown) { width: 120px; }
}
@media (max-width: 760px) {
	.b-grid, .c-related-grid { grid-template-columns: 1fr; }
	.b-archive .b-single-grid .b-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.b-wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
	.b-header-bar {
		height: 56px;
		padding-left: max(12px, env(safe-area-inset-left));
		padding-right: max(8px, env(safe-area-inset-right));
	}
	.b-brand-logo { height: 26px; }
	.b-nav { top: 56px; inset: 56px 0 0 0; }
	.b-nav a { min-height: 48px; line-height: 48px; border-bottom: 1px solid #2a2a2a; }
	.b-header.is-search .b-header-search {
		position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
		background: var(--header); padding: 0 12px 12px;
	}
	.b-header.is-search .c-search { width: 100%; }
	.b-header.is-search .c-search-input,
	.b-header.is-search .c-search:focus-within .c-search-input,
	.b-header.is-search .c-search-input:not(:placeholder-shown) {
		width: auto; flex: 1; min-width: 0; font-size: 16px; padding: 10px 12px;
	}
	.c-search-input, .c-comments input, .c-comments textarea { font-size: 16px; }

	.b-hero-item { height: min(340px, 52vh); min-height: 220px; }
	.b-hero-content { padding: 0 16px 52px; }
	.b-hero-content h2 { font-size: 20px; line-height: 1.4; }
	.b-hero-dots { bottom: 6px; gap: 0; }
	.b-hero-dot {
		width: 36px; height: 36px; background: transparent; position: relative;
	}
	.b-hero-dot::before {
		content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
		margin: -4px 0 0 -4px; border-radius: 50%; background: rgba(255,255,255,.55);
	}
	.b-hero-dot.is-on { background: transparent; }
	.b-hero-dot.is-on::before { background: var(--accent); width: 10px; height: 10px; margin: -5px 0 0 -5px; }

	.b-latest { padding: 22px 0 8px; }
	.b-sec-title, .b-band-title, .b-arc-head h1, .c-related-head h2 { font-size: 22px; }
	.c-related-head { align-items: flex-start; flex-direction: column; gap: 8px; }
	.b-band { padding-top: 8px; }
	.b-band-title { margin-bottom: 16px; padding-bottom: 12px; }
	.b-grid { gap: 18px; }
	.b-card-body { padding: 16px 16px 14px; }
	.b-card-title { font-size: 17px; }
	.b-card-ex { -webkit-line-clamp: 2; margin-bottom: 14px; }
	.b-card:hover { transform: none; }

	.c-rankbox, .c-rankbox.is-wide { padding: 18px 14px 10px; }
	.c-rankbox::before { font-size: 64px; }
	.c-rankbox-head h2 { font-size: 20px; }
	.c-rankbox.is-wide .c-rank-card.is-lead > a,
	.c-rank-card.is-lead > a { min-height: 210px; }
	.c-rank-card.is-lead .c-rank-num { font-size: 40px; top: 8px; bottom: auto; left: 10px; }
	.c-rank-card.is-lead .c-rank-body { left: 14px; right: 14px; bottom: 12px; }
	.c-rank-card.is-lead .c-rank-title { font-size: 16px; }
	.c-rank-item > .c-rank-card > a { grid-template-columns: 28px 52px minmax(0, 1fr); gap: 8px; padding: 10px 0; }
	.c-rank-item .c-rank-num { font-size: 16px; }
	.c-rank-item .c-rank-title { font-size: 13px; }

	.b-archive, .b-single-wrap, .c-page { padding-top: 16px; }
	.b-single, .c-page-inner { padding: 18px 16px 24px; }
	.b-single-head h1, .c-page-title { font-size: 22px; }
	.b-single-thumb { margin-bottom: 16px; }
	.b-content, .c-page-body { font-size: 16px; }
	.b-content h2 { font-size: 18px; }
	.b-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.b-postnav { grid-template-columns: 1fr; }
	.b-postnav .t-right { text-align: left; }
	.c-related-grid, .b-intro-cats { grid-template-columns: 1fr; }
	.c-crumbs { padding-top: 12px; }
	.c-crumbs li { overflow-wrap: anywhere; }

	.b-pager { max-width: none; margin-top: 28px; }
	.b-pager .page-numbers { min-height: 44px; padding: 8px 12px; }
	.b-footer { margin-top: 36px; padding-top: 36px; padding-bottom: env(safe-area-inset-bottom); }
	.b-footer-main { grid-template-columns: 1fr; gap: 28px; padding-bottom: 8px; }
	.b-footer-tagline { font-size: 18px; }
	.b-footer-bar {
		align-items: flex-start; flex-direction: column; gap: 0;
		padding-bottom: max(8px, env(safe-area-inset-bottom));
	}
	.c-404-code { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.b-card, .b-hero-img::before, a { transition: none; }
}
