/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4
 * macrostructure: Editorial Quarterly (magazine front) · genre: editorial
 * redesign of: front-page.html (single-page) · tone: premium / authority
 * theme: brand-locked (navy #001186 paper #faf9f6 · accent gold #b08d2f · display high-contrast-serif)
 * preserved: brand tokens, IA + category order (CV距離降順), CTA funnel, shared chrome
 * scope: front-page-only classes (.ma-hero/.ma-lead*/.ma-cat-*/.ma-row/.ma-cta-band)
 */
/* ============================================
   M&A Times — editorial newspaper design system
   navy #001186 / gold #b08d2f / breaking #d6001c
   typography: Playfair Display + Noto Serif JP (display)
               Noto Sans JP (body) / Montserrat (numeric)
   ============================================ */

/* セリフ体見出し（displayフォント）の「&」だけGeorgiaに差し替える。
   Playfairの&は装飾過多のため。サンセリフ本文の&はNoto Sansのまま（混植しない）。
   unicode-range U+0026 = アンパサンドのみ。Georgia非搭載端末では通常フォールバック */
@font-face {
	font-family: "MA Amp";
	src: local("Georgia"), local("Times New Roman");
	unicode-range: U+0026;
}
@font-face {
	font-family: "MA Amp";
	font-weight: bold;
	src: local("Georgia Bold"), local("Georgia"), local("Times New Roman");
	unicode-range: U+0026;
}
/* セリフ見出し内の数字を和文（Noto Serif JP）由来にして、Playfairの小さく低い数字を解消。
   unicode-range U+0030-0039 = 半角数字のみ。localがあれば優先、無ければGoogle Fonts webfontを使用 */
@font-face {
	font-family: "MA Num";
	font-weight: 700;
	font-display: swap;
	src: local("Noto Serif JP"),
		url(https://fonts.gstatic.com/s/notoserifjp/v33/xn71YHs72GKoTvER4Gn3b5eMRtWGkp6o7MjQ2bzWPdbHKrKbxQCVt3U.woff2) format("woff2");
	unicode-range: U+0030-0039;
}

/* ---------- foundation ---------- */
::selection {
	background: var(--wp--preset--color--primary);
	color: #fff;
}
html {
	scroll-behavior: smooth;
}
/* 数字（日付・ランキング・ページ送り）は等幅数字で縦を揃える */
.wp-block-post-date,
.ma-ranking .wp-block-post::before,
.wp-block-query-pagination,
.wp-block-query-pagination-numbers {
	font-variant-numeric: tabular-nums;
}
/* セリフ見出し内の数字：Playfairのoldstyle数字（5・3等がベースライン下に落ちる）を
   ベースライン揃いのlining数字に強制し、和文と高さを揃える */
.wp-block-post-title,
.ma-section-title,
.ma-cat-title,
.ma-archive-title,
.ma-cta-band-title {
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1, "onum" 0;
}
/* キーボード操作のフォーカスを明確に可視化（a11y）。即時表示・アニメーションしない */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible,
.wp-block-navigation a:focus-visible {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
	border-radius: 1px;
}
.ma-navbar a:focus-visible {
	outline-color: #fff;
}
/* 縦書き・横はみ出し防止 */
html, body {
	overflow-x: clip;
}

/* ---------- masthead ---------- */
.ma-masthead {
	border-bottom: none;
}
.ma-masthead .wp-block-site-title {
	margin: 0;
}
.ma-masthead .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--display);
	font-size: 34px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.ma-masthead .wp-block-site-tagline {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--contrast-2);
	margin: 4px 0 0;
}
.ma-masthead-date {
	font-family: var(--wp--preset--font-family--numeric);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3em;
	color: var(--wp--preset--color--gold);
	margin: 0;
}

/* ---------- logo ---------- */
.ma-logo {
	margin: 0;
	line-height: 0;
}
.ma-logo img {
	width: 280px;
	height: auto;
}
/* ナビバー内のモバイル用ロゴ（PCでは非表示） */
.ma-navbar-logo {
	display: none;
	margin: 0;
}
.ma-navbar-logo a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	font-family: var(--wp--preset--font-family--display);
	color: #fff;
	text-decoration: none;
	line-height: 1;
}
.ma-navbar-logo-name {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.01em;
}
.ma-navbar-logo-tag {
	font-family: var(--wp--preset--font-family--base);
	font-size: 9.5px;
	font-weight: 500;
	letter-spacing: 0.18em;
	color: var(--wp--preset--color--gold);
	white-space: nowrap;
}

/* モバイル用カテゴリ帯（横スクロール）。PCでは非表示 */
.ma-mobile-catbar {
	display: none;
}

/* ---------- global nav (navy bar) ---------- */
.ma-navbar {
	background: linear-gradient(180deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-deep) 100%);
	border-bottom: 1px solid var(--wp--preset--color--gold);
}
.ma-navbar-inner {
	position: relative;
}
/* PCではナビを中央に、検索を右端に。モバイル用ロゴは隠す */
.ma-navbar-inner .wp-block-navigation {
	flex: 1;
}
.ma-search-toggle {
	flex-shrink: 0;
	background: transparent;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	transition: color 0.15s ease;
}
.ma-search-toggle:hover {
	color: var(--wp--preset--color--gold);
}
.ma-navbar .wp-block-navigation a,
.ma-navbar .wp-block-navigation .wp-block-navigation-item__content,
.ma-navbar .wp-block-navigation .wp-block-navigation-item__label {
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
}
.ma-navbar .wp-block-navigation a {
	padding: 11px 0;
	position: relative;
}
.ma-navbar .wp-block-navigation a:hover {
	color: #fff;
}
.ma-navbar .wp-block-navigation a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--wp--preset--color--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.ma-navbar .wp-block-navigation a:hover::after {
	transform: scaleX(1);
}
.ma-navbar .wp-block-navigation__responsive-container-open {
	color: #fff;
}

/* ---------- kicker + section title ---------- */
.ma-kicker {
	font-family: var(--wp--preset--font-family--numeric);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.32em;
	color: var(--wp--preset--color--gold);
	margin-bottom: 2px;
}
.ma-section-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 27px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-bottom: 1px solid var(--wp--preset--color--contrast);
	padding-bottom: 12px;
	margin-top: 4px;
	position: relative;
}
.ma-section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 88px;
	height: 3px;
	background: var(--wp--preset--color--primary);
}

/* ---------- meta row (badge + date) ---------- */
/* バッジと日付を文字のベースラインで揃える（中央揃えだと行高差でずれる） */
.ma-meta {
	align-items: baseline !important;
}

/* ---------- category badge ---------- */
.ma-badge {
	gap: 4px;
	/* 親の行高(1.9)を引き継ぐとバッジが行ボックス内で浮いて見えるため */
	line-height: 1;
}
.ma-badge a {
	display: inline-block;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1;
	padding: 5px 11px;
	text-decoration: none;
	transition: background 0.15s ease;
}
.ma-badge a:hover {
	color: #fff;
	background: var(--wp--preset--color--gold);
}
.ma-badge .wp-block-post-terms__separator {
	display: none;
}
/* カテゴリ併記時（例: M&Aニュース＋M&A事例）もバッジは先頭の1つだけ表示 */
.ma-badge a:not(:first-of-type) {
	display: none;
}

/* ---------- image zoom (shared: lead + archive grid) ---------- */
.ma-hero .wp-block-post-featured-image,
.ma-grid .wp-block-post-featured-image {
	overflow: hidden;
}
.ma-hero .wp-block-post-featured-image img,
.ma-grid .wp-block-post-featured-image img {
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ma-hero .wp-block-post:hover .wp-block-post-featured-image img,
.ma-grid .wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

/* ---------- lead 2カラム（左：大きなリード／右：PICK UP縦リスト）＋区切り線 ---------- */
.ma-lead-cols {
	gap: 0 !important;
	align-items: stretch;
}
.ma-lead-cols > .wp-block-column:first-child {
	padding-right: 24px;
}
.ma-lead-cols > .wp-block-column:last-child {
	padding-left: 24px;
	border-left: 1px solid var(--wp--preset--color--border);
}
/* hero: 画像の上に本文ブロックを重ねるエディトリアル構成 */
.ma-hero .wp-block-post-featured-image {
	margin: 0;
}
.ma-hero .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
}
.ma-hero .ma-hero-body {
	position: relative;
	background: var(--wp--preset--color--paper);
	margin-top: -64px;
	margin-right: 40px;
	padding: 22px 28px 0 0;
}
.ma-hero .ma-hero-body::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 64px;
	height: 4px;
	background: var(--wp--preset--color--gold);
}
.ma-hero .wp-block-post-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(27px, 2.8vw, 39px);
	font-weight: 800;
	line-height: 1.34;
	letter-spacing: -0.01em;
	margin: 16px 0 14px;
	overflow-wrap: anywhere;
}
.ma-hero .wp-block-post-title a {
	text-decoration: none;
}
.ma-hero .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 7px;
}
.ma-hero .wp-block-post-excerpt {
	font-size: 15px;
	color: var(--wp--preset--color--contrast-2);
	line-height: 2;
	margin-top: 0;
}

/* ---------- PICK UP side list ---------- */
.ma-hero-side .wp-block-post {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-bottom: 15px;
	margin-bottom: 15px;
}
.ma-hero-side .wp-block-post:last-child {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}
.ma-hero-side .wp-block-post-featured-image {
	flex-shrink: 0;
	overflow: hidden;
}
.ma-hero-side .wp-block-post-featured-image img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.ma-hero-side .wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}
/* バッジ→タイトル→日付の縦間隔を詰める */
.ma-hero-side .wp-block-post > .wp-block-group .wp-block-group {
	gap: 7px !important;
}
.ma-hero-side .ma-badge {
	margin-bottom: 1px;
}
.ma-hero-side .wp-block-post-title {
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.6;
	margin: 0;
}
.ma-hero-side .wp-block-post-title a {
	text-decoration: none;
}
.ma-hero-side .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary);
}

/* ---------- breaking news list ---------- */
.ma-newslist .wp-block-post {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 16px 6px;
	transition: background 0.15s ease, padding-left 0.2s ease;
}
/* 日付・バッジ・タイトルを文字のベースラインで揃える（中央揃えだと行高差で微妙にずれる） */
.ma-newslist .wp-block-post > .wp-block-group {
	align-items: baseline !important;
	flex-wrap: wrap;
	row-gap: 7px;
}
.ma-newslist .wp-block-post-date,
.ma-newslist .wp-block-post-title {
	line-height: 1.5;
}
.ma-newslist .wp-block-post:hover {
	background: #fff;
	box-shadow: 0 2px 12px rgba(20, 24, 60, 0.05);
	padding-left: 14px;
}
.ma-newslist .wp-block-post-date {
	min-width: 86px;
}
/* バッジ列に固定幅を与え、タイトルの開始位置を全行で揃える */
.ma-newslist .wp-block-post-terms {
	min-width: 84px;
}
.ma-newslist .wp-block-post-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	flex-basis: 100%; /* タイトルは常に独立行（日付+カテゴリの下）に＝全記事で統一 */
}
.ma-newslist .wp-block-post-title a {
	text-decoration: none;
}
.ma-newslist .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ---------- archive header ---------- */
.ma-archive-head {
	background:
		radial-gradient(ellipse 60% 140% at 92% 0%, rgba(176, 141, 47, 0.06), transparent 55%),
		#fff;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.ma-archive-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 36px;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	letter-spacing: 0.02em;
	margin: 6px 0 0;
	padding-left: 18px;
	border-left: 6px solid var(--wp--preset--color--gold);
	line-height: 1.3;
}
.ma-archive-desc {
	margin: 16px 0 0;
	font-size: 14.5px;
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.9;
	max-width: 760px;
}

/* ---------- latest feed list (thumbnail rows) ---------- */
.ma-feedlist .wp-block-post {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 18px 0;
}
.ma-feedlist .wp-block-post:first-child {
	padding-top: 8px;
}
.ma-feedlist .wp-block-post-featured-image {
	flex-shrink: 0;
	overflow: hidden;
}
.ma-feedlist .wp-block-post-featured-image img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.ma-feedlist .wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}
.ma-feedlist .ma-feed-body {
	flex: 1;
	min-width: 0;
}
.ma-feedlist .wp-block-post-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	margin: 0;
}
.ma-feedlist .wp-block-post-title a {
	text-decoration: none;
}
.ma-feedlist .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary);
}
/* 横長フィード（index/検索）は抜粋付き */
.ma-feedlist-wide .wp-block-post-title {
	font-size: 18px;
}
.ma-feedlist-wide .wp-block-post-excerpt {
	font-size: 13.5px;
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.8;
	margin: 0;
}
.ma-feedlist-wide .wp-block-post-excerpt__more-text {
	display: none;
}

/* ---------- ranking list ---------- */
.ma-ranking {
	counter-reset: rank;
}
.ma-ranking .wp-block-post {
	counter-increment: rank;
	position: relative;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 15px 0 15px 52px;
}
.ma-ranking .wp-block-post::before {
	content: counter(rank);
	position: absolute;
	left: 0;
	top: 14px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--numeric);
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--wp--preset--color--contrast-2);
}
.ma-ranking .wp-block-post:nth-child(1)::before {
	background: var(--wp--preset--color--gold);
}
.ma-ranking .wp-block-post:nth-child(2)::before,
.ma-ranking .wp-block-post:nth-child(3)::before {
	background: var(--wp--preset--color--primary);
}
.ma-ranking .wp-block-post-title {
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.6;
	margin: 0;
}
.ma-ranking .wp-block-post-title a {
	text-decoration: none;
}
.ma-ranking .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary);
}

/* ---------- home CTA band (revenue: referral) ---------- */
/* プレミアム改修：3層グラデ＋ラジアルグローを廃し、無地ディープネイビーに金ヘアラインの枠 */
.ma-cta-band {
	background: var(--wp--preset--color--primary-deep);
	border-top: 1px solid var(--wp--preset--color--gold);
	border-bottom: 1px solid var(--wp--preset--color--gold);
	position: relative;
}
.ma-cta-band-kicker {
	font-family: var(--wp--preset--font-family--numeric);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.34em;
	color: var(--wp--preset--color--gold);
	margin: 0 0 16px;
}
.ma-cta-band-title {
	font-family: var(--wp--preset--font-family--display);
	color: #fff;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.5;
	margin: 0 0 18px;
}
.ma-cta-band-text {
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;
	line-height: 1.95;
	max-width: 600px;
	margin: 0 auto 30px;
}
.ma-cta-band-btn .wp-block-button__link {
	background: var(--wp--preset--color--gold);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 15px 40px;
	border-radius: 0;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ma-cta-band-btn .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

/* ---------- magazine category sections ---------- */
/* 見出しは1本のヘアライン罫線に統一（金アンダーバーの突起・大シェブロンは廃止）。
   全大文字キッカー（SELL等）は維持。記事は横スクロールをやめ3カラムの整然グリッドに */
.ma-cat-row.is-layout-constrained > .ma-cat-head,
.ma-cat-row.is-layout-constrained > .wp-block-query {
	max-width: none;
}
.ma-cat-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-bottom: 14px;
	margin-bottom: 32px;
}
.ma-cat-head--simple {
	justify-content: flex-start;
}
/* キッカーは見出しの「上に」積む（タグ左・見出し右の二段組みは使わない） */
.ma-cat-head-main {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.ma-cat-head-main .ma-kicker {
	margin: 0;
	letter-spacing: 0.34em;
}
.ma-cat-head--simple .ma-kicker {
	margin: 0;
	letter-spacing: 0.34em;
}
.ma-cat-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 24px;
	font-weight: 800;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	letter-spacing: 0.01em;
}
.ma-cat-title:hover {
	color: var(--wp--preset--color--primary);
}
.ma-cat-more {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
	letter-spacing: 0.04em;
	white-space: nowrap;
	flex-shrink: 0;
}
.ma-cat-more::after {
	content: " →";
	color: var(--wp--preset--color--gold);
}
.ma-cat-more:hover {
	color: var(--wp--preset--color--primary);
}

/* 3カラムの記事グリッド（余白を広めにとり、紙面より読み物寄りのリズムに） */
.ma-row .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 38px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}
.ma-row .wp-block-post {
	position: relative;
	margin: 0;
}
.ma-row .wp-block-post-featured-image {
	margin: 0 0 14px;
	overflow: hidden;
}
.ma-row .wp-block-post-featured-image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
}
.ma-row .wp-block-post-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	margin: 0 0 8px;
}
.ma-row .wp-block-post-title a {
	text-decoration: none;
	background-image: linear-gradient(var(--wp--preset--color--gold), var(--wp--preset--color--gold));
	background-size: 0% 1.5px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.15s ease;
}
.ma-row .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
/* リビールは控えめに：画像ズーム/カードリフトは廃し、タイトルに金の下線が伸びるのみ */
.ma-row .wp-block-post:hover .wp-block-post-title a {
	color: var(--wp--preset--color--primary);
	background-size: 100% 1.5px;
}
.ma-row .wp-block-post-date {
	font-family: var(--wp--preset--font-family--numeric);
	font-size: 11.5px;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--contrast-2);
}

/* ---------- breadcrumb + reading time (article meta) ---------- */
.ma-breadcrumb {
	font-size: 12px;
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.7;
	margin-bottom: 10px;
}
.ma-breadcrumb a {
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
}
.ma-breadcrumb a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}
.ma-breadcrumb-sep {
	margin: 0 8px;
	color: var(--wp--preset--color--gold);
}
.ma-breadcrumb [aria-current="page"] {
	color: var(--wp--preset--color--contrast);
}
.ma-readtime {
	font-family: var(--wp--preset--font-family--numeric);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--contrast-2);
	margin: 0 0 18px;
}
.ma-readtime::before {
	content: "⏱";
	margin-right: 5px;
	opacity: 0.7;
}

/* ---------- table of contents ---------- */
/* 目次：グレー基調（控えめに） */
.ma-toc {
	background: #f7f7f5;
	border: 1px solid #e5e5e2;
	padding: 20px 24px;
	margin: 32px 0;
}
.ma-toc-title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #6b6f76;
	margin: 0 0 12px;
}
.ma-toc-list {
	counter-reset: toc;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ma-toc-list li {
	counter-increment: toc;
	position: relative;
	padding: 8px 0 8px 30px;
	border-top: 1px solid #e5e5e2;
	line-height: 1.6;
}
.ma-toc-list li:first-child {
	border-top: none;
}
.ma-toc-list li::before {
	content: counter(toc, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 8px;
	font-family: var(--wp--preset--font-family--numeric);
	font-size: 12px;
	font-weight: 700;
	color: #9aa0a6;
}
.ma-toc-list a {
	font-size: 14px;
	color: #44474d;
	text-decoration: none;
}
/* 本文リンク共通の金下線を目次内では無効化（グレー基調を維持） */
.ma-toc-list a,
.wp-block-post-content .ma-toc-list a {
	text-decoration: none;
	text-decoration-color: transparent;
}
.ma-toc-list a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-decoration-color: #9aa0a6;
	text-underline-offset: 3px;
}
/* 見出しジャンプ時に固定ヘッダー分のオフセットを確保 */
.wp-block-post-content :is(h2, h3)[id] {
	scroll-margin-top: 24px;
}

/* ---------- feature card grid ---------- */
/* ===== カテゴリ・アーカイブ：リード1本＋雑誌型インデックス（2カラム罫線リスト）=====
   Hallmark · macrostructure: Index-First · genre: editorial · redesign of: archive.html
   均一カードグリッド→編集的な階層へ。影付きカードは罫線に置換 */
.ma-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 44px;
	margin: 0;
}
.ma-grid .wp-block-post {
	position: relative;
	margin: 0;
	min-width: 0;
}
.ma-grid .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	background-image: linear-gradient(var(--wp--preset--color--gold), var(--wp--preset--color--gold));
	background-size: 0% 1.5px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.15s ease;
}
.ma-grid .wp-block-post:hover .wp-block-post-title a {
	color: var(--wp--preset--color--primary);
	background-size: 100% 1.5px;
}
/* カード全面をクリック可能に。バッジは個別リンクを維持 */
.ma-grid .wp-block-post-title a::after,
.ma-feedlist .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.ma-grid .ma-badge,
.ma-feedlist .ma-badge {
	position: relative;
	z-index: 2;
}
.ma-feedlist .wp-block-post {
	position: relative;
}
.ma-grid .wp-block-post-date {
	font-family: var(--wp--preset--font-family--numeric);
	font-size: 11.5px;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--contrast-2);
}

/* --- LEAD（先頭1本を全幅の特集に） --- */
.ma-grid .wp-block-post:first-child {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
	padding-bottom: 30px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.ma-grid .wp-block-post:first-child .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
}
.ma-grid .wp-block-post:first-child .wp-block-post-featured-image img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	width: 100%;
}
.ma-grid .wp-block-post:first-child .ma-card-body {
	padding: 0;
}
.ma-grid .wp-block-post:first-child .ma-badge {
	margin-bottom: 12px;
}
.ma-grid .wp-block-post:first-child .wp-block-post-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(21px, 2.1vw, 29px);
	font-weight: 800;
	line-height: 1.4;
	margin: 0 0 12px;
	overflow-wrap: anywhere;
}
.ma-grid .wp-block-post:first-child .wp-block-post-excerpt {
	font-size: 14.5px;
	line-height: 1.9;
	color: var(--wp--preset--color--contrast-2);
	margin: 0 0 12px;
}
.ma-grid .wp-block-post:first-child .wp-block-post-excerpt__more-text {
	display: none;
}

/* --- INDEX（2本目以降：サムネ＋抜粋の横カードを2カラム罫線で） --- */
.ma-grid .wp-block-post:not(:first-child) {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding: 22px 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.ma-grid .wp-block-post:not(:first-child) .wp-block-post-featured-image {
	flex: 0 0 148px;
	margin: 0;
	overflow: hidden;
}
.ma-grid .wp-block-post:not(:first-child) .wp-block-post-featured-image img {
	width: 148px;
	height: 99px;
	object-fit: cover;
}
.ma-grid .wp-block-post:not(:first-child) .ma-card-body {
	flex: 1;
	min-width: 0;
	padding: 0;
}
.ma-grid .wp-block-post:not(:first-child) .ma-badge {
	margin-bottom: 7px;
}
.ma-grid .wp-block-post:not(:first-child) .wp-block-post-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.55;
	margin: 0 0 6px;
}
.ma-grid .wp-block-post:not(:first-child) .wp-block-post-excerpt {
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--wp--preset--color--contrast-2);
	margin: 0 0 7px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ma-grid .wp-block-post:not(:first-child) .wp-block-post-excerpt__more-text {
	display: none;
}

/* ---------- diagram (スライド風図解) ---------- */
.ma-diagram img {
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: 0 2px 12px rgba(0, 17, 134, 0.06);
}

/* ---------- single article ---------- */
.ma-article-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 29px;
	line-height: 1.5;
}
.ma-article-lead {
	border-top: 3px solid var(--wp--preset--color--primary);
	margin-top: 28px;
}
.wp-block-post-content {
	font-size: 15px;
	line-height: 1.95;
}
.wp-block-post-content h2 {
	font-size: 21px;
	border-left: 4px solid var(--wp--preset--color--primary);
	padding-left: 14px;
	margin-top: 2.2em;
}
.wp-block-post-content h3 {
	font-size: 17px;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-bottom: 6px;
	margin-top: 2em;
}
/* リード文（記事冒頭の段落）: 本文よりわずかに大きい程度に抑える（差が目立たないように） */
.wp-block-post-content > p:first-of-type {
	font-size: 15.5px;
	line-height: 2;
	color: #3a3f44;
}
/* 本文中のリンク: ゴールドの下線で品よく */
.wp-block-post-content a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--gold);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
	transition: text-decoration-color 0.15s ease;
}
.wp-block-post-content a:hover {
	text-decoration-color: var(--wp--preset--color--primary);
}
/* 表: ヘアライン罫×無彩色の資料体（事例カードと統一。紺ベタ見出し＋ゼブラは廃止） */
.wp-block-post-content .wp-block-table {
	font-size: 14px;
	margin: 28px 0;
}
.wp-block-post-content .wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}
/* ヘッダー行：塗りつぶさず、紺文字＋下罫で締める */
.wp-block-post-content .wp-block-table thead th,
.wp-block-post-content .wp-block-table thead td {
	background: none;
	color: var(--wp--preset--color--primary);
	border: none;
	border-bottom: 2px solid var(--wp--preset--color--primary);
	padding: 12px 16px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.03em;
	text-align: left;
}
/* 本文：ゼブラ無し・ヘアライン区切りのみ */
.wp-block-post-content .wp-block-table tbody th,
.wp-block-post-content .wp-block-table tbody td {
	background: none;
	border: none;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 12px 16px;
	color: #44474d;
	line-height: 1.75;
	vertical-align: top;
}
/* 先頭列（行ラベル）を小見出し化 */
.wp-block-post-content .wp-block-table tbody tr td:first-child,
.wp-block-post-content .wp-block-table tbody tr th:first-child {
	color: #3a3d43;
	font-weight: 700;
}
/* モバイルで内容列に押されてラベル列が1文字ずつ縦組みになるのを防ぐ：
 * 先頭列に最小幅を確保（auto layoutでは長い内容がラベル列を極限まで潰すため）。2026-08-02 */
.wp-block-post-content .wp-block-table thead th:first-child,
.wp-block-post-content .wp-block-table thead td:first-child,
.wp-block-post-content .wp-block-table tbody tr td:first-child,
.wp-block-post-content .wp-block-table tbody tr th:first-child {
	min-width: 7em;
}

/* Hallmark · component: data-table (事例カード / 時系列) · genre: editorial · theme: 目次トーン（グレー基調・無彩色）
 * pre-emit critique: P5 H5 E5 S5 R5 V4
 * 方針: 目次(.ma-toc)と同じ静かなグレー基調。背景色は全セル無地で統一（ゼブラ廃止）、金/紺の装飾を排し薄いヘアライン罫のみ。
 * 左ラベル列・日付列は折り返さない。モバイルでは時系列を縦積み（日付を上）にして縦組み化を防ぐ。 */
.wp-block-post-content .wp-block-table.ma-casecard,
.wp-block-post-content .wp-block-table.ma-timeline {
	margin: 32px 0;
	font-size: 14px;
}
.wp-block-post-content .wp-block-table.ma-casecard table,
.wp-block-post-content .wp-block-table.ma-timeline table {
	border-collapse: collapse;
	width: 100%;
	border-top: 1px solid var(--wp--preset--color--border);
}
/* 全セル無地で統一（generic のゼブラより詳細度を上げて無効化） */
.wp-block-post-content .wp-block-table.ma-casecard tbody tr td,
.wp-block-post-content .wp-block-table.ma-casecard tbody tr:nth-child(even) td,
.wp-block-post-content .wp-block-table.ma-timeline tbody tr td,
.wp-block-post-content .wp-block-table.ma-timeline tbody tr:nth-child(even) td {
	background: none;
	border: none;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 13px 16px;
	vertical-align: top;
	line-height: 1.75;
}

/* 事例カード：左ラベル列＝グレーの小見出し（nowrap・無地） */
.wp-block-post-content .wp-block-table.ma-casecard tbody tr td:first-child {
	white-space: nowrap;
	width: 1%;
	color: #3a3d43;
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: 0.04em;
	padding-right: 28px;
}
.wp-block-post-content .wp-block-table.ma-casecard tbody tr td:last-child {
	color: #44474d;
}
.wp-block-post-content .wp-block-table.ma-casecard tbody tr:first-child td:last-child {
	font-weight: 700;
}

/* 時系列：日付列＝グレーのMontserrat数字（nowrap・マーカーなし） */
.wp-block-post-content .wp-block-table.ma-timeline tbody tr td:first-child {
	white-space: nowrap;
	width: 1%;
	font-family: var(--wp--preset--font-family--numeric);
	font-weight: 700;
	font-size: 12.5px;
	color: #3a3d43;
	padding-right: 24px;
}
.wp-block-post-content .wp-block-table.ma-timeline tbody tr td:last-child {
	color: #44474d;
}

/* モバイル：時系列は日付を上・出来事を下に積む（縦組み防止） */
@media (max-width: 600px) {
	.wp-block-post-content .wp-block-table.ma-casecard tbody tr td {
		padding: 11px 12px;
	}
	.wp-block-post-content .wp-block-table.ma-timeline table,
	.wp-block-post-content .wp-block-table.ma-timeline tbody,
	.wp-block-post-content .wp-block-table.ma-timeline tbody tr,
	.wp-block-post-content .wp-block-table.ma-timeline tbody tr td {
		display: block;
		width: auto;
	}
	.wp-block-post-content .wp-block-table.ma-timeline tbody tr {
		border-bottom: 1px solid var(--wp--preset--color--border);
		padding: 8px 0;
	}
	.wp-block-post-content .wp-block-table.ma-timeline tbody tr td {
		border-bottom: none;
		padding: 2px 2px;
		white-space: normal;
	}
	.wp-block-post-content .wp-block-table.ma-timeline tbody tr td:first-child {
		margin-bottom: 3px;
	}
}
/* 引用 */
.wp-block-post-content blockquote {
	border-left: 3px solid var(--wp--preset--color--gold);
	background: #fff;
	padding: 18px 22px;
	color: var(--wp--preset--color--contrast-2);
	font-size: 14.5px;
}
/* キャプション */
.wp-block-post-content figcaption {
	text-align: center;
	font-size: 12px;
	color: var(--wp--preset--color--contrast-2);
	margin-top: 10px;
	letter-spacing: 0.04em;
}
/* 記事の白いコンテンツ面（紙の上の紙） */
.ma-article-lead img {
	box-shadow: 0 4px 24px rgba(0, 17, 134, 0.08);
}

/* ---------- footer ---------- */
.ma-footer {
	background:
		radial-gradient(ellipse 90% 60% at 20% -10%, rgba(176, 141, 47, 0.12), transparent 60%),
		var(--wp--preset--color--primary-deep);
	color: rgba(255, 255, 255, 0.85);
	border-top: 3px solid var(--wp--preset--color--gold);
}
.ma-footer .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--display);
	color: #fff;
	font-size: 34px;
	letter-spacing: 0.01em;
	text-decoration: none;
}
.ma-footer h4 {
	color: var(--wp--preset--color--gold);
	font-family: var(--wp--preset--font-family--numeric);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.28em;
	margin-bottom: 16px;
}
.ma-footer a {
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
	text-decoration: none;
}
.ma-footer a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.ma-footer ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}
/* WPのリストブロックが当てる大きなblockGapを打ち消して詰める */
.ma-footer .wp-block-categories,
.ma-footer .wp-block-page-list,
.ma-footer .ma-footer-links {
	display: flex;
	flex-direction: column;
	gap: 11px;
}
.ma-footer li {
	margin: 0;
	line-height: 1.4;
}
.ma-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
}

/* ---------- sidebar ---------- */
/* CTAボックスはサイドバー先頭に固定配置（stickyは下の新着・カテゴリと重なるため不採用） */
.ma-cta-box {
	background:
		radial-gradient(ellipse 100% 70% at 80% -20%, rgba(176, 141, 47, 0.25), transparent 60%),
		var(--wp--preset--color--primary-deep);
	padding: 28px 24px;
	margin-bottom: 40px;
}
.ma-cta-kicker {
	font-family: var(--wp--preset--font-family--numeric);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3em;
	color: var(--wp--preset--color--gold);
	margin: 0 0 10px;
}
.ma-cta-title {
	color: #fff;
	font-size: 19px;
	line-height: 1.55;
	margin: 0 0 12px;
}
.ma-cta-text {
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	line-height: 1.85;
	margin: 0 0 18px;
}
.ma-cta-button a {
	display: block;
	background: var(--wp--preset--color--gold);
	color: #fff;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	padding: 13px 16px;
	text-decoration: none;
	transition: opacity 0.15s ease;
}
.ma-cta-button a:hover {
	opacity: 0.85;
}

/* サイドバーの見出し（罫線＋金アンダーバー、箱組みはしない） */
.ma-side-title {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-bottom: 2px solid var(--wp--preset--color--primary);
	padding-bottom: 9px;
	margin: 0 0 6px;
	position: relative;
}
.ma-side-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 40px;
	height: 2px;
	background: var(--wp--preset--color--gold);
}

/* 新着リスト */
.ma-side-list {
	margin-bottom: 40px;
}
.ma-side-list .wp-block-post {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 13px 0;
}
.ma-side-list .wp-block-post-title {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.65;
	margin: 0;
}
.ma-side-list .wp-block-post-title a {
	text-decoration: none;
}
.ma-side-list .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary);
}

/* カテゴリリスト（padding競合を解消：余白はli/aで一元管理） */
.ma-side-cats {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ma-side-cats li {
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.ma-side-cats a {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	padding: 13px 4px 13px 16px;
	text-decoration: none;
	position: relative;
	transition: padding-left 0.18s ease, color 0.15s ease;
}
.ma-side-cats a::before {
	content: "›";
	position: absolute;
	left: 2px;
	color: var(--wp--preset--color--gold);
	font-weight: 700;
}
.ma-side-cats a:hover {
	color: var(--wp--preset--color--primary);
	padding-left: 20px;
}

/* ---------- full-width band ---------- */
.ma-band {
	background:
		radial-gradient(ellipse 80% 100% at 100% 0%, rgba(176, 141, 47, 0.06), transparent 50%),
		#f1f0ec;
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/* ---------- pagination ---------- */
.wp-block-query-pagination {
	font-family: var(--wp--preset--font-family--numeric);
	font-size: 14px;
	margin-top: 40px;
}
.wp-block-query-pagination-numbers .page-numbers {
	display: inline-block;
	min-width: 36px;
	text-align: center;
	padding: 7px 6px;
	border: 1px solid var(--wp--preset--color--border);
	background: #fff;
	text-decoration: none;
	margin: 0 2px;
}
.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-color: var(--wp--preset--color--primary);
}
.wp-block-query-pagination a:hover {
	color: var(--wp--preset--color--primary);
}

/* ---------- search overlay ---------- */
.ma-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 8, 64, 0.55);
	backdrop-filter: blur(3px);
	display: flex;
	align-items: flex-start;
	justify-content: center;
}
.ma-search-overlay[hidden] {
	display: none;
}
.ma-search-panel {
	position: relative;
	width: min(680px, 92vw);
	background: #fff;
	margin-top: 12vh;
	padding: 40px 36px 32px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.ma-search-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: var(--wp--preset--color--contrast-2);
	cursor: pointer;
}
.ma-search-close:hover {
	color: var(--wp--preset--color--primary);
}
.ma-search-kicker {
	font-family: var(--wp--preset--font-family--numeric);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3em;
	color: var(--wp--preset--color--gold);
	margin: 0 0 12px;
}
.ma-search-input {
	width: 100%;
	font-size: 17px;
	padding: 14px 4px;
	border: none;
	border-bottom: 2px solid var(--wp--preset--color--primary);
	background: transparent;
	outline: none;
}
.ma-search-input::placeholder {
	color: #9aa0ad;
	font-size: 14px;
}
.ma-search-results {
	margin-top: 8px;
	max-height: 46vh;
	overflow-y: auto;
}
.ma-search-results a {
	display: block;
	padding: 13px 4px;
	border-bottom: 1px solid var(--wp--preset--color--border);
	text-decoration: none;
}
.ma-search-results a:hover {
	background: var(--wp--preset--color--surface);
}
.ma-search-result-cat {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #fff;
	background: var(--wp--preset--color--primary);
	padding: 2px 8px;
	margin-bottom: 5px;
}
.ma-search-result-title {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
	line-height: 1.55;
}
.ma-search-empty {
	padding: 18px 4px;
	color: var(--wp--preset--color--contrast-2);
	font-size: 14px;
}

/* ---------- responsive ---------- */

/* モバイルメニュー＝日経風の左スライドドロワー
   overlayBackgroundColor/overlayTextColor をブロックに設定済み */
.wp-block-navigation__responsive-container.is-menu-open {
	justify-content: flex-start !important;
	align-items: stretch !important;
	padding: 0 !important;
	background: rgba(0, 8, 64, 0.5) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	width: min(82vw, 340px);
	height: 100%;
	background: var(--wp--preset--color--primary-deep);
	padding: 70px 26px 32px;
	box-shadow: 6px 0 28px rgba(0, 0, 0, 0.3);
	animation: ma-drawer-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
	overflow-y: auto;
	align-items: stretch;
}
@keyframes ma-drawer-in {
	from { transform: translateX(-100%); }
	to { transform: translateX(0); }
}
/* 中間ラッパー（responsive-close / responsive-dialog）が中身の高さで止まり、
   ドロワーが画面の途中で途切れて見える問題の対策: 全画面コンテナいっぱいまで伸ばす */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	height: 100%;
}
/* ドロワー限定項目（CTA・サブリンク）: デスクトップのインラインナビでは出さない */
.wp-block-navigation .ma-nav-cta,
.wp-block-navigation .ma-nav-sub {
	display: none;
}
.wp-block-navigation__responsive-container.is-menu-open .ma-nav-cta,
.wp-block-navigation__responsive-container.is-menu-open .ma-nav-sub {
	display: flex;
}
.wp-block-navigation__responsive-container.is-menu-open .ma-nav-cta a {
	justify-content: center;
	text-align: center;
	border-bottom: 0;
	padding: 13px 4px;
	margin-bottom: 4px;
}
.wp-block-navigation__responsive-container.is-menu-open .ma-nav-cta-consult a {
	background: var(--wp--preset--color--gold);
	color: #fff;
}
.wp-block-navigation__responsive-container.is-menu-open .ma-nav-cta-register a {
	border: 1px solid rgba(255, 255, 255, 0.55);
	color: #fff;
	margin-bottom: 20px;
}
.wp-block-navigation__responsive-container.is-menu-open .ma-nav-sub a {
	font-size: 13px;
	font-weight: 500;
	opacity: 0.75;
	border-bottom: 0;
	padding: 9px 4px;
}
/* 直前の「コラム」のborder-bottomが区切り線を兼ねるので、ここにborder-topは引かない（二重線防止） */
.wp-block-navigation__responsive-container.is-menu-open .ma-nav-sub-first {
	margin-top: 16px;
	padding-top: 12px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	/* ナビブロックのblockGap(32px)由来のレイアウトCSSに勝つため!important（CTAボタン間が開きすぎる） */
	gap: 6px !important;
	align-items: stretch;
}
/* メニュー項目は左揃え（日経風） */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	justify-content: flex-start;
	width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open a {
	font-size: 16.5px;
	font-weight: 700;
	padding: 18px 4px;
	width: 100%;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.wp-block-navigation__responsive-container-close {
	color: #fff;
	top: 18px !important;
	left: auto;
	right: 20px;
}
.wp-block-navigation__responsive-container-open {
	color: #fff;
}
.ma-navbar .wp-block-navigation__responsive-container-open {
	padding: 9px 0;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		animation: none;
	}
}

/* タブレット */
@media (max-width: 1024px) {
	.ma-grid .wp-block-post-template {
		column-gap: 32px;
	}
	.ma-row .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 28px;
	}
	.ma-navbar .wp-block-navigation {
		gap: 24px;
	}
}

/* モバイル */
@media (max-width: 781px) {
	/* ブロック間のデフォルト余白を全体的に圧縮 */
	body {
		--wp--style--block-gap: 14px;
	}
	main.wp-block-group {
		padding-top: 20px !important;
	}

	/* カテゴリ・アーカイブ：1カラム化＋リードを縦積み */
	.ma-grid .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr);
		column-gap: 0;
	}
	.ma-grid .wp-block-post:first-child {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		align-items: stretch;
		padding-bottom: 26px;
	}
	.ma-grid .wp-block-post:first-child .wp-block-post-featured-image {
		margin: 0 0 16px;
	}
	.ma-grid .wp-block-post:first-child .wp-block-post-title {
		font-size: 21px;
	}
	.ma-grid .wp-block-post:not(:first-child) .wp-block-post-featured-image {
		flex: 0 0 116px;
	}
	.ma-grid .wp-block-post:not(:first-child) .wp-block-post-featured-image img {
		width: 116px;
		height: 78px;
	}
	/* トップのカテゴリセクション間: PCの76〜84px（＋旧kicker加算40px）はSPでは過大なので44pxに圧縮 */
	.ma-cat-row {
		margin-top: 44px !important;
	}
	/* トップのCTA帯: SPは上下の余白を圧縮 */
	.ma-cta-band {
		margin-top: 44px !important;
		padding-top: 38px !important;
		padding-bottom: 38px !important;
	}
	/* カテゴリページFV: SPは頭の余白を圧縮し、最初の記事までのスクロールを短縮 */
	.ma-archive-head {
		padding-top: 22px !important;
		padding-bottom: 20px !important;
	}
	.ma-archive-title {
		font-size: 26px;
		padding-left: 14px;
		border-left-width: 5px;
	}
	.ma-archive-desc {
		margin-top: 10px;
		font-size: 13px;
		line-height: 1.8;
	}

	/* 日経風コンパクトバー：マストヘッドを隠し、ナビバーを
	   [ハンバーガー左｜ロゴ中央｜検索右] の1行にする */
	.ma-masthead {
		display: none;
	}
	/* ナビバーは画面上部に固定（スクロール中もメニュー・検索へ即アクセス）。
	   カテゴリ帯は固定しない＝2段固定は画面を圧迫するため */
	.ma-navbar {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 990; /* 検索オーバーレイ(1000)・チャット(9000)より下 */
	}
	body {
		padding-top: 59px; /* ナビバー高さ58px＋下ボーダー1px分を確保 */
	}
	body.admin-bar .ma-navbar {
		top: 46px;
	}
	html {
		scroll-padding-top: 72px; /* 目次アンカーが固定バーに隠れないように */
	}
	.ma-navbar-inner {
		min-height: 58px;
	}
	.ma-navbar-logo {
		display: block;
		order: 2;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		pointer-events: auto;
	}
	.ma-navbar-inner .wp-block-navigation {
		order: 1;
		flex: 0 0 auto;
	}
	.ma-search-toggle {
		order: 3;
	}

	/* カテゴリ帯：ナビバー直下に横スクロールのチップ列を表示し回遊性を確保 */
	.ma-mobile-catbar {
		display: flex;
		align-items: stretch;
		gap: 0;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		background: #fff;
		border-bottom: 1px solid var(--wp--preset--color--border);
		padding: 0 4px;
	}
	.ma-mobile-catbar::-webkit-scrollbar {
		display: none;
	}
	.ma-mobile-catbar a {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		padding: 11px 13px;
		font-size: 13px;
		font-weight: 700;
		white-space: nowrap;
		color: var(--wp--preset--color--contrast);
		text-decoration: none;
		border-bottom: 2px solid transparent;
		transition: color 0.15s ease, border-color 0.15s ease;
	}
	.ma-mobile-catbar a:active {
		color: var(--wp--preset--color--primary);
	}
	.ma-mobile-catbar-home {
		color: var(--wp--preset--color--primary) !important;
		padding-left: 10px !important;
		padding-right: 10px !important;
		border-right: 1px solid var(--wp--preset--color--border);
		margin-right: 2px;
	}

	/* リード2カラム：スタック時は縦の区切り線を横線に切替 */
	.ma-lead-cols > .wp-block-column:first-child {
		padding-right: 0;
	}
	.ma-lead-cols > .wp-block-column:last-child {
		padding-left: 0;
		border-left: 0;
		margin-top: 28px;
		padding-top: 28px;
		border-top: 1px solid var(--wp--preset--color--border);
	}
	/* hero: スタック時は本文の画像重ねを解除して通常の縦積みに */
	.ma-hero .ma-hero-body {
		margin-top: 0;
		margin-right: 0;
		padding: 14px 0 0;
	}
	.ma-hero .ma-hero-body::before {
		display: none;
	}
	.ma-hero .wp-block-post-title {
		font-size: 22px;
		margin: 8px 0 10px;
	}
	.ma-hero .wp-block-post-excerpt {
		font-size: 14.5px;
	}

	/* 速報リスト：日付+バッジを1行目、タイトルを2行目に折返し */
	.ma-newslist .wp-block-post > .wp-block-group {
		flex-wrap: wrap;
		row-gap: 6px;
	}
	.ma-newslist .wp-block-post-title {
		flex-basis: 100%;
	}
	.ma-newslist .wp-block-post-date {
		min-width: 0;
	}
	.ma-newslist .wp-block-post:hover {
		padding-left: 6px;
	}

	/* 新着フィード：サムネイルを小さく */
	.ma-feedlist .wp-block-post-featured-image,
	.ma-feedlist .wp-block-post-featured-image img {
		width: 116px !important;
		height: 77px !important;
	}
	.ma-feedlist .wp-block-post-title {
		font-size: 15px;
	}
	.ma-feedlist .wp-block-post > .wp-block-group {
		gap: 14px;
	}

	/* ホームCTAバンド */
	.ma-cta-band-title {
		font-size: 22px;
	}
	.ma-cta-band-text {
		font-size: 14px;
	}

	/* セクション見出し */
	.ma-section-title {
		font-size: 21px;
	}

	/* 記事タイトル */
	.ma-article-title {
		font-size: 22px;
	}

	/* 記事サイドバー: スタック時はCTAボックスを出さない（記事末尾のCTAバンドと重複するため） */
	.ma-sidebar .ma-cta-box {
		display: none;
	}

	/* ホーム上部の2カラム（ヒーロー/PICK UP, 新着/ランキング）の縦間隔 */
	.ma-feedlist {
		margin-bottom: 8px;
	}
	.ma-ranking {
		margin-top: 8px;
	}

	/* カテゴリ行：スマホでは横スクロールをやめ、note風の縦リスト
	   （左にタイトル＋日付、右にサムネイル）にして一覧性を確保 */
	.ma-row .wp-block-post-template {
		display: block;
		grid-auto-columns: auto;
		gap: 0;
		overflow: visible;
		scroll-snap-type: none;
		padding-bottom: 0;
	}
	.ma-row .wp-block-post {
		display: grid;
		grid-template-columns: 1fr 116px;
		grid-template-areas:
			"title image"
			"date  image";
		column-gap: 14px;
		align-items: start;
		padding: 16px 0;
		border-top: 1px solid var(--wp--preset--color--border);
	}
	.ma-row .wp-block-post-template > .wp-block-post:first-child {
		border-top: 0;
		padding-top: 4px;
	}
	.ma-row .wp-block-post-featured-image {
		grid-area: image;
		align-self: start;
		margin: 0;
		border-radius: 4px;
	}
	.ma-row .wp-block-post-featured-image img {
		aspect-ratio: 16 / 10;
		width: 116px;
		height: auto;
	}
	.ma-row .wp-block-post-title {
		grid-area: title;
		font-size: 15.5px;
		margin: 0 0 6px;
	}
	.ma-row .wp-block-post-date {
		grid-area: date;
		align-self: end;
	}
}

/* スマホ（縦） */
@media (max-width: 600px) {

	/* フッター: スタック時の列間に十分な余白を確保（キャッチとCATEGORYの近接を解消） */
	.ma-footer .wp-block-columns {
		gap: 0 !important;
	}
	.ma-footer .wp-block-column + .wp-block-column {
		margin-top: 36px;
		padding-top: 32px;
		border-top: 1px solid rgba(255, 255, 255, 0.12);
	}
	.ma-footer h4 {
		margin-bottom: 14px;
	}
	/* カテゴリ一覧は2列にして縦長を解消 */
	.ma-footer .wp-block-categories {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px 16px;
	}
	.ma-footer-bottom {
		flex-direction: column;
		gap: 6px;
		align-items: flex-start;
	}
}

/* ============================================
   membership — 会員基盤（リード獲得）
   仕様: ma-media/MEMBERSHIP.md ／ 制御: assets/js/member.js
   ゲートは body.ma-locked が付いた時のみ発動（no-JS・クローラーには全文表示）
   ============================================ */

/* ---------- ヘッダーの会員メニュー ---------- */
.ma-member-menu {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}
.ma-member-login {
	font-size: 12px;
	font-weight: 500;
	color: #fff;
	text-decoration: none;
	opacity: 0.85;
}
.ma-member-login:hover {
	opacity: 1;
}
.ma-member-btn {
	display: inline-block;
	background: var(--wp--preset--color--gold);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 8px 14px;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}
.ma-member-btn:hover {
	opacity: 0.85;
	color: #fff;
}

/* ---------- フォーム共通（Hallmark redesign 2026-07-05） ----------
 * Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · scope: member screens (form voice)
 * genre: editorial · theme: brand-locked (navy/gold) · macrostructure: n/a（ページ断片スコープ）
 * voice: 新聞の入会申込書 — 下線ヘアラインの記入欄／ボタン3層（金=CV・紺=管理・赤枠=破壊的）
 * 登録=2カラム（紺の案内パネル＋申込用紙）／マイページ=会員証カード＋相談パネル＋折りたたみ設定
 */
.ma-mypage,
.ma-form-login,
.ma-form-done {
	max-width: 660px;
}
.ma-member-lede {
	font-size: 16px;
	line-height: 1.9;
}

/* --- 登録ページ：左=会員案内（sticky）／右=申込用紙 --- */
main:has(.ma-member-register) .wp-block-post-title {
	display: none;
}
.ma-register-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin: 0 0 6px;
}
.ma-member-register {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 48px;
	align-items: start;
}
.ma-register-aside {
	position: sticky;
	top: 24px;
	background: var(--wp--preset--color--surface);
	padding: 26px 28px 22px;
	box-shadow: 0 1px 2px rgba(16, 24, 64, 0.05), 0 8px 24px rgba(16, 24, 64, 0.08);
}
.ma-register-aside-text {
	color: var(--wp--preset--color--contrast);
	font-size: 13px;
	line-height: 2;
	margin: 0 0 18px;
}
.ma-register-aside .ma-member-benefits {
	background: transparent;
	border-top: 1px solid rgba(26, 26, 26, 0.25);
	padding: 4px 0 0;
	margin: 0;
}
.ma-register-aside .ma-member-benefits li {
	border-bottom: 1px solid rgba(26, 26, 26, 0.1);
	padding: 12px 0 12px 24px;
	margin: 0;
}
.ma-register-aside .ma-member-benefits li:last-child {
	border-bottom: 0;
}
.ma-register-aside .ma-member-benefits li::before {
	top: 12px;
}
.ma-register-aside-note {
	margin: 14px 0 0;
	font-size: 12px;
	color: var(--wp--preset--color--contrast-2);
}
.ma-register-aside-note a {
	margin-left: 4px;
}

/* ベネフィット（既定：記事末尾CTAバンド等で使用） */
.ma-member-benefits {
	list-style: none;
	padding: 20px 22px;
	margin: 20px 0 28px;
	background: var(--wp--preset--color--surface);
	border-top: 2px solid var(--wp--preset--color--primary);
}
.ma-member-benefits li {
	position: relative;
	padding-left: 22px;
	margin: 8px 0;
	font-size: 14px;
	line-height: 1.8;
}
.ma-member-benefits li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--gold);
	font-weight: 700;
}

/* --- 記入欄：下線ヘアライン（申込用紙の声）。選択・複数行は薄枠ボックス --- */
.ma-form {
	margin: 24px 0 8px;
}
.ma-form-field {
	display: block;
	margin: 0 0 24px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--contrast);
}
.ma-form-req,
.ma-form-opt {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-left: 8px;
}
.ma-form-req {
	color: var(--wp--preset--color--breaking);
}
.ma-form-opt {
	color: var(--wp--preset--color--contrast-2);
}
.ma-form-field input[type="email"],
.ma-form-field input[type="password"],
.ma-form-field input[type="text"],
.ma-form-field input[type="tel"] {
	display: block;
	width: 100%;
	margin-top: 2px;
	padding: 10px 2px;
	font-size: 15px;
	font-family: inherit;
	font-weight: 400;
	color: var(--wp--preset--color--contrast);
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(26, 26, 26, 0.35);
	border-radius: 0;
	caret-color: var(--wp--preset--color--primary);
}
.ma-form-field input[type="email"]:focus,
.ma-form-field input[type="password"]:focus,
.ma-form-field input[type="text"]:focus,
.ma-form-field input[type="tel"]:focus {
	outline: none;
	border-bottom: 2px solid var(--wp--preset--color--primary);
	padding-bottom: 9px;
}
.ma-form-field textarea {
	resize: vertical;
	max-height: 360px;
}
.ma-form-field select,
.ma-form-field textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 11px 12px;
	font-size: 15px;
	font-family: inherit;
	font-weight: 400;
	color: var(--wp--preset--color--contrast);
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
}
.ma-form-field select:focus,
.ma-form-field textarea:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: -1px;
}

/* 立場ラジオ：枠を捨て、ヘアラインの行に */
fieldset.ma-form-radios {
	border: 0;
	padding: 0;
	margin: 0 0 24px;
}
fieldset.ma-form-radios legend {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 0 0 4px;
}
.ma-form-radio {
	display: block;
	font-size: 14px;
	font-weight: 400;
	padding: 11px 2px;
	margin: 0;
	border-bottom: 1px solid rgba(26, 26, 26, 0.12);
	cursor: pointer;
}
.ma-form-radio:first-of-type {
	border-top: 1px solid rgba(26, 26, 26, 0.35);
}
.ma-form-radio input {
	accent-color: var(--wp--preset--color--primary);
	margin-right: 6px;
}
.ma-form-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.ma-form-consent {
	display: block;
	font-size: 13px;
	margin: 0 0 14px;
	cursor: pointer;
}
.ma-form-consent input {
	accent-color: var(--wp--preset--color--primary);
	margin-right: 4px;
}
.ma-form-msg {
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 12px;
	min-height: 1em;
}
.ma-form-msg.is-error {
	color: var(--wp--preset--color--breaking);
}
.ma-form-msg.is-ok {
	color: var(--wp--preset--color--primary);
}

/* --- ボタン3層：金=コンバージョン／紺=管理操作／赤枠=破壊的操作 --- */
.ma-form-submit {
	display: block;
	width: 100%;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	letter-spacing: 0.08em;
	border: 0;
	padding: 15px 16px;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.ma-form-submit:hover {
	background: var(--wp--preset--color--primary-deep);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 12, 94, 0.18);
}
.ma-form-submit:active {
	transform: translateY(0);
	box-shadow: none;
}
.ma-form-submit:disabled {
	opacity: 0.45;
	cursor: default;
	transform: none;
	box-shadow: none;
}
.ma-form-primary {
	background: var(--wp--preset--color--gold);
}
.ma-form-primary:hover {
	background: #96762a;
	box-shadow: 0 6px 16px rgba(0, 12, 94, 0.22);
}
.ma-form-danger {
	background: transparent;
	color: var(--wp--preset--color--breaking);
	border: 1px solid var(--wp--preset--color--breaking);
}
.ma-form-danger:hover {
	background: var(--wp--preset--color--breaking);
	color: #fff;
	box-shadow: none;
	transform: none;
}
.ma-form-alt {
	font-size: 13px;
	color: var(--wp--preset--color--contrast-2);
	margin-top: 16px;
}
.ma-demo-note {
	font-size: 12px;
	color: var(--wp--preset--color--contrast-2);
	background: var(--wp--preset--color--surface);
	padding: 10px 12px;
}

/* --- マイページ：会員証カード＋相談パネル＋折りたたみ設定 --- */
.ma-member-card {
	background: var(--wp--preset--color--surface);
	padding: 22px 26px 20px;
	margin: 0 0 36px;
	box-shadow: 0 1px 2px rgba(16, 24, 64, 0.05), 0 8px 24px rgba(16, 24, 64, 0.08);
}
.ma-member-card-name {
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--primary);
	font-size: 26px;
	line-height: 1.4;
	margin: 8px 0 6px;
}
.ma-member-card-meta {
	color: var(--wp--preset--color--contrast-2);
	font-size: 12.5px;
	letter-spacing: 0.02em;
	margin: 0;
}
.ma-member-card-sep {
	margin: 0 8px;
	color: var(--wp--preset--color--border);
}
.ma-consult-panel {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	padding: 0 26px 26px;
	margin: 0 0 12px;
	box-shadow: 0 1px 2px rgba(16, 24, 64, 0.05), 0 8px 24px rgba(16, 24, 64, 0.08);
}
/* 会員画面の章見出し：記事h2の左縦バーと二重にならないよう下線スタイルに統一 */
.wp-block-post-content .ma-section-title {
	border-left: 0;
	padding-left: 0;
}
.ma-consult-panel .ma-section-title {
	margin-top: 26px;
}
.ma-consult-lede {
	font-size: 14px;
	margin: 14px 0 4px;
}
.ma-mypage .ma-section-title {
	margin-top: 44px;
}
.ma-acc-list {
	border-top: 1px solid rgba(26, 26, 26, 0.35);
	margin-top: 20px;
}
.ma-acc {
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.ma-acc summary {
	list-style: none;
	cursor: pointer;
	padding: 16px 2px;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.ma-acc summary::-webkit-details-marker {
	display: none;
}
.ma-acc summary::after {
	content: "＋";
	color: var(--wp--preset--color--gold);
	font-weight: 400;
}
.ma-acc[open] summary::after {
	content: "−";
}
.ma-acc summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}
.ma-acc-body {
	padding: 0 2px 24px;
	max-width: 480px;
}
.ma-acc-body .ma-form {
	margin-top: 4px;
}
.ma-acc-danger summary {
	color: var(--wp--preset--color--breaking);
}
.ma-acc-note {
	font-size: 13px;
	color: var(--wp--preset--color--contrast-2);
	margin: 0 0 16px;
}

/* 登録2カラムはタブレット以下で縦積み */
@media (max-width: 900px) {
	.ma-member-register {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.ma-register-aside {
		position: static;
	}
}

/* 検索結果の日付（鮮度の判断材料） */
.ma-search-result-date {
	font-family: var(--wp--preset--font-family--numeric);
	font-size: 11px;
	color: var(--wp--preset--color--contrast-2);
	margin-left: 10px;
	font-variant-numeric: tabular-nums;
}

/* トップCTAバンドの「会員登録して〜」は会員には見せない（ログイン済みには不要な導線） */
body.logged-in .ma-cta-band-sub a[href="/register/"],
body.logged-in .ma-cta-band-sub span,
body.ma-unlocked .ma-cta-band-sub a[href="/register/"],
body.ma-unlocked .ma-cta-band-sub span {
	display: none;
}

/* トップCTAバンドの副リンク（温度の低い読者向け） */
.ma-cta-band-sub {
	text-align: center;
	font-size: 13px;
	margin: 14px 0 0;
}
.ma-cta-band-sub a {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--gold);
	text-underline-offset: 4px;
}
.ma-cta-band-sub span {
	color: rgba(255, 255, 255, 0.4);
	margin: 0 8px;
}
/* サイドバーCTAの副リンク（温度の低い読者向け） */
.ma-cta-sublinks {
	text-align: center;
	font-size: 12px;
	margin: 10px 0 0;
}
.ma-cta-sublinks a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.4);
	text-underline-offset: 3px;
}
.ma-cta-sublinks span {
	color: rgba(255, 255, 255, 0.4);
	margin: 0 6px;
}
.ma-consult-page {
	max-width: 640px;
}

/* 運営元の信頼訴求（登録ページの案内パネル内） */
.ma-operator-note {
	margin: 16px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid rgba(26, 26, 26, 0.25);
	font-size: 12px;
	line-height: 1.9;
	color: var(--wp--preset--color--contrast);
}

/* ---------- 404ページ ---------- */
.ma-notfound {
	text-align: center;
	padding: 24px 0 8px;
}
.ma-notfound-kicker {
	font-family: var(--wp--preset--font-family--numeric);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.3em;
	color: var(--wp--preset--color--gold);
	margin: 0 0 14px;
}
.ma-notfound-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 30px;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	margin: 0 0 14px;
	text-wrap: balance;
}
.ma-notfound-text {
	font-size: 14px;
	line-height: 2.1;
	color: var(--wp--preset--color--contrast-2);
	margin: 0 0 26px;
}
.ma-notfound .ma-cta-button a {
	display: inline-block;
	padding: 13px 44px;
}

/* ---------- 記事アクション（お気に入り＋シェア） ---------- */
.ma-article-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 4px;
}
.ma-fav-btn,
.ma-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: transparent;
	border: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--contrast-2);
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	padding: 8px 12px;
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
/* シェアはアイコンのみの正方形チップ（モノクロ基調） */
.ma-share-btn {
	width: 33px;
	height: 33px;
	padding: 0;
}
.ma-fav-btn:hover,
.ma-share-btn:hover {
	border-color: var(--wp--preset--color--contrast-2);
	color: var(--wp--preset--color--contrast);
}
.ma-fav-btn svg {
	color: var(--wp--preset--color--border);
	transition: color 0.15s ease;
}
.ma-fav-btn:hover svg {
	color: var(--wp--preset--color--gold);
}
.ma-fav-btn.is-on {
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--contrast);
}
.ma-fav-btn.is-on svg {
	color: var(--wp--preset--color--gold);
}
.ma-article-actions-sep {
	width: 1px;
	height: 18px;
	background: var(--wp--preset--color--border);
	margin: 0 4px;
}
.ma-share-copy.is-copied {
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}

/* マイページ：お気に入り一覧 */
.ma-fav-list {
	list-style: none;
	padding: 0;
	margin: 16px 0 0;
	border-top: 1px solid var(--wp--preset--color--border);
}
.ma-fav-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 12px 2px;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: 14px;
}
.ma-fav-list a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	line-height: 1.7;
}
.ma-fav-list a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--gold);
	text-underline-offset: 3px;
}
.ma-fav-date {
	flex-shrink: 0;
	font-family: var(--wp--preset--font-family--numeric);
	font-size: 11.5px;
	color: var(--wp--preset--color--contrast-2);
}
.ma-fav-empty {
	font-size: 13px;
	color: var(--wp--preset--color--contrast-2);
}

/* ---------- セクションゲート（body.ma-locked 時のみ発動） ---------- */
body.ma-locked .ma-members-only {
	position: relative;
	max-height: 340px;
	overflow: hidden;
	user-select: none;
}
body.ma-locked .ma-members-only .ma-gate {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	text-align: center;
	padding: 24px 20px 30px;
	background: linear-gradient(180deg, rgba(250, 249, 246, 0) 0%, rgba(250, 249, 246, 0.92) 26%, var(--wp--preset--color--paper) 44%);
}
/* ゲートUIはJS注入。会員/no-JS時は非表示（保険） */
.ma-gate {
	display: none;
}
body.ma-locked .ma-gate {
	border-bottom: 3px double var(--wp--preset--color--contrast);
}
.ma-gate-kicker {
	font-family: var(--wp--preset--font-family--numeric);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3em;
	color: var(--wp--preset--color--gold);
	margin: 0 0 8px;
}
.ma-gate-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 21px;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	margin: 0 0 8px;
}
.ma-gate-text {
	font-size: 13px;
	line-height: 1.9;
	color: var(--wp--preset--color--contrast-2);
	max-width: 480px;
	margin: 0 0 16px;
}
/* 本文リンク規則（.wp-block-post-content a の紺文字・金下線）に勝つため a 付きで詳細度を上げる */
.ma-gate a.ma-gate-btn {
	display: inline-block;
	background: var(--wp--preset--color--gold);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 13px 36px;
	text-decoration: none;
	transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.ma-gate a.ma-gate-btn:hover {
	background: #96762a;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 12, 94, 0.22);
}
.ma-gate a.ma-gate-btn:active {
	transform: translateY(0);
	box-shadow: none;
}
.ma-gate-login {
	font-size: 12px;
	color: var(--wp--preset--color--contrast-2);
	margin: 10px 0 0;
}

/* ---------- インラインゲート（金額等のぼかし） ---------- */
body.ma-locked .ma-members-inline {
	filter: blur(6px);
	user-select: none;
	cursor: pointer;
	position: relative;
}
body.ma-locked .ma-members-inline::selection {
	background: transparent;
}
/* ぼかしの直後に「会員限定」バッジを出す（blurの外側に置くため親ではなく隣接擬似要素は使えず、
   span自体はblurされるので目印はJSのtitle＋クリック誘導で補完） */

/* ---------- 記事末尾の会員登録CTA ---------- */
.ma-member-band {
	background:
		radial-gradient(ellipse 100% 70% at 80% -20%, rgba(176, 141, 47, 0.25), transparent 60%),
		var(--wp--preset--color--primary-deep);
	padding: 30px 20px 26px;
	margin-top: 56px;
	text-align: center;
}
.ma-member-band .ma-cta-button {
	margin: 0;
}
.ma-member-band .ma-cta-kicker {
	margin-bottom: 12px;
}
.ma-member-band-title {
	color: #fff;
	font-size: 22px;
	line-height: 1.6;
	margin: 0 0 18px;
}
.ma-member-band .ma-member-benefits {
	background: rgba(255, 255, 255, 0.06);
	border-top-color: var(--wp--preset--color--gold);
	text-align: left;
	max-width: 520px;
	margin: 0 auto 24px;
}
.ma-member-band .ma-member-benefits li {
	color: rgba(255, 255, 255, 0.92);
}
.ma-member-band .ma-cta-button a {
	display: inline-block;
	padding: 14px 48px;
}
.ma-member-band-login {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	margin: 12px 0 0;
}
.ma-member-band-login a {
	color: #fff;
}
.ma-member-band-text {
	color: rgba(255, 255, 255, 0.85);
	font-size: 13.5px;
	line-height: 2;
	max-width: 640px;
	margin: 0 auto 18px;
}
.ma-member-band-actions {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 14px;
}
.ma-member-band-sub {
	color: #fff;
	font-size: 13px;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--gold);
	text-underline-offset: 4px;
}
/* 静的版でデモ会員になった場合はJSが非会員向けバンドを隠す */
body.ma-unlocked .ma-member-band-guest {
	display: none;
}

/* ※会員導線のレスポンシブ規則は基底ルール（上記）より後に置くこと。
   前方のメディアクエリ内に書くと同一詳細度の基底ルールに上書きされる */
@media (max-width: 1024px) {
	/* ナビ8項目と共存させるため会員導線をコンパクトに（ログイン文字を隠し「会員登録」だけに） */
	.ma-member-login {
		display: none;
	}
	.ma-member-btn {
		font-size: 11px;
		padding: 7px 10px;
	}
	.ma-sp-hide {
		display: none;
	}
}

/* タブレット縦（ナビ全項目＋ボタンが収まらない帯）はヘッダー導線を出さない。
   記事内ゲート・記事末尾CTAが導線を担う */
@media (min-width: 782px) and (max-width: 870px) {
	.ma-member-menu {
		display: none;
	}
}

@media (max-width: 781px) {
	/* SPは中央ロゴと干渉するためナビバーのボタンは出さない。
	   会員導線はハンバーガー内のCTA（無料相談・会員登録）が担う（2026-07-08変更。
	   catbarはカテゴリ専用の回遊バーに整理） */
	.ma-member-menu {
		display: none;
	}
	.ma-member-band {
		padding: 28px 18px;
	}
}

/* ---------- AIチャット（会員限定・inc/ai-chat.php） ---------- */

.ma-chat {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9000;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}
.ma-chat-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	/* 紺のフッター上でボタンが埋没しないよう、白リング＋金の縁で常に輪郭を出す */
	border: 1.5px solid var(--wp--preset--color--gold);
	border-radius: 999px;
	background: var(--wp--preset--color--primary-deep);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 6px 20px rgba(0, 8, 64, 0.3);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ma-chat-toggle:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 10px 26px rgba(0, 8, 64, 0.4);
}
/* display:flex がhidden属性の既定display:noneに勝つため、閉状態を明示する */
.ma-chat-panel[hidden] {
	display: none;
}
.ma-chat-panel {
	width: min(92vw, 380px);
	height: min(70vh, 560px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	box-shadow: 0 16px 48px rgba(0, 8, 64, 0.22);
	overflow: hidden;
}
.ma-chat-head {
	position: relative;
	padding: 14px 18px 12px;
	background: var(--wp--preset--color--primary-deep);
	color: #fff;
}
.ma-chat-head-kicker {
	margin: 0;
	font-family: var(--wp--preset--font-family--numeric, inherit);
	font-size: 10px;
	letter-spacing: 0.22em;
	color: var(--wp--preset--color--gold);
}
.ma-chat-head-title {
	margin: 2px 0 0;
	font-size: 15px;
	font-weight: 700;
}
.ma-chat-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: none;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
}
.ma-chat-close:hover {
	opacity: 1;
}
.ma-chat-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 14px;
	gap: 10px;
}
.ma-chat-log {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-right: 2px;
}
.ma-chat-bubble {
	max-width: 88%;
	padding: 10px 13px;
	font-size: 13.5px;
	line-height: 1.75;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.ma-chat-bubble-ai {
	align-self: flex-start;
	background: #f2f3f7;
	color: var(--wp--preset--color--contrast);
	border-radius: 2px 12px 12px 12px;
}
.ma-chat-bubble-ai a {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.ma-chat-bubble-user {
	align-self: flex-end;
	background: var(--wp--preset--color--primary-deep);
	color: #fff;
	border-radius: 12px 2px 12px 12px;
}
.ma-chat-thinking {
	opacity: 0.6;
	font-style: italic;
}
.ma-chat-status {
	margin: 0;
	font-size: 11px;
	color: var(--wp--preset--color--contrast-2);
	text-align: right;
}
.ma-chat-form {
	display: flex;
	gap: 8px;
	align-items: flex-end;
}
.ma-chat-input {
	flex: 1;
	resize: none;
	padding: 10px 12px;
	font: inherit;
	font-size: 13.5px;
	line-height: 1.5;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
}
.ma-chat-input:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
}
.ma-chat-send {
	padding: 10px 16px;
	border: 0;
	border-radius: 8px;
	background: var(--wp--preset--color--gold);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.ma-chat-send:disabled,
.ma-chat-input:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.ma-chat-reset {
	align-self: flex-start;
	border: 0;
	background: none;
	padding: 0;
	font-size: 12px;
	color: var(--wp--preset--color--contrast-2);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.ma-chat-cta {
	align-self: flex-start;
}
.ma-chat-cta-btn {
	display: inline-block;
	padding: 10px 18px;
	background: var(--wp--preset--color--gold);
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
/* 非会員向け案内 */
.ma-chat-teaser {
	margin: auto 0;
	text-align: center;
	padding: 10px 8px;
}
.ma-chat-teaser-title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}
.ma-chat-teaser-text {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.8;
	color: var(--wp--preset--color--contrast-2);
	text-align: left;
}
.ma-chat-teaser-btn {
	display: inline-block;
	padding: 12px 22px;
	background: var(--wp--preset--color--gold);
	color: #fff !important;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
}
.ma-chat-teaser-login {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--wp--preset--color--contrast-2);
}

@media (max-width: 781px) {
	.ma-chat {
		right: 14px;
		bottom: 14px;
	}
	.ma-chat-toggle {
		padding: 11px 15px;
		font-size: 12.5px;
	}
	.ma-chat-panel {
		width: min(94vw, 380px);
		height: min(72vh, 540px);
	}
}

/* ===== 記事末尾タグ（2026-07-23 孤立タグページ解消・回遊導線） ===== */
.ma-article-tags {
	margin-top: 32px;
	line-height: 2.4;
}
.ma-article-tags a {
	display: inline-block;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--contrast-2);
	font-size: 12px;
	line-height: 1;
	padding: 8px 13px;
	border-radius: 999px;
	text-decoration: none;
	margin-right: 8px;
}
.ma-article-tags a::before {
	content: "#";
	color: #9aa0a8;
	font-weight: 700;
	margin-right: 3px;
}
.ma-article-tags a:hover {
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--primary);
}
.ma-article-tags .wp-block-post-terms__separator {
	display: none;
}
