/* ==========================================================================
   MKB Claude — main.css
   色・形・文字は :root の --mk-* 変数（Customizer で上書き）だけを参照する。
   ========================================================================== */

/* ---------- 既定のトークン（Customizer の値が無いときの保険） ---------- */
:root {
	--mk-primary: #162c4e;
	--mk-ink: #0f172a;
	--mk-surface: #ffffff;
	--mk-light: #f1f5f9;
	--mk-bg: #ffffff;
	--mk-text: #1e293b;
	--mk-muted: #64748b;
	--mk-border: #e2e8f0;
	--mk-accent: #2563eb;
	--mk-radius-card: 12px;
	--mk-radius-btn: 8px;
	--mk-container: 1100px;
	--mk-section-gap: 72px;
	--mk-card-gap: 16px;
	--mk-font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	--mk-font-size-base: 16px;
	--mk-heading-weight: 700;
	--mk-logo-width: 160px;
}

/* ---------- トーン（部品の配色） ---------- */
.mk-tone-white,
.mk-tone-light {
	--tone-bg: var(--mk-surface);
	--tone-fg: var(--mk-text);
	--tone-muted: var(--mk-muted);
	--tone-line: var(--mk-border);
	--tone-card-border: var(--mk-border);
}
.mk-tone-light { --tone-bg: var(--mk-light); }
.mk-tone-primary,
.mk-tone-ink,
.mk-tone-accent {
	--tone-fg: #fff;
	--tone-muted: rgba(255, 255, 255, 0.78);
	--tone-line: rgba(255, 255, 255, 0.28);
	--tone-card-border: transparent;
}
.mk-tone-primary { --tone-bg: var(--mk-primary); }
.mk-tone-ink { --tone-bg: var(--mk-ink); }
.mk-tone-accent { --tone-bg: var(--mk-accent); }

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--mk-bg);
	color: var(--mk-text);
	font-family: var(--mk-font-base);
	font-size: var(--mk-font-size-base);
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
	margin: 0;
	font-weight: var(--mk-heading-weight);
	line-height: 1.45;
	word-break: auto-phrase;
	text-wrap: balance;
	overflow-wrap: anywhere;
}
p { margin: 0 0 1em; }
[id] { scroll-margin-top: 88px; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100;
	width: auto; height: auto; clip: auto; margin: 0;
	padding: 10px 14px; background: #fff; color: var(--mk-primary);
	border-radius: var(--mk-radius-btn);
}
:focus-visible { outline: 2px solid var(--mk-accent); outline-offset: 2px; }

.mk-container {
	width: 100%;
	max-width: calc(var(--mk-container) + 40px);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}
.mk-main { padding-top: 8px; padding-bottom: var(--mk-section-gap); min-height: 50vh; }
.mk-hide-desktop { display: none !important; }
@media (max-width: 767px) {
	.mk-hide-desktop { display: revert !important; }
	.mk-hide-mobile { display: none !important; }
}
.mk-placeholder { color: var(--tone-muted, var(--mk-muted)); font-style: italic; }
.mk-empty { color: var(--mk-muted); padding: 16px 0; }
.mk-demo-note {
	margin: 12px 0 0; padding: 10px 14px; font-size: 0.8rem;
	background: var(--mk-light); border: 1px dashed var(--mk-border);
	border-radius: var(--mk-radius-btn); color: var(--mk-muted);
}

/* ---------- キッカー・件数 ---------- */
.mk-kicker { margin: 0 0 6px; font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.04em; color: var(--tone-muted, var(--mk-muted)); font-weight: 500; }
.mk-count { margin-left: 0.6em; font-size: 0.72rem; font-weight: 500; color: var(--mk-muted); letter-spacing: 0; vertical-align: baseline; }

/* ---------- ボタン ---------- */
.mk-btn {
	display: inline-flex; align-items: center; gap: 0.5em;
	padding: 0.72em 1.15em; border: 1px solid transparent;
	border-radius: var(--mk-radius-btn);
	font: inherit; font-size: 0.9rem; font-weight: 700; line-height: 1.3;
	text-decoration: none; cursor: pointer; transition: opacity 0.15s, transform 0.15s;
}
.mk-btn:hover { opacity: 0.88; }
.mk-btn:active { transform: translateY(1px); }
.mk-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.mk-btn--solid { background: var(--mk-primary); color: #fff; }
.mk-btn--light { background: #fff; color: var(--mk-primary); }
.mk-btn--outline { background: var(--mk-surface); color: var(--mk-primary); border-color: var(--mk-border); }
.mk-tone-primary .mk-btn--solid, .mk-tone-ink .mk-btn--solid, .mk-tone-accent .mk-btn--solid { background: #fff; color: var(--mk-primary); }
.mk-tone-primary .mk-btn--outline, .mk-tone-ink .mk-btn--outline, .mk-tone-accent .mk-btn--outline {
	background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45);
}
.mk-arrow, .mk-chevron { flex: none; }

/* ---------- ヘッダー ---------- */
.mk-header {
	position: relative; z-index: 50;
	background: var(--tone-bg); color: var(--tone-fg);
	border-bottom: 1px solid var(--tone-line);
}
.mk-header.is-sticky { position: sticky; top: 0; }
.admin-bar .mk-header.is-sticky { top: 32px; }
.mk-header__inner { display: grid; align-items: center; gap: 8px 16px; min-height: 64px; }
.mk-logo { display: inline-flex; align-items: center; text-decoration: none; font-weight: 800; font-size: 1.05rem; color: inherit; }
.mk-logo__img { width: var(--mk-logo-width); height: auto; max-height: 56px; object-fit: contain; display: block; }
.mk-header__subtag { display: none; font-size: 0.7rem; color: var(--tone-muted); }

/* 配置プリセット A / B / C */
.mk-header--A .mk-header__inner { grid-template-columns: 1fr auto 1fr; }
.mk-header--A .mk-logo { grid-column: 1; justify-self: start; }
.mk-header--A .mk-nav { grid-column: 2; }
.mk-header--A .mk-header__cta { grid-column: 3; justify-self: end; }

.mk-header--B .mk-header__inner { grid-template-columns: auto 1fr auto; }
.mk-header--B .mk-nav { justify-self: end; }

.mk-header--C .mk-header__inner {
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: ". logo cta" "nav nav nav";
	padding-top: 10px; padding-bottom: 2px;
}
.mk-header--C .mk-logo { grid-area: logo; justify-self: center; }
.mk-header--C .mk-header__cta { grid-area: cta; justify-self: end; }
.mk-header--C .mk-nav { grid-area: nav; justify-self: center; }

.mk-nav__list { display: flex; flex-wrap: nowrap; gap: 2px 22px; list-style: none; margin: 0; padding: 0; font-size: 0.88rem; font-weight: 500; }
.mk-nav__item { position: relative; }
.mk-nav__item > a {
	display: block; padding: 22px 2px 20px; border-bottom: 2px solid transparent;
	text-decoration: none; white-space: nowrap; color: inherit;
}
.mk-header--C .mk-nav__item > a { padding: 12px 2px 12px; }
.mk-nav__item.is-current > a, .mk-nav__item > a[aria-current] { font-weight: 700; border-bottom-color: currentColor; }
.mk-nav__item > a:hover { border-bottom-color: currentColor; }

/* ホバーポップアップ（トップ表示中のみ。「その他」は常時） */
.mk-nav__popover {
	display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
	min-width: 230px; max-width: 300px; padding: 12px 14px; z-index: 70;
	background: var(--mk-surface); color: var(--mk-text);
	border: 1px solid var(--mk-border); border-radius: var(--mk-radius-card);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12); font-weight: 400; font-size: 0.82rem; line-height: 1.6;
}
.mk-nav__desc { margin: 0 0 6px; color: var(--mk-muted); }
.mk-nav__sub { list-style: none; margin: 0; padding: 0; }
.mk-nav__sub a { display: block; padding: 5px 0; text-decoration: none; color: var(--mk-primary); font-weight: 600; }
.mk-nav__sub a:hover { text-decoration: underline; }
.is-home-route .mk-nav:not(.is-dismissed) .mk-nav__item:hover > .mk-nav__popover,
.is-home-route .mk-nav:not(.is-dismissed) .mk-nav__item:focus-within > .mk-nav__popover,
.mk-nav__more:hover > .mk-nav__popover,
.mk-nav__more:focus-within > .mk-nav__popover { display: block; }
.mk-nav__more > a { cursor: default; }
.mk-nav__more .mk-nav__popover { right: 0; left: auto; transform: none; min-width: 180px; }

.mk-header__cta { white-space: nowrap; }

@media (max-width: 767px) {
	.mk-nav, .mk-header__cta { display: none; }
	.mk-header__inner, .mk-header--A .mk-header__inner, .mk-header--B .mk-header__inner, .mk-header--C .mk-header__inner {
		display: flex; justify-content: space-between; min-height: 52px;
	}
	.mk-header__subtag { display: block; }
	.mk-logo__img { max-height: 40px; }
}

/* ---------- 一行ニュース ---------- */
.mk-newsline-slot { margin-top: 16px; }
.mk-newsline-list { display: grid; gap: 6px; font-size: var(--mk-news-size, 13px); }
.mk-newsline {
	display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto; align-items: baseline; gap: 10px;
	padding: 0.85em 1.2em; border: 1px solid var(--mk-border); border-radius: var(--mk-radius-card);
	background: var(--mk-surface); text-decoration: none; line-height: 1.5;
}
.mk-newsline:hover { border-color: var(--mk-muted); }
.mk-newsline__date, .mk-newsline__sep { color: var(--mk-muted); }
.mk-newsline__label { font-weight: 700; }
.mk-newsline__title { min-width: 0; overflow-wrap: anywhere; }
.mk-newsline.is-clip .mk-newsline__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-newsline .mk-chevron { color: var(--mk-muted); align-self: center; }
@media (max-width: 767px) {
	.mk-newsline { grid-template-columns: auto auto minmax(0, 1fr) auto; }
	.mk-newsline__sep { display: none; }
}

/* ---------- ヒーロー ---------- */
.mk-hero { display: grid; gap: 40px; align-items: center; padding: 48px 0 8px; }
.mk-hero--right, .mk-hero--left { grid-template-columns: 1.1fr 0.9fr; }
.mk-hero--left .mk-hero__media { order: -1; }
.mk-hero--none { grid-template-columns: 1fr; }
.mk-hero--filled { padding: 40px; border-radius: var(--mk-radius-card); background: var(--tone-bg); color: var(--tone-fg); }
.mk-hero__title { font-size: clamp(1.65rem, 3.3vw, 2.5rem); line-height: 1.35; margin-bottom: 18px; }
.mk-hero__summary { color: var(--tone-muted, var(--mk-muted)); margin-bottom: 24px; }
.mk-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mk-hero__media { margin: 0; border-radius: var(--mk-radius-card); overflow: hidden; }
.mk-hero__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mk-hero__media--ph { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--mk-light), var(--mk-border)); }
@media (max-width: 767px) {
	.mk-hero { grid-template-columns: 1fr !important; gap: 24px; padding: 28px 0 0; }
	.mk-hero--filled { padding: 24px 20px; }
	.mk-hero__media { order: -1; }
}

/* ---------- セクション ---------- */
.mk-section { margin-top: var(--mk-section-gap); }
.mk-section--filled { padding: 32px; border-radius: var(--mk-radius-card); background: var(--tone-bg); color: var(--tone-fg); }
.mk-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.mk-section__title { font-size: 1.3rem; }
.mk-section__more { font-size: 0.85rem; font-weight: 700; text-decoration: none; white-space: nowrap; padding-bottom: 2px; }
.mk-section__more:hover { text-decoration: underline; }
.mk-section__toggle {
	display: none; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
	border: 1px solid var(--tone-line, var(--mk-border)); border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
}
.mk-section__toggle .mk-chevron { transform: rotate(90deg); transition: transform 0.2s; }
.mk-section__toggle[aria-expanded="true"] .mk-chevron { transform: rotate(-90deg); }
@media (max-width: 767px) {
	.mk-section { margin-top: 40px; }
	.mk-section--filled { padding: 20px 16px; }
	.mk-section--collapsible .mk-section__toggle { display: inline-flex; }
	.mk-section--collapsible .mk-section__head { align-items: center; }
	.mk-section--collapsible .mk-section__more { display: none; }
	.mk-section.is-collapsed .mk-section__body { display: none; }
	.mk-section--collapsible .mk-section__head { margin-bottom: 10px; }
}

/* ---------- カード ---------- */
.mk-card-grid { display: grid; gap: var(--mk-card-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk-cols-1 { grid-template-columns: minmax(0, 1fr); }
.mk-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .mk-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mk-card-grid, .mk-cols-2, .mk-cols-3 { grid-template-columns: minmax(0, 1fr); } }

.mk-card {
	position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0;
	padding: 20px 22px; border: 1px solid var(--tone-card-border); border-radius: var(--mk-radius-card);
	background: var(--tone-bg); color: var(--tone-fg);
}
.mk-card--full { grid-column: 1 / -1; }
.mk-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5em; margin: 0; font-size: 0.72rem; line-height: 1.6; color: var(--tone-muted); }
.mk-dot { opacity: 0.7; }
.mk-card__title { font-size: 1.02rem; line-height: 1.5; }
.mk-card__summary { margin: 0; font-size: 0.86rem; line-height: 1.75; color: var(--tone-muted); }
.mk-card__link {
	margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 0.4em; align-self: flex-start;
	font-size: 0.85rem; font-weight: 700; text-decoration: none;
}
.mk-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mk-card:hover { box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08); }
.mk-card:focus-within { outline: 2px solid var(--mk-accent); outline-offset: 2px; }
.mk-card__link:focus-visible { outline: none; }

/* ---------- 行リスト ---------- */
.mk-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--mk-border); border-radius: var(--mk-radius-card); background: var(--mk-surface); overflow: hidden; }
.mk-row + .mk-row { border-top: 1px solid var(--mk-border); }
.mk-row__head {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; width: 100%;
	padding: 13px 16px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 0.88rem; line-height: 1.5;
	text-align: left; text-decoration: none;
}
.mk-row__head:not(div):hover { background: var(--mk-light); }
button.mk-row__head { cursor: pointer; }
.mk-row__date { color: var(--mk-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.mk-row__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.mk-row__head .mk-chevron { color: var(--mk-muted); transition: transform 0.2s; }
.mk-row.is-open .mk-row__head .mk-chevron { transform: rotate(90deg); }
.mk-row.is-open .mk-row__title { white-space: normal; }
.mk-row__panel { padding: 4px 16px 16px; font-size: 0.9rem; }
.mk-row:target { background: var(--mk-light); }
@media (max-width: 767px) { .mk-row__head { gap: 10px; padding: 12px 12px; } }

/* ---------- CTA ---------- */
.mk-cta { margin-top: var(--mk-section-gap); padding: 28px 32px; border-radius: var(--mk-radius-card); background: var(--tone-bg); color: var(--tone-fg); }
.mk-cta--banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.mk-cta--card { display: grid; gap: 16px; }
.mk-cta__title { font-size: 1.35rem; margin-bottom: 8px; }
.mk-cta__summary { margin: 0; font-size: 0.88rem; color: var(--tone-muted); }
.mk-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mk-cta--banner .mk-cta__actions { flex-direction: column; align-items: stretch; min-width: 170px; }
.mk-cta--banner .mk-btn { justify-content: center; }
@media (max-width: 767px) {
	.mk-cta { margin-top: 40px; padding: 22px 18px; }
	.mk-cta--banner { grid-template-columns: 1fr; }
	.mk-cta--banner .mk-cta__actions { flex-direction: row; }
}

/* ---------- 絞り込みバー ---------- */
.mk-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.mk-filter:empty { display: none; }
.mk-filter__btn, .mk-chip {
	padding: 7px 14px; border: 1px solid var(--mk-border); border-radius: 999px; background: var(--mk-surface);
	color: var(--mk-text); font: inherit; font-size: 0.82rem; font-weight: 600; line-height: 1.4; cursor: pointer;
}
.mk-filter__btn[aria-pressed="true"], .mk-chip[aria-pressed="true"] { background: var(--mk-primary); border-color: var(--mk-primary); color: #fff; }
.mk-section.is-filtered-out, .mk-filtered-out { display: none !important; }

/* ---------- ページ見出し・本文 ---------- */
.mk-pagehead { padding: 44px 0 8px; }
.mk-pagehead__title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 12px; }
.mk-pagehead__summary { margin: 0; color: var(--mk-muted); max-width: 46em; }
.mk-prose { max-width: 100%; }
.mk-prose > * + * { margin-top: 1.1em; }
.mk-prose > .mk-section, .mk-prose > .mk-cta, .mk-prose > .mk-hero { margin-top: var(--mk-section-gap); }
.mk-prose > .mk-hero:first-child { margin-top: 0; }
.mk-prose h2:not([class]) { font-size: 1.4rem; margin-top: 1.8em; }
.mk-prose h3:not([class]) { font-size: 1.12rem; margin-top: 1.6em; }
.mk-prose ul, .mk-prose ol { padding-left: 1.4em; }
.mk-prose a:not([class]) { color: var(--mk-accent); }
.mk-prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.mk-prose th, .mk-prose td { padding: 8px 10px; border: 1px solid var(--mk-border); text-align: left; }
.mk-prose .mk-section, .mk-prose .mk-cta { margin-top: var(--mk-section-gap); }
.mk-prose > .mk-section:first-child, .mk-prose > .mk-hero:first-child, .mk-prose > .mk-filter:first-child { margin-top: 24px; }
.mk-prose > .mk-filter + .mk-section { margin-top: 28px; }
.mk-actions { margin-top: 24px; }
.mk-notice { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--mk-radius-btn); background: var(--mk-light); font-size: 0.85rem; color: var(--mk-muted); }
.mk-textlink { font-size: 0.85rem; font-weight: 700; color: var(--mk-accent); }

/* 固定ページ用パターン（コアブロック） */
.mk-history, .mk-rep, .mk-scope { padding: 22px 24px; border: 1px solid var(--mk-border); border-radius: var(--mk-radius-card); background: var(--mk-surface); }
.mk-history h2, .mk-rep h2, .mk-scope h2 { margin-top: 0; }
.mk-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--mk-card-gap); }
.mk-highlight { padding: 20px; border-radius: var(--mk-radius-card); background: var(--mk-light); text-align: center; }
.mk-highlight p { margin: 0; font-size: 0.82rem; color: var(--mk-muted); }
.mk-highlight__val { font-size: 2rem; margin: 4px 0; color: var(--mk-primary); }
@media (max-width: 767px) { .mk-highlights { grid-template-columns: 1fr; } }
.is-style-mk-card { padding: 20px 22px; border: 1px solid var(--mk-border); border-radius: var(--mk-radius-card); background: var(--mk-surface); }
.is-style-mk-card-ink { padding: 20px 22px; border-radius: var(--mk-radius-card); background: var(--mk-ink); color: #fff; }
.wp-block-button.is-style-mk-solid .wp-block-button__link { background: var(--mk-primary); color: #fff; border-radius: var(--mk-radius-btn); }
.wp-block-button.is-style-mk-outline .wp-block-button__link { background: transparent; color: var(--mk-primary); border: 1px solid var(--mk-border); border-radius: var(--mk-radius-btn); }
.wp-block-heading.is-style-mk-kicker { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: var(--mk-muted); }

/* ---------- 記事詳細・ツール詳細 ---------- */
.mk-single { padding-bottom: 8px; }
.mk-summary3 { margin: 24px 0; padding: 18px 22px; border-radius: var(--mk-radius-card); background: var(--mk-light); }
.mk-summary3 ol { margin: 0; padding-left: 1.3em; }
.mk-summary3 li { margin: 4px 0; font-weight: 500; }
.mk-copyurl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 24px; }
.mk-copyurl__status { font-size: 0.82rem; color: var(--mk-muted); }
.mk-nextsteps .mk-section__title { font-size: 1.15rem; }

/* 悩みから探す */
.mk-finder { margin-top: 24px; }
.mk-finder__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-finder__status { margin: 18px 0; color: var(--mk-muted); font-size: 0.9rem; }
.mk-service__aud { margin: 0; font-size: 0.8rem; font-weight: 700; color: var(--mk-primary); }
.mk-service__imp { margin: 0; font-size: 0.82rem; padding: 8px 10px; border-radius: var(--mk-radius-btn); background: var(--mk-light); }
.mk-service__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; position: relative; z-index: 1; }
.mk-service[hidden] { display: none; }

/* ---------- フッター ---------- */
.mk-footer { background: var(--tone-bg); color: var(--tone-fg); padding: 48px 0 24px; font-size: 0.85rem; }
.mk-footer a { color: inherit; text-decoration: none; }
.mk-footer a:hover { text-decoration: underline; }
.mk-footer__grid { display: grid; grid-template-columns: repeat(var(--mk-fcols, 3), minmax(0, 1fr)); gap: 36px; }
.mk-widget + .mk-widget { margin-top: 22px; }
.mk-widget__title { margin: 0 0 12px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; color: var(--tone-muted); }
.mk-footer__name { margin: 0 0 2px; font-size: 1.1rem; font-weight: 800; }
.mk-footer__sub { margin: 0 0 14px; font-size: 0.78rem; color: var(--tone-muted); }
.mk-footer__notice { margin: 0 0 14px; font-size: 0.78rem; color: var(--tone-muted); }
.mk-footer__rule { border: 0; border-top: 1px solid var(--tone-line); margin: 14px 0; }
.mk-office { list-style: none; margin: 0; padding: 0; font-size: 0.78rem; line-height: 1.9; }
.mk-office li + li { margin-top: 2px; }
.mk-menu { list-style: none; margin: 0; padding: 0; }
.mk-menu li { margin: 0 0 12px; }
.mk-menu--grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.mk-menu--inline { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.mk-menu--inline li { margin: 0; }
.mk-sns { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-sns__item {
	padding: 8px 14px; border: 1px solid var(--tone-line); border-radius: var(--mk-radius-btn);
	background: rgba(255, 255, 255, 0.06); font-size: 0.78rem; font-weight: 700;
}
.mk-footer__bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
	margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--tone-line); font-size: 0.74rem; color: var(--tone-muted);
}
@media (max-width: 900px) { .mk-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mk-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .mk-footer { padding-top: 36px; } }

/* ---------- スマホ下部タブバー ---------- */
.mk-tabbar { display: none; }
@media (max-width: 767px) {
	.mkb-has-tabbar { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
	.mkb-has-tabbar .mk-tabbar {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		background: var(--mk-surface); border-top: 1px solid var(--mk-border); padding-bottom: env(safe-area-inset-bottom);
	}
	.mk-tabbar__list { display: flex; list-style: none; margin: 0; padding: 0; }
	.mk-tabbar__list li { flex: 1 1 0; min-width: 0; }
	.mk-tabbar__list a {
		display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 6px 2px;
		font-size: 11px; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; word-break: auto-phrase;
		color: var(--mk-muted); border-top: 2px solid transparent;
	}
	.mk-tabbar__list .is-current a, .mk-tabbar__list a[aria-current] { color: var(--mk-primary); border-top-color: var(--mk-primary); }
}

