/*
Theme Name: STAYMARKER
Theme URI: https://staymarker.com
Author: hyodorantaro
Description: STAYMARKER（staymarker.com）専用テーマ。写真の上に見出しを重ねるタイル型のレイアウト。
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: staymarker
*/

/* ============================================================
   STAYMARKER ─ 案内板のようなタイル型
   行き先の写真がそのまま見出しの背景になる。写真を大きく置き、
   その上に地名と見出しを重ねて、地図の付箋のように並べる。
   ============================================================ */
:root {
	--ink:     #242831;
	--sub:     #5c6770;
	--line:    #e3e7eb;
	--bg:      #ffffff;
	--card:    #f3f6f8;
	--accent:  #114869;
	--accent2: #114869;
	--footer:  #161d24;
	--wrap:    1200px;
}

*, *::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.9; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.4; }
p { margin: 0 0 1em; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.m-wrap { display: block; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.t-right { text-align: right; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.m-skip { position: absolute; left: -9999px; }
.m-skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--accent); color: #fff; padding: 10px 16px; }

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

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

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

/* ---------- 出典・注意書き・共有 ---------- */
.c-source { margin-top: 26px; padding: 15px 18px; background: var(--card); border-left: 4px solid var(--accent); font-size: 13px; }
.c-source-title { font-size: 11px; font-weight: 900; letter-spacing: .14em; color: var(--sub); margin: 0 0 6px; }
.c-source-note { color: var(--sub); }
.c-disclaimer { margin-top: 24px; padding: 15px 18px; background: var(--card); border-left: 4px solid var(--line); font-size: 12.5px; color: var(--sub); }
.c-disclaimer-title { font-size: 11px; font-weight: 900; letter-spacing: .14em; color: var(--ink); margin: 0 0 6px; }
.c-disclaimer p:last-child { margin-bottom: 0; }
.c-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.c-share-label { font-size: 11px; font-weight: 900; letter-spacing: .16em; color: var(--sub); }
.c-share-btn { font-size: 12.5px; padding: 7px 15px; border: 1px solid var(--line); background: var(--bg); border-radius: 4px; }
.c-share-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

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

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

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

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

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

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

/* ---------- フッター（メディアのコンセプト） ---------- */
.m-footer { background: var(--footer); color: rgba(255,255,255,.72); padding: 36px 0 28px; }
.m-footer a { color: rgba(255,255,255,.78); }
.m-footer a:hover { color: #fff; }
.m-footer-name { font-size: 16px; font-weight: 800; letter-spacing: .02em; color: #fff; margin: 0; }
.m-footer-concept { max-width: 38em; margin: 10px 0 0; font-size: 14px; line-height: 1.85; color: rgba(255,255,255,.78); }
.m-footer-fields { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; padding: 0; }
.m-footer-fields a { font-size: 13.5px; font-weight: 600; }
.m-footer-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.m-footer-copy { font-size: 12px; margin: 0; }
.m-totop { margin-left: auto; font-size: 12px; }

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

/* ---------- おすすめ記事の自動スクロール帯 ---------- */
.c-flow { background: var(--footer); padding: 16px 0 18px; overflow: hidden; }
.c-flow-viewport { overflow: hidden; }
.c-flow-track { display: flex; gap: 14px; width: max-content; animation: m-flow var(--flow-duration, 40s) linear infinite; }
@keyframes m-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.c-flow-viewport:hover .c-flow-track { animation-play-state: paused; }
.c-flow-card { display: block; width: 288px; flex: none;  }
.c-flow-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.c-flow-thumb img { width: 100%; height: 100%; object-fit: cover; }
.c-flow-card-title { display: block; font-size: 14px; font-weight: 800; line-height: 1.5; color: #e6edf4; padding: 9px 2px 0; }
/* 見出しは2行で切る。高さの指定は内側の span に持たせる
   （外側で切るとパディングのぶんだけ3行目が見えてしまうため）。 */
.c-flow-card-titletext { display: block; overflow: hidden; height: 3em; }
.c-flow-card:hover .c-flow-card-title { color: #d5e6ef; }
@media (max-width: 760px) {
	.c-flow { padding: 12px 0 14px; }
	.c-flow-card { width: 214px; }
	.c-flow-card-title { font-size: 13px; }
}


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

/* ---------- 日本語の字組み ----------
   「」（）などの約物は左右に余白を持っているため、そのままだと
   見出しが間延びする。palt で詰めて、行頭・行末のそろいを良くする。 */
h1, h2, h3,
.c-badge, .c-new, .c-chip, .c-widget-title,
.c-rank-title, .c-related-title,
.m-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, .m-pager .page-numbers {
	font-variant-numeric: tabular-nums;
}

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

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

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

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

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

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

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

/* ---------- 部品の形（このサイト固有） ---------- */
.c-badge { border-radius: 0; padding: 4px 11px; letter-spacing: .06em; }
.c-new { border-radius: 0; padding: 4px 9px; }
.c-search { align-items: center; gap: 6px; border-bottom: 2px solid var(--line); padding-bottom: 3px; }
.c-search:focus-within { border-bottom-color: var(--accent); }
.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(--accent); filter: none; }

/* ---------- ヘッダー ---------- */
.m-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.m-header-inner { display: flex; align-items: center; gap: 26px; padding-top: 13px; padding-bottom: 13px; flex-wrap: wrap; }
.m-brand { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; flex: none; min-width: 0; }
.m-brand-logo { height: 42px; width: auto; }
.m-brand-sub { display: block; font-size: 11px; color: var(--sub); letter-spacing: .02em; line-height: 1.4; }
.m-header-search { margin-left: auto; flex: none; }

/* カテゴリは文字だけ。今いる項目は下線で示す */
.m-nav { flex: 1 1 auto; min-width: 0; }
.m-nav ul { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.m-nav ul::-webkit-scrollbar { display: none; }
.m-nav a {
	display: block; white-space: nowrap;
	padding: 6px 12px 4px; font-size: 14.5px; font-weight: 500; color: var(--ink);
	border-bottom: 2px solid transparent;
}
.m-nav a:hover { color: var(--accent); }
.m-nav a.is-on { font-weight: 700; border-bottom-color: var(--accent); }

/* ---------- タイル一覧 ---------- */
.m-latest { padding: 26px 0 60px; }
.m-sec { font-size: 12px; letter-spacing: .24em; font-weight: 900; color: var(--sub); display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.m-sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.m-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.m-tile { position: relative; overflow: hidden; border-radius: 4px; background: var(--card); }
.m-tile-lead { grid-column: span 2; }
.m-tile-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.m-tile-lead .m-tile-media { aspect-ratio: 21 / 9; }
.m-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.m-tile:hover .m-tile-media img { transform: scale(1.04); }
.m-tile-body {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 20px 18px; color: #fff;
	background: linear-gradient(180deg, rgba(8,20,34,0) 0%, rgba(8,20,34,.86) 72%);
}
.m-tile-cat {
	display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: 2px;
	background: var(--c, var(--accent2)); font-size: 10.5px; font-weight: 900; letter-spacing: .08em;
}
.m-tile-title { font-size: 18px; font-weight: 900; line-height: 1.5; margin: 0; }
.m-tile-lead .m-tile-title { font-size: 27px; line-height: 1.4; }
.m-tile-title a::after { content: ""; position: absolute; inset: 0; }
.m-tile-date { display: block; margin-top: 8px; font-size: 11.5px; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; }
.m-tile:hover .m-tile-title { color: #d5e6ef; }

/* ---------- 記事ページ ---------- */
.m-single-wrap { padding: 26px 0 66px; }
.m-single-grid.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 44px; }
.m-single { min-width: 0; }
.m-single-head { margin-bottom: 20px; }
.m-badges { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.m-single-head h1 { font-size: 30px; font-weight: 900; line-height: 1.42; margin: 0 0 12px; }
.m-single-meta { display: flex; flex-wrap: wrap; gap: 15px; font-size: 12px; color: var(--sub); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.m-single-thumb { margin: 0 0 24px; border-radius: 4px; overflow: hidden; }
.m-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; font-size: 13.5px; }
.m-postnav a { display: block; padding: 13px 15px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
.m-postnav a:hover { border-color: var(--accent); color: var(--accent); }
.m-archive { padding: 24px 0 60px; }

@media (max-width: 1020px) {
	.m-single-grid.has-side { grid-template-columns: 1fr; gap: 32px; }
}
/* 縦画面は「上段にロゴと検索／下段にカテゴリ」の2段に畳む。
   3段になると記事が画面に入らなくなるので、段数を増やさない。 */
@media (max-width: 1100px) {
	.m-header-inner { flex-wrap: wrap; gap: 9px 14px; padding-top: 10px; padding-bottom: 0; }
	.m-brand { flex: 1; min-width: 0; }
	.m-brand-sub { display: none; }
	.m-brand-logo { height: 32px; }
	.m-header-search { margin-left: auto; }
	.c-search-input { width: 134px; font-size: 12px; padding: 7px 9px; }
	.c-search-btn { padding: 8px 9px; }
	.m-nav { order: 3; width: 100%; margin: 0 -22px; padding: 0 22px; border-top: 1px solid var(--line); }
	.m-nav a { padding: 10px 12px 8px; font-size: 14px; }
	.m-nav ul { -webkit-overflow-scrolling: touch; }
}
@media (max-width: 700px) {
	.m-tiles { grid-template-columns: 1fr; gap: 12px; }
	.m-tile-lead { grid-column: span 1; }
	.m-tile-lead .m-tile-media { aspect-ratio: 16 / 10; }
	.m-tile-lead .m-tile-title { font-size: 19px; }
	.m-tile-title { font-size: 16px; }
	.m-single-head h1 { font-size: 22px; }
	.m-postnav { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.m-nav { margin: 0 -14px; padding: 0 14px; }
	.m-brand-logo { height: 30px; }
	.c-search-input { width: 130px; }
	.m-tile-media { aspect-ratio: 16 / 10; }
	.m-tile-body { padding: 30px 13px 12px; }
	.m-latest { padding: 16px 0 40px; }
}

/* ---------- STAYMARKER の個性：地図の印 ----------
   サイト名のとおり、記事のタイルを地図に立てた印に見立てる。
   タイルの左上に丸い印を落とし、見出しの左には点線の道を通す。 */
.m-tile::before {
	content: ""; position: absolute; left: 16px; top: 0; z-index: 2; pointer-events: none;
	width: 3px; height: 26px; background: var(--accent2);
}
.m-tile::after {
	content: ""; position: absolute; left: 11px; top: 22px; z-index: 2; pointer-events: none;
	width: 13px; height: 13px; border-radius: 50%;
	background: var(--accent2); box-shadow: 0 0 0 3px rgba(255,255,255,.85);
}
.m-sec { gap: 12px; }
.m-sec::before {
	content: ""; flex: none; width: 34px; height: 0;
	border-top: 3px dotted var(--accent2);
}
.m-tile-body { padding-top: 52px; }
.m-tile:hover .m-tile-media img { transform: scale(1.06); }

@media (max-width: 700px) {
	.m-tile::before { left: 12px; height: 20px; }
	.m-tile::after { left: 7px; top: 17px; width: 11px; height: 11px; }
}

/* ---------- トップ：白地に見出しを置く ----------
   写真の上に文字を重ねない。先頭を大きく、次の数本をカードに、
   それ以降は横並びの一覧にして、上から次の記事へ進める。 */
.m-home { padding: 28px 0 64px; }
.m-home-concept {
	max-width: 38em; margin: 0 0 22px; font-size: 15px; line-height: 1.85; color: var(--ink);
}
.m-home-title {
	font-size: 12px; letter-spacing: .22em; font-weight: 900; color: var(--sub);
	margin: 0 0 16px;
}
.m-home-grid.has-side {
	display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start;
}
.m-home .m-story:hover { transform: none; }

.m-story { position: relative; }
.m-story-media { display: grid; overflow: hidden; background: var(--card); border-radius: 6px; }
.m-story-media > * { grid-area: 1 / 1; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.m-story:hover .m-story-media img { transform: scale(1.04); }
.m-story-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; line-height: 1.4; }
.m-story-title { margin: 0; font-weight: 900; line-height: 1.45; }
.m-story-title a::after { content: ""; position: absolute; inset: 0; }
.m-story:hover .m-story-title { color: var(--accent); }
.m-story-excerpt {
	margin: 8px 0 0; color: var(--sub); line-height: 1.75;
	display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.m-story-date { display: block; margin-top: 8px; font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }

.m-story-lead {
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
	gap: 28px; align-items: center; padding-bottom: 26px; margin-bottom: 22px;
	border-bottom: 1px solid var(--line);
}
.m-story-lead .m-story-media { aspect-ratio: 16 / 10; }
.m-story-lead .m-story-title { font-size: 28px; }
.m-story-lead .m-story-excerpt { font-size: 15px; -webkit-line-clamp: 4; }

.m-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.m-story-card .m-story-media { aspect-ratio: 16 / 10; margin-bottom: 10px; }
.m-story-card .m-story-title { font-size: 16.5px; }
.m-story-card .m-story-excerpt { font-size: 13px; -webkit-line-clamp: 2; }

.m-story-list { margin-top: 8px; border-top: 1px solid var(--line); }
.m-story-row {
	display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px;
	align-items: center; padding: 14px 8px; margin: 0 -8px;
	border-bottom: 1px solid var(--line);
}
.m-story-row .m-story-media { aspect-ratio: 4 / 3; }
.m-story-row .m-story-title { font-size: 16.5px; }
.m-story-row .m-story-excerpt { font-size: 13px; -webkit-line-clamp: 2; }
.m-story-row:hover { background: var(--card); }

.m-home .m-pager { margin-top: 28px; }

@media (max-width: 1100px) {
	.m-story-grid { grid-template-columns: 1fr 1fr; }
	.m-story-grid .m-story-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.m-story-grid .m-story-card:last-child:nth-child(odd) .m-story-media { aspect-ratio: 21 / 9; }
}
@media (max-width: 1020px) {
	.m-home-grid.has-side { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 700px) {
	.m-home { padding: 18px 0 40px; }
	.m-story-lead { grid-template-columns: 1fr; gap: 12px; padding-bottom: 18px; margin-bottom: 16px; }
	.m-story-lead .m-story-title { font-size: 22px; }
	.m-story-lead .m-story-excerpt { font-size: 14px; -webkit-line-clamp: 3; }
	.m-story-grid { grid-template-columns: 1fr; gap: 18px; }
	.m-story-grid .m-story-card:last-child:nth-child(odd) { grid-column: auto; }
	.m-story-grid .m-story-card:last-child:nth-child(odd) .m-story-media { aspect-ratio: 16 / 10; }
	.m-story-row { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; padding: 12px 4px; margin: 0 -4px; }
	.m-story-row .m-story-title { font-size: 15px; }
	.m-story-row .m-story-excerpt { -webkit-line-clamp: 2; }
}
