/*
Theme Name: WASABI Media
Theme URI: https://github.com/okubo-maker/reuse-business-lab
Author: 株式会社ワサビ
Description: 株式会社ワサビの 4 メディア（WASABI HAUL Japan Guide・REUSE BUSINESS LAB・WASABI BRIDGE・買取サーチ マガジン）共通の軽量ブロックテーマ。スマホを先に設計したカードの仕組み・記事の読みやすい組版・ダークモード。サイトごとの名前・ロゴ・色・メニューはオプション wasabi_media_site と sites.json で切り替える。外部のフォント・画像・スクリプトは読み込まない。
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
Version: 2.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wasabi-media
*/

/*
 * デザインシステム（docs/v4/04_フロントサイト.md）
 * - 色はサイトごと（sites.json の palette・palette_dark → theme.json のプリセットの変数）。ここでは --c-* の別名で使う
 * - 幅：スマホ（〜639px）を基本に、640px（2 列）・960px（PC のヘッダー）・1024px（3 列）・1200px で広げる
 * - 部品：ヘッダー（固定）・メニューのパネル・チップ・カード（card / row / lead）・カードの並び（grid / rail / list / feed）・
 *   画像の無い記事の模様（.wm-ph）・セクション・CTA・記事の組版・CMS の本文の部品・フッター
 */

/* ---------------- 土台 ---------------- */
body {
	--c-primary: var(--wp--preset--color--primary);
	--c-on-primary: var(--wp--preset--color--primary-contrast);
	--c-accent: var(--wp--preset--color--accent);
	--c-hi: var(--wp--preset--color--highlight);
	--c-base: var(--wp--preset--color--base);
	--c-surface: var(--wp--preset--color--surface);
	--c-card: var(--wp--preset--color--card);
	--c-text: var(--wp--preset--color--text);
	--c-muted: var(--wp--preset--color--muted);
	--c-border: var(--wp--preset--color--border);
	/* 画像の無い記事の模様の地の色（ダークモードでも白い文字が読める濃さ） */
	--ph-a: var(--c-primary);
	--ph-b: var(--c-accent);
	--ph-ink: #ffffff;
	--c-footer: color-mix(in srgb, #0c0f12 88%, var(--c-primary));
	--r-sm: 8px;
	--r: 14px;
	--r-lg: 22px;
	--sh-1: 0 1px 2px rgb(15 20 30 / 0.05), 0 2px 6px rgb(15 20 30 / 0.05);
	--sh-2: 0 2px 4px rgb(15 20 30 / 0.04), 0 14px 32px -12px rgb(15 20 30 / 0.22);
	--gutter: clamp(16px, 4.2vw, 32px);
	--wrap: 1200px;
	--measure: 42rem;
	--header-h: 60px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	margin: 0;
	background: var(--c-base);
	color: var(--c-text);
	overflow-wrap: anywhere;
	line-break: strict;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark) {
	body {
		--ph-a: color-mix(in srgb, var(--c-primary) 34%, #0a0c10);
		--ph-b: color-mix(in srgb, var(--c-accent) 30%, #0a0c10);
		--c-footer: color-mix(in srgb, #050608 80%, var(--c-surface));
		--sh-1: 0 1px 2px rgb(0 0 0 / 0.4);
		--sh-2: 0 16px 36px -14px rgb(0 0 0 / 0.7);
	}
	img { filter: brightness(0.94); }
}
@media (min-width: 960px) { body { --header-h: 68px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
:lang(en) body, body:lang(en) { letter-spacing: 0; }
:lang(zh-Hant) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", "Hiragino Sans", "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--c-primary); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-feature-settings: "palt"; word-break: auto-phrase; text-wrap: pretty; }
:where(a, button, input, summary, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--c-accent);
	outline-offset: 2px;
	border-radius: 6px;
}
.wm-sr, .screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; white-space: nowrap; word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 100000; white-space: normal;
	background: var(--c-card); color: var(--c-primary); padding: 0.75rem 1rem; left: 0.5rem; top: 0.5rem; border-radius: var(--r-sm); box-shadow: var(--sh-2);
}
.wm-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + *, .wm-main > * + * { margin-block-start: 0; }
.wm-main { min-height: 50vh; padding-bottom: clamp(3rem, 8vw, 5rem); }
html.wm-locked { overflow: hidden; }
.wm-icon { flex: none; width: 1.25em; height: 1.25em; }

/* ---------------- ボタン・チップ ---------------- */
.wm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
	min-height: 46px; padding: 0.6rem 1.25rem; border-radius: 999px; border: 0;
	background: var(--c-primary); color: var(--c-on-primary);
	font: inherit; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
	box-shadow: var(--sh-1); transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s;
}
.wm-btn:hover { color: var(--c-on-primary); transform: translateY(-1px); box-shadow: var(--sh-2); }
.wm-btn .wm-icon { width: 1.1em; height: 1.1em; }
.wm-btn--ghost { background: transparent; color: var(--c-text); box-shadow: inset 0 0 0 1.5px var(--c-border); }
.wm-btn--ghost:hover { color: var(--c-primary); background: var(--c-card); box-shadow: inset 0 0 0 1.5px var(--c-primary); }
.wm-btn--light { background: var(--c-on-primary); color: var(--c-primary); }
.wm-btn--light:hover { color: var(--c-primary); }

.wm-chip {
	position: relative; z-index: 1;
	display: inline-flex; align-items: center; gap: 0.4em;
	padding: 0.2rem 0.7rem 0.2rem 0.6rem; min-height: 26px; border-radius: 999px;
	background: var(--c-surface); color: var(--c-text);
	font-size: 0.75rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
}
.wm-chip::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--chip, var(--c-primary)); flex: none; }
a.wm-chip:hover { color: var(--c-text); background: color-mix(in srgb, var(--chip, var(--c-primary)) 14%, var(--c-surface)); }
.wm-chip--c0 { --chip: var(--c-primary); }
.wm-chip--c1 { --chip: var(--c-accent); }
.wm-chip--c2 { --chip: var(--c-hi); }
.wm-chip--c3 { --chip: color-mix(in srgb, var(--c-primary) 50%, var(--c-accent)); }
.wm-chip--c4 { --chip: color-mix(in srgb, var(--c-accent) 50%, var(--c-hi)); }
.wm-chip--c5 { --chip: color-mix(in srgb, var(--c-primary) 50%, var(--c-hi)); }
.wm-chip--all::before { display: none; }
.wm-chip--all { padding-inline: 0.85rem; }

/* チップの横並び（スマホは横スクロール） */
.wm-chips ul {
	list-style: none; margin: 0; padding: 0.25rem var(--gutter); display: flex; gap: 0.5rem;
	overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter));
}
.wm-chips ul::-webkit-scrollbar { display: none; }
.wm-chips li { scroll-snap-align: start; flex: none; }
.wm-chips .wm-chip { min-height: 38px; padding-inline: 0.95rem 1rem; font-size: 0.85rem; background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-border); }
.wm-chips .wm-chip[aria-current] { background: var(--c-text); color: var(--c-base); box-shadow: none; }
.wm-chips .wm-chip[aria-current]::before { background: var(--c-base); }
@media (min-width: 960px) { .wm-chips ul { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }

/* ---------------- ヘッダー ---------------- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 40; }
.wm-header {
	position: relative;
	background: color-mix(in srgb, var(--c-base) 86%, transparent);
	-webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid color-mix(in srgb, var(--c-border) 80%, transparent);
}
.wm-header__bar { display: flex; align-items: center; gap: 0.5rem; min-height: var(--header-h); }
.wm-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--c-text); text-decoration: none; min-width: 0; margin-right: auto; }
.wm-brand:hover { color: var(--c-text); }
.wm-brand__mark { flex: none; width: 36px; height: 36px; display: block; border-radius: 11px; }
.wm-brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.wm-brand__main { font-weight: 800; font-size: 1.02rem; letter-spacing: 0.03em; white-space: nowrap; font-feature-settings: "palt"; }
.wm-brand__sub { margin-top: 0.22rem; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; color: var(--c-muted); white-space: nowrap; }
.wm-nav { display: none; }
.wm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.15rem; }
.wm-nav a { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0.3rem 0.8rem; border-radius: 999px; color: var(--c-text); text-decoration: none; font-weight: 650; font-size: 0.9rem; white-space: nowrap; }
.wm-nav a:hover { background: var(--c-surface); color: var(--c-text); }
.wm-nav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--c-primary); }
.wm-header__actions { display: flex; align-items: center; gap: 0.25rem; flex: none; }
.wm-iconbtn {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px;
	border: 0; background: transparent; color: var(--c-text); cursor: pointer; text-decoration: none; padding: 0;
}
.wm-iconbtn:hover { background: var(--c-surface); color: var(--c-text); }
.wm-iconbtn .wm-icon { width: 22px; height: 22px; }
.wm-burger { background: var(--c-surface); }
/* 言語：PC はヘッダーの中の小さい切り替え、スマホはヘッダーの下の帯 */
.wm-lang ul { list-style: none; margin: 0; padding: 0; display: flex; }
.wm-lang a { text-decoration: none; color: inherit; }
.wm-lang--seg { display: none; }
.wm-lang--seg ul { background: var(--c-surface); border-radius: 999px; padding: 3px; }
.wm-lang--seg a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 34px; padding: 0 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; color: var(--c-muted); }
.wm-lang--seg a:hover { color: var(--c-text); }
.wm-lang--seg a[aria-current] { background: var(--c-card); color: var(--c-text); box-shadow: var(--sh-1); }
.wm-header__langbar { display: flex; align-items: center; justify-content: center; gap: 0.4rem; border-top: 1px solid color-mix(in srgb, var(--c-border) 70%, transparent); font-size: 0.8rem; color: var(--c-muted); }
.wm-header__langbar .wm-icon { width: 16px; height: 16px; }
.wm-header__langbar ul { gap: 0.15rem; }
.wm-header__langbar a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 0.65rem; border-radius: 999px; font-weight: 700; }
.wm-header__langbar a[aria-current] { color: var(--c-text); background: var(--c-surface); }
.wm-search.wm-search--head { display: none; }
@media (min-width: 640px) {
	.wm-lang--seg { display: block; margin-right: 0.25rem; }
	.wm-header__langbar { display: none; }
	.wm-brand__mark { width: 40px; height: 40px; }
	.wm-brand__main { font-size: 1.1rem; }
}
@media (min-width: 960px) {
	.wm-nav { display: block; }
	.wm-burger { display: none; }
	.wm-header__bar { gap: 1rem; }
}
@media (min-width: 1200px) {
	.wm-search.wm-search--head { display: flex; width: 13rem; }
	.wm-iconbtn--search { display: none; }
}
.wm-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.wm-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); transform: scaleX(0); transform-origin: 0 50%; }

/* 検索 */
.wm-search { position: relative; display: flex; align-items: center; gap: 0.4rem; }
.wm-search > .wm-icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--c-muted); pointer-events: none; }
.wm-search input[type="search"] {
	flex: 1; min-width: 0; width: 100%; min-height: 44px; padding: 0.5rem 0.9rem 0.5rem 2.4rem;
	border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-card); color: var(--c-text);
	font: inherit; font-size: 1rem; -webkit-appearance: none; appearance: none;
}
.wm-search input[type="search"]::placeholder { color: var(--c-muted); opacity: 1; }
.wm-search input[type="search"]:focus { outline: 3px solid color-mix(in srgb, var(--c-accent) 60%, transparent); outline-offset: 0; border-color: var(--c-accent); }
.wm-search button {
	flex: none; min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: var(--c-primary); color: var(--c-on-primary);
	font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.wm-search--head input[type="search"] { min-height: 40px; font-size: 0.88rem; background: var(--c-surface); border-color: transparent; }
.wm-search--head button { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
.wm-search--page { max-width: 34rem; margin-top: 1.25rem; }

/* メニューのパネル */
.wm-drawer { position: fixed; inset: 0; z-index: 100; }
.wm-drawer[hidden] { display: none; }
.wm-drawer__scrim { position: absolute; inset: 0; background: rgb(8 10 14 / 0.5); opacity: 0; transition: opacity 0.2s var(--ease); }
.wm-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(90vw, 400px); overflow-y: auto; overscroll-behavior: contain;
	background: var(--c-base); color: var(--c-text); box-shadow: -20px 0 50px -20px rgb(0 0 0 / 0.4);
	padding: 0.5rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
	transform: translateX(100%); transition: transform 0.24s var(--ease);
	display: flex; flex-direction: column; gap: 1rem;
}
.wm-drawer.is-open .wm-drawer__scrim { opacity: 1; }
.wm-drawer.is-open .wm-drawer__panel { transform: none; }
.wm-drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--c-border); margin-inline: -1.25rem; padding-inline: 1.25rem 0.75rem; }
.wm-drawer__title { font-weight: 800; letter-spacing: 0.02em; }
.wm-drawer__label { display: flex; align-items: center; gap: 0.4rem; margin: 0.5rem 0 -0.4rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; color: var(--c-muted); }
.wm-drawer__label .wm-icon { width: 16px; height: 16px; }
.wm-drawer__nav ul, .wm-drawer .wm-lang--list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wm-drawer__nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 0.25rem; border-bottom: 1px solid var(--c-border); color: var(--c-text); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.wm-drawer__nav a::after { content: "›"; color: var(--c-muted); font-size: 1.3rem; }
.wm-drawer__nav a[aria-current] { color: var(--c-primary); }
.wm-drawer .wm-lang--list ul { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
.wm-drawer .wm-lang--list a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--c-border); font-weight: 700; font-size: 0.9rem; }
.wm-drawer .wm-lang--list a[aria-current] { background: var(--c-text); color: var(--c-base); box-shadow: none; }
.wm-drawer__cats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wm-drawer__cats .wm-chip { min-height: 40px; padding-inline: 0.85rem 1rem; font-size: 0.88rem; background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-border); }
.wm-drawer__small { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.85rem; }
.wm-drawer__small a { color: var(--c-muted); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }

/* ---------------- 画像の無い記事の模様 ---------------- */
.wm-ph {
	position: relative; display: block; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
	color: var(--ph-ink);
	background: linear-gradient(135deg, var(--ph-a), color-mix(in srgb, var(--ph-a) 55%, var(--ph-b)));
}
.wm-ph--t1 { background: linear-gradient(135deg, var(--ph-b), color-mix(in srgb, var(--ph-b) 50%, var(--ph-a))); }
.wm-ph--t2 { background: linear-gradient(160deg, color-mix(in srgb, var(--ph-a) 72%, #000), color-mix(in srgb, var(--ph-a) 70%, var(--c-hi))); }
/* 差し色の円（日の丸・月・朝日の見立て） */
.wm-ph::after {
	content: ""; position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; right: -8%; top: -14%; border-radius: 50%;
	background: var(--c-hi); opacity: 0.9;
}
.wm-ph--t1::after { right: auto; left: 58%; top: 52%; width: 34%; opacity: 0.75; }
.wm-ph--t2::after { top: 18%; right: 12%; width: 22%; opacity: 0.95; }
/* 模様（白の薄い線）：青海波・水玉・斜線・市松 */
.wm-ph::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.9; }
.wm-ph--p0::before {
	background:
		radial-gradient(circle at 50% 100%, transparent 0 7px, rgb(255 255 255 / 0.2) 7px 8.5px, transparent 8.5px 13px, rgb(255 255 255 / 0.2) 13px 14.5px, transparent 14.5px 19px, rgb(255 255 255 / 0.2) 19px 20.5px, transparent 20.5px) 0 0 / 42px 21px,
		radial-gradient(circle at 50% 100%, transparent 0 7px, rgb(255 255 255 / 0.2) 7px 8.5px, transparent 8.5px 13px, rgb(255 255 255 / 0.2) 13px 14.5px, transparent 14.5px 19px, rgb(255 255 255 / 0.2) 19px 20.5px, transparent 20.5px) 21px 10.5px / 42px 21px;
}
.wm-ph--p1::before { background: radial-gradient(circle, rgb(255 255 255 / 0.26) 1.7px, transparent 2.2px) 0 0 / 16px 16px; }
.wm-ph--p2::before { background: repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.14) 0 2px, transparent 2px 13px); }
.wm-ph--p3::before { background: conic-gradient(rgb(255 255 255 / 0.11) 25%, transparent 0 50%, rgb(255 255 255 / 0.11) 0 75%, transparent 0) 0 0 / 30px 30px; }
.wm-ph__glyph { position: absolute; right: 6%; bottom: 8%; width: 30%; max-width: 120px; aspect-ratio: 1; opacity: 0.22; }
.wm-ph__glyph svg { width: 100%; height: 100%; display: block; }
.wm-ph__label {
	position: absolute; left: 7%; bottom: 10%; right: 30%;
	word-break: auto-phrase; font-weight: 800; font-size: clamp(0.95rem, 0.8rem + 1vw, 1.35rem); line-height: 1.3; letter-spacing: 0.06em;
	text-shadow: 0 1px 12px rgb(0 0 0 / 0.25); font-feature-settings: "palt";
}

/* ---------------- カード ---------------- */
.wm-card { position: relative; display: flex; flex-direction: column; height: 100%; color: var(--c-text); }
.wm-card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); background: var(--c-surface); }
.wm-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.wm-card__body { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.85rem 0.1rem 0; flex: 1; min-width: 0; }
.wm-card__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.65rem; align-items: center; font-size: 0.76rem; color: var(--c-muted); }
.wm-card__meta time { white-space: nowrap; }
.wm-card__title { margin: 0; font-size: 1.04rem; line-height: 1.55; font-weight: 750; letter-spacing: 0.01em; }
.wm-card__title a { color: inherit; text-decoration: none; }
.wm-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: var(--r); }
.wm-card__title a:focus-visible { outline: none; }
.wm-card__title a:focus-visible::after { outline: 3px solid var(--c-accent); outline-offset: 4px; }
.wm-card:hover .wm-card__title a { color: var(--c-primary); }
.wm-card:hover .wm-card__media img { transform: scale(1.035); }
.wm-card__excerpt { margin: 0; font-size: 0.86rem; line-height: 1.75; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wm-card__event { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 800; color: var(--c-text); }
.wm-card__event .wm-icon { width: 14px; height: 14px; color: var(--c-primary); }

/* 開催日のバッジ */
.wm-badge-date {
	position: absolute; left: 10px; top: 10px; z-index: 1;
	display: grid; justify-items: center; min-width: 54px; padding: 0.35rem 0.5rem 0.4rem; border-radius: 12px;
	background: var(--c-card); color: var(--c-text); box-shadow: var(--sh-2); line-height: 1.1; text-align: center;
}
.wm-badge-date__m { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; color: var(--c-primary); }
.wm-badge-date__d { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wm-badge-date__w { font-size: 0.64rem; font-weight: 700; color: var(--c-muted); }
.wm-badge-date__t { margin-top: 0.2rem; padding: 0.05rem 0.35rem; border-radius: 6px; background: var(--c-surface); font-size: 0.6rem; font-weight: 800; color: var(--c-text); }

/* 横長の行（スマホの一覧・トップの脇） */
.wm-card--row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.wm-card--row .wm-card__media { aspect-ratio: 1; border-radius: var(--r-sm); }
.wm-card--row .wm-card__body { padding: 0; gap: 0.35rem; }
.wm-card--row .wm-card__title { font-size: 0.95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wm-card--row .wm-ph__label { font-size: 0.68rem; left: 9%; right: 9%; bottom: 9%; letter-spacing: 0.02em; }
.wm-card--row .wm-ph__glyph { width: 46%; right: 8%; top: 10%; bottom: auto; }

/* 大きいカード（トップの先頭）：画像に題名を重ねる */
.wm-card--lead { border-radius: var(--r-lg); overflow: hidden; background: var(--c-text); box-shadow: var(--sh-2); }
.wm-card--lead .wm-card__media { aspect-ratio: 4 / 3; border-radius: 0; }
.wm-card--lead .wm-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 30%, rgb(0 0 0 / 0.45) 58%, rgb(0 0 0 / 0.86) 100%); pointer-events: none; }
.wm-card--lead .wm-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.15rem 1.2rem; color: #ffffff; gap: 0.55rem; z-index: 1; pointer-events: none; }
.wm-card--lead .wm-card__body a { pointer-events: auto; }
.wm-card--lead .wm-card__meta { color: rgb(255 255 255 / 0.88); }
.wm-card--lead .wm-chip { background: rgb(255 255 255 / 0.94); color: #15181c; }
.wm-card--lead .wm-card__title { color: #ffffff; font-size: clamp(1.2rem, 1rem + 1.2vw, 1.9rem); line-height: 1.45; font-weight: 800; text-shadow: 0 1px 18px rgb(0 0 0 / 0.35); }
.wm-card--lead:hover .wm-card__title a { color: #ffffff; text-decoration: underline; text-decoration-thickness: 2px; }
.wm-card--lead .wm-card__excerpt { color: rgb(255 255 255 / 0.86); display: none; }
.wm-card--lead .wm-card__title a::after { border-radius: var(--r-lg); }
.wm-card--lead .wm-ph__label { top: 9%; bottom: auto; right: 9%; font-size: clamp(1.1rem, 0.9rem + 1.4vw, 1.8rem); opacity: 0.95; }
.wm-card--lead .wm-ph__glyph { top: 8%; bottom: auto; width: 22%; }
.wm-card--lead .wm-badge-date { left: auto; right: 14px; top: 14px; }
@media (min-width: 640px) {
	.wm-card--lead .wm-card__media { aspect-ratio: 16 / 10; }
	.wm-card--lead .wm-card__body { padding: 2rem 2rem 1.9rem; }
	.wm-card--lead .wm-card__excerpt { display: -webkit-box; max-width: 46em; }
}

/* ---------------- カードの並び ---------------- */
.wm-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem 1.5rem; }
.wm-cards > li { min-width: 0; }
/* grid：1 → 2 → 3 列 */
@media (min-width: 640px) { .wm-cards--grid, .wm-cards--list, .wm-cards--feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .wm-cards--grid, .wm-cards--list, .wm-cards--feed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.75rem; } }
/* list・feed：スマホは横長の行（feed は先頭だけ大きいカード） */
@media (max-width: 639px) {
	.wm-cards--list, .wm-cards--feed { gap: 0; }
	.wm-cards--list > li, .wm-cards--feed > li + li { padding-block: 1rem; border-bottom: 1px solid var(--c-border); }
	.wm-cards--list > li:first-child { padding-top: 0.25rem; }
	.wm-cards--feed > li:first-child { padding-bottom: 1.5rem; border-bottom: 1px solid var(--c-border); }
	.wm-cards--list .wm-card, .wm-cards--feed > li + li .wm-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0.9rem; align-items: start; }
	.wm-cards--list .wm-card__media, .wm-cards--feed > li + li .wm-card__media { aspect-ratio: 1; border-radius: var(--r-sm); }
	.wm-cards--list .wm-card__body, .wm-cards--feed > li + li .wm-card__body { padding: 0; gap: 0.35rem; }
	.wm-cards--list .wm-card__title, .wm-cards--feed > li + li .wm-card__title { font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.wm-cards--list .wm-card__excerpt, .wm-cards--feed > li + li .wm-card__excerpt { display: none; }
	.wm-cards--list .wm-ph__label, .wm-cards--feed > li + li .wm-ph__label { font-size: 0.68rem; left: 9%; right: 9%; bottom: 9%; letter-spacing: 0.02em; }
	.wm-cards--list .wm-ph__glyph, .wm-cards--feed > li + li .wm-ph__glyph { width: 46%; right: 8%; top: 10%; bottom: auto; }
	.wm-cards--list .wm-badge-date, .wm-cards--feed > li + li .wm-badge-date { left: 4px; top: 4px; min-width: 40px; padding: 0.2rem 0.3rem; border-radius: 8px; }
	.wm-cards--list .wm-badge-date__d, .wm-cards--feed > li + li .wm-badge-date__d { font-size: 1.05rem; }
	.wm-cards--list .wm-badge-date__w, .wm-cards--list .wm-badge-date__t, .wm-cards--feed > li + li .wm-badge-date__w, .wm-cards--feed > li + li .wm-badge-date__t { display: none; }
	.wm-cards--feed > li:first-child .wm-card__title { font-size: 1.2rem; }
}
/* rail：スマホは横スクロール（次のカードが少し見える）、PC は 4 列 */
.wm-cards--rail {
	grid-auto-flow: column; grid-auto-columns: min(74%, 300px); gap: 1rem;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
	margin-inline: calc(-1 * var(--gutter)); padding: 0.25rem var(--gutter) 0.5rem;
}
.wm-cards--rail::-webkit-scrollbar { display: none; }
.wm-cards--rail > li { scroll-snap-align: start; }
.wm-cards--rail .wm-card__title { font-size: 0.98rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) {
	.wm-cards--rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; gap: 2rem 1.5rem; }
}
.wm-empty { margin: 2rem 0 0; padding: 2rem 1.5rem; border-radius: var(--r); background: var(--c-surface); color: var(--c-muted); text-align: center; }

/* ---------------- セクション ---------------- */
.wm-section { margin-top: clamp(2.75rem, 7vw, 4.5rem); }
.wm-section--tint { background: var(--c-surface); padding-block: clamp(2rem, 6vw, 3.5rem); }
.wm-section--tint .wm-chip, .wm-article-head.no-image .wm-chip { background: var(--c-card); }
.wm-section--tint + .wm-section--tint { margin-top: 0; padding-top: 0; }
.wm-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1.25rem; }
.wm-section__head > div { flex: 1 1 auto; min-width: 0; }
/* 説明のある見出しは、狭い画面で「もっと見る」を下の行へ */
.wm-section__head:has(.wm-section__desc) { flex-wrap: wrap; }
.wm-section__head:has(.wm-section__desc) > div { flex-basis: 18rem; }
.wm-section__head > .wm-more { margin-left: auto; }
.wm-section__title { position: relative; margin: 0; display: flex; align-items: center; gap: 0.6rem; font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem); font-weight: 800; line-height: 1.35; letter-spacing: 0.02em; }
.wm-section__title::before { content: ""; flex: none; width: 6px; height: 1.15em; border-radius: 3px; background: linear-gradient(180deg, var(--c-primary), var(--c-accent)); }
.wm-section__title .wm-icon { color: var(--c-primary); }
.wm-section__head--sub { margin-top: 2rem; }
.wm-section__head--sub .wm-section__title { font-size: 1.05rem; }
.wm-section__head--sub .wm-section__title::before { width: 4px; }
.wm-section__desc { margin: 0.4rem 0 0; color: var(--c-muted); font-size: 0.85rem; line-height: 1.7; max-width: 40em; }
.wm-more { flex: none; display: inline-flex; align-items: center; gap: 0.3rem; min-height: 40px; padding: 0 0.15rem 0 0.9rem; border-radius: 999px; color: var(--c-text); font-size: 0.85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.wm-more .wm-icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--c-surface); color: var(--c-primary); transition: transform 0.15s var(--ease); }
.wm-section--tint .wm-more .wm-icon { background: var(--c-card); }
.wm-more:hover { color: var(--c-primary); }
.wm-more:hover .wm-icon { transform: translateX(3px); }

/* ---------------- トップ ---------------- */
.wm-intro { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c-hi) 16%, transparent), transparent 60%), var(--c-surface); }
.wm-intro__in { display: grid; gap: 1.5rem; padding-block: clamp(1.6rem, 5vw, 3.5rem) 1.1rem; }
.wm-eyebrow { margin: 0 0 0.6rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; color: var(--c-accent); }
.wm-eyebrow:lang(en), :lang(en) > .wm-eyebrow { letter-spacing: 0.03em; }
.wm-intro__title { margin: 0; font-size: clamp(1.45rem, 1.05rem + 2.1vw, 2.55rem); line-height: 1.38; font-weight: 800; letter-spacing: 0.01em; max-width: 22em; }
.wm-intro__lead { margin: 0.9rem 0 0; color: var(--c-muted); font-size: clamp(0.88rem, 0.82rem + 0.3vw, 1rem); line-height: 1.85; max-width: 42em; }
.wm-intro__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0 0; }
.wm-intro__art { display: none; }
.wm-intro__chips { padding-bottom: 1.25rem; }
@media (min-width: 960px) {
	.wm-intro__in { grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: 3rem; }
	.wm-intro__art { display: block; position: relative; aspect-ratio: 1; border-radius: 36px; overflow: hidden; box-shadow: var(--sh-2); transform: rotate(3deg); }
	.wm-intro__art .wm-ph__label { display: none; }
	.wm-intro__art .wm-ph__glyph { display: none; }
	.wm-intro__mark { position: absolute; left: 50%; top: 50%; width: 46%; height: auto; transform: translate(-50%, -50%) rotate(-3deg); border-radius: 28%; box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.45); }
}
.wm-top { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.wm-top__grid { display: grid; gap: 1.25rem; }
.wm-top__side { list-style: none; margin: 0; padding: 0; display: grid; }
.wm-top__side > li { padding-block: 1rem; border-bottom: 1px solid var(--c-border); }
.wm-top__side > li:last-child { border-bottom: 0; }
@media (min-width: 960px) {
	.wm-top__grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 2.25rem; align-items: start; }
	.wm-top__side > li:first-child { padding-top: 0; }
	.wm-top__side .wm-card--row { grid-template-columns: 120px minmax(0, 1fr); }
	.wm-top__side .wm-card--row .wm-card__media { aspect-ratio: 4 / 3; }
}

/* CTA */
.wm-cta { margin-top: clamp(2.75rem, 7vw, 4.5rem); }
.wm-cta__box {
	position: relative; overflow: hidden; isolation: isolate;
	display: grid; gap: 1.25rem; align-items: center;
	padding: clamp(1.6rem, 5vw, 3rem); border-radius: var(--r-lg);
	background: radial-gradient(circle, rgb(255 255 255 / 0.1) 1.5px, transparent 2px) 0 0 / 18px 18px, linear-gradient(135deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 65%, var(--c-accent)));
	color: var(--c-on-primary);
}
.wm-cta__deco { position: absolute; z-index: -1; right: -40px; bottom: -50px; width: 240px; height: 240px; opacity: 0.14; }
.wm-cta__deco svg { width: 100%; height: 100%; }
.wm-cta__box h2 { margin: 0 0 0.5rem; color: inherit; font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.6rem); font-weight: 800; }
.wm-cta__box p { margin: 0; line-height: 1.8; font-size: 0.92rem; max-width: 46em; }
.wm-cta__box .wm-btn { justify-self: start; }
@media (min-width: 800px) { .wm-cta__box { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; } }

/* 他の言語・まもなく開催 */
.wm-langtabs { list-style: none; margin: 0 0 0.5rem; padding: 4px; display: inline-flex; gap: 2px; border-radius: 999px; background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-border); max-width: 100%; overflow-x: auto; }
.wm-langtabs a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 1rem; border-radius: 999px; color: var(--c-muted); font-weight: 700; font-size: 0.88rem; text-decoration: none; white-space: nowrap; }
.wm-langtabs a:hover { color: var(--c-text); }
.wm-langtabs a[aria-current] { background: var(--c-text); color: var(--c-base); }
.wm-langs-band .wm-section__title::before { display: none; }

/* 姉妹サイト */
.wm-sisters { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 900px) { .wm-sisters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.wm-sister {
	display: flex; align-items: center; gap: 0.9rem; height: 100%; padding: 1rem 1.1rem; border-radius: var(--r);
	background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-border); color: var(--c-text); text-decoration: none;
	transition: box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}
.wm-sister:hover { color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-border), var(--sh-2); transform: translateY(-2px); }
.wm-sister__mark { flex: none; width: 46px; height: 46px; border-radius: 13px; }
.wm-sister__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.wm-sister__name { font-weight: 800; font-size: 0.95rem; }
.wm-sister__desc { font-size: 0.78rem; color: var(--c-muted); line-height: 1.55; }
.wm-sister > .wm-icon { color: var(--c-muted); }

/* ---------------- 一覧・固定ページの頭 ---------------- */
.wm-archive-head, .wm-page-head { position: relative; overflow: hidden; background: var(--c-surface); }
.wm-archive-head .wm-wrap, .wm-page-head .wm-wrap { position: relative; padding-block: clamp(1.25rem, 4vw, 2.5rem) clamp(1.5rem, 4.5vw, 2.75rem); }
.wm-archive-head__deco {
	position: absolute !important; top: 0; right: 0; bottom: 0; width: min(46%, 520px); height: auto !important;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
	opacity: 0.85;
}
.wm-archive-head h1, .wm-page-head h1 { margin: 0.4rem 0 0; max-width: 24em; font-size: clamp(1.5rem, 1.15rem + 1.8vw, 2.4rem); font-weight: 800; line-height: 1.35; }
.wm-archive-head h1 small { font-size: 0.55em; color: var(--c-muted); font-weight: 700; }
.wm-archive-head .wm-eyebrow { margin: 1rem 0 0; }
.wm-archive-head__desc { margin: 0.6rem 0 0; color: var(--c-muted); max-width: 40em; }
.wm-archive-head__count { margin: 0.75rem 0 0; display: inline-block; padding: 0.2rem 0.75rem; border-radius: 999px; background: var(--c-card); font-size: 0.8rem; font-weight: 700; color: var(--c-muted); }
.wm-archive-chips { padding-top: 1rem; }
@media (max-width: 639px) { .wm-archive-head__deco { width: 34%; opacity: 0.5; } }
.wm-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; overflow: hidden; align-items: center; gap: 0.2rem 0.35rem; font-size: 0.78rem; color: var(--c-muted); }
.wm-crumbs li { display: inline-flex; align-items: center; gap: 0.35rem; min-width: 0; flex: none; white-space: nowrap; }
.wm-crumbs li:last-child { flex: 0 1 auto; }
.wm-crumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.6; }
.wm-crumbs a { color: inherit; text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.wm-crumbs a:hover { color: var(--c-primary); text-decoration: underline; }
.wm-crumbs [aria-current] { min-width: 0; max-width: 24em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-loop { margin-top: clamp(1.5rem, 4vw, 2.5rem); }

.wm-pagination { margin-top: 2.5rem; }
.wm-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; justify-content: center; }
.wm-pagination a, .wm-pagination span { display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem; min-width: 44px; min-height: 44px; padding: 0 0.9rem; border-radius: 999px; background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-border); color: var(--c-text); text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.wm-pagination a:hover { box-shadow: inset 0 0 0 1.5px var(--c-primary); color: var(--c-primary); }
.wm-pagination .current { background: var(--c-text); color: var(--c-base); box-shadow: none; }
.wm-pagination .dots { background: none; box-shadow: none; }

/* ---------------- 記事 ---------------- */
.wm-article-head { position: relative; overflow: hidden; }
.wm-article-head__in { position: relative; max-width: calc(1040px + 2 * var(--gutter)); padding-top: clamp(1rem, 3vw, 2rem); }
.wm-article-head__in > * { max-width: var(--measure); }
.wm-article-head.no-image { background: var(--c-surface); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.wm-article-head__deco {
	position: absolute !important; inset: 0 0 0 auto; width: min(42%, 520px); height: auto !important;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 75%); mask-image: linear-gradient(90deg, transparent, #000 75%); opacity: 0.8;
}
@media (max-width: 959px) {
	.wm-article-head__deco { inset: 0 0 auto 0; width: 100%; height: 6px !important; -webkit-mask-image: none; mask-image: none; opacity: 1; }
	.wm-article-head__deco::after { display: none; }
}
.wm-article-head__cat { margin: 1rem 0 0; }
.wm-article-head.no-image .wm-chip { background: var(--c-card); }
.wm-article-head__title { margin: 0.7rem 0 0; font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.45rem); font-weight: 800; line-height: 1.42; letter-spacing: 0.01em; }
.wm-article-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; align-items: center; margin: 1rem 0 0; color: var(--c-muted); font-size: 0.82rem; }
.wm-article-meta__read { display: inline-flex; align-items: center; gap: 0.3rem; }
.wm-article-meta .wm-icon { width: 15px; height: 15px; }
.wm-alt-langs { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; font-size: 0.82rem; color: var(--c-muted); }
.wm-alt-langs .wm-icon { width: 16px; height: 16px; }
.wm-alt-langs ul { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.wm-alt-langs a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 0.85rem; border-radius: 999px; background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-border); color: var(--c-text); font-weight: 700; text-decoration: none; }
.wm-alt-langs a:hover { box-shadow: inset 0 0 0 1.5px var(--c-primary); color: var(--c-primary); }
.wm-article-media { margin: clamp(1.25rem, 3vw, 2rem) auto 0; max-width: 1040px; }
.wm-article-media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--c-surface); }
.wm-article-media figcaption { margin: 0.5rem var(--gutter) 0; text-align: right; font-size: 0.74rem; color: var(--c-muted); letter-spacing: 0.02em; }
@media (min-width: 960px) { .wm-article-media img { aspect-ratio: 16 / 9; } }
@media (min-width: 1088px) {
	.wm-article-media img { border-radius: var(--r-lg); }
	.wm-article-media figcaption { margin-inline: 0; }
}
@media (min-width: 640px) and (max-width: 1087px) {
	.wm-article-media { padding-inline: var(--gutter); }
	.wm-article-media img { border-radius: var(--r); }
	.wm-article-media figcaption { margin-inline: 0; }
}

.wm-article { max-width: calc(1040px + 2 * var(--gutter)); margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.wm-article__main { min-width: 0; max-width: var(--measure); }
.wm-article__aside { display: none; }
@media (min-width: 1100px) {
	.wm-article { display: grid; grid-template-columns: minmax(0, var(--measure)) 248px; gap: 64px; justify-content: space-between; }
	.wm-article__aside { display: block; }
	.wm-toc--inline { display: none; }
}

/* 目次 */
.wm-toc nav ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.wm-toc nav ol ol { padding-left: 1rem; counter-reset: none; }
.wm-toc nav li { margin: 0; }
.wm-toc nav a { display: block; padding: 0.45rem 0; color: var(--c-muted); text-decoration: none; line-height: 1.5; font-size: 0.86rem; }
.wm-toc nav a:hover { color: var(--c-primary); }
.wm-toc nav ol ol a { font-size: 0.8rem; padding-block: 0.3rem; }
.wm-toc--inline { margin: 0 0 1.75rem; border-radius: var(--r); background: var(--c-surface); }
.wm-toc--inline summary { display: flex; align-items: center; gap: 0.5rem; min-height: 50px; padding: 0 1rem; font-weight: 800; font-size: 0.92rem; cursor: pointer; list-style: none; }
.wm-toc--inline summary::-webkit-details-marker { display: none; }
.wm-toc--inline summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.15s; }
.wm-toc--inline[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.wm-toc--inline nav { padding: 0 1rem 0.75rem; }
.wm-toc--inline nav > ol > li + li { border-top: 1px solid var(--c-border); }
.wm-toc--side { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.wm-toc__title { margin: 0 0 0.5rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; color: var(--c-muted); }
.wm-toc--side nav > ol { border-left: 2px solid var(--c-border); }
.wm-toc--side nav a { padding-left: 1rem; margin-left: -2px; border-left: 2px solid transparent; }
.wm-toc--side nav a[aria-current] { color: var(--c-text); font-weight: 700; border-left-color: var(--c-primary); }

/* 本文の組版（日本語：1 行 36〜40 字・行間 1.95） */
.wm-content { font-size: 1.0625rem; line-height: 1.95; letter-spacing: 0.03em; }
.wm-content:lang(en), [lang="en"] .wm-content { line-height: 1.75; letter-spacing: 0; }
.wm-main .wm-content > * { margin-block: 0; }
.wm-main .wm-content p { margin: 0 0 1.35em; }
.wm-main .wm-content > section, .wm-main .wm-content > aside, .wm-main .wm-content > figure, .wm-main .wm-content > table, .wm-main .wm-content > .wm-box { margin-bottom: 1.75em; }
.wm-content h2 { margin: 2.6em 0 1em; padding-top: 1.1rem; position: relative; font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.55rem); line-height: 1.5; font-weight: 800; letter-spacing: 0.02em; }
.wm-content h2::before { content: ""; position: absolute; top: 0; left: 0; width: 2.5rem; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); }
.wm-content h3 { margin: 2.1em 0 0.8em; padding-left: 0.85rem; border-left: 3px solid var(--c-hi); font-size: 1.15rem; line-height: 1.55; font-weight: 800; }
.wm-content h4 { margin: 1.8em 0 0.6em; font-size: 1.02rem; }
.wm-content > :first-child, .wm-content > section:first-child > h2:first-child { margin-top: 0; }
.wm-content a { word-break: break-all; overflow-wrap: anywhere; }
.wm-content ul, .wm-content ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.wm-content li { margin: 0; }
.wm-content li + li { margin-top: 0.4em; }
.wm-content li::marker { color: var(--c-primary); }
.wm-content strong { font-weight: 800; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--c-hi) 38%, transparent) 62%); }
.wm-content table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; font-size: 0.92rem; line-height: 1.7; }
.wm-content table tbody, .wm-content table thead { display: table; width: 100%; border-collapse: collapse; }
.wm-content th, .wm-content td { border-bottom: 1px solid var(--c-border); padding: 0.75rem 0.85rem; text-align: left; vertical-align: top; }
.wm-content th { background: var(--c-surface); font-weight: 700; }
.wm-content blockquote { margin: 0 0 1.5em; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 4px solid var(--c-border); color: var(--c-muted); }
.wm-content figure { margin: 0 0 1.75em; }
.wm-content figure img { border-radius: var(--r); }
.wm-content hr { border: 0; height: 1px; background: var(--c-border); margin: 2.5em 0; }
/* CMS が本文の先頭に入れる画像のキャプション「イメージ（AI生成）」（src/lib/publishers/index.ts の withImageCaption）。
   アイキャッチがあるときは画像の下（figcaption）に出すので、ここは画像が無いときなど本文に残った場合だけ */
.wm-content .rbl-featured-image-caption { margin: -0.5rem 0 1.25rem; text-align: right; font-size: 0.74rem; line-height: 1.5; color: var(--c-muted); }
.wm-content .rbl-featured-image-caption small { font-size: inherit; }
/* CMS の本文の部品（src/lib/content/draft.ts・src/lib/tourism/render.ts の data-role） */
.wm-content aside[data-role="disclosure"] {
	position: relative; padding: 0.85rem 1rem 0.85rem 2.75rem; border-radius: var(--r);
	background: var(--c-surface); font-size: 0.82rem; line-height: 1.75; color: var(--c-muted); letter-spacing: 0.02em;
}
.wm-content aside[data-role="disclosure"]::before {
	content: "i"; position: absolute; left: 1rem; top: 0.95rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
	display: grid; place-items: center; background: var(--c-muted); color: var(--c-surface); font: 800 0.7rem/1 Georgia, serif;
}
.wm-main .wm-content aside[data-role="disclosure"] p { margin: 0; }
.wm-content section[data-role="event-info"] {
	position: relative; padding: 1.25rem 1.25rem 1.1rem; border-radius: var(--r-lg);
	background: linear-gradient(var(--c-primary) 0 5px, var(--c-card) 5px); box-shadow: inset 0 0 0 1px var(--c-border), var(--sh-1); padding-top: 1.5rem;
}
.wm-content section[data-role="event-info"] h2 { margin: 0 0 0.6rem; padding: 0 0 0 1.9rem; font-size: 1.05rem; color: var(--c-primary); letter-spacing: 0.06em; }
.wm-content section[data-role="event-info"] h2::before {
	top: 0.2em; left: 0; width: 1.35rem; height: 1.35rem; border-radius: 0; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='4' y='5.5' width='16' height='14' rx='2.5'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='4' y='5.5' width='16' height='14' rx='2.5'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wm-content section[data-role="event-info"] ul { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.wm-content section[data-role="event-info"] li { font-weight: 800; font-size: 1.08rem; line-height: 1.6; font-variant-numeric: tabular-nums; }
.wm-main .wm-content section[data-role="event-info"] p { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--c-muted); }
.wm-content section[data-role="analysis"] { padding: 0.25rem 1.25rem 0.5rem; border-radius: var(--r-lg); background: var(--c-surface); }
.wm-content section[data-role="analysis"] h2 { margin-top: 1.25rem; }
.wm-content section[data-role="analysis"] h2::before { background: var(--c-hi); }
.wm-content section[data-role="sources"], .wm-content section[data-role="related"] { padding-top: 0.5rem; font-size: 0.86rem; line-height: 1.75; color: var(--c-muted); }
.wm-content section[data-role="sources"] h2, .wm-content section[data-role="related"] h2 { margin: 1.5rem 0 0.75rem; padding-top: 1rem; font-size: 0.85rem; letter-spacing: 0.14em; color: var(--c-text); border-top: 1px solid var(--c-border); }
.wm-content section[data-role="sources"] h2::before, .wm-content section[data-role="related"] h2::before { display: none; }
.wm-content section[data-role="sources"] ul, .wm-content section[data-role="related"] ul { list-style: none; padding: 0; }
.wm-content section[data-role="sources"] li, .wm-content section[data-role="related"] li { position: relative; padding-left: 1.5rem; }
.wm-content section[data-role="sources"] li::before, .wm-content section[data-role="related"] li::before {
	content: ""; position: absolute; left: 0; top: 0.42em; width: 0.95rem; height: 0.95rem; background: var(--c-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wm-content section[data-role="sources"] a, .wm-content section[data-role="related"] a { color: var(--c-text); }

/* シェア・この記事について */
.wm-share { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border); }
.wm-share__title { margin: 0 0 0.75rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; color: var(--c-muted); }
.wm-share ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wm-share__btn {
	display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-border); color: var(--c-text); font: inherit; font-size: 0.86rem; font-weight: 700; text-decoration: none;
}
.wm-share__btn:hover { color: var(--c-text); box-shadow: inset 0 0 0 1.5px var(--c-text); }
.wm-share__btn::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--brand, var(--c-muted)); }
.wm-share__btn--x { --brand: #111111; }
.wm-share__btn--facebook { --brand: #1877f2; }
.wm-share__btn--line { --brand: #06c755; }
button.wm-share__btn::before { display: none; }
.wm-share__btn .wm-icon { width: 16px; height: 16px; }
.wm-notice { margin-top: 2rem; padding: 1.25rem 1.35rem; border-radius: var(--r-lg); background: var(--c-surface); font-size: 0.85rem; line-height: 1.8; color: var(--c-muted); }
.wm-notice h2 { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--c-text); }
.wm-notice h2 .wm-icon { width: 18px; height: 18px; color: var(--c-primary); }
.wm-notice p { margin: 0.4rem 0 0; }
.wm-related { margin-top: clamp(3rem, 8vw, 5rem); }

/* ---------------- 固定ページ ---------------- */
.wm-page { margin-top: clamp(1.75rem, 5vw, 3rem); }
.wm-page-content { max-width: var(--measure); }
@media (min-width: 1100px) { .wm-page { max-width: calc(1040px + 2 * var(--gutter)); } }
/* 古い固定ページの本文にショートコードのヒーロー・一覧が入っている場合（今は言語のトップはテンプレートで組み立てる） */
.wm-page-content > .wm-intro, .wm-page-content > .wm-section, .wm-page-content > .wm-cta { max-width: none; }
.wm-box { padding: 1.25rem 1.35rem; border-radius: var(--r-lg); background: var(--c-surface); }
.wm-box--alert { background: var(--c-card); box-shadow: inset 0 0 0 2px var(--c-primary); }
.wm-box > :first-child { margin-top: 0 !important; }
.wm-box > :last-child { margin-bottom: 0 !important; }
.wm-box h2 { padding-top: 0; font-size: 1.1rem; }
.wm-box h2::before { display: none; }
.wm-tel { font-size: 1.7rem; font-weight: 800; letter-spacing: 0.04em; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.wm-company th { width: 8.5em; white-space: nowrap; }
.wm-note { font-size: 0.84rem; color: var(--c-muted); }
.wm-updated { margin-top: 2.5rem; font-size: 0.84rem; color: var(--c-muted); }

/* ---------------- フッター ---------------- */
.wm-footer { margin-top: 0; background: var(--c-footer); color: #e8ebee; font-size: 0.88rem; }
.wm-footer a { color: #ffffff; text-decoration: none; }
.wm-footer a:hover { color: #ffffff; text-decoration: underline; }
.wm-footer__grid { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 720px) { .wm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .wm-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; } }
.wm-footer .wm-brand { color: #ffffff; margin: 0; }
.wm-footer .wm-brand__sub { color: #b9c0c7; }
.wm-footer h2 { color: #ffffff; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.16em; margin: 0 0 0.85rem; }
.wm-footer ul { list-style: none; margin: 0; padding: 0; }
.wm-footer li + li { margin-top: 0.15rem; }
.wm-footer nav li > a { display: inline-flex; align-items: center; min-height: 36px; }
.wm-footer__desc, .wm-footer__op { margin: 0.9rem 0 0; color: #c3c9cf; line-height: 1.75; }
.wm-footer__op a { text-decoration: underline; }
.wm-footer__sister small { display: block; margin-bottom: 0.5rem; font-size: 0.75rem; color: #b3bac1; line-height: 1.5; }
.wm-footer__bottom { border-top: 1px solid rgb(255 255 255 / 0.12); }
.wm-footer__bottom .wm-wrap { padding-block: 1rem calc(1rem + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; flex-wrap: wrap; color: #b3bac1; font-size: 0.78rem; }
.wm-footer .wm-lang--list ul { gap: 0.25rem 1rem; flex-wrap: wrap; }
.wm-footer .wm-lang--list a { display: inline-flex; min-height: 36px; align-items: center; color: #c3c9cf; }
.wm-footer .wm-lang--list a[aria-current] { color: #ffffff; font-weight: 700; }

/* ---------------- 404 ---------------- */
.wm-404__in { max-width: 40rem; padding-block: clamp(2.5rem, 8vw, 5rem); text-align: center; }
.wm-404__art { width: 140px; height: 140px; margin: 0 auto 1.5rem; border-radius: 36px; overflow: hidden; box-shadow: var(--sh-2); }
.wm-404__art .wm-ph__label { left: 0; right: 0; bottom: auto; top: 50%; transform: translateY(-50%); text-align: center; font-size: 2rem; }
.wm-404__art .wm-ph__glyph { display: none; }
.wm-404 h1 { margin: 0 0 0.75rem; font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); }
.wm-404 p { color: var(--c-muted); }
.wm-404 .wm-search { margin: 1.5rem auto; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.wp-site-blocks > header, .wm-footer, .wm-related, .wm-cta, .wm-share, .wm-toc, .wm-drawer, .wm-article__aside { display: none !important; }
	body { background: #ffffff; color: #000000; }
}
