/*
Theme Name: ココラヘン
Theme URI: https://kokorahen.com
Author: hyodorantaro
Description: ココラヘン（kokorahen.com）専用テーマ。グルメメディア型の写真主体レイアウト。
Version: 2.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kokorahen
*/

/* ============================================================
   KOKORAHEN ─ グルメメディア
   白地に朱色。料理写真を大きく、文字は写真の上か直下に短く置く。
   ============================================================ */
:root {
	--ink:     #1a1816;
	--sub:     #8a8178;
	--line:    #ece7e2;
	--bg:      #ffffff;
	--soft:    #f7f5f2;
	--card:    #ffffff;
	--accent:  #e83720;
	--accent2: #ff8a3d;
	--footer:  #1c1917;
	--wrap:    1180px;
	--radius:  10px;
	--shadow:  0 2px 10px rgba(26,24,22,.06);
	--shadow-h: 0 10px 28px rgba(26,24,22,.12);
	--gothic:  "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
	--ease:    cubic-bezier(.22, .68, .2, 1);
	--dur:     .22s;
}

*, *::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: var(--gothic);
	font-size: 15.5px; line-height: 1.8; overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
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 .55em; line-height: 1.45; font-weight: 800; }
p { margin: 0 0 1em; }
button, input { font: inherit; }
.a-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%); }
.a-skip { position: absolute; left: -9999px; }
.a-skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--accent); color: #fff; padding: 10px 16px; }

h1, h2, h3, .a-card-title, .c-rail-name, .c-rank-title, .a-lead-title { font-feature-settings: "palt" 1; }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
time, .c-count, .c-rank-num, .c-cat-count, .c-chip-count, .a-pager .page-numbers, .a-footer-count {
	font-variant-numeric: tabular-nums;
}

a, button, input { transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }

/* ============================================================
   ヘッダー
   ============================================================ */
.a-header {
	background: #fff; border-bottom: none;
	box-shadow: 0 1px 0 var(--line);
}
.a-head-main { background: #fff; position: relative; z-index: 3; }
.a-masthead { display: flex; align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.a-brand {
	display: flex; align-items: center; gap: 12px; margin-right: auto;
	min-width: 0; flex-wrap: wrap;
}
.a-brand-logo {
	display: block; height: 96px; width: auto; max-width: min(420px, 68vw);
	object-fit: contain; object-position: left center;
}
.a-brand-sub {
	display: inline-block; margin: 0; width: fit-content; max-width: 100%;
	font-size: 12px; font-weight: 800; letter-spacing: .04em; line-height: 1.35;
	color: var(--accent);
	background: color-mix(in srgb, var(--accent) 9%, #fff);
	padding: 5px 11px; border-radius: 999px;
	white-space: nowrap;
}
.a-header-search { flex: none; }
.a-menu-btn {
	display: none;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	cursor: pointer;
}
.a-menu-btn:hover { border-color: var(--accent); color: var(--accent); }
.a-menu-btn-bars,
.a-menu-btn-bars::before,
.a-menu-btn-bars::after {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.a-menu-btn-bars { position: relative; }
.a-menu-btn-bars::before,
.a-menu-btn-bars::after {
	content: "";
	position: absolute;
	left: 0;
}
.a-menu-btn-bars::before { top: -6px; }
.a-menu-btn-bars::after { top: 6px; }
.a-header.is-nav-open .a-menu-btn-bars { background: transparent; }
.a-header.is-nav-open .a-menu-btn-bars::before { top: 0; transform: rotate(45deg); }
.a-header.is-nav-open .a-menu-btn-bars::after { top: 0; transform: rotate(-45deg); }
.a-nav-label { display: none; }
.a-nav-backdrop { display: none; }

.a-nav { background: #fff; border-top: 1px solid var(--line); }
.a-nav-inner { padding: 0 20px; }
.a-nav ul { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.a-nav ul::-webkit-scrollbar { display: none; }
.a-nav a {
	display: block; white-space: nowrap; padding: 12px 14px 10px;
	font-size: 13.5px; font-weight: 800; color: #5c564f;
	border-bottom: 3px solid transparent;
}
.a-nav a:hover { color: var(--accent); }
.a-nav a.is-on { color: var(--c, var(--accent)); border-bottom-color: var(--c, var(--accent)); }
.a-nav-home.is-on { --c: var(--accent); }

.c-search { display: flex; align-items: center; background: var(--soft); border: 1px solid transparent; border-radius: 999px; padding: 2px 4px 2px 14px; }
.c-search:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.c-search-input { background: transparent; border: none; color: var(--ink); padding: 7px 0; width: 170px; font-size: 13px; }
.c-search-input:focus { outline: none; }
.c-search-input::placeholder { color: var(--sub); }
.c-search-btn { background: var(--accent); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.c-search-btn:hover { filter: brightness(1.07); }

.c-crumbs { font-size: 11.5px; 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: #cfc8c0; }
.c-crumbs a:hover { color: var(--accent); }

/* ============================================================
   HOT 帯（写真の上にタイトル）
   ============================================================ */
.c-rail { background: var(--soft); border-bottom: 1px solid var(--line); padding: 16px 0 18px; }
.c-rail-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.c-rail-title {
	margin: 0; font-size: 11px; font-weight: 900; letter-spacing: .18em;
	color: #fff; background: var(--accent); padding: 4px 9px; border-radius: 4px; line-height: 1;
}
.c-rail-sub { margin: 0; font-size: 13px; font-weight: 800; color: var(--ink); }
.c-rail-track {
	display: flex; gap: 12px; overflow-x: auto; padding-bottom: 2px;
	scroll-snap-type: x proximity; scrollbar-width: thin;
}
.c-rail-track::-webkit-scrollbar { height: 4px; }
.c-rail-track::-webkit-scrollbar-thumb { background: #d9d2cb; border-radius: 3px; }
.c-rail-card { flex: none; width: 220px; scroll-snap-align: start; }
.c-rail-thumb {
	display: block; position: relative; aspect-ratio: 5 / 4; overflow: hidden;
	border-radius: 14px; background: #222; box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.c-rail-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s var(--ease); }
.c-rail-card:hover img { transform: scale(1.08); filter: saturate(1.08) brightness(1.04); }
.c-rail-shade {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.78) 100%);
	pointer-events: none;
}
.c-rail-name {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
	padding: 32px 12px 12px; color: #fff; font-size: 13.5px; font-weight: 900; line-height: 1.4;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

/* ============================================================
   ピックアップ（写真全面＋文字重ね）
   ============================================================ */
.a-pickup { background: var(--soft); padding: 22px 0 28px; border-bottom: 1px solid var(--line); }
.a-pickup-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.a-pickup-kicker {
	font-size: 10px; font-weight: 900; letter-spacing: .2em; color: #fff;
	background: var(--accent); padding: 5px 9px; border-radius: 4px;
}
.a-pickup-title { margin: 0; font-size: 18px; font-weight: 900; display: flex; align-items: baseline; gap: 8px; }
.a-pickup-date { color: var(--accent); font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.a-pickup-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }

.a-lead { position: relative; border-radius: 18px; overflow: hidden; min-height: 100%; box-shadow: 0 8px 28px rgba(26,24,22,.16); }
.a-lead-link { display: block; position: relative; height: 100%; color: #fff; }
.a-lead-media { display: block; position: absolute; inset: 0; background: #222; }
.a-lead-media img,
.a-lead-media .c-thumb-fallback { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform .8s var(--ease), filter .5s var(--ease); }
.a-lead:hover .a-lead-media img { transform: scale(1.06); filter: saturate(1.1) brightness(1.04); }
.a-lead-body {
	position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 420px; padding: 32px 28px 26px;
	background:
		linear-gradient(180deg, rgba(0,0,0,.12) 0%, transparent 30%),
		linear-gradient(180deg, transparent 35%, rgba(0,0,0,.72) 78%, rgba(0,0,0,.9) 100%);
}
.a-lead-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.a-lead-body .c-catlabel { position: static; font-size: 12px; padding: 5px 11px; }
.a-lead-body .c-tags { margin: 0; }
.a-lead-body .c-tag-new { background: rgba(255,255,255,.95); color: var(--accent); }
.a-lead-title {
	margin: 0 0 14px; font-size: clamp(24px, 3vw, 34px); font-weight: 900;
	line-height: 1.35; letter-spacing: -.02em; color: #fff;
	text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.a-lead-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.88); font-weight: 700; }
.a-lead-meta .c-area { color: rgba(255,255,255,.88); }
.a-lead-meta .c-area:hover { color: #fff; }

.a-subs {
	display: flex; flex-direction: column; gap: 10px;
	background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--shadow);
}
.a-subs-label {
	margin: 0 0 2px; font-size: 11px; font-weight: 900; letter-spacing: .14em; color: var(--accent);
}
.a-sub { position: relative; }
.a-sub-link {
	display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center;
	padding: 6px; border-radius: 12px;
}
.a-sub-link:hover { background: var(--soft); }
.a-sub-media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #222; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.a-sub-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .35s var(--ease); }
.a-sub-link:hover .a-sub-media img { transform: scale(1.07); filter: saturate(1.08); }
.a-sub-media .c-catlabel { left: 5px; bottom: 5px; font-size: 10px; padding: 2px 6px; }
.a-sub-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.a-sub-title {
	font-size: 14px; font-weight: 900; line-height: 1.45;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.a-sub-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--sub); }
.a-sub-link:hover .a-sub-title { color: var(--accent); }

/* ============================================================
   本文エリアの2カラム
   ============================================================ */
.a-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding-top: 30px; padding-bottom: 52px; align-items: start; }
.a-col-main { min-width: 0; }
.a-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 16px; }
.a-sec-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.a-sec {
	font-size: 20px; font-weight: 900; margin: 0; padding-left: 12px;
	border-left: 4px solid var(--accent); line-height: 1.2;
}
.a-sec-sub { margin: 0; font-size: 12.5px; color: var(--sub); font-weight: 700; }

/* ============================================================
   記事カード
   写真を全面に、タイトルを下に重ねる。1枚ごとの主張を強くする。
   ============================================================ */
.a-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.a-card { position: relative; }
.a-card-link {
	display: block; border-radius: 16px; overflow: hidden;
	box-shadow: 0 4px 18px rgba(26,24,22,.1);
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.a-card-link:hover {
	transform: translateY(-6px) scale(1.01);
	box-shadow: 0 18px 40px rgba(26,24,22,.2);
}
.a-card-media {
	display: block; position: relative; aspect-ratio: 16 / 11;
	overflow: hidden; background: #1a1816;
}
.a-card-media img,
.a-card-media .c-thumb-fallback {
	width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
	transition: transform .7s var(--ease), filter .45s var(--ease);
}
.a-card-link:hover .a-card-media img {
	transform: scale(1.08);
	filter: brightness(1.05) saturate(1.08);
}
.a-card-shade {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 28%),
		linear-gradient(180deg, transparent 38%, rgba(0,0,0,.55) 72%, rgba(0,0,0,.88) 100%);
}
.a-card-top {
	position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3;
	display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
}
.a-card-top .c-tags { position: static; margin: 0; }
.a-card-top .c-catlabel {
	position: static; box-shadow: 0 2px 10px rgba(0,0,0,.25);
	font-size: 11px; padding: 4px 10px;
}
.a-card-body {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: 20px 16px 16px; display: flex; flex-direction: column; gap: 8px;
	color: #fff;
}
.a-card-title {
	font-size: clamp(16px, 1.7vw, 20px); font-weight: 900; line-height: 1.4; margin: 0;
	color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.35);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	letter-spacing: -.01em;
}
.a-card-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	font-size: 12px; color: rgba(255,255,255,.84); font-weight: 700;
}
.a-card-meta .c-area { color: rgba(255,255,255,.84); }
.a-card-link:hover .a-card-title { color: #fff; }

.c-catlabel {
	position: absolute; left: 8px; bottom: 8px; z-index: 2;
	background: var(--badge-color, var(--accent)); color: #fff;
	font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 4px;
	letter-spacing: .02em; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.c-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.c-tag { display: inline-block; font-size: 10px; font-weight: 900; padding: 3px 8px; border-radius: 4px; letter-spacing: .04em; }
.c-tag-new { background: #fff; color: var(--accent); box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.c-tag-hot { background: var(--accent); color: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.2); }
.c-area { display: inline-flex; align-items: center; gap: 3px; color: var(--sub); font-size: 11px; }
.c-area:hover { color: var(--accent); }

.c-thumb-fallback {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--badge-color, var(--accent)), color-mix(in srgb, var(--badge-color, var(--accent)) 50%, #111));
}
.c-thumb-fallback span { color: rgba(255,255,255,.92); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-align: center; padding: 6px; }

/* ============================================================
   ジャンル別
   ============================================================ */
.a-bygenre { background: var(--soft); padding: 36px 0 48px; border-top: 1px solid var(--line); }
.a-catsecs { display: flex; flex-direction: column; gap: 14px; }
.a-catsec {
	background: #fff; border-radius: 12px; padding: 18px 20px 18px;
	border: 1px solid var(--line);
}
.a-catsec-head {
	display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
	margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.a-catsec-title {
	font-size: 17px; font-weight: 900; margin: 0; padding-left: 10px;
	border-left: 4px solid var(--cat-color, var(--accent)); line-height: 1.2;
}
.a-catsec-title a:hover { color: var(--cat-color, var(--accent)); }
.a-catsec-desc { font-size: 12px; color: var(--sub); margin: 0; font-weight: 700; }
.a-catsec-more {
	margin-left: auto; font-size: 12px; font-weight: 800; color: #fff;
	background: var(--cat-color, var(--accent)); padding: 6px 12px; border-radius: 999px;
}
.a-catsec-more:hover { filter: brightness(1.06); color: #fff; }
.a-catsec-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.a-mini { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 11px; align-items: center; }
.a-mini-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--soft); }
.a-mini-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.a-mini:hover .a-mini-thumb img { transform: scale(1.05); }
.a-mini-body { min-width: 0; }
.a-mini-title {
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	font-size: 13px; font-weight: 800; line-height: 1.45;
}
.a-mini-date { display: block; font-size: 11px; color: var(--sub); margin-top: 4px; }
.a-mini:hover .a-mini-title { color: var(--cat-color, var(--accent)); }

/* ============================================================
   サイドバー
   ============================================================ */
.c-widget { background: var(--card); border-radius: var(--radius); padding: 16px 18px 18px; box-shadow: var(--shadow); }
.c-widget-title {
	font-size: 14px; font-weight: 800; margin: 0 0 12px; padding-bottom: 10px;
	border-bottom: 2px solid var(--ink);
}
.c-rank li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.c-rank li:last-child { border-bottom: none; padding-bottom: 0; }
.c-rank-num {
	flex: none; width: 22px; height: 22px; background: var(--ink); color: #fff;
	font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border-radius: 4px;
}
.c-rank li:nth-child(1) .c-rank-num { background: var(--accent); }
.c-rank li:nth-child(2) .c-rank-num { background: color-mix(in srgb, var(--accent) 72%, #fff); }
.c-rank li:nth-child(3) .c-rank-num { background: color-mix(in srgb, var(--accent) 48%, #fff); color: var(--ink); }
.c-rank-link { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; }
.c-rank-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--bg); }
.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; font-weight: 700; }
.c-rank a:hover { color: var(--accent); }
.c-cat-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.c-cat-list li:last-child { border-bottom: none; padding-bottom: 0; }
.c-cat-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.c-cat-list a span:first-of-type { margin-right: auto; }
.c-cat-list a:hover { color: var(--badge-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); padding-left: 12px; }

/* ---------- チップ ---------- */
.c-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.c-chip { font-size: 12px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--sub); background: var(--card); }
.c-chip:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.c-chip-count { margin-left: 5px; opacity: .6; }
.c-count { font-size: 12px; color: var(--sub); margin: 8px 0 0; }
.c-post-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }

/* ============================================================
   記事ページ
   ============================================================ */
.a-single { min-width: 0; background: var(--card); border-radius: var(--radius); padding: 28px 34px 34px; box-shadow: var(--shadow); }
.a-single-head { margin-bottom: 20px; }
.a-badges { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.a-badges .c-tags { margin-bottom: 0; }
.c-badge {
	display: inline-block; background: var(--badge-color, var(--accent)); color: #fff;
	font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 4px;
}
.c-badge:hover { filter: brightness(1.08); }
.c-new { display: inline-block; background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 3px; }
.a-single-head h1 { font-size: 28px; font-weight: 800; line-height: 1.45; margin: 0 0 14px; letter-spacing: -.01em; }
.a-single-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--sub); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.a-single-thumb { margin: 0 0 24px; background: var(--bg); border-radius: 10px; overflow: hidden; text-align: center; }
.a-single-thumb img { margin: 0 auto; }

/* ---------- 目次 ---------- */
.c-toc { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin: 24px 0; }
.c-toc-title { margin: 0 0 8px; font-size: 13px; font-weight: 800; }
.c-toc-title::before { content: "≡"; color: var(--accent); margin-right: 7px; }
.c-toc ol { counter-reset: toc; }
.c-toc li { counter-increment: toc; font-size: 13.5px; line-height: 1.7; padding: 3px 0; }
.c-toc li::before { content: counter(toc) "."; color: var(--accent); font-weight: 800; margin-right: 7px; }
.c-toc a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- 本文 ---------- */
.a-content { overflow-wrap: anywhere; font-size: 16.5px; line-height: 1.95; letter-spacing: .01em; }
.a-content > * + * { margin-top: 1.1em; }
.a-content h2 {
	font-size: 21px; font-weight: 800; margin: 2em 0 .7em; padding: 4px 0 4px 13px;
	border-left: 5px solid var(--accent); line-height: 1.45;
}
.a-content h3 { font-size: 18px; font-weight: 800; margin: 1.7em 0 .5em; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.a-content ul li { list-style: disc; margin-left: 1.4em; margin-bottom: .4em; }
.a-content ol li { list-style: decimal; margin-left: 1.5em; margin-bottom: .4em; }
.a-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.a-content a:hover { text-decoration-color: var(--accent); }
/* 本文の写真は元の大きさを超えて引き伸ばさない。
   プレスリリースには小さな画像も混ざるため、拡大するとぼやけるため。 */
.a-content img { margin: 1.7em auto; max-width: 100%; height: auto; border-radius: 10px; }
.a-content figure { margin: 1.7em 0; text-align: center; }
.a-content figure img { margin: 0 auto; }
.a-content figcaption { font-size: 12px; color: var(--sub); margin-top: 8px; }
.a-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; border-radius: 8px; overflow: hidden; }
.a-content th, .a-content td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; line-height: 1.7; }
.a-content th { background: var(--bg); width: 30%; font-weight: 700; }
.a-content blockquote { border-left: 4px solid var(--line); padding: 12px 18px; background: var(--bg); color: var(--sub); border-radius: 0 8px 8px 0; }
.a-content code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: .92em; }
.a-content p { text-align: justify; text-justify: inter-ideograph; }

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

/* ---------- 前後の記事 ---------- */
.a-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; font-size: 13.5px; }
.a-postnav a { display: block; padding: 13px 16px; background: var(--bg); border-radius: 8px; font-weight: 700; line-height: 1.5; }
.a-postnav a:hover { background: color-mix(in srgb, var(--accent) 8%, #fff); color: var(--accent); }
.a-postnav-next { text-align: right; }

/* ---------- 関連記事・次に読む ---------- */
.c-block-title { font-size: 16px; font-weight: 800; margin: 0 0 14px; padding-left: 11px; border-left: 4px solid var(--accent); line-height: 1.3; }
.c-related { margin-top: 42px; }
.c-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.c-related-item { display: block; position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.c-related-thumb { display: block; aspect-ratio: 5 / 4; overflow: hidden; margin: 0; background: #222; position: relative; }
.c-related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease), filter .4s var(--ease); }
.c-related-item:hover img { transform: scale(1.07); filter: saturate(1.08); }
.c-related-thumb::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.82) 100%);
}
.c-related-body {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
	padding: 16px 12px 12px; color: #fff;
}
.c-related-cat { display: inline-block; font-size: 10px; color: #fff; font-weight: 900; margin-bottom: 6px; background: var(--accent); padding: 2px 7px; border-radius: 3px; }
.c-related-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 900; line-height: 1.45; color: #fff; }
.c-related-item:hover .c-related-title { color: #fff; }

.c-next { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line); }
.c-next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.c-next-item { display: block; position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.c-next-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0; background: #222; margin: 0; position: relative; }
.c-next-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease), filter .4s var(--ease); }
.c-next-item:hover img { transform: scale(1.07); filter: saturate(1.08); }
.c-next-thumb::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.82) 100%);
}
.c-next-title {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
	padding: 18px 14px 14px; color: #fff;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	font-size: 14.5px; font-weight: 900; line-height: 1.45;
}
.c-next-item:hover .c-next-title { color: #fff; }
.c-comments { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ============================================================
   一覧ページ
   ============================================================ */
.a-arc-head { background: var(--card); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px; border-left: 5px solid var(--cat-color, var(--accent)); box-shadow: var(--shadow); }
.a-arc-head h1 { font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.a-arc-head p { color: var(--sub); font-size: 13px; margin: 0; line-height: 1.75; }
.a-empty { background: var(--card); border-radius: var(--radius); padding: 44px 20px; text-align: center; color: var(--sub); }
.a-pager { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 6px; }
.a-pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; min-height: 42px; padding: 8px 13px;
	background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 700;
}
.a-pager .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.a-pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   固定ページ・404
   ============================================================ */
.c-page { padding: 30px 0 64px; }
.c-page-inner { max-width: 820px; margin: 0 auto; background: var(--card); border-radius: var(--radius); padding: 30px 36px 40px; box-shadow: var(--shadow); }
.c-page-title { font-size: 26px; font-weight: 800; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.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; padding-left: 11px; border-left: 4px solid 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: 800; color: var(--accent); margin: 0; line-height: 1; }
.c-404 .c-search { justify-content: center; margin: 20px auto; max-width: 320px; }
.c-404-home { color: var(--accent); text-decoration: underline; font-weight: 700; }

/* ============================================================
   フッター
   記事を読み終えたあとの「次の入口」。ブランド・検索・ジャンル・エリアを
   一段にまとめ、暗い地面の上で朱色だけを差し色にしている。
   ============================================================ */
.a-footer {
	position: relative; background: var(--footer); color: rgba(255,255,255,.7);
	padding: 0 0 22px; margin-top: 8px; overflow: hidden;
}
.a-footer-accent {
	height: 3px;
	background: linear-gradient(90deg, var(--accent) 0%, #f5a623 42%, transparent 100%);
}
.a-footer::before {
	content: ""; position: absolute; inset: 0 auto auto 0; width: 420px; height: 420px;
	background: radial-gradient(circle at 20% 0%, rgba(232,64,42,.18), transparent 62%);
	pointer-events: none;
}
.a-footer a { color: rgba(255,255,255,.78); }
.a-footer a:hover { color: #fff; }
.a-footer-inner { position: relative; z-index: 1; padding-top: 40px; }

.a-footer-brand {
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .65fr);
	gap: 22px 40px; align-items: end;
	padding-bottom: 28px; margin-bottom: 28px;
	border-bottom: 1px solid rgba(255,255,255,.12);
}
.a-footer-brand-main { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.a-footer-logo {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px;
	width: fit-content; max-width: 100%; color: #fff;
}
.a-footer-logoimg {
	display: block; height: 104px; width: auto; max-width: min(440px, 92vw);
	object-fit: contain; object-position: left center;
	background: transparent; border-radius: 0; padding: 0;
	box-shadow: none;
}
.a-footer-tagline {
	display: inline-block; margin: 0;
	font-size: 12.5px; font-weight: 800; letter-spacing: .04em;
	color: #fff; background: var(--accent);
	padding: 6px 12px; border-radius: 999px;
}
.a-footer-summary {
	grid-column: auto; margin: 0; max-width: 40em;
	font-size: 13px; line-height: 1.85; color: rgba(255,255,255,.62);
}
.a-footer-search { justify-self: end; width: min(100%, 280px); }
.a-footer-search .c-search {
	background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16);
}
.a-footer-search .c-search:focus-within {
	background: rgba(255,255,255,.1); border-color: var(--accent);
}
.a-footer-search .c-search-input { color: #fff; width: 100%; min-width: 0; }
.a-footer-search .c-search-input::placeholder { color: rgba(255,255,255,.45); }

.a-footer-links {
	display: block;
}
.a-footer-navtitle {
	margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .16em;
	color: #fff; display: flex; align-items: center; gap: 8px;
}
.a-footer-navtitle::before {
	content: ""; width: 14px; height: 2px; background: var(--accent); border-radius: 2px;
}
.a-footer-nav-cats ul {
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
}
.a-footer-nav-cats a {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 700;
	background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
	line-height: 1.35; min-height: 44px;
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.a-footer-nav-cats a:hover {
	background: color-mix(in srgb, var(--cat-color, var(--accent)) 18%, transparent);
	border-color: color-mix(in srgb, var(--cat-color, var(--accent)) 55%, transparent);
	color: #fff; transform: translateY(-1px);
}
.a-footer-dot {
	width: 7px; height: 7px; border-radius: 50%; flex: none;
	background: var(--cat-color, var(--accent));
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat-color, var(--accent)) 22%, transparent);
}

.a-footer-bottom {
	display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
	margin-top: 34px; padding-top: 18px;
	border-top: 1px solid rgba(255,255,255,.12);
}
.a-footer-copy { font-size: 12px; margin: 0; letter-spacing: .02em; }
.a-totop {
	margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
	font-size: 12px; font-weight: 700; padding: 8px 14px 8px 10px;
	border-radius: 999px; border: 1px solid rgba(255,255,255,.16);
	background: rgba(255,255,255,.04);
}
.a-totop:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.a-totop-ico {
	width: 22px; height: 22px; border-radius: 50%;
	background: rgba(255,255,255,.1); position: relative;
}
.a-totop-ico::before {
	content: ""; position: absolute; left: 50%; top: 52%;
	width: 7px; height: 7px; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
	transform: translate(-50%, -40%) rotate(45deg);
}
.a-totop:hover .a-totop-ico { background: rgba(255,255,255,.22); }

/* ============================================================
   画面幅ごとの調整
   ============================================================ */
@media (min-width: 901px) {
	/* 画面が広いときだけヘッダーを固定する。狭い画面では本文の場所を取りすぎるため。 */
	.a-header { position: sticky; top: 0; z-index: 30; }
}
@media (max-width: 1100px) {
	.a-cols { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
	.a-catsec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.c-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.a-footer-nav-cats ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.a-footer-brand { grid-template-columns: minmax(0, 1fr) minmax(200px, .6fr); }
	.a-lead-body { min-height: 360px; }
	.a-card-title { font-size: 17px; }
}
@media (max-width: 1000px) {
	.a-cols { grid-template-columns: 1fr; gap: 34px; }
	.a-side { position: static; }
	.a-pickup-grid { grid-template-columns: 1fr; gap: 14px; }
	.a-subs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
	.a-subs-label { grid-column: 1 / -1; }
	.a-lead-body { min-height: 300px; padding: 22px 18px 18px; }
	.a-lead-title { font-size: 22px; }
}
@media (max-width: 900px) {
	.a-masthead { gap: 10px; padding-top: 12px; padding-bottom: 12px; }
	.a-brand-logo { height: 72px; max-width: min(280px, 54vw); }
	.a-brand-sub { font-size: 10px; padding: 3px 8px; }
	.c-search-input { width: 110px; font-size: 12.5px; }
	.a-menu-btn { display: inline-flex; }
	.a-header { position: sticky; top: 0; z-index: 40; background: #fff; }
	.a-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 2;
		border-top: 1px solid var(--line);
		box-shadow: 0 18px 36px rgba(26, 24, 22, .14);
		max-height: min(70vh, 520px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
	.a-header.is-nav-open .a-nav { display: block; }
	.a-nav-label {
		display: block;
		margin: 0;
		padding: 14px 20px 6px;
		font-size: 11px;
		font-weight: 800;
		letter-spacing: .08em;
		color: var(--sub);
	}
	.a-nav-inner { padding: 0 0 10px; }
	.a-nav ul {
		display: block;
		overflow: visible;
		padding: 0;
		mask-image: none;
	}
	.a-nav a {
		white-space: normal;
		padding: 13px 20px;
		font-size: 15px;
		border-bottom: none;
		border-left: 3px solid transparent;
	}
	.a-nav a.is-on {
		border-left-color: var(--c, var(--accent));
		background: color-mix(in srgb, var(--c, var(--accent)) 8%, #fff);
	}
	.a-nav-backdrop {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 1;
		background: rgba(26, 24, 22, .38);
		border: 0;
		padding: 0;
		margin: 0;
		cursor: pointer;
	}
	.a-header.is-nav-open .a-nav-backdrop {
		display: block;
	}
	.a-single { padding: 22px 22px 28px; }
	body.is-nav-lock { overflow: hidden; }
}
@media (max-width: 760px) {
	.a-grid { grid-template-columns: 1fr; gap: 18px; }
	.c-related-grid { grid-template-columns: 1fr; gap: 14px; }
	.a-catsec-list { grid-template-columns: 1fr; gap: 14px; }
	.a-subs { grid-template-columns: 1fr; }
	.a-footer-brand { grid-template-columns: 1fr; gap: 18px; padding-bottom: 22px; margin-bottom: 22px; }
	.a-footer-search { justify-self: stretch; width: 100%; }
	.a-footer-nav-cats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.a-footer-inner { padding-top: 28px; }
	.a-footer-logoimg { height: 84px; padding: 0; }
	.c-rail-card { width: 248px; }
	.c-rail-name { font-size: 15px; padding: 36px 14px 14px; }
	.a-card-media { aspect-ratio: 16 / 11; }
	.a-card-title { font-size: 19px; }
	.a-card-body { padding: 22px 16px 16px; gap: 9px; }
	.c-widget { padding: 18px 16px 20px; }
	.c-widget-title { font-size: 16px; margin-bottom: 14px; }
	.c-rank li { gap: 12px; padding: 12px 0; }
	.c-rank-num { width: 28px; height: 28px; font-size: 13px; border-radius: 6px; }
	.c-rank-link { grid-template-columns: 108px minmax(0, 1fr); gap: 14px; }
	.c-rank-thumb { border-radius: 10px; }
	.c-rank-title { font-size: 15px; line-height: 1.45; -webkit-line-clamp: 3; }
	.a-mini { grid-template-columns: 132px minmax(0, 1fr); gap: 14px; }
	.a-mini-thumb { border-radius: 10px; }
	.a-mini-title { font-size: 15px; }
	.c-related-title { font-size: 16px; }
	.c-related-thumb { aspect-ratio: 16 / 10; }
	.c-next-grid { grid-template-columns: 1fr; gap: 14px; }
	.c-next-title { font-size: 16px; }
}
@media (max-width: 560px) {
	body { font-size: 15px; }
	.a-wrap { padding: 0 14px; }
	.a-cols { padding-top: 20px; padding-bottom: 36px; }
	/* 料理の写真が主役なので、狭い画面では1列にして大きく出す。 */
	.a-grid { grid-template-columns: 1fr; gap: 16px; }
	.a-subs { grid-template-columns: 1fr; }
	.a-pickup { padding: 16px 0 20px; }
	.a-pickup-title { font-size: 15px; }
	.a-pickup-date { font-size: 18px; }
	.a-lead-body { min-height: 300px; padding: 20px 16px 16px; }
	.a-lead-title { font-size: 21px; }
	.a-sec { font-size: 17px; }
	.a-card-media { aspect-ratio: 4 / 3; }
	.a-card-title { font-size: 18.5px; }
	.a-card-body { padding: 20px 15px 15px; }
	.a-card-top { top: 10px; left: 10px; right: 10px; }
	.a-single { padding: 18px 16px 24px; border-radius: 10px; }
	.a-single-head h1 { font-size: 21px; }
	.a-content { font-size: 16px; }
	.a-content h2 { font-size: 18.5px; }
	.a-content p { text-align: left; }
	/* 本文の表は横スクロール（列を潰すと項目と値の対応が読めなくなるため） */
	.a-content table { display: block; overflow-x: auto; white-space: nowrap; }
	.a-postnav { grid-template-columns: 1fr; }
	.a-postnav-next { text-align: left; }
	.c-page-inner { padding: 22px 18px 28px; }
	.c-page-title { font-size: 21px; }
	.a-arc-head { padding: 16px 16px; }
	.a-arc-head h1 { font-size: 20px; }
	.c-rail-card { width: 236px; }
	.c-rank-link { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
	.c-rank-title { font-size: 15.5px; }
	.a-mini { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
	.a-footer-bottom { gap: 10px; }
	.a-totop { margin-left: 0; width: 100%; justify-content: center; }
}
@media (max-width: 400px) {
	/* 題字と検索窓が1行に収まらなくなる幅。検索は虫めがねだけ残す。 */
	.c-search { padding-left: 4px; }
	.c-search-input { width: 84px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	a, button, input, .a-card-link, .a-card-media img, .c-rail-thumb img, .c-related-thumb img, .c-next-thumb img, .a-mini-thumb img, .a-sub-media img { transition: none; }
	.a-card-link:hover { transform: none; }
	.a-card-link:hover .a-card-media img,
	.c-rail-card:hover img,
	.a-lead:hover .a-lead-media img,
	.a-sub-link:hover .a-sub-media img { transform: none; filter: none; }
}
