/*
Theme Name: KICKNOTE
Theme URI: https://kicknoteinfo.com
Author: hyodorantaro
Description: KICKNOTE（kicknoteinfo.com）専用テーマ。ゲーム・eスポーツ・ゲーミングデバイスの新着情報を、公開日と配信予定日を添えて一覧で読ませる構成。
Version: 2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kicknote
*/

/* ============================================================
   KICKNOTE
   ニュース一覧としての読みやすさを優先する。
   　・一覧は「サムネイル → 見出し → 概要 → 日付」の1行1件
   　・順位でない並びに連番を振らない（ランキングと紛らわしいため）
   　・日付は一覧・記事の両方に必ず出す（情報の鮮度で価値が変わるため）
   カテゴリ色は --badge-color というCSS変数で各部品へ渡す。
   ============================================================ */

:root {
	/* 文字と罫 */
	--ink:    #14171c;
	--sub:    #5f6a76;
	--line:   #d5dbe2;
	--line2:  #e9edf1;

	/* 面 */
	--bg:     #ffffff;
	--panel:  #f5f7f9;
	--deep:   #0d1117;

	/* 差し色（ロゴのオレンジに合わせる。白抜き文字で 4.5:1 以上） */
	--accent:   #e85d04;
	--accent-d: #c24b00;
	--hot:      #d8391b;

	--wrap: 1180px;
	--ease: cubic-bezier(.22, .68, .2, 1);
	--dur:  .2s;
}

/* ---------- 土台 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.8;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.45; }
p { margin: 0 0 1em; }
button, input { font: inherit; }
.t-right { text-align: right; }

/* 日本語の字組み。約物の余白を詰め、見出しの行末をそろえる。 */
h1, h2, h3,
.c-badge, .c-new, .c-chip, .c-widget-title,
.c-related-title,
.s-content, .c-page-body { font-feature-settings: "palt" 1; }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption, .c-related-title { text-wrap: pretty; }
time, .c-count, .c-chip-count,
.s-pager .page-numbers { font-variant-numeric: tabular-nums; }

/* 操作の手がかり */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.s-skip { position: absolute; left: -9999px; }
.s-skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--accent); color: #fff; padding: 10px 16px; }

.s-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ============================================================
   ヘッダー
   黒一枚の上にロゴ・検索・カテゴリを載せる。
   ロゴは白枠で囲まず、暗い地にそのまま置く。
   ============================================================ */
.s-header { background: #090b0f; color: #fff; }
.s-header-inner { padding-top: 18px; padding-bottom: 16px; }
.s-header-top {
	display: flex; align-items: center; gap: 24px;
}
.s-brand { display: flex; align-items: center; flex: none; min-width: 0; }
.s-brand-logo {
	display: block; height: 56px; width: auto; max-width: min(320px, 68vw);
	object-fit: contain; border-radius: 6px;
	box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.s-header-search { margin-left: auto; flex: none; min-width: 0; }

/* 検索：本文側は明るめ、ヘッダー内だけ暗い面に合わせる */
.c-search {
	display: flex; align-items: stretch;
	border: 1px solid var(--line); border-radius: 4px;
	overflow: hidden; background: #fff;
}
.c-search:focus-within { border-color: var(--accent); }
.c-search-input {
	background: transparent; border: 0; color: var(--ink);
	padding: 10px 14px; width: 220px; font-size: 14px; min-width: 0;
}
.c-search-input::placeholder { color: #98a2ad; }
.c-search-input:focus { outline: none; box-shadow: none; }
.c-search-btn {
	background: var(--accent); border: 0; color: #fff;
	padding: 0 14px; cursor: pointer; display: flex; align-items: center;
	transition: background-color var(--dur) var(--ease);
}
.c-search-btn:hover { background: var(--accent-d); }

.s-header .c-search {
	border-color: rgba(255,255,255,.18);
	background: rgba(255,255,255,.04);
}
.s-header .c-search:focus-within {
	border-color: var(--accent);
	background: rgba(255,255,255,.07);
}
.s-header .c-search-input { color: #fff; }
.s-header .c-search-input::placeholder { color: rgba(255,255,255,.45); }

/* カテゴリメニューは白帯 */
.s-header-bar {
	background: #fff;
	border-bottom: 1px solid var(--line);
}
.s-nav ul { display: flex; flex-wrap: wrap; gap: 0; }
.s-nav a {
	display: block; white-space: nowrap; padding: 12px 16px 11px;
	font-size: 13.5px; font-weight: 800; letter-spacing: .04em;
	color: var(--ink);
	border-bottom: 2px solid transparent;
	transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.s-nav a:hover { color: var(--accent-d); background: var(--panel); }
.s-nav a.is-on {
	color: var(--accent-d);
	border-bottom-color: var(--badge-color, var(--accent));
}

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

/* ============================================================
   見出し・2カラム
   ============================================================ */
.s-h2 {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	border-bottom: 2px solid var(--ink); padding: 0 0 9px; margin: 0 0 4px;
}
.s-h2-main {
	font-size: 19px; font-weight: 900; letter-spacing: .04em;
	display: flex; align-items: center; gap: 10px;
}
.s-h2-main::before { content: ""; width: 4px; height: 18px; background: var(--accent); }
.s-desc { color: var(--sub); font-size: 13.5px; margin: 12px 0 4px; }

.s-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 28px; padding-bottom: 60px; }
.s-cols:has(.s-side) { grid-template-columns: minmax(0, 1fr) 312px; }
.s-main { min-width: 0; }

/* ============================================================
   記事一覧（1行1件）
   ============================================================ */
.s-list { border-top: 1px solid var(--line2); margin-top: 14px; }
.s-row { border-bottom: 1px solid var(--line2); position: relative; }
.s-row-link { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 16px 8px; align-items: start; }
.s-row:hover { background: var(--panel); }
.s-row:hover .s-row-title { color: var(--accent); }

.s-row-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: var(--panel); }
.s-row-thumb img { width: 100%; height: 100%; object-fit: cover; max-width: none; transition: transform .5s var(--ease); }
.s-row:hover .s-row-thumb img { transform: scale(1.04); }
.s-row-body { display: block; min-width: 0; }
.s-row-top { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 7px; }
.s-row-title { font-size: 17px; font-weight: 800; line-height: 1.55; margin: 0 0 6px; }
/* 行全体を押せるようにする。バッジのリンクだけは上に出す。 */
.s-row-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.s-row-top a { position: relative; z-index: 1; }
.s-row-ex { font-size: 13.5px; color: var(--sub); margin: 0 0 7px; }
.s-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--sub); margin: 0; }
.s-row-plat {
	display: inline-block; font-size: 11px; color: var(--sub);
	border: 1px solid var(--line); border-radius: 2px; padding: 1px 7px; background: #fff;
}

/* ---------- 共通の小さな部品 ---------- */
.c-badge {
	display: inline-block; background: var(--badge-color, var(--accent)); color: #fff;
	font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 2px; letter-spacing: .04em;
}
.c-new { display: inline-block; background: var(--hot); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 2px; letter-spacing: .06em; }
.c-thumb-fallback {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	background: var(--badge-color, var(--accent));
}
.c-thumb-fallback span { color: #fff; font-size: 11.5px; font-weight: 800; text-align: center; padding: 4px; }
.c-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.c-chip {
	font-size: 12px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px;
	color: var(--sub); background: #fff;
	transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.c-chip:hover { border-color: var(--accent); color: var(--accent); }
.c-chip-count { margin-left: 5px; opacity: .6; }
/* タグはプラットフォームの絞り込みと役割が違うので、面で区別する。 */
.c-chip-tag { background: var(--panel); border-color: var(--line2); }
.c-chip-tag:hover { background: #fff; }
.c-count { font-size: 12px; color: var(--sub); margin: 12px 0 0; }
.s-empty { background: var(--panel); border: 1px dashed var(--line); padding: 40px 20px; text-align: center; color: var(--sub); margin-top: 16px; }
.s-search-again { margin: 14px 0 0; max-width: 420px; }
.c-404 .c-search { justify-content: center; margin: 20px 0; max-width: 420px; margin-left: auto; margin-right: auto; }

/* ---------- ページ送り ---------- */
.s-pager { margin-top: 28px; }
.s-pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0 12px; margin: 0 4px 6px 0;
	border: 1px solid var(--line); background: #fff; font-size: 14px; border-radius: 3px;
	transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.s-pager .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.s-pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 800; }

/* ============================================================
   トップページ（大きい1本 ＋ 新着の見出し）
   ============================================================ */
.s-board { background: var(--panel); border-bottom: 1px solid var(--line2); padding: 26px 0 30px; }
.s-board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.s-board-grid > * { min-width: 0; }

.s-lead {
	position: relative; display: flex; flex-direction: column; height: 100%;
	background: var(--bg); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.s-lead-media {
	display: block; flex: 1 1 auto; min-height: 220px;
	overflow: hidden; background: var(--panel);
}
.s-lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.s-lead:hover .s-lead-media img { transform: scale(1.03); }
.s-lead-body { flex: none; padding: 18px 22px 22px; }
.s-lead-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 11px; }
.s-lead-top a { position: relative; z-index: 1; }
.s-lead-title { font-size: 24px; font-weight: 900; line-height: 1.45; margin: 0 0 12px; }
.s-lead-title a::after { content: ""; position: absolute; inset: 0; }
.s-lead-ex {
	font-size: 14px; line-height: 1.85; color: var(--sub); margin: 0 0 12px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.s-lead-date { font-size: 12px; color: var(--sub); }
.s-lead:hover { border-color: var(--accent); }
.s-lead:hover .s-lead-title { color: var(--accent); }

.s-heads {
	display: flex; flex-direction: column; height: 100%;
	background: var(--bg); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.s-heads-title {
	flex: none; margin: 0; padding: 11px 16px; background: var(--deep); color: #fff;
	font-size: 12px; font-weight: 900; letter-spacing: .16em;
}
.s-heads-list { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.s-head {
	flex: 1; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: center;
	padding: 10px 14px; border-bottom: 1px solid var(--line2); min-height: 0;
}
.s-head:last-child { border-bottom: none; }
.s-head-thumb {
	position: relative; display: block; width: 132px; aspect-ratio: 16 / 10;
	overflow: hidden; border-radius: 3px; background: var(--panel); flex-shrink: 0;
}
.s-head-thumb img,
.s-head-thumb .c-thumb-fallback {
	position: absolute; inset: 0; width: 100%; height: 100%;
	max-width: none; object-fit: cover; display: block;
}
.s-head-thumb img { transition: transform .5s var(--ease); }
.s-head:hover .s-head-thumb img { transform: scale(1.04); }
.s-head-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.s-head-link {
	font-size: 14px; font-weight: 700; line-height: 1.5;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.s-head-date { font-size: 11.5px; color: var(--sub); }
.s-head:hover { background: var(--panel); }
.s-head:hover .s-head-link { color: var(--accent); text-decoration: underline; }

/* ============================================================
   記事ページ
   ============================================================ */
.s-single-title { font-size: 30px; font-weight: 900; line-height: 1.4; margin: 8px 0 12px; }
.s-single-meta {
	display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
	font-size: 12.5px; color: var(--sub); padding-bottom: 14px; border-bottom: 1px solid var(--line2);
}
.s-single-updated { color: var(--ink); }
.s-single-cat { color: var(--accent-d); font-weight: 700; }
.s-single-cat:hover { text-decoration: underline; }
.s-single-thumb { margin: 20px 0; background: var(--panel); border-radius: 4px; overflow: hidden; }
.s-single-thumb img { margin: 0 auto; }

.s-single .c-chips { margin-top: 14px; }

.s-content { overflow-wrap: anywhere; font-size: 16px; line-height: 1.95; margin-top: 24px; }
.s-content > * + * { margin-top: 1em; }
.s-content > p:first-of-type { font-size: 1.05em; }
.s-content h2 {
	font-size: 20px; font-weight: 900; margin: 2em 0 .7em;
	border-left: 5px solid var(--accent); padding-left: 13px; letter-spacing: .005em;
}
.s-content h3 { font-size: 17px; margin: 1.7em 0 .5em; border-bottom: 1px solid var(--line2); padding-bottom: 6px; }
.s-content ul li { list-style: disc; margin-left: 1.4em; margin-bottom: .4em; }
.s-content ol li { list-style: decimal; margin-left: 1.5em; margin-bottom: .4em; }
.s-content a {
	color: var(--accent-d); text-decoration: underline;
	text-decoration-thickness: 1px; text-underline-offset: 4px;
	text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
	transition: text-decoration-color var(--dur) var(--ease);
}
.s-content a:hover { text-decoration-color: var(--accent); }
.s-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.s-content th, .s-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.s-content th { background: var(--panel); width: 30%; font-weight: 700; }
.s-content blockquote {
	border-left: 4px solid var(--line); background: var(--panel);
	padding: 12px 18px; color: var(--sub); margin-left: 0; margin-right: 0;
}
.s-content code { background: var(--panel); border: 1px solid var(--line); padding: 2px 6px; font-size: .92em; border-radius: 3px; }
.s-content img { margin-left: auto; margin-right: auto; width: auto; max-width: 100%; height: auto; border-radius: 3px; }
.s-content figure { text-align: center; }
.s-content figure img { margin: 0 auto; }

/* ---------- 目次（本文から自動生成） ---------- */
.c-toc { margin: 0 0 24px; padding: 15px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.c-toc-title { font-size: 11px; font-weight: 900; letter-spacing: .16em; color: var(--sub); margin: 0 0 8px; }
.c-toc ol { margin: 0; padding: 0 0 0 1.3em; }
.c-toc li { list-style: decimal; margin: 0 0 5px; font-size: 14px; line-height: 1.6; }
.c-toc a { color: var(--ink); }
.c-toc a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- 出典・免責・署名 ---------- */
.c-post-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.c-source, .c-disclaimer, .c-byline {
	margin-top: 22px; padding: 14px 18px; background: var(--panel);
	border: 1px solid var(--line); border-radius: 4px; font-size: 13px; color: var(--sub);
}
.c-source-title, .c-disclaimer-title, .c-byline-name {
	font-size: 11px; font-weight: 900; letter-spacing: .14em; color: var(--ink); margin: 0 0 6px;
}
.c-byline-name { letter-spacing: .08em; font-size: 13px; }
.c-source a, .c-byline a { color: var(--accent-d); text-decoration: underline; }
.c-source-note, .c-byline-scope { margin: 7px 0 0; font-size: 12px; }
.c-byline-links { margin: 9px 0 0; font-size: 12.5px; }
.c-source p:last-child, .c-disclaimer p:last-child, .c-byline 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: 900; letter-spacing: .14em; color: var(--sub); }
.c-share-btn { font-size: 13px; padding: 7px 15px; border: 1px solid var(--line); border-radius: 3px; }
.c-share-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.s-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; font-size: 13.5px; }
.s-postnav a { display: block; padding: 13px 16px; background: var(--panel); border: 1px solid var(--line2); border-radius: 4px; height: 100%; }
.s-postnav a:hover { border-color: var(--accent); color: var(--accent); }
.s-postnav-dir { display: block; font-size: 11px; color: var(--sub); letter-spacing: .1em; margin-bottom: 4px; }
.s-postnav-next { text-align: right; }

/* ---------- 関連記事 ---------- */
.c-related { margin-top: 40px; }
.c-block-title {
	font-size: 16px; font-weight: 900; border-bottom: 2px solid var(--ink);
	padding-bottom: 8px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.c-block-title::before { content: ""; width: 4px; height: 15px; background: var(--accent); }
.c-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.c-related-item { border: 1px solid var(--line2); border-radius: 4px; overflow: hidden; background: #fff; }
.c-related-item:hover { border-color: var(--accent); }
.c-related-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); }
.c-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.c-related-body { display: block; padding: 10px 12px 14px; }
.c-related-cat { display: block; font-size: 10.5px; color: var(--badge-color, var(--accent)); font-weight: 800; margin-bottom: 4px; letter-spacing: .06em; }
.c-related-title {
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	font-size: 13.5px; font-weight: 700; line-height: 1.55;
}
.c-comments { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--ink); }

/* ============================================================
   サイドバー
   ============================================================ */
.s-side { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.c-widget { border-top: 3px solid var(--ink); padding-top: 12px; }
.c-widget-title {
	font-size: 13px; font-weight: 900; letter-spacing: .1em; color: var(--ink);
	margin: 0 0 10px; display: flex; align-items: baseline; gap: 9px;
}

/* ============================================================
   固定ページ・404
   ============================================================ */
.c-page { padding: 32px 0 60px; }
.c-page-inner { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.c-page-title { font-size: 27px; font-weight: 900; border-bottom: 3px solid var(--ink); padding-bottom: 13px; margin-bottom: 22px; }
.c-page-body { overflow-wrap: anywhere; font-size: 16px; line-height: 1.9; }
.c-page-body h2 { font-size: 19px; margin: 1.8em 0 .5em; border-left: 5px solid var(--accent); padding-left: 12px; }
.c-page-body ul li { list-style: disc; margin-left: 1.4em; margin-bottom: .35em; }
.c-page-body a { color: var(--accent-d); text-decoration: underline; }
.c-404 { text-align: center; }
.c-404-code { font-size: 64px; font-weight: 900; color: var(--line); margin: 0; line-height: 1; }
.c-404-cats ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0; }
.c-404-cats a { display: inline-block; font-size: 13px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; }
.c-404-cats a:hover { border-color: var(--accent); color: var(--accent); }
.c-404-home { color: var(--accent-d); text-decoration: underline; font-weight: 700; }

/* ============================================================
   フッター
   ============================================================ */
.s-footer { background: var(--deep); color: #aab4c0; padding: 36px 0 24px; }
.s-footer a { color: #aab4c0; transition: color var(--dur) var(--ease); }
.s-footer a:hover { color: #fff; }
.s-footer-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.s-footer-name { font-size: 17px; font-weight: 900; letter-spacing: .14em; color: #fff; margin: 0 0 8px; }
.s-footer-logo-link { display: inline-block; margin: 0 0 12px; }
.s-footer-logo {
	display: block; height: 52px; width: auto; max-width: min(280px, 80vw);
	object-fit: contain; border-radius: 6px;
}
.s-footer-desc { font-size: 12.5px; line-height: 1.75; margin: 0; max-width: 34em; }
.s-footer-head { font-size: 11px; font-weight: 900; letter-spacing: .14em; color: #fff; margin: 0 0 9px; }
.s-footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.s-footer-col a { font-size: 13px; }
.s-footer-bottom {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
	margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1);
}
.s-footer-copy { font-size: 12px; margin: 0; }
.s-totop { margin-left: auto; font-size: 12px; }

/* ============================================================
   画面幅ごとの調整
   ============================================================ */
@media (max-width: 1060px) {
	.s-cols,
	.s-cols:has(.s-side) { grid-template-columns: 1fr; gap: 34px; }
	.s-board-grid { grid-template-columns: 1fr; gap: 18px; align-items: start; }
	/* 縦積みでは高さ揃えをやめる。伸ばすとサムネや行が不自然に縦長になる。 */
	.s-lead { height: auto; }
	.s-lead-media { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
	.s-lead-title { font-size: 22px; }
	.s-heads { height: auto; }
	.s-heads-list { flex: none; }
	.s-head { flex: none; }
	.s-footer-top { grid-template-columns: 1fr 1fr; }
	.s-footer-brand { grid-column: auto; }
}

@media (max-width: 760px) {
	body { font-size: 15.5px; }
	.s-header-inner { padding-top: 14px; }
	.s-header-top { padding-bottom: 12px; gap: 12px; }
	.s-brand-logo { height: 40px; max-width: min(240px, 58vw); }
	.c-search-input { width: 140px; }
	/* 横スクロールにすると項目名が画面端で切れる。折り返して全部見せる。 */
	.s-nav ul { flex-wrap: wrap; }
	.s-nav a { padding: 11px 14px 10px; font-size: 13px; }
	/* balance は長い日本語見出しを短い行に割り、単語の途中で切れたように見える。 */
	h1, h2, h3 { text-wrap: wrap; word-break: auto-phrase; }
	.c-crumbs ol { flex-wrap: nowrap; }
	.c-crumbs li:not([aria-current]) { flex: none; }
	.c-crumbs li[aria-current] {
		flex: 1 1 auto; min-width: 0; overflow: hidden;
		text-overflow: ellipsis; white-space: nowrap;
	}

	.s-board { padding: 18px 0 20px; }
	.s-board-grid { gap: 14px; }
	.s-lead-body { padding: 14px 16px 16px; }
	.s-lead-title { font-size: 18.5px; margin-bottom: 8px; }
	.s-lead-ex { font-size: 13.5px; -webkit-line-clamp: 2; margin-bottom: 8px; }
	.s-heads-title { padding: 10px 14px; }
	.s-head {
		grid-template-columns: 104px minmax(0, 1fr); gap: 10px;
		padding: 10px 12px; align-items: center;
	}
	.s-head-thumb { width: 104px; }
	.s-head-link { font-size: 13.5px; overflow-wrap: anywhere; }
	.s-head-date { font-size: 11px; }

	.s-row-link { grid-template-columns: 148px minmax(0, 1fr); gap: 14px; padding: 14px 4px; }
	.s-row-title { font-size: 15.5px; }
	.s-row-ex { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
	.s-single-title { font-size: 23px; }
	.s-content { font-size: 15.5px; }
	.c-related-grid { grid-template-columns: 1fr 1fr; }
	.s-postnav { grid-template-columns: 1fr; }
	.s-postnav-next { text-align: left; }
}

@media (max-width: 560px) {
	.s-wrap, .c-page-inner { padding: 0 14px; }
	.s-brand-logo { height: 36px; max-width: min(200px, 54vw); }
	/* 検索はサイト名と同じ段に残す。段を増やすと本文が画面外へ押し下げられる。 */
	.s-header-top { gap: 10px; }
	.s-header-search { flex: 1 1 auto; min-width: 0; margin-left: 0; }
	.c-search { width: 100%; }
	.c-search-input { width: 100%; min-width: 0; padding: 9px 12px; }

	.s-board { padding: 14px 0 18px; }
	.s-lead-body { padding: 12px 14px 14px; }
	.s-lead-title { font-size: 17.5px; }
	.s-lead-top { margin-bottom: 8px; gap: 6px; }
	.s-head {
		grid-template-columns: 88px minmax(0, 1fr); gap: 9px;
		padding: 9px 10px;
	}
	.s-head-thumb { width: 88px; }
	.s-head-link { font-size: 13px; -webkit-line-clamp: 2; }

	.s-cols { padding-top: 20px; padding-bottom: 44px; gap: 30px; }
	.s-h2-main { font-size: 17px; }
	.s-row-link { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 13px 2px; }
	.s-row-title { font-size: 15px; overflow-wrap: anywhere; }
	.s-single-title { font-size: 21px; }
	.c-page-title { font-size: 22px; }
	.c-related-grid { grid-template-columns: 1fr; }
	/* 2列の仕様表は折り返して画面内に収める。display:block にすると行が崩れる。 */
	.s-content table { display: table; width: 100%; table-layout: fixed; }
	.s-content th:first-child { width: 34%; }
	.s-content th, .s-content td { white-space: normal; overflow-wrap: anywhere; }
	.s-footer-top { grid-template-columns: 1fr; }
	.s-footer-logo { height: 48px; }
	.s-totop { margin-left: 0; width: 100%; }
}

@media (max-width: 359px) {
	/* これ以上狭いと検索欄にプレースホルダが入らないので、次の段に落とす。 */
	.s-header-top { flex-wrap: wrap; }
	.s-header-search { flex: 1 1 100%; order: 3; }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.s-row:hover .s-row-thumb img,
	.s-lead:hover .s-lead-media img,
	.s-head:hover .s-head-thumb img { transform: none; }
}
