/*
Theme Name: AUTONOTCH
Theme URI: https://autonotch.com
Author: hyodorantaro
Description: AUTONOTCH（autonotch.com）専用テーマ。写真を大きく見せる明るいマガジン型レイアウトに、仕様バーとタイプ別インデックスを組み合わせている。
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: autonotch
*/

/* ============================================================
   ハシリダシ ─ 明るいマガジン型
   クルマの写真が主役になるよう、余白を広く取り
   画像を全面に置いて見出しを重ねる。角は落とさない（直線基調）。
   ============================================================ */
:root {
	--ink:   #1a1a1a;
	--sub:   #6b7280;
	--line:  #e4e6ea;
	--bg:    #ffffff;
	--card:  #ffffff;
	--black: #1a1a1a;
	--orange:#d4501e;
	--blue:  #1f5f8b;
	--wrap:  1220px;
}

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

/* ---------- ヘッダー（ロゴ・カテゴリ・検索を1行に並べる） ---------- */
.h-header { background: #fff; color: var(--ink); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 30; }
.h-header-inner { display: flex; align-items: center; gap: 26px; padding-top: 14px; padding-bottom: 14px; }
.h-brand { display: flex; align-items: center; flex: none; }
.h-brand-logo { display: block; height: 44px; width: auto; max-width: 240px; object-fit: contain; }
.h-header-search { margin-left: auto; flex: none; }
.c-search { display: flex; }
.c-search-input {
	background: #f6f7f9; border: 1px solid var(--line); border-right: none; color: var(--ink);
	padding: 8px 12px; width: 175px; font-size: 14px;
}
.c-search-input::placeholder { color: #9aa0aa; }
.c-search-btn { background: var(--orange); border: 1px solid var(--orange); color: #fff; padding: 9px 13px; cursor: pointer; display: flex; }

/* ---------- カテゴリ（ヘッダー内・ロゴの右） ---------- */
.h-nav { min-width: 0; }
.h-nav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.h-nav ul::-webkit-scrollbar { display: none; }
.h-nav a {
	display: block; white-space: nowrap; padding: 7px 13px;
	font-size: 14px; font-weight: 800; color: var(--sub);
	border: 1px solid transparent;
}
.h-nav a:hover { color: var(--ink); border-color: var(--line); }
.h-nav a.is-on { color: #fff; background: var(--c, var(--orange)); border-color: var(--c, var(--orange)); }

.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(--orange); }

/* ---------- ヒーロー（全面写真） ---------- */
.h-hero { position: relative; background: #f6f7f9; }
.h-hero-media { display: block; height: 520px; overflow: hidden; }
.h-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.h-hero-noimg, .h-hero-media .c-thumb-fallback {
	display: block; width: 100%; height: 100%;
	background: linear-gradient(120deg, #e9ebef, #cfd4db);
}
.h-hero-caption {
	position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: 60px 0 34px;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 62%);
	color: #fff;
}
.h-hero-cat {
	display: inline-block; background: var(--orange); color: #fff;
	font-size: 11px; font-weight: 900; letter-spacing: .16em; padding: 5px 12px; margin-bottom: 12px;
}
.h-hero-title { display: block; font-size: 38px; font-weight: 900; line-height: 1.3; max-width: 880px; }


/* ---------- 見出し ---------- */
.h-sec {
	font-size: 13px; letter-spacing: .24em; font-weight: 900; color: var(--sub);
	display: flex; align-items: center; gap: 16px; margin: 0 0 24px;
}
.h-sec::after { content: ""; flex: 1; height: 2px; background: var(--ink); opacity: .12; }

/* ---------- 大判3列カード ---------- */
.h-latest { padding: 48px 0 70px; }
.h-archive { padding: 34px 0 70px; }
.h-arc-head { margin-bottom: 26px; }
.h-arc-head h1 { font-size: 30px; font-weight: 900; }
.h-arc-head p { color: var(--sub); font-size: 14px; margin: 0; }
.c-count { font-size: 12px; color: var(--sub); margin-top: 8px; }

.h-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.h-card > a { display: block; }
.h-card-thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #f0f1f4; margin-bottom: 14px; }
.h-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }

.h-card-top { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.h-card-title { display: block; font-size: 17px; font-weight: 900; line-height: 1.45; margin-bottom: 8px; }

.h-card-ex { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--sub); margin-bottom: 10px; line-height: 1.7; }
.h-card-meta { display: flex; gap: 14px; font-size: 11.5px; color: var(--sub); align-items: center; }
.h-card-maker { font-weight: 800; color: var(--blue); }

.c-badge { display: inline-block; background: var(--badge-color, var(--orange)); color: #fff; font-size: 11px; font-weight: 900; padding: 3px 10px; letter-spacing: .04em; }
.c-new { display: inline-block; background: var(--black); color: #fff; font-size: 10px; font-weight: 900; padding: 3px 8px; }
.c-thumb-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(130deg, var(--badge-color, #9aa0aa), #4b5563); }
.c-thumb-fallback span { color: rgba(255,255,255,.8); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.c-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.c-chip { font-size: 11.5px; padding: 3px 10px; border: 1px solid var(--line); color: var(--sub); background: var(--card); }
.c-chip:hover { border-color: var(--orange); color: var(--orange); }
.c-chip-count { margin-left: 4px; opacity: .6; }
.h-empty { background: #f6f7f9; border: 1px dashed var(--line); padding: 44px 20px; text-align: center; color: var(--sub); }

.h-pager { margin-top: 40px; }
.h-pager .page-numbers {
	display: inline-block; min-width: 40px; text-align: center; padding: 9px 13px; margin: 0 4px 6px 0;
	background: #fff; border: 1px solid var(--line); font-size: 14px;
}
.h-pager .page-numbers:hover { border-color: var(--orange); color: var(--orange); }
.h-pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 900; }

/* ---------- 記事ページ ---------- */
.h-single-wrap { padding-bottom: 70px; }
.h-single-hero { margin: 0; height: 460px; overflow: hidden; background: #f6f7f9; }
.h-single-hero img { width: 100%; height: 100%; object-fit: cover; }
.h-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 46px; padding-top: 34px; }
.h-single { min-width: 0; }
.h-single-head { margin-bottom: 24px; }
.h-single-head h1 { font-size: 34px; font-weight: 900; line-height: 1.35; margin: 12px 0 12px; }
.h-single-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--sub); margin-bottom: 12px; }

/* 仕様バー（カスタムフィールドから生成） */

.h-content {
	overflow-wrap: anywhere; font-size: 16.5px; line-height: 2; }
.h-content > * + * { margin-top: 1.1em; }
.h-content h2 {
	font-size: 24px; font-weight: 900; margin: 2em 0 .7em; padding-top: 16px;
	border-top: 3px solid var(--ink);
}
.h-content h3 { font-size: 19px; margin: 1.7em 0 .5em; color: var(--orange); }
.h-content ul li { list-style: disc; margin-left: 1.4em; margin-bottom: .4em; }
.h-content ol li { list-style: decimal; margin-left: 1.5em; margin-bottom: .4em; }
.h-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.h-content img { margin: 1.6em 0; width: 100%; }
.h-content figure { margin: 1.6em 0; }
.h-content figcaption { font-size: 12px; color: var(--sub); margin-top: 8px; }
.h-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.h-content th, .h-content td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.h-content th { background: #f6f7f9; width: 30%; }
.h-content blockquote { border-left: 4px solid var(--orange); padding: 12px 18px; background: var(--card); color: var(--sub); }
.h-content code { background: #f6f7f9; padding: 2px 6px; font-size: .92em; }

.c-post-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 32px; }
.c-disclaimer { margin-top: 26px; padding: 15px 18px; background: #f6f7f9; 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-source { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line); background: #fafbfc; font-size: 13.5px; }
.c-source-title { font-size: 11px; font-weight: 900; letter-spacing: .14em; color: var(--ink); margin: 0 0 8px; }
.c-source a { color: var(--blue); text-decoration: underline; }
.c-source-note { margin: 10px 0 0; font-size: 12px; color: var(--sub); }
.c-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.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: #fff; }
.c-share-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.h-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; font-size: 13.5px; }
.h-postnav a { display: block; padding: 14px 16px; background: #f6f7f9; border: 1px solid var(--line); }
.h-postnav a:hover { border-color: var(--orange); color: var(--orange); }

.c-related { margin-top: 46px; }
.c-block-title { font-size: 13px; 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: 3 / 2; overflow: hidden; margin-bottom: 8px; }
.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(--orange); font-weight: 900; margin-bottom: 3px; }
.c-related-title { display: block; font-size: 14px; font-weight: 800; line-height: 1.45; }
.c-related-item:hover .c-related-title { color: var(--orange); }
.c-comments { margin-top: 44px; padding-top: 26px; border-top: 2px solid var(--ink); }

/* ---------- サイドバー ---------- */
.h-side { display: flex; flex-direction: column; gap: 22px; }
.c-widget { background: #fff; border: 1px solid var(--line); padding: 17px 19px; }
.c-widget-title { font-size: 11px; letter-spacing: .2em; font-weight: 900; margin: 0 0 13px; padding-bottom: 9px; border-bottom: 2px solid var(--ink); }
.c-rank li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.c-rank li:last-child { border-bottom: none; }
.c-rank-num { flex: none; width: 21px; height: 21px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.c-rank a:hover { color: var(--orange); }
.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(--orange); }
.c-cat-count { font-size: 11px; color: var(--sub); font-weight: 500; }
.c-cat-desc { display: block; font-size: 11px; color: var(--sub); }



/* ---------- 固定ページ・404 ---------- */
.c-page { padding: 40px 0 70px; }
.c-page-inner { max-width: 800px; margin: 0 auto; background: #fff; padding: 34px 40px 44px; border: 1px solid var(--line); }
.c-page-title { font-size: 30px; font-weight: 900; margin: 0 0 22px; padding-bottom: 16px; border-bottom: 3px solid var(--ink); }
.c-page-body {
	overflow-wrap: anywhere; font-size: 16px; line-height: 2; }
.c-page-body h2 { font-size: 20px; margin: 1.8em 0 .5em; color: var(--orange); }
.c-page-body ul li { list-style: disc; margin-left: 1.4em; margin-bottom: .3em; }
.c-page-body a { color: var(--blue); text-decoration: underline; }
.c-404 { text-align: center; }
.c-404-code { font-size: 76px; font-weight: 900; color: var(--orange); margin: 0; line-height: 1; }
.c-404 .c-search { justify-content: center; margin: 22px 0; }
.c-404-home { color: var(--blue); text-decoration: underline; font-weight: 800; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1040px) {
	.h-single-grid { grid-template-columns: 1fr; gap: 34px; }
		.c-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	.h-hero-media { height: 300px; }
	.h-hero-title { font-size: 24px; }
	.h-single-hero { height: 240px; }
	.h-single-head h1 { font-size: 25px; }
			.h-postnav, .c-related-grid { grid-template-columns: 1fr; }
	.c-page-inner { padding: 24px 20px 30px; }
}
/* ---------- 縦画面（スマホ）向けの調整 ---------- */
@media (max-width: 480px) {
	body { font-size: 15px; }
	.h-wrap { padding: 0 14px; }
	.h-nav a { font-size: 13px; }
	.h-hero-media { height: 230px; }
	.h-hero-caption { padding: 44px 0 18px; }
	.h-hero-cat { margin-bottom: 8px; }
	.h-hero-title { font-size: 20px; line-height: 1.45; }
		.h-latest { padding: 30px 0 44px; }
	.h-card-title { font-size: 18px; }
	.h-card-ex { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
	.h-single-hero { height: 190px; }
	.h-single-head h1 { font-size: 21px; }
		.h-content { font-size: 15.5px; }
	.h-content h2 { font-size: 19px; }
	/* 本文の表は横スクロール（列を潰すと項目と値の対応が読めなくなるため） */
	.h-content table { display: block; overflow-x: auto; white-space: nowrap; }
			.c-page-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
		.h-card-thumb img { transition: none; }
}

/* ---------- カードのリンク範囲（リンクの入れ子を避けるための構造） ---------- */
.h-card { position: relative; }
.h-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.h-card-top a, .h-card-meta a { position: relative; z-index: 1; }
.h-card-title, .h-card-ex { margin: 0; }
.h-card-title { margin-bottom: 8px; }
.h-card-ex { margin-bottom: 10px; }
.h-card:hover .h-card-thumb img { transform: scale(1.04); }
.h-card:hover .h-card-title { color: var(--orange); }


/* ============================================================
   AUTONOTCH の記事一覧 ─ 写真が上、見出しが下の縦積みカード
   画像と本文を左右に振り分けると視線が行ったり来たりして読みにくいので、
   全カードで並びを揃えている。デスクトップは3列。
   ============================================================ */
.h-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; width: 100%; }
.h-card { position: relative; display: flex; flex-direction: column; min-width: 0; max-width: 100%; overflow: hidden; }
.h-card-thumb {
	display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f0f1f4; margin-bottom: 12px;
}
.h-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.h-card-body { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.h-card-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.h-card-title {
	font-size: 16.5px; font-weight: 900; line-height: 1.45; margin: 0 0 8px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	overflow-wrap: anywhere; word-break: break-word;
}
.h-card-ex {
	font-size: 13px; color: var(--sub); line-height: 1.7; margin: 0 0 10px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.h-card-meta {
	display: flex; gap: 14px; align-items: center; font-size: 11.5px; color: var(--sub);
	letter-spacing: .08em; padding-top: 10px; border-top: 1px solid var(--line); margin-top: auto;
}
.h-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.h-card-top a, .h-card-meta a { position: relative; z-index: 1; }
.h-card:hover .h-card-thumb img { transform: scale(1.04); }
.h-card:hover .h-card-title { color: var(--orange); }

@media (max-width: 1000px) {
	.h-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
	.h-card-title { font-size: 15.5px; }
	.h-card-ex { -webkit-line-clamp: 2; }
}
@media (max-width: 620px) {
	.h-grid { grid-template-columns: 1fr; gap: 22px; }
	.h-card-title { font-size: 16.5px; -webkit-line-clamp: 3; }
	.h-card-ex { -webkit-line-clamp: 2; font-size: 12.5px; }
	.h-card-thumb { margin-bottom: 10px; }
	.h-latest { padding: 26px 0 40px; }
	.h-archive { padding: 24px 0 40px; }
}
@media (max-width: 480px) {
	.h-wrap { padding: 0 14px; }
	.h-grid { gap: 20px; }
	.h-card-title { font-size: 16px; }
}

/* 縦画面のヘッダー。
   1行に収まらないので、上段にロゴと検索、下段にカテゴリの2段にする。
   カテゴリは横スクロールで、末尾まで指で送れるようにしている。 */
@media (max-width: 900px) {
	.h-header-inner { flex-wrap: wrap; gap: 10px 14px; padding-top: 11px; padding-bottom: 0; }
	.h-brand-logo { height: 38px; max-width: 170px; }
	.h-header-search { margin-left: auto; }
	.c-search-input { width: 130px; font-size: 13px; padding: 7px 10px; }
	.c-search-btn { padding: 8px 10px; }
	.h-nav { order: 3; width: 100%; margin: 0 -14px; padding: 0 14px; border-top: 1px solid var(--line); }
	.h-nav ul { gap: 0; }
	.h-nav a { padding: 11px 12px; border: none; border-bottom: 3px solid transparent; }
	.h-nav a.is-on { background: none; color: var(--ink); border-bottom-color: var(--c, var(--orange)); }
	.h-nav a:hover { border-color: transparent; border-bottom-color: var(--line); }
}

/* ---------- PICKUP 帯（AUTONOTCH 固有） ----------
   左に見出しを固定し、右側だけを流す。番号を大きく出して、
   共通のおすすめ帯とは別のものだと分かるようにしている。 */
.h-trend { background: #14161c; color: #fff; overflow: hidden; }
.h-trend-inner { display: flex; align-items: stretch; gap: 0; padding: 0; }
.h-trend-label {
	flex: none; display: flex; flex-direction: column; justify-content: center; gap: 2px;
	margin: 0; padding: 14px 22px 14px 24px; border-right: 1px solid #2a2d35;
}
.h-trend-label-main { font-size: 12px; font-weight: 900; letter-spacing: .22em; color: var(--orange); }
.h-trend-label-sub { font-size: 10.5px; letter-spacing: .04em; color: #7c828e; white-space: nowrap; }
.h-trend-view { flex: 1; min-width: 0; overflow: hidden; }
.h-trend-track { display: flex; width: max-content; animation: h-flow var(--flow-duration, 40s) linear infinite; }
@keyframes h-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.h-trend-view:hover .h-trend-track { animation-play-state: paused; }
.h-trend-item {
	display: grid; grid-template-columns: 30px 78px minmax(0, 1fr); align-items: center; gap: 10px;
	width: 340px; flex: none; padding: 12px 18px; border-right: 1px solid #2a2d35;
}
.h-trend-no {
	font-size: 19px; font-weight: 900; line-height: 1; color: #3c414c;
	font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.h-trend-item:hover .h-trend-no { color: var(--orange); }
.h-trend-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #2a2d35; }
.h-trend-thumb img { width: 100%; height: 100%; object-fit: cover; }
.h-trend-title { display: block; font-size: 13px; font-weight: 700; line-height: 1.5; color: #e9ebef; }
.h-trend-title > span { display: block; overflow: hidden; height: 3em; }
.h-trend-item:hover .h-trend-title { color: #ffb489; }

@media (max-width: 760px) {
	.h-trend-inner { flex-direction: column; padding: 0; }
	.h-trend-label {
		flex-direction: row; align-items: baseline; gap: 10px;
		padding: 8px 14px; border-right: none; border-bottom: 1px solid #2a2d35;
	}
	.h-trend-label-main { font-size: 11px; }
	.h-trend-item { width: 268px; grid-template-columns: 24px 62px minmax(0, 1fr); gap: 8px; padding: 10px 14px; }
	.h-trend-no { font-size: 15px; }
	.h-trend-title { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.h-trend-track { animation: none; }
}

/* ---------- フッター（サイト名と著作権のみ） ---------- */
.h-footer { background: var(--footer-bg, #14161c); color: #b9bec9; padding: 26px 0; margin-top: 0; }
.h-footer a { color: #b9bec9; }
.h-footer a:hover { color: #fff; }
.h-footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.h-footer-brand { display: block; flex: none; }
.h-footer-logo { display: block; height: 40px; width: auto; max-width: 200px; object-fit: contain; }
.h-footer-nav { display: flex; gap: 16px; font-size: 13px; }
.h-footer-ai { flex: 1 1 100%; margin: 0; font-size: 12px; color: #8b919c; }
.h-footer-copy { font-size: 12px; margin: 0; }
.h-totop { margin-left: auto; font-size: 12px; }
@media (max-width: 480px) {
	.h-footer { padding: 20px 0; }
	.h-footer-logo { height: 34px; max-width: 150px; }
	.h-totop { margin-left: 0; }
}

:root { --footer-bg: #1a1a1a; }



/* ---------- よく読まれています（サムネイル入り） ---------- */
.c-rank li { align-items: flex-start; }
.c-rank-link { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: start; }
.c-rank-thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.c-rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.c-rank-noimg { display: block; width: 100%; height: 100%; background: #f0f1f4; }
.c-rank-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.5; }

@media (max-width: 1000px) { .h-catindex ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .h-catindex ul { grid-template-columns: 1fr 1fr; } .h-catindex-desc { display: none; } }

/* 縦画面ではカテゴリを折り返して全件見せる。
   横スクロールだと隠れた項目に気づけないため。 */
@media (max-width: 560px) {
	.h-nav ul { flex-wrap: wrap; overflow: visible; }
	.h-nav a { padding: 9px 10px; font-size: 12.5px; }
}

/* 縦画面の検索窓は1行まるごと使う（狭いとプレースホルダが切れるため） */
@media (max-width: 560px) {
	.h-header-search { width: 100%; margin-left: 0; order: 2; }
	.c-search, .c-search-input { width: 100%; }
	.h-brand-logo { height: 34px; max-width: 154px; }
}

/* ---------- 記事内の写真の扱い ----------
   小さな画像を横幅いっぱいに引き伸ばすとぼやけるので、
   元の大きさを上限にして中央に置く。 */
.h-content img { margin-left: auto; margin-right: auto; width: auto; max-width: 100%; height: auto; }
.h-content figure { text-align: center; }
.h-content figure img { margin: 0 auto; }
.h-single-thumb { background: var(--card, #f2f2f2); text-align: center; }
.h-single-thumb img { margin: 0 auto; }


/* ============================================================
   AUTONOTCH の個性 ─ 切り欠き（notch）
   サイト名のとおり、写真と見出しの角を斜めに落とす。
   落とすのは角だけなので、写真の中身も文字も欠けない。
   ============================================================ */
.h-card-thumb {
	clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

/* 見出しの左に、角を落としたオレンジの札を置く */
.h-sec::before {
	content: ""; flex: none; width: 26px; height: 13px; background: var(--orange);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 7px 100%);
}
.h-sec { gap: 12px; }

/* カードは下辺だけ太い罫で受ける */
.h-card-meta { border-top: 2px solid var(--ink); }
.h-card:hover .h-card-meta { border-top-color: var(--orange); }

/* ヘッダーの下にオレンジの細い線を通す */
.h-header { box-shadow: 0 2px 0 var(--orange); }

@media (max-width: 760px) {
	.h-card-thumb { clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }
}

/* ============================================================
   仕上げの層 ─ 文字組み・動き・操作の手がかり
   サイトごとの色と形はそのままに、読み心地と操作感だけを底上げする。
   全サイトで同じ内容が入っている（生成元は _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,
.h-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, .h-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(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: #fff; }
.c-search-input:focus {
	outline: none; border-color: var(--orange); position: relative; z-index: 1;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 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); }

/* ---------- 読み物としての細部 ---------- */
.h-content a {
	text-decoration-thickness: 1px; text-underline-offset: 4px;
	text-decoration-color: color-mix(in srgb, var(--orange) 45%, transparent);
	transition: text-decoration-color var(--dur) var(--ease);
}
.h-content a:hover { text-decoration-color: var(--orange); }
.h-content h2, .h-content h3 { letter-spacing: .005em; }
.h-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; }

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

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

/* ---------- 部品の形（このサイト固有） ---------- */
.c-badge {
	border-radius: 0; padding: 4px 13px 4px 11px; letter-spacing: .06em;
	clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.c-new { border-radius: 0; padding: 4px 12px 4px 9px; clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.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 { align-items: center; gap: 6px; border-bottom: 2px solid var(--line); padding-bottom: 3px; }
.c-search:focus-within { border-bottom-color: var(--orange); }
.c-search-input {
	background: transparent; border: none; border-radius: 0; padding: 6px 2px;
}
.c-search-input:focus { box-shadow: none; }
.c-search-btn {
	background: transparent; border: none; border-radius: 0; color: var(--sub); padding: 4px 2px;
}
.c-search-btn:hover { color: var(--orange); filter: none; }

/* ============================================================
   トップページの編成 ─ ヒーローに食い込む3枚＋3列の新着
   全面写真の下端に白いカードを重ねて、写真と一覧の境目をなくす。
   ============================================================ */
.h-shelf {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
	margin-top: -74px; position: relative; z-index: 2;
}
.h-shelf-card {
	position: relative; background: var(--bg); border: 1px solid var(--line);
	box-shadow: 0 10px 28px rgba(26,26,26,.16);
	display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center;
	padding: 12px; padding-right: 16px;
}
.h-shelf-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f0f1f4; }
.h-shelf-media img { width: 100%; height: 100%; object-fit: cover; }
.h-shelf-top { margin-bottom: 7px; }
.h-shelf-top a { position: relative; z-index: 1; }
.h-shelf-title { font-size: 14.5px; font-weight: 800; line-height: 1.6; margin: 0; }
.h-shelf-title a::after { content: ""; position: absolute; inset: 0; }
.h-shelf-card:hover { border-color: var(--orange); }
.h-shelf-card:hover .h-shelf-title { color: var(--orange); }

.h-latest { padding-top: 40px; }

@media (max-width: 1000px) {
	.h-shelf { grid-template-columns: 1fr 1fr; margin-top: -54px; }
	.h-shelf-card:nth-child(3) { display: none; }
}
@media (max-width: 620px) {
	.h-shelf { grid-template-columns: 1fr; gap: 10px; margin-top: -40px; }
	.h-shelf-card:nth-child(3) { display: grid; }
	.h-shelf-card { grid-template-columns: 84px minmax(0, 1fr); gap: 11px; padding: 10px; }
	.h-shelf-title { font-size: 13.5px; }
	.h-latest { padding-top: 26px; }
}

/* 重ねたカードの下に見出しが隠れないよう、ヒーローの下側に余白を足す */
.h-hero-caption { padding-bottom: 100px; }
@media (max-width: 1000px) { .h-hero-caption { padding-bottom: 78px; } }
@media (max-width: 620px)  { .h-hero-caption { padding-bottom: 58px; } }
