/*
Theme Name: SAVINGCUE
Theme URI: https://savingcue.com
Author: hyodorantaro
Description: SAVINGCUE（savingcue.com）専用テーマ。日付を左端に固定した年表型のレイアウト。
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: savingcue
*/

/* ============================================================
   SAVINGCUE ─ 年表型
   お金の話は「いつから変わるのか」が要点なので、
   左端に日付を縦一列で固定し、縦線でつないで年表のように読ませる。
   ============================================================ */
:root {
	--ink:     #14161a;
	--sub:     #646c78;
	--line:    #e3e5e9;
	--bg:      #ffffff;
	--card:    #f5f6f8;
	--accent:  #14161a;
	--accent2: #f0b429;
	--brand:   #1d3f8f;
	--brand2:  #e0a020;
	--footer:  #14161a;
	--wrap:    1160px;
}

*, *::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", Meiryo, sans-serif;
	font-size: 16px; line-height: 1.85; overflow-x: hidden;
}
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 .6em; line-height: 1.4; }
p { margin: 0 0 1em; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.v-wrap { display: block; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.t-right { text-align: right; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.v-skip { position: absolute; left: -9999px; }
.v-skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--accent); color: #fff; padding: 10px 16px; }

/* ---------- 検索 ---------- */
.c-search { display: flex; }
.c-search-input {
	background: var(--card); border: 1px solid var(--line); border-right: none; color: var(--ink);
	padding: 8px 14px; width: 168px; font-size: 14px; border-radius: 3px 0 0 3px;
}
.c-search-input::placeholder { color: var(--sub); }
.c-search-btn {
	background: var(--accent); border: 1px solid var(--accent); color: #fff;
	padding: 9px 13px; cursor: pointer; display: flex; border-radius: 0 3px 3px 0;
}

/* ---------- パンくず ---------- */
.c-crumbs { font-size: 12px; color: var(--sub); padding-top: 14px; }
.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); }

/* ---------- バッジ・チップ ---------- */
.c-badge {
	display: inline-block; background: var(--badge-color, var(--accent)); color: #fff;
	font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 3px;
}
.c-new { display: inline-block; background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 3px; }
.c-thumb-fallback {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	background: linear-gradient(130deg, var(--badge-color, var(--accent)), var(--ink));
}
.c-thumb-fallback span { color: rgba(255,255,255,.85); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-align: center; padding: 6px; }
.c-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.c-chip { font-size: 11.5px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 3px; color: var(--sub); background: var(--card); }
.c-chip:hover { border-color: var(--accent); color: var(--accent); }
.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: 7px; margin-top: 30px; }

/* ---------- 出典・注意書き・共有 ---------- */
.c-source { margin-top: 26px; padding: 15px 18px; background: var(--card); border-left: 4px solid var(--accent); font-size: 13px; }
.c-source-title { font-size: 11px; font-weight: 900; letter-spacing: .14em; color: var(--sub); margin: 0 0 6px; }
.c-source-note { color: var(--sub); }
.c-disclaimer { margin-top: 24px; padding: 15px 18px; background: var(--card); border-left: 4px solid var(--line); font-size: 12.5px; color: var(--sub); }
.c-disclaimer-title { font-size: 11px; font-weight: 900; letter-spacing: .14em; 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: 900; letter-spacing: .16em; color: var(--sub); }
.c-share-btn { font-size: 12.5px; padding: 7px 15px; border: 1px solid var(--line); background: var(--bg); border-radius: 3px; }
.c-share-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 関連記事 ---------- */
.c-related { margin-top: 44px; }
.c-block-title { font-size: 12px; letter-spacing: .2em; font-weight: 900; color: var(--sub); margin-bottom: 16px; }
.c-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.c-related-item { display: block; }
.c-related-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 8px; border-radius: 3px; background: var(--card); }
.c-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.c-related-body { display: block; }
.c-related-cat { display: block; font-size: 10.5px; color: var(--accent); font-weight: 900; margin-bottom: 3px; }
.c-related-title { display: block; font-size: 14px; font-weight: 800; line-height: 1.5; }
.c-related-item:hover .c-related-title { color: var(--accent); }
.c-comments { margin-top: 42px; padding-top: 24px; border-top: 2px solid var(--ink); }

/* ---------- サイドバー ---------- */
.v-side { display: flex; flex-direction: column; gap: 20px; }
.c-widget { background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 16px 18px; }
.c-widget-title { font-size: 11px; letter-spacing: .2em; font-weight: 900; margin: 0 0 12px; padding-bottom: 9px; border-bottom: 2px solid var(--ink); }
.c-rank li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.c-rank li:last-child { border-bottom: none; }
.c-rank-num {
	flex: none; width: 21px; height: 21px; background: var(--accent); color: #fff;
	font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; border-radius: 3px;
}
.c-rank-link { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: start; }
.c-rank-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; }
.c-rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.c-rank-noimg { display: block; width: 100%; height: 100%; background: var(--line); }
.c-rank-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.5; }
.c-rank a:hover { color: var(--accent); }
.c-cat-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.c-cat-list li:last-child { border-bottom: none; }
.c-cat-list a { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 800; }
.c-cat-list a:hover { color: var(--accent); }
.c-cat-count { font-size: 11px; color: var(--sub); font-weight: 500; }
.c-cat-desc { display: block; font-size: 11px; color: var(--sub); }

/* ---------- 記事本文 ---------- */
.v-content { overflow-wrap: anywhere; font-size: 16px; line-height: 1.85; }
.v-content > * + * { margin-top: 1.1em; }
.v-content h2 { font-size: 22px; font-weight: 900; margin: 1.9em 0 .6em; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.v-content h3 { font-size: 18px; margin: 1.6em 0 .5em; color: var(--accent); }
.v-content ul li { list-style: disc; margin-left: 1.4em; margin-bottom: .4em; }
.v-content ol li { list-style: decimal; margin-left: 1.5em; margin-bottom: .4em; }
.v-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* 本文の写真は元の大きさを超えて引き伸ばさない。
   プレスリリースには小さな画像も混ざるため、拡大するとぼやけるため。 */
.v-content img { margin: 1.6em auto; max-width: 100%; height: auto; border-radius: 3px; }
.v-content figure { margin: 1.6em 0; text-align: center; }
.v-content figure img { margin: 0 auto; }
.v-content figcaption { font-size: 12px; color: var(--sub); margin-top: 8px; }
.v-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.v-content th, .v-content td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.v-content th { background: var(--card); width: 30%; }
.v-content blockquote { border-left: 4px solid var(--accent); padding: 12px 18px; background: var(--card); color: var(--sub); }
.v-content code { background: var(--card); padding: 2px 6px; font-size: .92em; }

/* ---------- 固定ページ・404 ---------- */
/* 記事の先頭に置く写真。小さい画像は引き伸ばさず、下地の上で中央に置く */
.v-single-thumb { background: var(--card); text-align: center; }
.v-single-thumb img { margin: 0 auto; }

.c-page { padding: 36px 0 66px; }
.c-page-inner { max-width: 800px; margin: 0 auto; background: var(--bg); padding: 30px 36px 40px; border: 1px solid var(--line); border-radius: 3px; }
.c-page-title { font-size: 28px; font-weight: 900; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.c-page-body { overflow-wrap: anywhere; font-size: 16px; line-height: 1.85; }
.c-page-body h2 { font-size: 20px; margin: 1.8em 0 .5em; color: var(--accent); }
.c-page-body ul li { list-style: disc; margin-left: 1.4em; margin-bottom: .3em; }
.c-page-body a { color: var(--accent); text-decoration: underline; }
.c-404 { text-align: center; }
.c-404-code { font-size: 70px; font-weight: 900; color: var(--accent); margin: 0; line-height: 1; }
.c-404 .c-search { justify-content: center; margin: 20px 0; }
.c-404-home { color: var(--accent); text-decoration: underline; font-weight: 800; }

/* ---------- 一覧の見出し・ページ送り ---------- */
.v-arc-head { margin-bottom: 24px; }
.v-arc-head h1 { font-size: 28px; font-weight: 900; margin: 0 0 6px; }
.v-arc-head p { color: var(--sub); font-size: 14px; margin: 0; }
.v-empty { background: var(--card); border: 1px dashed var(--line); padding: 40px 20px; text-align: center; color: var(--sub); border-radius: 3px; }
.v-pager { margin-top: 34px; }
.v-pager .page-numbers {
	display: inline-block; min-width: 38px; text-align: center; padding: 8px 12px; margin: 0 4px 6px 0;
	background: var(--bg); border: 1px solid var(--line); font-size: 14px; border-radius: 3px;
	font-variant-numeric: tabular-nums;
}
.v-pager .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.v-pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 900; }

/* ---------- フッター（サイト名と著作権のみ） ---------- */
.v-footer { background: var(--footer); color: rgba(255,255,255,.72); padding: 26px 0; }
.v-footer a { color: rgba(255,255,255,.72); }
.v-footer a:hover { color: #fff; }
.v-footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.v-footer-brand { flex: 1; min-width: 0; }
.v-footer-name { font-size: 15px; font-weight: 900; letter-spacing: .14em; color: #fff; margin: 0; }
.v-footer-tagline { font-size: 12px; color: rgba(255,255,255,.55); margin: 4px 0 0; }
.v-footer-copy { font-size: 12px; margin: 0; }
.v-totop { margin-left: auto; font-size: 12px; }

/* ---------- トップ：コンセプト帯 ---------- */
.v-hero {
	position: relative;
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--brand) 6%, var(--card)) 0%, var(--card) 42%, var(--bg) 100%);
	border-bottom: 1px solid var(--line);
	padding: 28px 0 34px;
}
/* 年表のレシート切り口とつなぐギザギザ */
.v-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 8px;
	background:
		linear-gradient(45deg, var(--bg) 25%, transparent 25%) -8px 0 / 16px 16px repeat-x,
		linear-gradient(-45deg, var(--bg) 25%, transparent 25%) -8px 0 / 16px 16px repeat-x;
}
.v-hero-inner { display: grid; gap: 22px; }
.v-hero-label {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .22em;
	color: var(--brand);
}
.v-hero-tagline {
	margin: 0 0 12px;
	font-size: clamp(26px, 4.8vw, 36px);
	font-weight: 900;
	line-height: 1.35;
	letter-spacing: .02em;
	color: var(--ink);
}
.v-hero-lead {
	margin: 0;
	max-width: 42em;
	font-size: 15px;
	line-height: 1.75;
	color: var(--sub);
}
.v-hero-pillars {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: pillar;
}
.v-hero-pillars li {
	counter-increment: pillar;
	background: var(--bg);
	border: 1px solid var(--line);
	border-top: 3px solid var(--brand2);
	padding: 14px 16px 16px;
}
.v-hero-pillar-title {
	display: block;
	font-size: 14px;
	font-weight: 900;
	margin-bottom: 5px;
	color: var(--ink);
}
.v-hero-pillar-title::before {
	content: counter(pillar, decimal-leading-zero) " ";
	font-size: 11px;
	letter-spacing: .12em;
	color: var(--brand);
}
.v-hero-pillar-desc {
	display: block;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--sub);
}
.v-hero-cats-label {
	display: block;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .18em;
	color: var(--sub);
	margin-bottom: 10px;
}
.v-hero-cats ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.v-hero-cats a {
	display: grid;
	gap: 2px;
	padding: 8px 14px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-left: 4px solid var(--c, var(--brand));
	font-size: 13px;
	font-weight: 800;
}
.v-hero-cats a:hover {
	border-color: var(--c, var(--brand));
	background: color-mix(in srgb, var(--c, var(--brand)) 5%, var(--bg));
}
.v-hero-cat-desc {
	font-size: 11px;
	font-weight: 500;
	color: var(--sub);
}

@media (max-width: 900px) {
	.c-related-grid { grid-template-columns: 1fr 1fr; }
	.v-hero-pillars { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	body { font-size: 15px; }
	.v-wrap { padding: 0 14px; }
	.c-related-grid { grid-template-columns: 1fr; }
	.c-page-inner { padding: 22px 18px 28px; }
	.c-page-title { font-size: 22px; }
	.v-arc-head h1 { font-size: 21px; }
	.v-content { font-size: 15px; }
	.v-content h2 { font-size: 19px; }
	/* 本文の表は横スクロール（列を潰すと項目と値の対応が読めなくなるため） */
	.v-content table { display: block; overflow-x: auto; white-space: nowrap; }
	.v-totop { margin-left: 0; }
	.v-hero { padding: 20px 0 28px; }
	.v-hero-tagline { font-size: 24px; }
	.v-hero-cats ul { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.c-flow-track { animation: none; }
}

/* ---------- おすすめ記事の自動スクロール帯 ---------- */
.c-flow { background: var(--bg); border-bottom: 1px solid var(--line); border-top: 3px solid var(--accent2); padding: 16px 0 18px; overflow: hidden; }
.c-flow-viewport { overflow: hidden; }
.c-flow-track { display: flex; gap: 14px; width: max-content; animation: v-flow var(--flow-duration, 40s) linear infinite; }
@keyframes v-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.c-flow-viewport:hover .c-flow-track { animation-play-state: paused; }
.c-flow-card { display: block; width: 266px; flex: none; display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 3px; padding: 8px; }
.c-flow-thumb { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--line); }
.c-flow-thumb img { width: 100%; height: 100%; object-fit: cover; }
.c-flow-card-title { display: block; font-size: 13px; font-weight: 700; line-height: 1.5; }
/* 見出しは2行で切る。高さの指定は内側の span に持たせる
   （外側で切るとパディングのぶんだけ3行目が見えてしまうため）。 */
.c-flow-card-titletext { display: block; overflow: hidden; height: 3em; }
.c-flow-card:hover .c-flow-card-title { color: var(--accent); }
@media (max-width: 760px) {
	.c-flow { padding: 12px 0 14px; }
	.c-flow-card { width: 212px; }
	.c-flow-card-title { font-size: 13px; }
}


/* ============================================================
   仕上げの層 ─ 文字組み・動き・操作の手がかり
   サイトごとの色と形はそのままに、読み心地と操作感だけを底上げする。
   全サイトで同じ内容が入っている（生成元は _generator/newskins.py）。
   ============================================================ */
:root {
	--ease: cubic-bezier(.22, .68, .2, 1);
	--dur:  .26s;
}

/* ---------- 日本語の字組み ----------
   「」（）などの約物は左右に余白を持っているため、そのままだと
   見出しが間延びする。palt で詰めて、行頭・行末のそろいを良くする。 */
h1, h2, h3,
.c-badge, .c-new, .c-chip, .c-widget-title,
.c-rank-title, .c-related-title,
.v-content, .c-page-body {
	font-feature-settings: "palt" 1;
}
/* 見出しは行ごとの長さがそろうように折り返す */
h1, h2, h3 { text-wrap: balance; }
/* 本文は最後の1行が1文字だけ残らないようにする */
p, li, figcaption, .c-rank-title, .c-related-title { text-wrap: pretty; }
/* 日付・件数・順位の数字は幅をそろえて、縦に並べたときにずれないようにする */
time, .c-count, .c-rank-num, .c-cat-count, .c-chip-count, .v-pager .page-numbers {
	font-variant-numeric: tabular-nums;
}

/* ---------- 動き ----------
   速さと曲線を1か所にまとめ、サイト間でばらつかないようにする。 */
a, button, input, .c-chip, .c-badge {
	transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
		border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
main article {
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
		border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
main article:hover { transform: translateY(-3px); }
main article img { transition: transform .55s var(--ease); }

/* 画面に入ってきた記事を、下から少しだけ持ち上げて出す。
   transform ではなく translate を使うのは、ホバーの持ち上げと衝突させないため。 */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		main article {
			animation: pol-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 40%;
		}
		@keyframes pol-rise {
			from { opacity: 0; translate: 0 16px; }
			to   { opacity: 1; translate: none; }
		}
	}
}
@media (prefers-reduced-motion: reduce) {
	main article, main article img, a, button { transition: none; }
	main article:hover { transform: none; }
}

/* ---------- 操作の手がかり ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
.c-search-input:focus {
	outline: none; border-color: var(--accent); position: relative; z-index: 1;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.c-search-btn:hover { filter: brightness(1.08); }

/* ---------- 写真 ----------
   白地の商品写真は輪郭が消えるので、内側に細い線を1本回す。 */
.c-rank-thumb, .c-related-thumb { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent); }

/* ---------- 読み物としての細部 ---------- */
.v-content a {
	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);
}
.v-content a:hover { text-decoration-color: var(--accent); }
.v-content h2, .v-content h3 { letter-spacing: .005em; }
.v-content > p:first-of-type { font-size: 1.04em; }
.c-widget + .c-widget { margin-top: 0; }
.c-rank li { align-items: center; }
.c-rank-num { flex: none; }

/* ---------- ページ送り ----------
   指で押す前提で、当たり判定を大きく取る。 */
.v-pager .page-numbers {
	min-height: 42px; min-width: 42px;
	display: inline-flex; align-items: center; justify-content: center;
}
.v-pager .page-numbers:not(.current):hover { transform: translateY(-1px); }

@media (max-width: 560px) {
	.v-pager .page-numbers { min-height: 44px; min-width: 44px; }
	main article:hover { transform: none; }
}

/* ---------- 部品の形（このサイト固有） ---------- */
.c-badge {
	background: transparent; color: var(--ink); border-radius: 0; padding: 1px 0 1px 10px;
	border-left: 4px solid var(--badge-color, var(--accent)); letter-spacing: .06em;
}
.c-new { background: transparent; color: var(--sub); border-radius: 0; padding: 1px 0 1px 8px; border-left: 3px solid var(--sub); }
.c-widget { background: transparent; border: none; border-top: 3px solid var(--ink); border-radius: 0; padding: 14px 0 4px; }
.c-widget-title { border-bottom: none; padding-bottom: 4px; }
.c-widget + .c-widget { margin-top: 4px; }
.c-search-input { border-radius: 0; border-right: 1px solid var(--line); }
.c-search-btn { border-radius: 0; margin-left: -1px; }

/* ---------- ヘッダー（上段：題字と検索／下段：カテゴリの帯） ---------- */
.v-header { background: var(--bg); }
.v-header-top { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 12px; }
.v-brand { display: flex; align-items: center; gap: 11px; flex: none; }
.v-brand-mark { width: 34px; height: 34px; }
.v-brand-name { display: block; font-size: 21px; font-weight: 900; letter-spacing: .08em; }
.v-brand-sub { display: block; font-size: 11px; color: var(--sub); }
.v-header-search { margin-left: auto; flex: none; }

/* カテゴリは帯にして、表の見出し行のように細い縦罫で区切る */
.v-nav { background: var(--card); border-top: 1px solid var(--line); border-bottom: 3px solid var(--ink); }
.v-nav ul { display: flex; overflow-x: auto; scrollbar-width: none; }
.v-nav ul::-webkit-scrollbar { display: none; }
.v-nav li + li { border-left: 1px solid var(--line); }
.v-nav a {
	display: block; white-space: nowrap; padding: 9px 18px;
	font-size: 13.5px; font-weight: 800; color: var(--sub);
	box-shadow: inset 0 -3px 0 transparent;
}
.v-nav a:hover { color: var(--ink); background: var(--bg); }
.v-nav a.is-on,
.v-nav .current-menu-item > a { color: var(--ink); background: var(--bg); box-shadow: inset 0 -3px 0 var(--accent2); }

/* ---------- 年表 ---------- */
.v-cols { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 40px; padding: 26px 0 60px; }
.v-main { min-width: 0; }
.v-h2 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 4px; }
.v-h2-main { font-size: 19px; font-weight: 900; }
.v-h2-sub { font-size: 12px; color: var(--sub); font-weight: 400; }

.v-time { position: relative; padding-left: 92px; }
/* 日付の右に1本だけ縦線を通し、記事はそこにぶら下げる */
.v-time::before { content: ""; position: absolute; left: 74px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.v-item { position: relative; padding: 18px 0; border-bottom: 1px solid var(--line); }
.v-item:last-child { border-bottom: none; }
.v-date {
	position: absolute; left: -92px; top: 20px; width: 66px; text-align: right;
	color: var(--sub); font-variant-numeric: tabular-nums; line-height: 1.25;
}
.v-date-y { display: block; font-size: 10.5px; letter-spacing: .06em; }
.v-date-md { display: block; font-size: 16px; font-weight: 900; color: var(--ink); }
.v-dot {
	position: absolute; left: -22px; top: 26px; width: 11px; height: 11px; border-radius: 50%;
	background: var(--accent2); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--c, var(--accent));
}
.v-item-link { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 18px; align-items: start; }
.v-item-body { min-width: 0; }
.v-badges { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 7px; }
.v-item-title { font-size: 17px; font-weight: 800; line-height: 1.55; margin: 0 0 7px; }
.v-item-title a::after { content: ""; position: absolute; inset: 0; }
.v-badges a { position: relative; z-index: 1; }
.v-item-ex { font-size: 13px; color: var(--sub); margin: 0; }
.v-item-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; }
.v-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v-item:hover .v-item-title { color: var(--accent); }
.v-item:hover .v-date-md { color: var(--accent); }

/* ---------- 記事ページ ---------- */
.v-single-wrap { padding: 24px 0 60px; }
.v-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 40px; }
.v-single { min-width: 0; }
.v-single-head { margin-bottom: 20px; }
.v-single-head h1 { font-size: 28px; font-weight: 900; line-height: 1.45; margin: 0 0 12px; }
.v-single-meta { display: flex; flex-wrap: wrap; gap: 15px; font-size: 12px; color: var(--sub); padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.v-single-thumb { margin: 0 0 22px; border: 1px solid var(--line); }
.v-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; font-size: 13.5px; }
.v-postnav a { display: block; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); }
.v-postnav a:hover { border-color: var(--accent); color: var(--accent); }
.v-archive { padding: 22px 0 60px; }

@media (max-width: 1000px) {
	.v-cols, .v-single-grid { grid-template-columns: 1fr; gap: 30px; }
}
/* 縦画面でも段組みは変えない。ヘッダーは元から2段なので、詰めるだけにする */
@media (max-width: 900px) {
	.v-header-top { gap: 12px; padding-top: 11px; padding-bottom: 10px; }
	.v-brand { flex: 1; min-width: 0; }
	.v-brand-sub { display: none; }
	.v-brand-name { font-size: 19px; }
	.v-brand-mark { width: 28px; height: 28px; }
	.c-search-input { width: 134px; font-size: 12px; padding: 7px 9px; }
	.c-search-btn { padding: 8px 9px; }
	.v-nav .v-wrap { padding: 0; }
	.v-nav ul { padding: 0 20px; mask-image: linear-gradient(90deg, #000 88%, transparent); }
	.v-nav a { padding: 9px 13px; font-size: 12.5px; }
}
@media (max-width: 620px) {
	/* 年表の日付は左端から上へ移す。横に置くと本文の幅が足りなくなるため */
	.v-time { padding-left: 0; }
	.v-time::before { display: none; }
	.v-date { position: static; width: auto; text-align: left; display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
	.v-date-md { font-size: 14px; }
	.v-dot { display: none; }
	.v-item-link { grid-template-columns: minmax(0, 1fr) 86px; gap: 12px; }
	.v-item-title { font-size: 15.5px; }
	.v-single-head h1 { font-size: 21px; }
	.v-postnav { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.v-brand-name { font-size: 18px; }
	.c-search-input { width: 130px; }
	.v-nav ul { padding: 0 14px; }
	.v-nav a { padding: 8px 11px; }
	.v-cols { padding-top: 16px; }
}

/* ---------- SAVINGCUE の個性：レシート ----------
   家計の話なので、一覧の上辺をレシートの切り口のようなギザギザにする。
   金額と日付が縦に揃うよう、数字は等幅のまま扱う。 */
.v-main { position: relative; }
.v-time { position: relative; background: var(--bg); padding-top: 14px; }
.v-time::after {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
	background:
		linear-gradient(135deg, var(--card) 25%, transparent 25%) -8px 0 / 16px 16px repeat-x,
		linear-gradient(225deg, var(--card) 25%, transparent 25%) -8px 0 / 16px 16px repeat-x;
	background-color: var(--bg);
}
.v-h2 { border-bottom: 3px solid var(--accent2); padding-bottom: 8px; }
.v-item-title { letter-spacing: .01em; }
/* 日付の丸い印は、レシートの穴のように白く抜く */
.v-dot { background: var(--bg); border: 3px solid var(--accent2); box-shadow: none; }
.v-item:hover .v-dot { background: var(--accent2); }
