/*
Theme Name: マドノソト
Theme URI: https://madonosoto.com
Author: hyodorantaro
Description: マドノソト（madonosoto.com）専用テーマ。白地・太ゴシック・大判写真の旅メディア型レイアウト。
Version: 3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: madonosoto
*/

/* ============================================================
   MADONOSOTO ─ 旅メディア型
   旅の記事は写真で選ばれる。だから写真をできるだけ大きく取り、
   地は白のままにして色を写真だけに持たせる。
   見出しは太いゴシック、セクション名は大きな英字。
   影・角丸・グラデーションは使わない（写真の輪郭を濁らせるため）。
   ============================================================ */
:root {
	--ink:     #0b1118; /* 文字の黒。わずかに青を含ませて写真となじませる */
	--sub:     #7b7f85;
	--line:    #e4e6e8;
	--bg:      #ffffff;
	--gray:    #f5f6f7; /* 面で区切る帯の色 */
	--accent:  #1b99b7; /* 水色。リンクと現在地に使う */
	--accent2: #e2622f; /* 橙。数字と「新着」だけに使う */
	--footer:  #192636;
	--wrap:    1340px;
	--sans:    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic Medium", YuGothic, Meiryo, system-ui, sans-serif;
	--ease:    cubic-bezier(.22, .68, .2, 1);
	--dur:     .28s;
}

*, *::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(--sans);
	font-size: 16px; line-height: 1.85; overflow-x: hidden;
	font-feature-settings: "palt" 1;
}
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, h4 { margin: 0 0 .6em; line-height: 1.5; font-weight: 700; letter-spacing: .01em; }
h1, h2, h3 { text-wrap: balance; line-break: strict; }
p { margin: 0 0 1em; }
p, li, figcaption { text-wrap: pretty; }
button, input { font: inherit; }
time, .c-count, .c-rank-num, .c-cat-count, .c-chip-count, .n-pager .page-numbers { font-variant-numeric: tabular-nums; }
.n-wrap { display: block; max-width: var(--wrap); margin: 0 auto; padding: 0 30px; }
.t-right { text-align: right; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.n-skip { position: absolute; left: -9999px; }
.n-skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--ink); color: #fff; padding: 10px 16px; }

a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }
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); }

/* 写真は共通で、少し寄る動きだけを付ける */
.n-shot { display: block; overflow: hidden; background: var(--gray); }
.n-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
a:hover > .n-shot img, article:hover .n-shot img { transform: scale(1.045); }

/* ============================================================
   ヘッダー
   白地。題字と分野名を太く出し、検索だけ水色の丸ボタンにする。
   ============================================================ */
.n-header { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.n-header-top { display: flex; align-items: center; gap: 26px; padding-top: 18px; padding-bottom: 16px; }
.n-brand { display: flex; align-items: center; flex: none; }
/* 横長ロゴ（英字＋カタカナ入り）。高さで揃え、幅は比率に任せる。 */
.n-brand-logo { width: auto; height: 88px; display: block; }
.n-header-search { margin-left: auto; flex: none; }

/* 分野の帯。現在地は水色の太い下線で示す */
.n-nav { border-top: 1px solid var(--line); }
.n-nav ul { display: flex; overflow-x: auto; scrollbar-width: none; }
.n-nav ul::-webkit-scrollbar { display: none; }
.n-nav a {
	display: block; white-space: nowrap; padding: 15px 0; margin-right: 34px;
	font-size: 15px; font-weight: 700; letter-spacing: .02em;
	box-shadow: inset 0 -3px 0 transparent;
}
.n-nav li:last-child a { margin-right: 0; }
.n-nav a:hover { color: var(--accent); }
.n-nav a.is-on { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }

/* ---------- 検索 ---------- */
.c-search { display: flex; align-items: center; gap: 8px; }
.c-search-input {
	background: var(--gray); border: 1px solid transparent; border-radius: 999px; color: var(--ink);
	padding: 10px 18px; width: 210px; font-size: 14px;
}
.c-search-input::placeholder { color: var(--sub); }
.c-search-input:focus { outline: none; border-color: var(--accent); background: var(--bg); }
.c-search-btn {
	background: var(--accent); border: none; border-radius: 999px; color: #fff;
	width: 42px; height: 42px; cursor: pointer;
	display: flex; align-items: center; justify-content: center; flex: none;
}
.c-search-btn:hover { opacity: .82; }

/* ---------- パンくず ---------- */
.c-crumbs { font-size: 12px; color: var(--sub); padding-top: 20px; }
.c-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.c-crumbs li + li::before { content: "›"; margin-right: 8px; color: #c4c8cc; }
.c-crumbs a:hover { color: var(--accent); }

/* ============================================================
   セクションの柱
   大きな英字＋和文の副題。罫線は引かず、文字の大きさだけで段を分ける。
   ============================================================ */
.n-sec { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 30px; }
.n-sec-en {
	margin: 0; font-size: clamp(30px, 3.6vw, 50px); font-weight: 700;
	letter-spacing: .01em; line-height: .95; color: var(--ink); text-transform: uppercase;
}
.n-sec-ja { font-size: 15px; font-weight: 700; margin: 0 0 5px; color: var(--ink); }
.n-sec-more { margin-left: auto; font-size: 13.5px; font-weight: 700; color: var(--accent); flex: none; padding-bottom: 6px; }
.n-sec-more:hover { opacity: .7; }

/* ---------- 分野・エリアのラベル ----------
   面で塗らず、その分野の色の文字にする。写真の下でも濁らない。 */
.c-badge {
	display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
	color: var(--badge-color, var(--accent));
}
.c-new {
	display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
	color: #fff; background: var(--accent2); padding: 2px 8px;
}
.c-thumb-fallback {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	background: var(--gray);
}
.c-thumb-fallback span {
	color: var(--badge-color, var(--accent)); font-size: 15px; font-weight: 700;
	letter-spacing: .12em; text-align: center; padding: 10px;
}
.c-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.c-chip {
	font-size: 12.5px; font-weight: 700; padding: 6px 15px; background: var(--gray); color: var(--sub);
	border-radius: 999px;
}
.c-chip:hover { background: var(--accent); color: #fff; }
.c-chip-count { margin-left: 5px; opacity: .6; }
.c-count { font-size: 13px; color: var(--sub); margin-top: 12px; }
.c-post-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.n-content + .c-chips, .n-content + .c-post-tags { margin-top: 36px; }

/* ============================================================
   記事カード（一覧の1件）
   写真をできるだけ大きく取り、その下に分野・見出し・日付を置く。
   枠と影は付けない。
   ============================================================ */
.n-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 34px; row-gap: 50px; }
.n-card { position: relative; display: flex; flex-direction: column; }
.n-card-media { aspect-ratio: 16 / 10; margin-bottom: 16px; }
.n-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.n-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.n-card-meta a, .n-card-body a { position: relative; z-index: 1; }
.n-card-area { font-size: 12px; color: var(--sub); }
.n-card-title { font-size: 19px; line-height: 1.6; margin: 0 0 10px; }
.n-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.n-card:hover .n-card-title { color: var(--accent); }
.n-card-ex {
	font-size: 13.5px; line-height: 1.8; color: var(--sub); margin: 0 0 14px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.n-card-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--sub); }

/* ============================================================
   トップの導入
   写真をすぐ見せたいので、ここは詰めて置く。
   ============================================================ */
.n-intro { padding: 34px 0 6px; }
.n-intro-inner { max-width: 900px; }
.n-intro-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--accent); }
.n-intro-title { margin: 0 0 12px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.45; }
.n-intro-body { margin: 0; font-size: 15px; line-height: 1.9; color: var(--sub); }

/* ============================================================
   トップ1段目 ─ 特大1本と、続く4本
   1本目は写真を左に大きく取り、見出しを右に横並びで置く。
   画面に最初に出る面を写真で埋めたいので、ここだけ段組みを変えている。
   ============================================================ */
.n-hero { padding: 34px 0 62px; }
.n-lead {
	position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 50px; align-items: center; margin-bottom: 54px;
}
/* 縦4:3。旅の写真は空と地面の両方が入るので、横長より縦を持たせたほうが情景が残る */
.n-lead-media { aspect-ratio: 4 / 3; }
/* プレスリリースの写真は縦長も混ざる。中央で切ると人物や建物の頭が外れるので上寄りで切る */
.n-lead-media img { object-position: 50% 36%; }
.n-lead-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 16px; }
.n-lead-top a, .n-lead-body a { position: relative; z-index: 1; }
.n-lead-title { font-size: clamp(26px, 2.9vw, 40px); line-height: 1.45; margin: 0 0 18px; }
.n-lead-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.n-lead:hover .n-lead-title { color: var(--accent); }
.n-lead-ex { font-size: 15px; line-height: 1.95; color: var(--sub); margin: 0 0 18px; }
.n-lead-date { font-size: 13px; color: var(--sub); }

/* 続く4本。1本目の下に横一列で置き、写真を上に大きく取る */
.n-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.n-pick { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.n-pick-body { order: 1; min-width: 0; }
.n-pick-media { order: 0; aspect-ratio: 16 / 10; margin-bottom: 14px; }
.n-pick-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }
.n-pick-top a, .n-pick-body a { position: relative; z-index: 1; }
.n-pick-title { font-size: 17px; line-height: 1.6; margin: 0 0 8px; }
.n-pick-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.n-pick:hover .n-pick-title { color: var(--accent); }
.n-pick-date { font-size: 12.5px; color: var(--sub); }

/* ============================================================
   分野とエリア（灰色の帯にまとめて、探す場所だと分かるようにする）
   ============================================================ */
.n-find { background: var(--gray); padding: 56px 0 60px; }
.n-find .n-areas { padding-top: 0; }
.n-catgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.n-catgrid a {
	display: block; background: var(--bg); padding: 20px 22px 22px;
	border-bottom: 4px solid var(--cat-color, var(--accent));
}
.n-catgrid a:hover { color: var(--cat-color, var(--accent)); }
.n-catgrid-name { display: block; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.n-catgrid-desc { display: block; font-size: 12.5px; color: var(--sub); line-height: 1.6; }
.n-catgrid-count { display: block; font-size: 12px; font-weight: 700; color: var(--cat-color, var(--accent)); margin-top: 12px; }
.n-arealist { display: flex; flex-wrap: wrap; gap: 12px; }
.n-arealist a {
	display: inline-flex; align-items: baseline; gap: 9px;
	padding: 12px 22px; background: var(--bg); font-size: 15px; font-weight: 700;
}
.n-arealist a:hover { background: var(--accent); color: #fff; }
.n-arealist-count { font-size: 11.5px; color: var(--sub); font-weight: 700; }
.n-arealist a:hover .n-arealist-count { color: rgba(255,255,255,.8); }

/* ---------- 続けて読む（指で横に払う棚。自動では動かさない） ---------- */
.n-rail { padding: 56px 0; }
.n-rail-track {
	display: grid; grid-auto-flow: column; grid-auto-columns: 320px;
	gap: 30px; overflow-x: auto; padding-bottom: 16px;
	scroll-snap-type: x proximity; overscroll-behavior-x: contain;
}
.n-rail-track::-webkit-scrollbar { height: 4px; }
.n-rail-track::-webkit-scrollbar-thumb { background: #c4c8cc; }
.n-rail-track::-webkit-scrollbar-track { background: var(--gray); }
.n-rail-item { scroll-snap-align: start; }
.n-rail-media { aspect-ratio: 16 / 10; margin-bottom: 13px; }
.n-rail-title { display: block; font-size: 16px; font-weight: 700; line-height: 1.6; }
.n-rail-item:hover .n-rail-title { color: var(--accent); }
.n-rail-date { display: block; font-size: 12.5px; color: var(--sub); margin-top: 7px; }

/* ---------- 新着 ---------- */
.n-latest { padding: 56px 0 80px; }
.n-rest-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; }
.n-rest-main { min-width: 0; }
.n-rest-main .n-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- 一覧の見出し・ページ送り ---------- */
.n-archive { padding: 34px 0 80px; }
.n-arc-head { margin-bottom: 40px; }
.n-arc-head h1 { font-size: clamp(28px, 4.4vw, 44px); margin: 0 0 12px; }
.n-arc-head p { color: var(--sub); font-size: 14.5px; margin: 0; max-width: 66ch; }
.n-empty { padding: 64px 20px; text-align: center; color: var(--sub); background: var(--gray); }
.n-pager { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 8px; }
.n-pager:empty { display: none; } /* 1ページだけのとき paginate_links は空を返す */
.n-pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 46px; min-height: 46px; padding: 8px 14px;
	font-size: 14px; font-weight: 700; color: var(--sub); background: var(--gray);
}
.n-pager .page-numbers:hover { background: #e6e8ea; color: var(--ink); }
.n-pager .page-numbers.current { background: var(--accent); color: #fff; }

/* ============================================================
   サイドバー
   ============================================================ */
.n-side { display: flex; flex-direction: column; gap: 46px; }
.c-widget-title { font-size: 20px; font-weight: 700; margin: 0 0 18px; }
.c-rank li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.c-rank li:last-child { border-bottom: none; }
.c-rank-num { flex: none; font-size: 19px; font-weight: 700; color: var(--accent2); line-height: 1.3; width: 20px; }
.c-rank-link { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; align-items: start; }
.c-rank-thumb { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--gray); }
.c-rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.c-rank-noimg { display: block; width: 100%; height: 100%; background: var(--gray); }
.c-rank-title {
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	font-size: 14px; font-weight: 700; line-height: 1.6;
}
.c-rank a:hover .c-rank-title { color: var(--accent); }
.c-cat-list li { padding: 13px 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: 10px; align-items: baseline; }
.c-cat-name { font-size: 16px; font-weight: 700; }
.c-cat-list a:hover .c-cat-name { color: var(--accent); }
.c-cat-count { font-size: 12px; color: var(--sub); }
.c-cat-desc { display: block; font-size: 12.5px; color: var(--sub); margin-top: 3px; }

/* ============================================================
   記事ページ
   ============================================================ */
.n-single-wrap { padding: 28px 0 80px; }
.n-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; }
.n-single { min-width: 0; }
.n-single-head { margin-bottom: 28px; }
.n-badges { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.n-single-head h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.45; margin: 0 0 20px; }
.n-single-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--sub); }
/* 記事の先頭の写真。小さい画像は引き伸ばさず、下地の上で中央に置く */
.n-single-thumb { margin: 0 0 34px; background: var(--gray); text-align: center; }
.n-single-thumb img { margin: 0 auto; }
.n-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 46px; font-size: 14px; }
.n-postnav a { display: block; padding: 20px 22px; background: var(--gray); font-weight: 700; height: 100%; }
.n-postnav a:hover { color: var(--accent); }

/* ---------- 本文 ---------- */
.n-content { overflow-wrap: anywhere; font-size: 17px; line-height: 1.95; max-width: 46em; }
.n-content > * + * { margin-top: 1.2em; }
.n-content > p:first-of-type { font-size: 1.04em; }
.n-content h2 { font-size: 25px; margin: 2.2em 0 .8em; padding-left: 16px; border-left: 5px solid var(--accent); }
.n-content h3 { font-size: 20px; margin: 1.9em 0 .6em; }
.n-content ul li { list-style: disc; margin-left: 1.4em; margin-bottom: .45em; }
.n-content ol li { list-style: decimal; margin-left: 1.5em; margin-bottom: .45em; }
.n-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.n-content a:hover { text-decoration-thickness: 2px; }
/* 本文の写真は元の大きさを超えて引き伸ばさない。
   プレスリリースには小さな画像も混ざるため、拡大するとぼやけるため。 */
.n-content img { margin: 2em auto; max-width: 100%; height: auto; }
.n-content figure { margin: 2em 0; text-align: center; }
.n-content figure img { margin: 0 auto; }
.n-content figcaption { font-size: 12.5px; color: var(--sub); margin-top: 10px; }
.n-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.n-content th, .n-content td { border-bottom: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; }
.n-content th { background: var(--gray); width: 30%; font-weight: 700; }
.n-content blockquote { border-left: 5px solid var(--line); padding: 4px 0 4px 22px; color: var(--sub); }
.n-content code { background: var(--gray); padding: 2px 6px; font-size: .92em; }
.n-content p { text-align: justify; text-justify: inter-ideograph; hanging-punctuation: allow-end; }

/* ---------- 目次（main.js が本文先頭に差し込む） ---------- */
.c-toc { background: var(--gray); padding: 22px 26px 24px; }
.c-toc-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.c-toc ol { counter-reset: toc; }
.c-toc li { counter-increment: toc; font-size: 14.5px; line-height: 1.7; padding: 5px 0; }
.c-toc li::before { content: counter(toc) ". "; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.c-toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 出典・注意書き・共有 ---------- */
.c-source { margin-top: 38px; padding: 20px 24px; background: var(--gray); font-size: 13.5px; }
.c-source-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--sub); margin: 0 0 8px; }
.c-source-note { color: var(--sub); }
.c-disclaimer { margin-top: 28px; padding: 20px 24px; border: 1px solid var(--line); font-size: 13px; color: var(--sub); }
.c-disclaimer-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--ink); margin: 0 0 8px; }
.c-disclaimer p:last-child { margin-bottom: 0; }
.c-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.c-share-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--sub); }
.c-share-btn { font-size: 13px; font-weight: 700; padding: 10px 20px; background: var(--gray); }
.c-share-btn:hover { background: var(--accent); color: #fff; }

/* ---------- 関連記事 ---------- */
.c-related { margin-top: 64px; }
.c-block-title { font-size: 24px; font-weight: 700; margin: 0 0 22px; }
.c-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.c-related-item { display: block; }
.c-related-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 13px; background: var(--gray); }
.c-related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.c-related-item:hover .c-related-thumb img { transform: scale(1.045); }
.c-related-body { display: block; }
.c-related-cat { display: block; font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.c-related-title { display: block; font-size: 16px; font-weight: 700; line-height: 1.6; }
.c-related-item:hover .c-related-title { color: var(--accent); }
.c-comments { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ---------- 固定ページ・404 ---------- */
.c-page { padding: 44px 0 90px; }
.c-page-inner { max-width: 820px; margin: 0 auto; }
.c-page-title { font-size: clamp(28px, 4.4vw, 42px); margin: 0 0 30px; }
.c-page-body { overflow-wrap: anywhere; font-size: 17px; line-height: 1.95; }
.c-page-body h2 { font-size: 23px; margin: 2em 0 .6em; padding-left: 16px; border-left: 5px solid var(--accent); }
.c-page-body ul, .c-page-body ol { margin-bottom: 1em; }
.c-page-body ul li { list-style: disc; margin-left: 1.4em; margin-bottom: .35em; }
.c-page-body ol li { list-style: decimal; margin-left: 1.5em; margin-bottom: .35em; }
.c-page-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.c-404 { text-align: center; }
.c-404-code { font-size: 96px; font-weight: 700; color: var(--accent); margin: 0; line-height: 1; }
.c-404 .c-search { justify-content: center; margin: 28px 0; }
.c-404-home { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   フッター
   本文と同じ白地。濃紺の帯にするとページ末だけ別サイトに見えるため、
   薄い区切り線と水色のアクセントだけで段を作る。
   ============================================================ */
.n-footer {
	background: var(--bg); color: var(--ink);
	padding: 64px 0 0; margin-top: 20px;
	border-top: 1px solid var(--line);
}
.n-footer a { color: var(--ink); }
.n-footer a:hover { color: var(--accent); }
.n-footer-grid {
	display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 48px 56px; padding-bottom: 48px;
}
.n-footer-brand { min-width: 0; }
.n-footer-logo { display: inline-block; margin-bottom: 20px; }
.n-footer-logo img { width: auto; height: 100px; display: block; }
.n-footer-tagline {
	margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: .02em; color: var(--ink);
}
.n-footer-summary {
	margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--sub); max-width: 42em;
}
.n-footer-col-title {
	margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .16em;
	text-transform: uppercase; color: var(--accent);
}
.n-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.n-footer-col a { font-size: 14.5px; font-weight: 700; }
.n-footer-bar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 20px 0 28px; border-top: 1px solid var(--line);
}
.n-footer-copy { font-size: 12.5px; margin: 0; color: var(--sub); }
.n-totop {
	font-size: 13px; font-weight: 700; color: var(--accent); flex: none;
	display: inline-flex; align-items: center; gap: 6px;
}
.n-totop::after { content: "↑"; font-size: 12px; }
.n-totop:hover { opacity: .72; }

/* ============================================================
   画面幅ごとの調整
   ============================================================ */
@media (max-width: 1180px) {
	.n-rest-cols, .n-single-grid { grid-template-columns: 1fr; gap: 52px; }
	.n-rest-main .n-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.n-side { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
	.n-content { max-width: none; }
	.n-catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.n-picks { gap: 26px; }
	.n-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
	.n-footer-brand { grid-column: auto; }
}
@media (max-width: 900px) {
	.n-wrap { padding: 0 22px; }
	.n-header-top { gap: 14px; padding-top: 14px; padding-bottom: 13px; }
	.n-brand { flex: none; min-width: 0; }
	.n-brand-logo { height: 64px; }
	/* 入力欄は幅に合わせて縮める。隠すとボタンが空の検索を送ってしまうため。 */
	.n-header-search { flex: 1; min-width: 0; display: flex; justify-content: flex-end; }
	.c-search { flex: 1; min-width: 0; max-width: 280px; }
	.c-search-input { width: 100%; min-width: 0; padding: 9px 15px; font-size: 13.5px; }
	.c-search-btn { width: 38px; height: 38px; }
	.n-nav .n-wrap { padding: 0; }
	.n-nav ul { padding: 0 22px; mask-image: linear-gradient(90deg, #000 90%, transparent); }
	.n-nav a { margin-right: 26px; font-size: 14px; padding: 13px 0; }
	.n-board, .n-rest-main .n-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.c-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.n-catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* 1本目は写真の上に見出しを重ねず、縦に積む */
	.n-lead { grid-template-columns: 1fr; gap: 22px; margin-bottom: 40px; }
	.n-lead-media { aspect-ratio: 3 / 2; }
	.n-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
}
@media (max-width: 620px) {
	body { font-size: 15px; }
	.n-wrap { padding: 0 18px; }
	.n-brand-logo { height: 52px; }
	.n-intro { padding: 24px 0 4px; }
	.n-hero { padding: 24px 0 34px; }
	.n-find { padding: 34px 0 38px; }
	.n-find .n-areas { padding-top: 0; }
	.n-rail, .n-latest { padding: 34px 0; }
	.n-latest { padding-bottom: 54px; }
	.n-side { grid-template-columns: 1fr; gap: 34px; }
	.n-sec { flex-wrap: wrap; gap: 10px 16px; }
	.n-sec-ja { flex-basis: 100%; order: 3; margin: 0; }
	.n-sec-more { padding-bottom: 0; }

	/* 一覧は縦1列のまま写真を大きく見せる（横並びにすると写真が小さくなる） */
	.n-board, .n-rest-main .n-board { grid-template-columns: 1fr; row-gap: 34px; }
	.n-card-media { margin-bottom: 13px; }
	.n-card-title { font-size: 18px; }

	.n-lead-title { font-size: 22px; }
	.n-lead-ex { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	/* 続く4本は写真を右に小さく添えて、件数を稼ぐ */
	.n-picks { grid-template-columns: 1fr; gap: 20px; }
	.n-pick { grid-template-columns: minmax(0, 1fr) 116px; gap: 16px; }
	.n-pick-media { order: 2; aspect-ratio: 1 / 1; margin-bottom: 0; }
	.n-pick-title { font-size: 16px; }

	.n-rail-track { grid-auto-columns: 250px; gap: 20px; }
	.c-related-grid { grid-template-columns: 1fr; gap: 22px; }
	.n-arc-head h1, .n-single-head h1 { font-size: 24px; }
	.n-content { font-size: 16px; }
	.n-content h2 { font-size: 21px; padding-left: 13px; border-left-width: 4px; }
	/* 本文の表は横スクロール（列を潰すと項目と値の対応が読めなくなるため） */
	.n-content table { display: block; overflow-x: auto; white-space: nowrap; }
	/* 幅が狭いと両端そろえは字間が開きすぎるので、左そろえに戻す */
	.n-content p, .c-page-body p { text-align: left; }
	.n-postnav { grid-template-columns: 1fr; }
	.n-totop { margin-left: 0; }
	.n-footer { padding: 40px 0 0; margin-top: 10px; }
	.n-footer-grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 34px; }
	.n-footer-logo img { height: 72px; }
	.n-footer-tagline { font-size: 18px; }
	.n-footer-col ul { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px 18px; }
	.n-footer-bar { flex-wrap: wrap; padding: 16px 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	a, button, input, .n-shot img, .c-related-thumb img { transition: none; }
	a:hover > .n-shot img, article:hover .n-shot img, .c-related-item:hover .c-related-thumb img { transform: none; }
}
