/* =========================================================
   世界の気になるニュース — main.css
   Layout concept: 科学誌の誌面。深海色の帯で「時間の深度計」を見せ、
   本文は標本ラベルのような明るい紙面で読ませる。
   ========================================================= */

:root {
	/* Color — 標本紙・墨・深海・琥珀 */
	--paper: #F2F3EE;        /* page ground: cool specimen paper */
	--surface: #FAFBF8;      /* raised panels */
	--paper-2: #E8EAE3;      /* quiet bands */
	--ink: #162330;          /* text: navy ink */
	--ink-2: #46525E;        /* secondary text */
	--ink-3: #5B6570;        /* notes, captions */
	--rule: #D2D6CE;         /* hairlines */
	--deep: #0F2231;         /* deep-time band */
	--deep-2: #17324A;
	--on-deep: #EEF0EA;
	--on-deep-2: #A7B5C1;
	--on-deep-3: #8598A9;
	--amber: #D08A24;        /* 琥珀: markers, needle */
	--amber-ink: #8A520C;    /* amber for text on paper */
	--amber-soft: rgba(208, 138, 36, .2);
	--focus: #2F6FD6;
	--shadow: 0 1px 2px rgba(15, 34, 49, .06), 0 10px 30px -12px rgba(15, 34, 49, .22);
	--shadow-lg: 0 2px 4px rgba(15, 34, 49, .08), 0 24px 60px -20px rgba(15, 34, 49, .35);
	--strata-dark: 0;        /* 0 = light strata palette, 1 = dark */

	/* Category hues (information, not decoration) */
	--c-science: #1C6E66;
	--c-ancient: #94570F;
	--c-space: #3E4FA8;
	--c-history: #9A3F2F;
	--c-climate: #4B7A2A;
	--c-deep-dive: #6A4C93;
	--c-default: #46525E;
	/* lighter versions for the deep band */
	--c-science-l: #5FC0B4;
	--c-ancient-l: #E3A24A;
	--c-space-l: #93A2F2;
	--c-history-l: #E5826D;
	--c-climate-l: #9CCB6C;
	--c-deep-dive-l: #B79BE0;

	/* Type */
	--f-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
	--f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "YuGothic", Meiryo, sans-serif;

	/* Scale (≈1.2) */
	--t-xs: .8125rem;   /* 13 */
	--t-s: .9063rem;    /* 14.5 */
	--t-m: 1.0625rem;   /* 17 */
	--t-l: 1.25rem;     /* 20 */
	--t-xl: 1.5rem;     /* 24 */
	--t-2xl: 1.875rem;  /* 30 */
	--t-3xl: 2.375rem;  /* 38 */

	/* Layout */
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 68px;
	--radius: 8px;
	--ease: cubic-bezier(.2, .7, .2, 1);

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #111A23; --surface: #17222D; --paper-2: #18232E; --ink: #E8EBE5; --ink-2: #B5BEC6; --ink-3: #8C97A1; --rule: #283541;
		--deep: #0A1620; --deep-2: #12273A; --on-deep: #EEF0EA; --on-deep-2: #A7B5C1; --on-deep-3: #8598A9;
		--amber: #E09A36; --amber-ink: #E7A957; --amber-soft: rgba(224, 154, 54, .22); --focus: #79A6F2;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
		--c-science: #5FC0B4; --c-ancient: #E3A24A; --c-space: #93A2F2; --c-history: #E5826D; --c-climate: #9CCB6C; --c-deep-dive: #B79BE0; --c-default: #B5BEC6;
		--strata-dark: 1;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--paper: #111A23; --surface: #17222D; --paper-2: #18232E; --ink: #E8EBE5; --ink-2: #B5BEC6; --ink-3: #8C97A1; --rule: #283541;
	--deep: #0A1620; --deep-2: #12273A; --on-deep: #EEF0EA; --on-deep-2: #A7B5C1; --on-deep-3: #8598A9;
	--amber: #E09A36; --amber-ink: #E7A957; --amber-soft: rgba(224, 154, 54, .22); --focus: #79A6F2;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
	--c-science: #5FC0B4; --c-ancient: #E3A24A; --c-space: #93A2F2; --c-history: #E5826D; --c-climate: #9CCB6C; --c-deep-dive: #B79BE0; --c-default: #B5BEC6;
	--strata-dark: 1;
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.8;
	letter-spacing: .02em;
	font-feature-settings: "palt" 0;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; word-break: auto-phrase; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: fixed; left: 12px; top: -60px; z-index: 200;
	background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* category hue routing */
[class*="cat--"] { --cat: var(--c-default); --cat-l: var(--on-deep-2); }
.cat--science { --cat: var(--c-science); --cat-l: var(--c-science-l); }
.cat--ancient-life { --cat: var(--c-ancient); --cat-l: var(--c-ancient-l); }
.cat--space { --cat: var(--c-space); --cat-l: var(--c-space-l); }
.cat--history { --cat: var(--c-history); --cat-l: var(--c-history-l); }
.cat--climate { --cat: var(--c-climate); --cat-l: var(--c-climate-l); }
.cat--deep-dive { --cat: var(--c-deep-dive); --cat-l: var(--c-deep-dive-l); }

.cat-tag {
	display: inline-flex; align-items: center; gap: .45em;
	font-size: var(--t-xs); font-weight: 700; color: var(--cat, var(--ink-2)); text-decoration: none; line-height: 1.4;
}
.cat-dot { width: .62em; height: .62em; border-radius: 50%; background: currentColor; flex: none; }
a.cat-tag:hover { text-decoration: underline; }

.depth-chip {
	display: inline-flex; align-items: center; gap: .4em;
	font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); line-height: 1.4;
	font-variant-numeric: tabular-nums;
}
.depth-chip__icon { width: 12px; height: 12px; color: var(--amber); flex: none; }

/* ---------- Buttons & links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: 0 1.4em; border-radius: 999px;
	background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn svg { width: 1.2em; height: 1.2em; }
.btn--yt { background: #C4302B; color: #fff; }
.btn--yt svg { background: #fff; color: #C4302B; border-radius: 4px; width: 1.35em; height: 1.05em; padding: 1px; }
.text-link {
	display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--amber-ink);
	text-decoration: underline; text-decoration-color: var(--amber-soft); text-decoration-thickness: 2px;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	color: var(--ink);
	transition: background .3s, color .3s, box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--rule); }
.home:not(.paged) .site-header:not(.is-scrolled) { background: var(--deep); color: var(--on-deep); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.site-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.site-logo__name { font-family: var(--f-display); font-weight: 800; font-size: 1.18rem; letter-spacing: .04em; line-height: 1.2; }
.site-nav { flex: 1; min-width: 0; }
.nav-list { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
.nav-list a {
	display: block; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: var(--t-s);
	color: inherit; opacity: .82; transition: opacity .2s, background .2s;
}
.nav-list a:hover, .nav-list a[aria-current], .nav-list .current-menu-item > a { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.site-header__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
	width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
	transition: background .2s;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn svg { width: 22px; height: 22px; }
.yt-link {
	display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; min-height: 40px; border-radius: 999px;
	text-decoration: none; font-weight: 700; font-size: var(--t-s);
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 30%, transparent);
	transition: box-shadow .2s;
}
.yt-link:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.yt-link svg { width: 20px; height: 20px; color: #E0403A; }
.menu-btn { display: none; }

.search-panel { border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); padding-block: 16px; }
.search-form { display: flex; gap: 8px; max-width: 640px; }
.search-form__field {
	flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--rule);
	background: var(--surface); color: var(--ink); font: inherit; font-weight: 500;
}
.search-form__field::placeholder { color: var(--ink-3); }
.search-form__btn { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; }

.menu-panel {
	position: fixed; inset: 0; z-index: 60; background: var(--deep); color: var(--on-deep);
	padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); overflow-y: auto;
}
.menu-panel__inner { display: grid; gap: 28px; padding-block: 24px 48px; }
.menu-panel__title { font-size: var(--t-s); color: var(--on-deep-2); font-weight: 700; }
.menu-list { list-style: none; display: grid; }
.menu-list a {
	display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1);
	font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; text-decoration: none;
}
.menu-list a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cat-l, var(--amber)); }
.menu-panel .search-form__field { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: var(--on-deep); }
.menu-panel .search-form__btn { background: var(--amber); color: #1a1205; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--deep); color: var(--on-deep); box-shadow: none; z-index: 70; }

@media (max-width: 1080px) {
	.site-nav { display: none; }
	.menu-btn { display: grid; }
}
@media (max-width: 520px) {
	.yt-link span { display: none; }
	.yt-link { padding: 0 10px; box-shadow: none; }
	.site-logo__name { font-size: 1.02rem; }
	.logo-mark { width: 30px; height: 30px; }
	.site-header__inner { gap: 12px; }
}

/* ---------- Section scaffolding ---------- */
.site-main { display: block; }
.section-head { display: grid; gap: 10px; margin-bottom: clamp(24px, 3vw, 36px); max-width: 42em; }
.section-head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; max-width: none; flex-wrap: wrap; }
.section-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.35; letter-spacing: .03em; }
.section-lead { color: var(--ink-2); font-size: var(--t-m); line-height: 1.9; max-width: 38em; }

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate;
	background: var(--deep); color: var(--on-deep);
	padding-block: clamp(32px, 5vw, 64px) 0;
	overflow: hidden;
}
.hero::before { /* survey-plate grid */
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(167, 181, 193, .07) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(167, 181, 193, .07) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(120% 80% at 70% 30%, #000 30%, transparent 85%);
	-webkit-mask-image: radial-gradient(120% 80% at 70% 30%, #000 30%, transparent 85%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__intro { display: grid; gap: 22px; align-content: center; }
.hero__title {
	font-family: var(--f-display); font-weight: 800;
	font-size: clamp(2.3rem, 4.6vw, 4.1rem); line-height: 1.28; letter-spacing: .02em;
}
.hero__lead { color: var(--on-deep-2); font-size: var(--t-m); line-height: 2; max-width: 30em; }
.hero__jump {
	justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none;
	padding: 12px 20px 12px 22px; border-radius: 999px; background: var(--amber); color: #1B1205;
	transition: transform .2s var(--ease), box-shadow .2s;
}
.hero__jump:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(208, 138, 36, .6); }
.hero__jump svg { width: 18px; height: 18px; }

.hero-feature { display: grid; gap: 18px; position: relative; }
.hero-feature__media { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--deep-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.hero-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero-feature:hover .hero-feature__media img { transform: scale(1.025); }
.hero-feature__body { display: grid; gap: 10px; }
.hero-feature__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: var(--t-s); font-weight: 700; color: var(--on-deep-2); }
.hero-feature__depth { color: var(--amber); }
.hero-feature__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.5; }
.hero-feature__title a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease); }
.hero-feature__title a:hover { background-size: 100% 1.5px; }
.hero-feature__title a::after { content: ""; position: absolute; inset: 0; }
.hero-feature__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: var(--t-xs); color: var(--on-deep-2); }
.hero-feature .cat-tag { color: var(--cat-l); position: relative; z-index: 1; }

.hero__ruler { margin-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(20px, 3vw, 32px); }
.hero__ruler-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-weight: 700; font-size: var(--t-s); margin-bottom: 8px; }
.hero__ruler-label span { font-weight: 500; font-size: var(--t-xs); color: var(--on-deep-3); }
.only-touch { display: none; }
@media (hover: none) { .only-hover { display: none; } .only-touch { display: inline; } }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__title { font-size: clamp(2.1rem, 9vw, 3rem); }
}

/* ---------- Ruler (time-depth gauge) ---------- */
.ruler {
	--r-line: rgba(238, 240, 234, .55);
	--r-muted: var(--on-deep-3);
	--r-text: var(--on-deep-2);
	--r-future: rgba(208, 138, 36, .12);
	--lane-h: 15px;
	position: relative;
	color: var(--r-text);
	touch-action: pan-y;
}
.ruler__track {
	position: relative;
	height: calc(var(--lanes, 1) * var(--lane-h) + 64px);
	margin-inline: 8px;
}
.ruler__line {
	position: absolute; left: 0; right: 0; bottom: 30px; height: 2px; background: var(--r-line); border-radius: 2px;
	transform-origin: left center;
}
.ruler__future {
	position: absolute; left: -8px; bottom: 30px; width: calc(var(--x) + 8px); height: calc(var(--lanes, 1) * var(--lane-h) + 30px);
	background: linear-gradient(to top, var(--r-future), transparent);
	border-radius: 6px 6px 0 0;
}
.ruler__future span { position: absolute; left: 8px; top: 2px; font-size: 11px; font-weight: 700; color: var(--amber); letter-spacing: .08em; }
.ruler__tick, .ruler__minor { position: absolute; left: var(--x); bottom: 22px; width: 0; }
.ruler__tick::before { content: ""; position: absolute; left: -1px; bottom: 0; width: 2px; height: 18px; background: var(--r-line); border-radius: 2px; }
.ruler__minor::before { content: ""; position: absolute; left: -.5px; bottom: 4px; width: 1px; height: 10px; background: var(--r-muted); }
.ruler__tick span {
	position: absolute; top: 6px; left: 0; transform: translateX(-50%); white-space: nowrap;
	font-size: var(--t-xs); font-weight: 700; color: var(--r-text); font-variant-numeric: tabular-nums;
}
.ruler__tick.is-first span { transform: translateX(-30%); }
.ruler__tick.is-last span { transform: translateX(-85%); }
.ruler__mark {
	position: absolute; left: var(--x); bottom: calc(40px + var(--lane) * var(--lane-h));
	width: 28px; height: 28px; margin-left: -14px; margin-bottom: -8px;
	display: grid; place-items: center; text-decoration: none; border-radius: 50%; z-index: 2;
}
.ruler__dot {
	width: 12px; height: 12px; border-radius: 50%; background: var(--cat-l, var(--amber));
	box-shadow: 0 0 0 2px var(--deep);
	transition: transform .25s var(--ease), box-shadow .25s;
}
.ruler__mark:hover .ruler__dot, .ruler__mark:focus-visible .ruler__dot, .ruler__mark.is-active .ruler__dot { transform: scale(1.6); box-shadow: 0 0 0 2px var(--deep), 0 0 0 5px color-mix(in srgb, var(--cat-l, var(--amber)) 35%, transparent); }
.ruler__mark.is-current .ruler__dot { width: 16px; height: 16px; background: var(--amber); box-shadow: 0 0 0 3px var(--deep), 0 0 0 6px var(--amber-soft); }
.ruler--compact .ruler__here.is-stacked { display: none; } /* 記事ページでは見出しに時代が出ているので、点が積まれている時はラベルを省く */
.ruler__more {
	position: absolute; left: var(--x); bottom: calc(40px + var(--lane) * var(--lane-h)); transform: translate(-50%, 5px); z-index: 1;
	font-size: 11px; font-weight: 800; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums;
	color: var(--r-text); padding: 2px 6px; border-radius: 999px; background: color-mix(in srgb, var(--r-text) 16%, transparent);
	pointer-events: none;
}
.ruler__here {
	position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: calc(4px + var(--above, 0) * var(--lane-h)); white-space: nowrap;
	font-size: var(--t-xs); font-weight: 700; color: var(--amber); background: var(--deep); padding: 1px 6px; border-radius: 4px;
}
.ruler__cursor {
	position: absolute; top: 0; bottom: 30px; left: 0; width: 1px; background: color-mix(in srgb, var(--r-text) 60%, transparent);
	opacity: 0; transition: opacity .2s; pointer-events: none; transform: translateX(var(--cx, 0px));
}
.ruler.is-hovering .ruler__cursor { opacity: 1; }
.ruler__cursor-label {
	position: absolute; top: -4px; left: 6px; white-space: nowrap; font-size: 11px; font-weight: 700;
	color: var(--r-text); font-variant-numeric: tabular-nums;
}
.ruler__card {
	position: absolute; z-index: 5; bottom: calc(100% - 10px); left: 0; width: 300px; max-width: calc(100vw - 32px);
	display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center;
	padding: 10px; border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
	pointer-events: none; transform: translate(var(--card-x, 0px), 6px); opacity: 0;
	transition: opacity .18s, transform .25s var(--ease);
}
.ruler__card.is-shown { opacity: 1; transform: translate(var(--card-x, 0px), 0); }
.ruler__card-img { aspect-ratio: 16 / 9; border-radius: 6px; background: var(--paper-2) center / cover no-repeat; }
.ruler__card-body { display: grid; gap: 4px; min-width: 0; }
.ruler__card-depth { font-size: var(--t-xs); font-weight: 700; color: var(--amber-ink); }
.ruler__card-title { font-family: var(--f-display); font-weight: 800; font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* light context (single article header, archive head) */
.ruler--compact { --lane-h: 13px; }
.ruler--compact .ruler__track { height: calc(var(--lanes, 1) * var(--lane-h) + 58px); }
.ruler--compact .ruler__tick span { font-size: 11px; }
@media (max-width: 600px) {
	.ruler__tick--1 span, .ruler__tick--3 span, .ruler__future span { display: none; }
	.ruler__track { margin-inline: 4px; }
}
.ruler--compact .ruler__tick--1 span, .ruler--compact .ruler__tick--3 span, .ruler--compact .ruler__future span { display: none; }
.archive-head__ruler .ruler {
	--r-line: color-mix(in srgb, var(--ink) 55%, transparent); --r-muted: var(--ink-3); --r-text: var(--ink-2); --r-future: var(--amber-soft);
}
.archive-head__ruler .ruler__dot { background: var(--cat, var(--amber)); box-shadow: 0 0 0 2px var(--paper); }

/* entrance: the line draws out from 現在, then dots land in order of depth */
@media (prefers-reduced-motion: no-preference) {
	.js .hero .ruler__line { animation: ruler-draw 1.4s var(--ease) .15s both; }
	.js .hero .ruler__mark { animation: mark-in .5s var(--ease) both; animation-delay: calc(.25s + var(--x) * 12ms); }
	.js .hero .ruler__tick span { animation: fade-in .6s ease both; animation-delay: .6s; }
}
/* cross-document view transitions: the eyecatch carries over from card to article */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
	::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
}
@keyframes ruler-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mark-in { from { opacity: 0; transform: translateY(-10px) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Cards ---------- */
.card { position: relative; display: grid; gap: 14px; align-content: start; min-width: 0; }
.card__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }
.card__noimg { display: grid; place-items: center; height: 100%; color: var(--ink-3); }
.card__noimg .logo-mark { width: 30%; height: auto; }
.badge-video {
	position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px;
	padding: 3px 10px 3px 7px; border-radius: 999px; background: rgba(15, 34, 49, .78); color: #fff;
	font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.badge-video svg { width: 14px; height: 14px; }
.card__body { display: grid; gap: 8px; min-width: 0; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.card__title { font-family: var(--f-display); font-weight: 800; font-size: 1.12rem; line-height: 1.6; letter-spacing: .02em; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a { text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: var(--amber); }
.card__title a:focus-visible { outline: none; }
.card:has(.card__title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: 10px; }
.card__excerpt { color: var(--ink-2); font-size: var(--t-s); line-height: 1.9; }
.card__foot { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--t-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card--md .card__title { font-size: clamp(1.25rem, 1.8vw, 1.45rem); line-height: 1.55; }
.card--row { grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: start; }
.card--row .card__media { border-radius: 6px; }
.card--row .card__title { font-size: 1rem; }

/* ---------- Latest ---------- */
.latest { padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 72px); }
.latest__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px); }
.latest__grid .card--md { grid-column: span 6; }
.latest__grid .card--sm { grid-column: span 4; }
@media (max-width: 900px) {
	.latest__grid .card--md { grid-column: 1 / -1; }
	.latest__grid .card--sm { grid-column: span 6; }
}
@media (max-width: 600px) {
	.latest__grid .card--sm { grid-column: 1 / -1; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; }
	.latest__grid .card--sm .card__title { font-size: 1rem; line-height: 1.55; }
	.latest__grid .card--sm .badge-video { display: none; }
	.latest__grid .card--sm .card__media { border-radius: 6px; }
}

/* ---------- Descent (stratigraphic column) ---------- */
.descent { padding-top: clamp(56px, 7vw, 96px); background: var(--surface); overflow-x: clip; }
.descent .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.descent__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.gauge {
	position: sticky; top: calc(var(--header-h) + 24px); z-index: 3; display: grid; gap: 20px;
	padding: 22px 22px 28px; border-radius: 16px; background: var(--deep); color: var(--on-deep); box-shadow: var(--shadow-lg);
}
.gauge__readout { display: grid; gap: 4px; min-height: 4.6em; align-content: start; }
.gauge__label { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1.35; font-variant-numeric: tabular-nums; color: var(--on-deep); }
.gauge__era { font-size: var(--t-s); font-weight: 700; color: var(--amber); }
.gauge__scale { position: relative; height: min(50vh, 420px); margin-left: 10px; }
.gauge__scale::before { /* the same strata as the column, compressed into the instrument */
	content: ""; position: absolute; left: -4px; top: 0; bottom: 0; width: 6px; border-radius: 3px;
	background: linear-gradient(to bottom, #FAFBF8 0%, #FAFBF8 6%, #EFEADF 34.7%, #E6DCC7 54.8%, #D6C3A0 66.9%, #5E4738 71%, #45362F 80%, #2F2B2D 91%, #2C4A66 100%);
	opacity: .9;
}
.gauge__future { position: absolute; left: -2px; top: 0; height: var(--y); width: 56px; background: linear-gradient(to right, var(--amber-soft), transparent); }
.gauge__tick { position: absolute; top: var(--y); left: 4px; width: 10px; height: 2px; background: var(--on-deep-3); }
.gauge__tick span { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: var(--t-xs); font-weight: 700; color: var(--on-deep-2); }
.gauge__dot { position: absolute; top: var(--y); left: -6px; z-index: 1; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--cat-l); box-shadow: 0 0 0 2px var(--deep); }
.gauge__needle {
	position: absolute; z-index: 2; top: var(--y); left: -10px; width: 34px; height: 3px; margin-top: -1.5px; border-radius: 3px;
	background: var(--amber);
	transition: top .7s var(--ease);
}
.gauge__needle::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -2px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }

.descent__list { list-style: none; display: grid; }
.drow {
	--band: color-mix(in srgb, var(--band-l, var(--surface)), var(--band-d, var(--surface)) calc(var(--strata-dark) * 100%));
	position: relative; z-index: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr) 200px; gap: 24px; align-items: center;
	padding-block: 24px;
}
.drow::before { /* full-bleed stratum */
	content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -100vw; right: -100vw; background: var(--band);
	box-shadow: inset 0 1px 0 color-mix(in srgb, currentColor 10%, transparent);
}
.drow { --ink-3: #3F4851; }
.drow.is-deep { color: var(--on-deep); --on-deep-2: #C9D2DA; }
.drow.is-space::before { /* the deepest strata open onto starlight */
	background-image:
		radial-gradient(1px 1px at 12% 30%, rgba(255,255,255,.55) 50%, transparent 51%),
		radial-gradient(1px 1px at 37% 72%, rgba(255,255,255,.4) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 58% 18%, rgba(255,255,255,.5) 50%, transparent 51%),
		radial-gradient(1px 1px at 76% 64%, rgba(255,255,255,.35) 50%, transparent 51%),
		radial-gradient(1px 1px at 91% 40%, rgba(255,255,255,.45) 50%, transparent 51%);
	background-size: 420px 100%;
	background-color: var(--band);
}
.drow__depth { display: grid; gap: 2px; }
.drow__years { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; line-height: 1.4; word-break: keep-all; font-variant-numeric: tabular-nums; transition: color .3s; }
.drow__era { font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); }
.drow.is-deep .drow__era { color: var(--on-deep-2); }
.drow.is-deep .cat-tag { color: var(--cat-l); }
.drow__main { display: grid; gap: 6px; min-width: 0; }
.drow__title { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; line-height: 1.6; }
.drow__title a { text-decoration: none; }
.drow__title a::after { content: ""; position: absolute; inset: 0; }
.drow--post:hover .drow__title .t-main { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 1.5px; }
.drow__img { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: color-mix(in oklab, var(--band), #888 18%); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .45); }
.drow__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.drow--post:hover .drow__img img { transform: scale(1.04); }
.drow.is-active .drow__years { color: var(--amber-ink); }
.drow.is-deep.is-active .drow__years { color: var(--amber); }
.drow--mark { grid-template-columns: 180px minmax(0, 1fr); padding-block: 13px; color: var(--ink-3); }
.drow--mark.is-deep { color: var(--on-deep-2); }
.drow--mark .drow__years { font-size: var(--t-s); color: inherit; }
.drow__mark-text { display: flex; align-items: center; gap: 10px; font-size: var(--t-s); font-weight: 700; }
.drow__mark-text::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: currentColor; opacity: .7; flex: none; }
.drow--more[hidden] { display: none; }
.drow--toggle { grid-template-columns: 1fr; padding-block: 4px 22px; }
.drow__toggle {
	justify-self: start; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	font: inherit; font-weight: 700; font-size: var(--t-s); color: var(--ink);
	padding: 10px 18px; border: 0; border-radius: 999px;
	background: color-mix(in srgb, var(--band), var(--ink) 9%); box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .45);
	transition: background .2s, transform .2s;
}
.drow__toggle:hover { background: color-mix(in srgb, var(--band), var(--ink) 15%); transform: translateY(-1px); }
.drow__toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.drow__toggle svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.drow__toggle.is-open svg { transform: rotate(180deg); }
.drow--toggle.is-deep .drow__toggle { color: var(--on-deep); background: color-mix(in srgb, var(--band), var(--on-deep) 14%); }
.drow--toggle.is-deep .drow__toggle:hover { background: color-mix(in srgb, var(--band), var(--on-deep) 22%); }
.drow--end { grid-template-columns: minmax(0, 1fr) auto; padding-block: 56px clamp(56px, 7vw, 96px); }
.drow__end-text { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--on-deep); }
.drow__end-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--amber); text-decoration: none; padding: 10px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--amber); }
.drow__end-link:hover { background: var(--amber); color: #1B1205; }
.drow__end-link svg { width: 18px; height: 18px; }

/* title split: 主題｜副題 */
.t-main, .t-sub { display: block; }
.t-sub { font-size: .78em; font-weight: 600; opacity: .78; margin-top: .25em; line-height: 1.6; }

@media (max-width: 1080px) {
	.drow { grid-template-columns: 150px minmax(0, 1fr) 150px; gap: 18px; }
	.drow--mark { grid-template-columns: 150px minmax(0, 1fr); }
	.drow--end { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.descent__grid { grid-template-columns: 1fr; gap: 0; }
	.gauge {
		top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); grid-template-columns: auto 1fr; align-items: center; gap: 16px;
		margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter) 12px; border-radius: 0;
	}
	.gauge__readout { min-height: 0; min-width: 8.6em; gap: 0; }
	.gauge__label { font-size: 1.05rem; }
	.gauge__era { font-size: 11px; }
	.gauge__scale { height: 22px; margin: 0 8px; }
	.gauge__scale::before { left: 0; right: 0; top: auto; bottom: -3px; width: auto; height: 5px; background: linear-gradient(to right, #FAFBF8 0%, #FAFBF8 6%, #EFEADF 34.7%, #E6DCC7 54.8%, #D6C3A0 66.9%, #5E4738 71%, #45362F 80%, #2F2B2D 91%, #2C4A66 100%); }
	.gauge__future { top: auto; bottom: -2px; left: 0; height: 22px; width: var(--y); background: linear-gradient(to top, var(--amber-soft), transparent); }
	.gauge__tick { top: auto; bottom: -2px; left: var(--y); width: 2px; height: 10px; }
	.gauge__tick span { display: none; }
	.gauge__dot { top: auto; bottom: 4px; left: var(--y); margin: 0 0 0 -4px; width: 8px; height: 8px; }
	.gauge__needle { top: auto; bottom: -8px; left: var(--y); width: 3px; height: 32px; margin: 0 0 0 -1.5px; background: var(--amber); transition: left .7s var(--ease); }
	.gauge__needle::before { left: 50%; top: 0; margin: -6px 0 0 -6px; width: 12px; height: 12px; }
	.drow { grid-template-columns: minmax(0, 1fr) 112px; grid-template-areas: "depth img" "main img"; gap: 6px 16px; padding-block: 18px; }
	.drow__depth { grid-area: depth; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
	.drow__main { grid-area: main; }
	.drow__img { grid-area: img; align-self: center; }
	.drow__years { font-size: 1.05rem; }
	.drow__title { font-size: 1rem; line-height: 1.55; }
	.drow--mark { grid-template-columns: auto 1fr; grid-template-areas: none; gap: 12px; }
	.drow--end { grid-template-columns: 1fr; grid-template-areas: none; gap: 16px; justify-items: start; padding-block: 40px 56px; }
	.drow--toggle { grid-template-columns: 1fr; grid-template-areas: none; padding-block: 2px 18px; }
	.drow__toggle { justify-self: stretch; justify-content: center; }
}

/* ---------- Fields ---------- */
.fields { padding-block: clamp(56px, 7vw, 96px); }
.fields__grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.field { display: grid; align-content: start; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.field__head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 22px 16px; text-decoration: none;
	background: color-mix(in srgb, var(--cat) 9%, var(--surface));
}
.field__name { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; }
.field__name .cat-dot { color: var(--cat); width: .5em; height: .5em; }
.field__count { font-size: var(--t-s); font-weight: 700; color: var(--cat); font-variant-numeric: tabular-nums; }
.field__head:hover .field__name { text-decoration: underline; text-decoration-color: var(--cat); text-decoration-thickness: 2px; }
.field__list { list-style: none; padding: 6px 22px 16px; }
.field__list li + li { border-top: 1px solid var(--rule); }
.field__list a { display: block; padding: 12px 0; font-size: var(--t-s); font-weight: 700; line-height: 1.7; text-decoration: none; }
.field__list a:hover { color: var(--amber-ink); text-decoration: underline; }

@media (max-width: 600px) {
	.fields__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.field__list { display: none; }
	.field__head { padding: 16px; flex-direction: column; gap: 2px; align-items: flex-start; }
	.field__name { font-size: 1.15rem; }
}

/* ---------- Channel ---------- */
.channel { background: var(--paper-2); padding-block: clamp(56px, 7vw, 88px); }
.channel__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.channel__intro { display: grid; gap: 16px; justify-items: start; }
.channel__videos { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.vthumb a { display: grid; gap: 10px; text-decoration: none; }
.vthumb__img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--deep-2); box-shadow: var(--shadow); }
.vthumb__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vthumb a:hover img { transform: scale(1.04); }
.vthumb__play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 34, 49, .72); color: #fff; }
.vthumb__play svg { width: 22px; height: 22px; margin-left: 3px; }
.vthumb__title { font-size: var(--t-s); font-weight: 700; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vthumb a:hover .vthumb__title { text-decoration: underline; }
@media (max-width: 900px) {
	.channel__grid { grid-template-columns: 1fr; }
	.channel__videos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
	.vthumb { scroll-snap-align: start; }
}

/* ---------- Policy ---------- */
.policy { padding-block: clamp(56px, 7vw, 96px); }
.policy__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); }
.policy__head { display: grid; gap: 14px; align-content: start; }
.policy__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; margin: 0; }
.policy__list > div { display: grid; gap: 8px; align-content: start; }
.policy__list dt { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; line-height: 1.5; }
.policy__list dd { margin: 0; color: var(--ink-2); line-height: 1.9; }
@media (max-width: 900px) {
	.policy__grid { grid-template-columns: 1fr; }
	.policy__list { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep); padding-block: clamp(48px, 6vw, 80px) calc(28px + env(safe-area-inset-bottom, 0px)); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px; }
.site-footer__brand { display: grid; gap: 18px; justify-items: start; }
.site-footer__brand p { color: var(--on-deep-2); max-width: 28em; line-height: 1.9; }
.site-footer__head { font-size: var(--t-xs); font-weight: 700; color: var(--on-deep-3); margin-bottom: 10px; }
.footer-list { list-style: none; display: grid; gap: 2px; }
.footer-list a { display: inline-block; padding: 6px 0; text-decoration: none; font-weight: 700; color: var(--on-deep); }
.footer-list a:hover { text-decoration: underline; }
.site-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--t-xs); color: var(--on-deep-3); }
.to-top { color: var(--on-deep-2); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- Archive ---------- */
.archive-head { padding-block: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 44px); background: var(--surface); box-shadow: 0 1px 0 var(--rule); }
.archive-head .wrap { display: grid; gap: 14px; }
.archive-head__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.3; }
.archive.cat--science .archive-head__title, .archive[class*="cat--"] .archive-head__title { color: var(--cat); }
.archive-head__lead { color: var(--ink-2); max-width: 40em; }
.archive-head__ruler { margin-top: 18px; max-width: 760px; }
.archive-head__ruler .hero__ruler-label { color: var(--ink-2); }
.archive__body { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.archive__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
@media (max-width: 900px) { .archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.archive__grid { grid-template-columns: 1fr; gap: 24px; }
	.archive__grid .card { grid-template-columns: 128px minmax(0, 1fr); gap: 14px; }
	.archive__grid .card__title { font-size: 1rem; }
	.archive__grid .badge-video { display: none; }
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--t-xs); color: var(--ink-3); }
.breadcrumb li + li::before { content: "/"; margin: 0 .7em; opacity: .6; }
.breadcrumb a { text-decoration: none; font-weight: 700; color: var(--ink-2); }
.breadcrumb a:hover { text-decoration: underline; }
.pagination { margin-top: 56px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 700; background: var(--surface); box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.page-numbers.current { background: var(--ink); color: var(--paper); box-shadow: none; }
.page-numbers.dots { background: none; box-shadow: none; }
.empty .search-form { width: 100%; }
.empty { display: grid; gap: 18px; justify-items: start; padding: 40px; background: var(--surface); border-radius: 12px; }
.empty__title { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--paper-2); text-decoration: none; font-weight: 700; font-size: var(--t-s); }

/* ---------- Article ---------- */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 80; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(var(--p, 0)); }

.entry-head { padding-block: clamp(20px, 3vw, 32px) clamp(28px, 4vw, 48px); }
.entry-head .breadcrumb { margin-bottom: clamp(20px, 3vw, 32px); }
.entry-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); align-items: end; }
.entry-head__main { display: grid; gap: 18px; }
.entry-head__cats .cat-tag { font-size: var(--t-s); }
.entry-head__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.45; letter-spacing: .02em; }
.entry-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--t-s); font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.entry-facts li { display: inline-flex; align-items: center; gap: 8px; }
.entry-facts li > span { font-size: var(--t-xs); color: var(--ink-3); font-weight: 700; }
.entry-facts__video { display: inline-flex; align-items: center; gap: 6px; color: #B8312C; text-decoration: none; }
.entry-facts__video svg { width: 16px; height: 16px; }
.entry-facts__video:hover { text-decoration: underline; }
.coord {
	display: grid; gap: 4px; padding: 20px 20px 10px; border-radius: 14px;
	background: var(--deep); color: var(--on-deep); box-shadow: var(--shadow-lg);
}
.coord__label { font-size: var(--t-xs); font-weight: 700; color: var(--on-deep-3); }
.coord__value { word-break: keep-all; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.05rem); line-height: 1.3; color: var(--amber); font-variant-numeric: tabular-nums; }
.coord__era { font-size: var(--t-s); font-weight: 700; color: var(--on-deep-2); margin-bottom: 8px; }
.coord .ruler__track { margin-inline: 4px; }
@media (max-width: 900px) {
	.entry-head__grid { grid-template-columns: 1fr; }
}

.entry-eyecatch { margin: 0 auto; max-width: calc(940px + var(--gutter) * 2); }
.entry-eyecatch img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }

.entry-layout { display: grid; grid-template-columns: 220px minmax(0, 680px); gap: clamp(40px, 6vw, 88px); justify-content: center; padding-block: clamp(32px, 5vw, 64px); }
.entry-layout--single { grid-template-columns: minmax(0, 720px); }
.entry-aside { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; display: grid; gap: 28px; }
.toc__title { font-weight: 700; font-size: var(--t-s); color: var(--ink-2); cursor: pointer; list-style: none; padding-bottom: 10px; }
.toc__title::-webkit-details-marker { display: none; }
.toc__list { list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc__list li { counter-increment: toc; }
.toc__list a {
	display: grid; grid-template-columns: 1.8em 1fr; padding: 7px 0; font-size: var(--t-s); line-height: 1.6; text-decoration: none; color: var(--ink-3); font-weight: 700;
	transition: color .2s;
}
.toc__list a::before { content: counter(toc); font-variant-numeric: tabular-nums; color: var(--ink-3); opacity: .7; }
.toc__list a:hover { color: var(--ink); }
.toc__list a.is-active { color: var(--ink); }
.toc__list a.is-active::before { color: var(--amber); opacity: 1; }
.share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.share__label { font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); margin-right: 6px; }
.share__btn {
	position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow); text-decoration: none; transition: color .2s, transform .2s var(--ease);
}
.share__btn:hover { color: var(--ink); transform: translateY(-2px); }
.share__btn svg { width: 18px; height: 18px; }
.share__toast { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 700; background: var(--ink); color: var(--paper); padding: 3px 8px; border-radius: 6px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.share__toast.is-shown { opacity: 1; }

@media (max-width: 1080px) {
	.entry-layout { grid-template-columns: minmax(0, 720px); }
	.entry-aside { position: static; order: -1; }
	.entry-aside .share { display: none; }
	.toc { background: var(--surface); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow); }
	.toc__title { padding-bottom: 0; display: flex; justify-content: space-between; align-items: center; }
	.toc__title::after { content: "＋"; font-weight: 700; }
	.toc[open] .toc__title { padding-bottom: 8px; }
	.toc[open] .toc__title::after { content: "－"; }
}

/* ---------- Prose ---------- */
.prose { font-size: var(--t-m); line-height: 2.05; letter-spacing: .03em; min-width: 0; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
	font-family: var(--f-display); font-weight: 800; font-size: clamp(1.45rem, 2.4vw, 1.75rem); line-height: 1.55; letter-spacing: .03em;
	margin-top: 3em;
}
.prose h2 + * { margin-top: 1.1em; }
.prose h3 { font-weight: 700; font-size: var(--t-l); line-height: 1.6; margin-top: 2.3em; }
.prose h3 + * { margin-top: .8em; }
.prose h4 { font-weight: 700; font-size: var(--t-m); margin-top: 2em; }
.prose a { color: var(--amber-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-decoration-thickness: 1.5px; font-weight: 700; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 700; background: linear-gradient(transparent 62%, var(--amber-soft) 62%); padding-inline: .1em; }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: .5em; }
.prose li::marker { color: var(--amber-ink); font-weight: 700; }
.prose ul.wp-block-list, .prose ol.wp-block-list { padding: 22px 24px 22px 2.6em; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); }
.prose blockquote {
	position: relative; margin-inline: 0; padding: 1.4em 1.6em 1.4em 3.6em; border-radius: 12px; background: var(--paper-2);
	font-family: var(--f-display); font-weight: 600; font-size: 1.12em; line-height: 1.95;
}
.prose blockquote::before { content: "“"; position: absolute; left: .45em; top: .05em; font-size: 3.4em; line-height: 1; color: var(--amber); font-family: var(--f-display); }
.prose blockquote p + p { margin-top: .8em; }
.prose blockquote cite { display: block; margin-top: .8em; font-family: var(--f-body); font-size: var(--t-xs); font-style: normal; color: var(--ink-3); }
.prose hr, .prose .wp-block-separator { border: 0; height: 2px; width: 72px; margin: 3em auto; background: var(--rule); border-radius: 2px; opacity: 1; }
.prose figure { margin-inline: 0; }
.prose img { border-radius: 10px; }
.prose figcaption { margin-top: .6em; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.7; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.prose .wp-block-table { overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose th { font-weight: 700; background: var(--paper-2); }
.prose code { font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }
.prose .wp-block-embed__wrapper iframe, .prose iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; }

/* YouTube facade */
.video { position: relative; margin-block: 2em; }
.prose > .video:first-child { margin-top: 0; }
.video__play, .video iframe {
	position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 12px; overflow: hidden;
	background: var(--deep); cursor: pointer; box-shadow: var(--shadow-lg);
}
.video__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .7s var(--ease); }
.video__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 22, 32, .78) 0%, rgba(10, 22, 32, .1) 55%, transparent); }
.video__play:hover img { transform: scale(1.03); }
.video__btn {
	position: absolute; z-index: 1; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
	display: grid; place-items: center; background: #D5332D; color: #fff; box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .5);
	transition: transform .25s var(--ease);
}
.video__btn svg { width: 32px; height: 32px; margin-left: 4px; }
.video__play:hover .video__btn { transform: scale(1.08); }
.video__cap { position: absolute; z-index: 1; left: 20px; bottom: 16px; display: grid; gap: 2px; color: #fff; text-align: left; font-weight: 700; font-size: var(--t-m); line-height: 1.4; }
.video__cap span { font-size: var(--t-xs); font-weight: 500; opacity: .85; }

/* Affiliate boxes (.aff-box is used by existing articles) */
.aff-box {
	position: relative; margin-block: 2em; padding: 22px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
	font-size: var(--t-s); line-height: 1.85;
}
.aff-box + .aff-box { margin-top: 1.2em; }
.aff-box-label {
	position: absolute; top: 14px; right: 16px; font-size: 11px; font-weight: 700; color: var(--ink-3);
	padding: 1px 8px; border-radius: 999px; background: var(--paper-2); letter-spacing: .08em;
}
.aff-box-inner { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: start; }
.aff-box-noimg .aff-box-inner { grid-template-columns: minmax(0, 1fr); }
.aff-box-img img { width: 132px; height: 132px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; }
.aff-box-body { display: grid; gap: 8px; min-width: 0; }
.aff-box-name { font-weight: 700; font-size: var(--t-m); line-height: 1.65; padding-right: 2.6em; }
.aff-box-copy { color: var(--ink-2); }
.aff-box-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.prose .aff-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; min-width: 150px; padding: 0 22px; border-radius: 999px;
	font-weight: 700; font-size: var(--t-s); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s;
}
.prose .aff-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.prose .aff-btn.amazon { background: #F5A623; color: #1E1503; }
.prose .aff-btn.rakuten { background: #BF0000; color: #fff; }
@media (max-width: 520px) {
	.aff-box { padding: 18px; }
	.aff-box-inner { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
	.aff-box-img img { width: 96px; height: 96px; }
	.aff-box-btns { grid-column: 1 / -1; }
	.prose .aff-btn { flex: 1; }
}

.ad-slot { margin-block: 2.4em; text-align: center; }
.ad-slot__label { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 6px; }

/* Entry foot */
.entry-foot { grid-column: -2 / -1; display: grid; gap: 22px; margin-top: 48px; }
.byline { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 24px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.byline__avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: var(--on-deep); }
.byline__avatar .logo-mark { width: 40px; height: 40px; }
.byline__label { font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); }
.byline__name { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; }
.byline__bio { margin-top: 6px; color: var(--ink-2); font-size: var(--t-s); line-height: 1.9; }

.related { padding-block: clamp(48px, 6vw, 80px); }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.related--near {
	background: var(--deep); color: var(--on-deep);
	--ink: var(--on-deep); --ink-2: var(--on-deep-2); --ink-3: var(--on-deep-3); --paper-2: var(--deep-2); --amber-ink: var(--amber);
}
.related--near [class*="cat--"] { --cat: var(--cat-l); }
.related--near .section-lead { color: var(--on-deep-2); }
.related--near .card__media { box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); }
@media (max-width: 1080px) { .entry-foot { grid-column: auto; } }
@media (max-width: 900px) { .related__grid { grid-template-columns: 1fr; gap: 20px; } .related__grid .card { grid-template-columns: 128px minmax(0, 1fr); gap: 14px; } .related__grid .card__title { font-size: 1rem; } .related__grid .badge-video { display: none; } }

.entry-comments { max-width: calc(720px + var(--gutter) * 2); padding-bottom: clamp(48px, 6vw, 80px); }
.entry-comments { padding-top: clamp(40px, 5vw, 64px); }
.comments { display: grid; gap: 16px; justify-items: start; }
.comments__title { font-weight: 700; font-size: var(--t-m); color: var(--ink-2); }
.comment-toggle { width: 100%; }
.comment-toggle > summary { list-style: none; }
.comment-toggle > summary::-webkit-details-marker { display: none; }
.comment-toggle[open] > summary { margin-bottom: 20px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.comment-list { list-style: none; display: grid; gap: 16px; }
.comment-body { padding: 18px; background: var(--surface); border-radius: 12px; }
.comment-respond { display: grid; gap: 12px; }
.comment-form textarea { min-height: 160px; height: 160px; }
.comment-reply-title { font-weight: 700; font-size: var(--t-l); }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-weight: 700; font-size: var(--t-s); margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--rule); background: var(--surface); color: var(--ink); font: inherit;
}
.comment-form .submit { min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; }
.comment-notes, .logged-in-as { font-size: var(--t-xs); color: var(--ink-3); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: var(--t-xs); }
.comment-form-cookies-consent label { font-weight: 500; }

/* Page (固定ページ) */
.entry--page .entry-head { padding-bottom: 0; }
.entry--page .entry-head__title { max-width: 20em; }

/* 404 */
.notfound .search-form { width: 100%; }
.notfound__inner { display: grid; gap: 20px; justify-items: start; padding-block: clamp(56px, 10vw, 120px); max-width: 720px; }
.notfound__code { font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--amber); }
.notfound__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* WordPress core alignment helpers */
.alignleft { float: left; margin: .4em 1.4em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.prose .alignwide { margin-inline: min(-80px, calc((100vw - 680px) / -4)); }
@media (max-width: 1080px) { .prose .alignwide { margin-inline: 0; } }
.wp-caption-text, .gallery-caption { font-size: var(--t-xs); color: var(--ink-3); }
.sticky, .bypostauthor { }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .entry-aside, .related, .progress, .share, .entry-comments { display: none !important; }
	body { background: #fff; color: #000; }
}
