/* _base/tokens.css */
/* デザイントークン。新しいデザインは、まずこの変数を上書きするだけで全ページの見た目が変わる。 */
:root {
  --bg: #FFFFFF;
  --surface: #F4F7FC;
  --ink: #0E1630;
  --muted: #4A5578;
  --line: #DCE3F0;
  --brand: #0B1F5C;
  --on-brand: #FFFFFF;
  --accent: #1E7FE0;
  --on-accent: #FFFFFF;
  --font-body: 'Noto Sans JP', system-ui, sans-serif;
  --font-display: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --radius: 8px;
  --radius-button: 999px;
  --maxw: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-space: clamp(48px, 6vw, 80px);
  --title-size: clamp(26px, 3.6vw, 40px);
  --hero-size: clamp(36px, 6.4vw, 72px);
  --eyebrow-transform: uppercase;
}

/* _base/style.css */
/* 基準の部品スタイル。色・字・角丸はすべてトークン経由（各デザインの tokens.css で見た目が変わる）。
   明るい地・暗い地のどちらでも成り立つよう、色は color-mix で地とアクセントから作る。 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.85; font-size: 16px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; font-family: var(--font-display); letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; }
section[id] { scroll-margin-top: 88px; }

:root {
  --accent-ink: color-mix(in srgb, var(--accent) 42%, var(--ink));
  --tint: color-mix(in srgb, var(--accent) 10%, var(--bg));
  --tint-strong: color-mix(in srgb, var(--accent) 22%, var(--bg));
  --brand-deep: color-mix(in srgb, var(--brand) 82%, #000);
  --shadow: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent), 0 12px 32px color-mix(in srgb, var(--ink) 8%, transparent);
  --shadow-lift: 0 2px 4px color-mix(in srgb, var(--ink) 8%, transparent), 0 24px 48px color-mix(in srgb, var(--ink) 14%, transparent);
}

/* ---------- レイアウトの土台 ---------- */
.mp-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mp-section { padding: var(--section-space) 0; position: relative; }
.mp-section--alt { background: var(--surface); }
.mp-section--tight { padding: 32px 0; }
.mp-section--brand { background: var(--brand); color: var(--on-brand); }
.mp-section--brand .mp-lead, .mp-section--brand .mp-muted { color: inherit; opacity: .82; }
.mp-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 860px; }
.mp-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.mp-head--center .mp-eyebrow { justify-content: center; }
.mp-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: var(--eyebrow-transform); color: var(--accent-ink); margin-bottom: 14px; }
.mp-eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.mp-title { font-size: var(--title-size); font-weight: 800; letter-spacing: -.005em; }
.mp-title em { font-style: normal; color: var(--accent-ink); }
.mp-pagehead h1 em, .mp-hero h1 em, .mp-banner .mp-title em, .mp-cta .mp-title em, .mp-band .mp-title em { font-style: normal; color: color-mix(in srgb, var(--accent) 55%, var(--on-brand)); }
.mp-lead { margin-top: 20px; color: var(--muted); max-width: 46em; font-size: 17px; }
.mp-muted { color: var(--muted); }
.mp-two { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.mp-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.mp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* ---------- ボタン・小物 ---------- */
.mp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: var(--radius-button); font-weight: 700; text-decoration: none; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); transition: transform .2s, box-shadow .2s; }
.mp-btn::after { content: '→'; transition: transform .2s; }
.mp-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mp-btn:hover::after { transform: translateX(3px); }
.mp-btn + .mp-btn, .mp-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.mp-chip { display: inline-flex; align-items: center; font-size: 13px; padding: 5px 14px; border-radius: 999px; background: var(--tint); color: var(--ink); margin: 0 6px 8px 0; border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.mp-num { display: inline-block; font-family: var(--font-display); font-weight: 800; color: var(--accent-ink); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.mp-badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--accent-ink); font-family: var(--font-display); font-weight: 800; font-size: 15px; flex: none; }
.mp-metric { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); color: var(--accent-ink); line-height: 1.15; letter-spacing: -.01em; }
.mp-check { list-style: none; padding: 0; }
.mp-check li { position: relative; padding-left: 30px; margin: 10px 0; }
.mp-check li::before { content: ''; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--tint-strong); }
.mp-check li::after { content: ''; position: absolute; left: 6px; top: calc(.45em + 4px); width: 6px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mp-list li { margin: 6px 0; }

/* ---------- カード ---------- */
.mp-card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); transition: transform .25s, box-shadow .25s, border-color .25s; }
.mp-section--alt .mp-card { background: var(--bg); }
.mp-card h3 { font-size: 19px; margin: 8px 0 10px; }
.mp-card p { color: var(--muted); font-size: 15px; }
.mp-card--accent { border-top: 4px solid var(--accent); }
a.mp-card { display: block; text-decoration: none; color: inherit; }
a.mp-card:hover, a.mp-card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.mp-card__arrow { position: absolute; right: 24px; bottom: 22px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent-ink); font-weight: 700; transition: transform .25s; }
a.mp-card:hover .mp-card__arrow { transform: translateX(4px); background: var(--accent); color: var(--on-accent); }
.mp-card--media { padding: 0; overflow: hidden; }
.mp-card--media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mp-card--media .mp-card__body { padding: 24px 26px 28px; }

/* ---------- ヘッダー・フッター ---------- */
.mp-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.mp-header .mp-wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.mp-logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.mp-logo img { height: 36px; width: auto; display: block; }
.mp-nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.mp-nav a { text-decoration: none; color: var(--muted); position: relative; padding: 6px 0; }
.mp-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.mp-nav a:hover { color: var(--ink); }
.mp-nav a:hover::after { transform: scaleX(1); }
.mp-header .mp-btn { min-height: 42px; padding: 0 18px; font-size: 13px; }
.mp-header .mp-btn::after { content: none; }
@media (max-width: 860px) { .mp-nav { display: none; } .mp-header .mp-btn { margin-left: auto; } }

.mp-footer { background: var(--brand-deep); color: var(--on-brand); padding: 72px 0 120px; font-size: 14px; }
.mp-footer a { text-decoration: none; opacity: .85; }
.mp-footer a:hover { opacity: 1; text-decoration: underline; }
.mp-footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 36px; padding-bottom: 28px; border-bottom: 1px solid color-mix(in srgb, var(--on-brand) 18%, transparent); }
.mp-footer .mp-grid { gap: 24px; }
.mp-footer small { display: block; margin-top: 40px; opacity: .6; }

/* ---------- ページ見出し帯 ---------- */
.mp-pagehead { position: relative; overflow: hidden; color: var(--on-brand); background: linear-gradient(120deg, var(--brand-deep), var(--brand) 55%, color-mix(in srgb, var(--brand) 70%, var(--accent))); }
.mp-pagehead::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--on-brand) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--on-brand) 7%, transparent) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, #000 0%, transparent 70%); pointer-events: none; }
.mp-pagehead__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(56px, 8vw, 96px); }
.mp-pagehead__en { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .22em; color: color-mix(in srgb, var(--accent) 70%, var(--on-brand)); display: inline-flex; align-items: center; gap: 12px; }
.mp-pagehead__en::before { content: ''; width: 32px; height: 2px; background: currentColor; }
.mp-pagehead h1 { font-size: clamp(32px, 5vw, 60px); font-weight: 900; margin-top: 18px; letter-spacing: -.01em; }
.mp-pagehead p { margin-top: 20px; max-width: 40em; opacity: .85; font-size: 16px; }
.mp-pagehead__media { position: relative; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) * 2); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.mp-pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.mp-pagehead__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, color-mix(in srgb, var(--brand) 45%, transparent)); }
.mp-pagehead__deco { position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid color-mix(in srgb, var(--accent) 35%, transparent); pointer-events: none; }
@media (max-width: 860px) { .mp-pagehead__inner { grid-template-columns: 1fr; } .mp-pagehead__media { aspect-ratio: 16 / 9; } }
.mp-crumb { font-size: 12px; color: var(--muted); padding: 14px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.mp-crumb a { text-decoration: none; color: var(--accent-ink); }
.mp-crumb span { margin: 0 8px; opacity: .5; }

/* ---------- ヒーロー（下層で使うとき） ---------- */
.mp-hero { position: relative; overflow: hidden; padding: clamp(88px, 12vw, 160px) 0 clamp(72px, 9vw, 120px); background: linear-gradient(120deg, var(--brand-deep), var(--brand) 60%, color-mix(in srgb, var(--brand) 65%, var(--accent))); color: var(--on-brand); }
/* 冒頭の写真：写真はそのままの色で見せ、文字の側（左）にだけ濃い色を重ねて読みやすくする（2026-12-03 暗く沈んで見えたため変更） */
.mp-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.mp-hero:has(.mp-hero__img)::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, color-mix(in srgb, var(--brand-deep) 94%, transparent) 0%, color-mix(in srgb, var(--brand-deep) 82%, transparent) 42%, color-mix(in srgb, var(--brand-deep) 20%, transparent) 100%); }
.mp-hero .mp-wrap { position: relative; z-index: 2; }
@media (max-width: 760px) { .mp-hero:has(.mp-hero__img)::before { background: color-mix(in srgb, var(--brand-deep) 80%, transparent); } }
.mp-hero h1 { font-size: var(--hero-size); font-weight: 900; max-width: 14em; letter-spacing: -.015em; }
.mp-hero .mp-lead { color: inherit; opacity: .88; font-size: 18px; }
.mp-hero .mp-eyebrow { color: color-mix(in srgb, var(--accent) 70%, var(--on-brand)); }

/* ---------- 数字 ---------- */
.mp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.mp-stat { padding: 32px 28px; border-right: 1px solid var(--line); }
.mp-stat:last-child { border-right: 0; }
.mp-stat b { display: block; font-family: var(--font-display); font-size: clamp(40px, 5vw, 60px); font-weight: 800; line-height: 1.05; color: var(--accent-ink); letter-spacing: -.02em; }
.mp-stat b small { font-size: .38em; margin-left: 4px; color: var(--ink); letter-spacing: 0; }
.mp-stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
.mp-band { background: var(--brand); color: var(--on-brand); }
.mp-band .mp-stats { background: transparent; border-color: color-mix(in srgb, var(--on-brand) 20%, transparent); }
.mp-band .mp-stat { border-color: color-mix(in srgb, var(--on-brand) 20%, transparent); }
.mp-band .mp-stat b { color: var(--on-brand); }
.mp-band .mp-stat b small { color: inherit; opacity: .7; }
/* 採用の WHAT'S MY PLUS：問い（Q01〜）を上に、答えを下に */
.mp-stat--qa b { font-size: clamp(28px, 2.9vw, 38px); margin-top: 14px; white-space: nowrap; }
.mp-stat__q { display: block; margin: 0 !important; font-size: 15px !important; font-weight: 700; color: var(--ink) !important; line-height: 1.5; }
.mp-stat__q em { display: block; font-style: normal; font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; opacity: .7; margin-bottom: 4px; }
.mp-band .mp-stat__q { color: var(--on-brand) !important; }
.mp-band .mp-stat span { color: inherit; opacity: .75; }

/* ---------- 進め方・流れ ---------- */
.mp-steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: s; list-style: none; padding: 0; }
.mp-step { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.mp-step::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; color: var(--tint-strong); margin-bottom: 12px; }
.mp-step h3 { font-size: 19px; margin: 6px 0 8px; }
.mp-step p { font-size: 14px; color: var(--muted); }
.mp-step.is-current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint-strong); }
.mp-flow { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; counter-reset: f; }
.mp-flow li { position: relative; flex: 1 1 160px; padding: 20px 20px 20px 64px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); font-weight: 700; }
.mp-flow li::before { counter-increment: f; content: counter(f); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-size: 14px; }

/* ---------- 年表 ---------- */
.mp-timeline { list-style: none; padding: 0; position: relative; }
.mp-timeline::before { content: ''; position: absolute; left: 7em; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.mp-timeline li { position: relative; display: grid; grid-template-columns: 7em 1fr; gap: 32px; padding: 14px 0; }
.mp-timeline li::before { content: ''; position: absolute; left: calc(7em - 5px); top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.mp-timeline time { font-family: var(--font-display); font-weight: 700; color: var(--accent-ink); font-size: 14px; padding-top: 2px; }
.mp-timeline p { font-weight: 600; }
.mp-timeline small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; font-size: 14px; }
/* 沿革の左側：道のりの挿絵と年数（会社概要） */
@media (min-width: 761px) { .mp-tl-side { position: sticky; top: 120px; } }
.mp-tl-aside { margin-top: 40px; display: flex; flex-direction: column; line-height: 1; user-select: none; }
.mp-tl-aside__since { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .4em; color: var(--accent-ink); }
.mp-tl-aside__year { margin-top: 10px; font-family: var(--font-display); font-weight: 800; font-size: clamp(88px, 11vw, 156px); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.mp-tl-aside__rule { margin-top: 18px; display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .3em; color: var(--ink); }
.mp-tl-aside__rule::before { content: ''; width: 56px; height: 2px; background: var(--accent); }
.mp-tl-aside__rule b { font-size: 34px; letter-spacing: 0; color: var(--accent-ink); }
.mp-tl-since { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.mp-tl-bases { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .mp-timeline::before { left: 5px; } .mp-timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 28px; } .mp-timeline li::before { left: 0; } }

/* ---------- 表 ---------- */
.mp-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.mp-table th, .mp-table td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.mp-table tr:last-child th, .mp-table tr:last-child td { border-bottom: 0; }
.mp-table th { width: 26%; min-width: 7em; color: var(--ink); font-weight: 700; background: var(--tint); }
@media (max-width: 560px) { .mp-table th, .mp-table td { display: block; width: auto; } .mp-table th { padding-bottom: 6px; } }

/* ---------- 比較 ---------- */
.mp-compare { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.mp-compare > div { padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--bg); }
.mp-compare .is-head { font-weight: 800; font-size: 13px; letter-spacing: .08em; background: var(--surface); }
.mp-compare .is-head:nth-child(2) { background: var(--accent); color: var(--on-accent); }
.mp-compare .is-after { background: var(--tint); font-weight: 700; }
.mp-compare > div:nth-child(odd):not(.is-head) { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }

/* ---------- 2カラム（写真と文） ---------- */
.mp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.mp-split[data-flip] .mp-split__media { order: -1; }
.mp-split__media { position: relative; }
.mp-split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: calc(var(--radius) * 1.5); position: relative; z-index: 1; }
.mp-split__media::before { content: ''; position: absolute; inset: 24px -24px -24px 24px; border-radius: calc(var(--radius) * 1.5); background: var(--tint-strong); }
.mp-split[data-flip] .mp-split__media::before { inset: 24px 24px -24px -24px; }
@media (max-width: 860px) { .mp-split { grid-template-columns: 1fr; } .mp-split[data-flip] .mp-split__media { order: 0; } }

/* ---------- 写真の帯 ---------- */
.mp-banner { position: relative; overflow: hidden; color: var(--on-brand); padding: clamp(80px, 12vw, 150px) 0; }
.mp-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 92%, transparent), color-mix(in srgb, var(--brand) 40%, transparent)); z-index: 1; }
.mp-banner .mp-wrap { position: relative; z-index: 2; }
.mp-banner .mp-title { max-width: 16em; }
.mp-banner .mp-lead { color: inherit; opacity: .9; }
.mp-banner .mp-eyebrow { color: color-mix(in srgb, var(--accent) 70%, var(--on-brand)); }

/* ---------- 引用 ---------- */
.mp-quote { position: relative; max-width: 880px; margin: 0 auto; text-align: center; padding: 24px 0; }
.mp-quote::before { content: '“'; display: block; font-family: Georgia, serif; font-size: 120px; line-height: .6; color: var(--accent-ink); opacity: .35; }
.mp-quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); font-weight: 800; line-height: 1.6; }
.mp-quote blockquote em { font-style: normal; color: var(--accent-ink); }
.mp-quote figcaption { margin-top: 20px; color: var(--muted); font-size: 14px; }
/* 引用を色の帯で見せる（ページ設定で band: true のとき） */
.mp-quote-band .mp-quote::before { color: var(--on-brand); opacity: .35; }
.mp-quote-band .mp-quote blockquote { color: var(--on-brand); font-size: clamp(26px, 3.6vw, 42px); }
.mp-quote-band .mp-quote blockquote em { color: color-mix(in srgb, var(--accent) 55%, var(--on-brand)); }
.mp-quote-band .mp-quote figcaption { color: var(--on-brand); opacity: .8; font-family: var(--font-display); letter-spacing: .08em; }
/* 写真つきの引用（採用ページ）：左に社員写真、右に理念 */
.mp-quote-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.mp-quote-split__media { position: relative; }
.mp-quote-split__media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.mp-quote-split__media::after { content: ''; position: absolute; right: -14px; bottom: -14px; width: 46%; height: 46%; border-right: 3px solid var(--accent); border-bottom: 3px solid var(--accent); border-radius: 0 0 var(--radius) 0; pointer-events: none; }
.mp-quote-split__body { text-align: left; }
.mp-quote-split__body .mp-eyebrow { display: block; margin-bottom: 18px; }
.mp-quote-split__label { display: inline-block; margin-bottom: 8px; padding: 4px 16px; border: 1px solid currentColor; border-radius: 999px; font-size: 13px; font-weight: 700; opacity: .9; }
.mp-quote-split .mp-quote { margin: 0; text-align: left; padding: 0; }
.mp-quote-split .mp-quote::before { display: none; }
.mp-quote-split .mp-quote blockquote { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.4; text-wrap: balance; }
.mp-quote-split__note { margin: 28px 0 0; max-width: 520px; font-size: 15px; line-height: 2; opacity: .85; }
.mp-quote-split[data-flip] { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.mp-quote-split[data-flip] .mp-quote-split__media { order: 2; }
.mp-quote-split[data-flip] .mp-quote-split__media::after { right: auto; left: -14px; border-right: 0; border-left: 3px solid var(--accent); border-radius: 0 0 0 var(--radius); }
.mp-section.mp-quote-band + .mp-section.mp-quote-band { padding-top: 0 !important; }
@media (max-width: 760px) { .mp-quote-split, .mp-quote-split[data-flip] { grid-template-columns: 1fr; } .mp-quote-split[data-flip] .mp-quote-split__media { order: 0; } .mp-quote-split__media img { aspect-ratio: 4 / 3; } .mp-quote-split__media::after { right: -8px; bottom: -8px; } }

/* ---------- 目次 ---------- */
.mp-toc { position: relative; z-index: 1; background: var(--bg); border-bottom: 1px solid var(--line); }
.mp-toc .mp-wrap { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.mp-toc b { font-size: 12px; color: var(--muted); white-space: nowrap; margin-right: 8px; }
.mp-toc a { white-space: nowrap; font-size: 13px; text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); }
.mp-toc a:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- 事例・声 ---------- */
.mp-case { display: flex; flex-direction: column; gap: 14px; }
.mp-case__metric { padding: 20px 22px; border-radius: var(--radius); background: var(--tint); }
.mp-case__metric p { color: var(--ink); font-size: 14px; }
.mp-voice { margin: 0; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border-left: 4px solid var(--accent); }
.mp-voice p { color: var(--ink); font-weight: 600; }
.mp-voice small { display: block; margin-top: 6px; color: var(--muted); }

/* ---------- 人・インタビュー ---------- */
.mp-person { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.mp-avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--brand)); color: var(--on-accent); font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.mp-person small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
details.mp-qa { border-bottom: 1px solid var(--line); }
details.mp-qa summary { cursor: pointer; font-weight: 700; padding: 16px 40px 16px 0; position: relative; list-style: none; }
details.mp-qa summary::-webkit-details-marker { display: none; }
details.mp-qa summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent-ink); font-size: 18px; transition: transform .2s; }
details.mp-qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details.mp-qa > div { padding: 0 0 18px; color: var(--muted); }
.mp-answer { margin: 12px 0; padding-left: 14px; border-left: 2px solid var(--line); }
.mp-answer small { color: var(--muted); }

/* ---------- ニュース ---------- */
.mp-news { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.mp-news li { display: grid; grid-template-columns: 8em 1fr auto; gap: 8px 24px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.mp-news time { font-family: var(--font-display); color: var(--muted); font-size: 14px; }
.mp-news a { text-decoration: none; font-weight: 600; }
.mp-news a:hover { color: var(--accent-ink); }
.mp-news li::after { content: '→'; color: var(--accent-ink); }
@media (max-width: 560px) { .mp-news li { grid-template-columns: 1fr; } .mp-news li::after { display: none; } }

/* ---------- フォーム ---------- */
.mp-form { display: grid; gap: 20px; max-width: 720px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.mp-form label { display: grid; gap: 8px; font-weight: 700; font-size: 14px; }
.mp-form input, .mp-form select, .mp-form textarea { font: inherit; font-weight: 400; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.mp-form input:focus, .mp-form select:focus, .mp-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint-strong); background: var(--bg); }
.mp-form em { color: var(--on-accent); background: var(--accent); font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.mp-form .mp-btn { justify-self: start; }

/* ---------- 規程・本文 ---------- */
.mp-doc h2 { font-size: 20px; margin: 48px 0 14px; padding-left: 14px; border-left: 4px solid var(--accent); }
.mp-doc p, .mp-doc li { color: var(--muted); margin: 10px 0; overflow-wrap: anywhere; }

/* ---------- 最後の誘導 ---------- */
.mp-cta { position: relative; overflow: hidden; border-radius: calc(var(--radius) * 2); padding: clamp(40px, 6vw, 72px); background: linear-gradient(120deg, var(--brand-deep), var(--brand) 55%, color-mix(in srgb, var(--brand) 60%, var(--accent))); color: var(--on-brand); text-align: center; }
.mp-cta::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 48px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.mp-cta .mp-title { position: relative; }
.mp-cta .mp-lead { color: inherit; opacity: .88; margin-left: auto; margin-right: auto; }
.mp-cta .mp-eyebrow { color: color-mix(in srgb, var(--accent) 70%, var(--on-brand)); }
.mp-cta .mp-actions { justify-content: center; position: relative; }
.mp-cta .mp-btn { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); }
.mp-cta .mp-btn + .mp-btn { background: transparent; color: var(--on-brand); }

/* ---------- 関連ページ ---------- */
.mp-related a.mp-card { padding-bottom: 72px; }
.mp-related .mp-num { margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- 読みやすさ・余白の調整（自動点検の結果） ---------- */
.mp-head:empty { display: none; }
.mp-badge, .mp-num { color: var(--accent-ink); }
.mp-band .mp-eyebrow, .mp-pagehead .mp-eyebrow, .mp-banner .mp-eyebrow, .mp-cta .mp-eyebrow, .mp-hero .mp-eyebrow { color: color-mix(in srgb, var(--accent) 45%, var(--on-brand)); }
.mp-band .mp-title, .mp-band .mp-head { color: var(--on-brand); }
.mp-band .mp-lead { color: var(--on-brand); opacity: .85; }
.mp-band .mp-num { color: var(--on-brand); }
.mp-section[data-role="quote"] { padding: clamp(48px, 7vw, 88px) 0; }
.mp-quote::before { font-size: 96px; line-height: .5; margin-bottom: 8px; }
.mp-doc { padding-bottom: clamp(48px, 7vw, 80px); }
.mp-doc p[style*="text-align:right"] { margin-top: 32px !important; }
.mp-quote { padding: 0; }
.mp-quote::before { font-size: 80px; line-height: .45; margin-bottom: 4px; }
@media (max-width: 600px) {
  .mp-stat { padding: 20px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .mp-stat:last-child { border-bottom: 0; }
  .mp-band .mp-stat { border-color: color-mix(in srgb, var(--on-brand) 20%, transparent); }
  .mp-section { padding: 56px 0; }
}
@media (max-width: 600px) { .mp-doc { padding-bottom: 40px; } .mp-doc p[style*="text-align:right"] { margin-top: 24px !important; } }

/* ---------- 写真（カード・人物・ギャラリー） ---------- */
.mp-card--photo { padding-top: 0; overflow: hidden; }
.mp-card--photo > .mp-card__img { display: block; width: calc(100% + 2 * clamp(24px, 3vw, 32px)); max-width: none; margin: 0 calc(-1 * clamp(24px, 3vw, 32px)) 20px; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.mp-card--photo > .mp-card__img--person { aspect-ratio: 4 / 3; object-position: 50% 30%; }
a.mp-card--photo:hover > .mp-card__img { transform: scale(1.04); }
.mp-portrait { margin: 32px 0 0; position: relative; max-width: 360px; }
.mp-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: calc(var(--radius) * 1.5); position: relative; z-index: 1; }
.mp-portrait::before { content: ''; position: absolute; inset: 20px -20px -20px 20px; border-radius: calc(var(--radius) * 1.5); background: var(--tint-strong); }
.mp-portrait figcaption { position: relative; z-index: 1; margin-top: 16px; }
.mp-portrait figcaption small { display: block; color: var(--muted); }
.mp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 16vw, 220px); gap: 12px; }
.mp-gallery__item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.mp-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.mp-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
a.mp-gallery__item:hover img { transform: scale(1.05); }
.mp-gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; font-size: 12px; line-height: 1.5; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.5) 55%); } /* 説明文の周りだけ薄く暗くする（写真全体が暗く見えないように） */
@media (max-width: 760px) { .mp-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }

/* ---------- お知らせの帯（全ページ共通） ---------- */
.mp-notice { background: var(--brand-deep); color: var(--on-brand); font-size: 14px; position: relative; z-index: 5; }
.mp-notice a { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 8px 0; text-decoration: none; color: inherit; font-weight: 700; text-align: center; }
.mp-notice a:hover .mp-notice__arrow { transform: translateX(4px); }
.mp-notice__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 60%, var(--on-brand)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.mp-notice__arrow { transition: transform .2s; }
.mp-notice a { height: 44px; min-height: 0; padding: 0; white-space: nowrap; }
.mp-notice a > :not(.mp-notice__dot):not(.mp-notice__arrow), .mp-notice a { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .mp-notice { font-size: 12px; } }
.mp-notice .mp-notice__link { color: var(--on-brand); overflow: visible; }
.mp-notice__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* スマホの左右の余白（16px）より外へはみ出さないよう、写真の後ろの飾りのずれを小さくする */
@media (max-width: 600px) { .mp-split__media::before, .mp-split[data-flip] .mp-split__media::before, .mp-portrait::before { inset: 12px -10px -12px 10px; } }

/* ---------- 段階×サービスの別案（serviceIndex--*） ---------- */
.mp-si-flow__no { display: block; font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--accent-ink); }
.mp-si-card__label { display: block; margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
/* A：横の流れ */
.mp-si-flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.mp-si-flow__step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.mp-si-flow__head { position: relative; padding: 18px 20px; border-radius: var(--radius); background: var(--brand); color: var(--on-brand); }
.mp-si-flow__head .mp-si-flow__no { color: color-mix(in srgb, var(--accent) 45%, var(--on-brand)); }
.mp-si-flow__head b { display: block; font-size: 18px; margin-top: 4px; }
.mp-si-flow__head small { display: block; opacity: .85; font-size: 13px; margin-top: 2px; }
.mp-si-flow__step:not(:last-child) .mp-si-flow__head::after { content: ""; position: absolute; right: -22px; top: 50%; transform: translateY(-50%); border: 10px solid transparent; border-left: 12px solid var(--brand); }
.mp-si-flow__body { display: flex; flex-direction: column; gap: 10px; }
.mp-si-card { display: block; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--bg); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.mp-si-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mp-si-card b { display: block; margin-top: 4px; font-size: 16px; }
.mp-si-card small { display: block; color: var(--muted); font-size: 13px; }
.mp-si-card__deliv { display: block; font-size: 13px; color: var(--ink); }
@media (max-width: 760px) { .mp-si-flow__step:not(:last-child) .mp-si-flow__head::after { right: auto; left: 50%; top: auto; bottom: -22px; transform: translateX(-50%); border: 10px solid transparent; border-top: 12px solid var(--brand); } }
/* B：対応表 */
.mp-si-matrix__scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.mp-si-matrix { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.mp-si-matrix th, .mp-si-matrix td { padding: 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.mp-si-matrix thead th { background: var(--brand); color: var(--on-brand); font-weight: 400; }
.mp-si-matrix thead th .mp-si-flow__no { color: color-mix(in srgb, var(--accent) 45%, var(--on-brand)); }
.mp-si-matrix thead th b { display: block; font-size: 15px; }
.mp-si-matrix thead th small { display: block; font-size: 12px; opacity: .85; }
.mp-si-matrix tbody th { text-align: left; width: 34%; }
.mp-si-matrix tbody th a { display: block; font-weight: 700; color: var(--ink); text-decoration: none; }
.mp-si-matrix tbody th a .mp-num { margin-right: 8px; }
.mp-si-matrix tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 2px; }
.mp-si-matrix__mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 14px; }
.mp-si-matrix__none { color: var(--line); }
.mp-si-matrix__note { margin-top: 14px; font-size: 13px; color: var(--muted); }
/* C：タブ */
.mp-si-tabs__radio { position: absolute; opacity: 0; pointer-events: none; }
.mp-si-tabs__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 8px; margin-bottom: 24px; }
.mp-si-tabs__tab { cursor: pointer; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); transition: background .2s, border-color .2s; }
.mp-si-tabs__tab b { display: block; font-size: 15px; }
.mp-si-tabs__panel { display: none; }
.mp-si-tabs__summary { margin-bottom: 20px; color: var(--muted); }
.mp-si-tabs__summary b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.mp-si-tabs__radio:nth-of-type(1):checked ~ .mp-si-tabs__panels .mp-si-tabs__panel:nth-child(1),
.mp-si-tabs__radio:nth-of-type(2):checked ~ .mp-si-tabs__panels .mp-si-tabs__panel:nth-child(2),
.mp-si-tabs__radio:nth-of-type(3):checked ~ .mp-si-tabs__panels .mp-si-tabs__panel:nth-child(3),
.mp-si-tabs__radio:nth-of-type(4):checked ~ .mp-si-tabs__panels .mp-si-tabs__panel:nth-child(4),
.mp-si-tabs__radio:nth-of-type(5):checked ~ .mp-si-tabs__panels .mp-si-tabs__panel:nth-child(5) { display: block; }
.mp-si-tabs__radio:nth-of-type(1):checked ~ .mp-si-tabs__list .mp-si-tabs__tab:nth-child(1),
.mp-si-tabs__radio:nth-of-type(2):checked ~ .mp-si-tabs__list .mp-si-tabs__tab:nth-child(2),
.mp-si-tabs__radio:nth-of-type(3):checked ~ .mp-si-tabs__list .mp-si-tabs__tab:nth-child(3),
.mp-si-tabs__radio:nth-of-type(4):checked ~ .mp-si-tabs__list .mp-si-tabs__tab:nth-child(4),
.mp-si-tabs__radio:nth-of-type(5):checked ~ .mp-si-tabs__list .mp-si-tabs__tab:nth-child(5) { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.mp-si-tabs__radio:nth-of-type(1):checked ~ .mp-si-tabs__list .mp-si-tabs__tab:nth-child(1) .mp-si-flow__no,
.mp-si-tabs__radio:nth-of-type(2):checked ~ .mp-si-tabs__list .mp-si-tabs__tab:nth-child(2) .mp-si-flow__no,
.mp-si-tabs__radio:nth-of-type(3):checked ~ .mp-si-tabs__list .mp-si-tabs__tab:nth-child(3) .mp-si-flow__no,
.mp-si-tabs__radio:nth-of-type(4):checked ~ .mp-si-tabs__list .mp-si-tabs__tab:nth-child(4) .mp-si-flow__no,
.mp-si-tabs__radio:nth-of-type(5):checked ~ .mp-si-tabs__list .mp-si-tabs__tab:nth-child(5) .mp-si-flow__no { color: color-mix(in srgb, var(--accent) 45%, var(--on-brand)); }
.mp-si-tabs__radio:focus-visible ~ .mp-si-tabs__list { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
/* D：サービス起点 */
.mp-si-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.mp-si-legend i, .mp-si-svc__scale i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 800; margin-right: 6px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.mp-si-svclist { display: flex; flex-direction: column; gap: 12px; }
.mp-si-svc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, 1.3fr); gap: 20px; align-items: center; padding: 20px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); text-decoration: none; color: inherit; transition: box-shadow .2s; }
a.mp-si-svc:hover { box-shadow: var(--shadow); }
.mp-si-svc__name b { display: block; font-size: 17px; margin-top: 2px; }
.mp-si-svc__name small { display: block; color: var(--muted); font-size: 13px; }
.mp-si-svc__scale { list-style: none; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.mp-si-svc__scale li { padding: 8px 6px; border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 12px; text-align: center; line-height: 1.4; }
.mp-si-svc__scale li i { display: grid; margin: 0 auto 4px; }
.mp-si-svc__scale li span { display: block; }
.mp-si-svc__scale li.is-on { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.mp-si-svc__scale li.is-on i { background: var(--on-accent); color: var(--accent-ink); border-color: transparent; }
@media (max-width: 860px) { .mp-si-svc { grid-template-columns: 1fr; gap: 14px; } }
/* E：縦の道のり */
.mp-si-road { list-style: none; padding: 0; position: relative; }
.mp-si-road::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.mp-si-road__step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; padding: 20px 0; }
.mp-si-road__stage { display: flex; gap: 18px; align-items: flex-start; }
.mp-si-road__dot { flex: none; position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-family: var(--font-display); font-weight: 800; }
.mp-si-road__stage b { display: block; font-size: 19px; margin: 2px 0 6px; }
.mp-si-road__stage p { color: var(--muted); font-size: 14px; }
.mp-si-road__svcs { display: flex; flex-direction: column; gap: 10px; }
.mp-si-road__svc { display: block; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); text-decoration: none; color: inherit; }
a.mp-si-road__svc:hover { box-shadow: var(--shadow); }
.mp-si-road__svc b { display: block; font-size: 16px; }
.mp-si-road__svc small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
@media (max-width: 760px) { .mp-si-road__step { grid-template-columns: 1fr; gap: 12px; } .mp-si-road__svcs { padding-left: 62px; } }
.mp-si-road__short { display: block; margin: -2px 0 6px; font-size: 13px; font-weight: 700; color: var(--accent-ink); }

/* ---------- 用語の定義：大きなタイトルの下に説明を続ける ---------- */
.mp-section.mp-def { padding: clamp(48px, 7vw, 88px) 0; }
.mp-def__title { font-size: clamp(32px, 5.2vw, 60px); font-weight: 900; line-height: 1.25; letter-spacing: -.01em; }
.mp-def__title em { font-style: normal; color: var(--accent-ink); }
.mp-def__body { margin-top: clamp(20px, 3vw, 32px); max-width: 52em; padding-left: clamp(16px, 2vw, 24px); border-left: 4px solid var(--accent); }
.mp-def__text { margin-top: 8px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.9; color: var(--ink); }
.mp-def__note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.mp-def__chips { margin-top: 14px; }

/* ---------- 密度の調整：セクション間の余白を詰める ---------- */
.mp-head { margin-bottom: clamp(24px, 3.5vw, 40px); }
/* 同じ地色のセクションが続くときは、後ろの上余白を小さくして間延びさせない */
.mp-section:not(.mp-section--alt):not(.mp-band) + .mp-section:not(.mp-section--alt):not(.mp-band),
.mp-section--alt + .mp-section--alt { padding-top: calc(var(--section-space) * .4); }
@media (max-width: 600px) { .mp-section { padding: 44px 0; } }
/* 3枚組のカードが中途半端な幅で 2枚＋1枚 に割れないよう、最小幅を小さくする */
.mp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
/* 番号（バッジ）の横にタイトルを置く */
.mp-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.mp-card__head h3, .mp-card__head p { margin: 0; }
.mp-card__head .mp-badge { width: 40px; height: 40px; font-size: 14px; }

/* ---------- 密度の調整（全下層ページ） ---------- */
/* 3枚組のカード：最大3列。5件なら3＋2、4件なら2＋2 にして、4＋1 のような端数を作らない */
.mp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(max(220px, calc((100% - 40px) / 3)), 1fr)); }
.mp-grid--3:has(> :nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(max(220px, calc((100% - 20px) / 2)), 1fr)); }
@media (max-width: 520px) { .mp-grid--3, .mp-grid--3:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; } }
/* 写真ギャラリー：枚数に合わせて穴が空かない並びにする（大きな1枚＋残り） */
.mp-gallery:has(> :nth-child(2):last-child) > * { grid-column: span 2; grid-row: span 2; }
.mp-gallery:has(> :nth-child(3):last-child) > :not(:first-child) { grid-column: span 2; }
.mp-gallery:has(> :nth-child(4):last-child) > :last-child { grid-column: span 2; }
@media (max-width: 760px) {
  .mp-gallery > * { grid-column: auto !important; grid-row: auto !important; }
  .mp-gallery > :first-child { grid-column: span 2 !important; }
  .mp-gallery:has(> :nth-child(2):last-child) > :last-child, .mp-gallery:has(> :nth-child(4):last-child) > :last-child { grid-column: span 2 !important; }
}
/* フォーム：短い入力欄は2列に並べ、本文・選択・ファイル・ボタンは全幅 */
.mp-form { max-width: 880px; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.mp-form > :not(.mp-form__field--text):not(.mp-form__field--email):not(.mp-form__field--tel) { grid-column: 1 / -1; }
@media (max-width: 640px) { .mp-form { grid-template-columns: 1fr; } }
/* 3枚組のカード：最後の行が1〜2枚のときは横に伸ばして行を埋める（3＋2 → 下段は2枚で全幅） */
.mp-grid--3, .mp-grid--3:has(> :nth-child(4):last-child) { display: flex; flex-wrap: wrap; }
.mp-grid--3 > * { flex: 1 1 calc((100% - 40px) / 3); min-width: min(100%, 220px); }
.mp-grid--3:has(> :nth-child(4):last-child) > * { flex-basis: calc((100% - 20px) / 2); }

/* ---------- ブログ（WordPress から取り込んだ記事） ---------- */
.mp-blogf { padding-bottom: 0; }
.mp-blogf__row { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-blogf__row--years { margin-top: 12px; gap: 4px 18px; }
.mp-blogf__chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; transition: border-color .2s, background .2s; }
.mp-blogf__chip small { font-size: 12px; font-weight: 400; color: var(--muted); }
.mp-blogf__chip:hover { border-color: var(--accent); }
.mp-blogf__chip.is-current { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.mp-blogf__chip.is-current small { color: inherit; opacity: .85; }
.mp-blogf__year { font-size: 14px; color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.mp-blogf__year:hover { color: var(--ink); }
.mp-blogf__year.is-current { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
.mp-blogf__status { margin-top: 20px; font-size: 14px; color: var(--muted); }
.mp-blogf__status b { color: var(--ink); }
.mp-blogf__status a { margin-left: 14px; color: var(--accent-ink); }
.mp-blogf + .mp-blog { padding-top: 28px; }

.mp-blog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 32px 24px; }
.mp-blog__card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.mp-blog__img { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.mp-blog__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mp-blog__card:hover .mp-blog__img img { transform: scale(1.04); }
.mp-blog__noimg { display: grid; place-items: center; height: 100%; font-family: var(--font-display); font-weight: 800; letter-spacing: .2em; color: var(--muted); background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--accent) 14%, var(--surface))); }
.mp-blog__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.mp-blog__meta time { font-family: var(--font-display); font-weight: 700; color: var(--accent-ink); }
.mp-blog__cat { padding: 2px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--ink); }
.mp-blog__title { font-size: 17px; line-height: 1.55; }
.mp-blog__card:hover .mp-blog__title { color: var(--accent-ink); }
.mp-blog__excerpt { font-size: 14px; line-height: 1.7; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-blog__empty { padding: 40px 0; color: var(--muted); }

.mp-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin-top: 48px; }
.mp-pager__nums { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-pager__num { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 700; }
a.mp-pager__num:hover { border-color: var(--accent); }
.mp-pager__num.is-current { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.mp-pager__step { color: var(--accent-ink); font-weight: 700; text-decoration: none; }

.mp-pagehead--article h1 { font-size: clamp(24px, 3.4vw, 38px); line-height: 1.45; }
.mp-pagehead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.mp-pagehead__meta time { font-weight: 700; }
.mp-pagehead__meta span { padding: 2px 12px; border-radius: 999px; border: 1px solid currentColor; font-size: 12px; opacity: .9; }

.mp-article__wrap { max-width: 800px; }
.mp-article__body { font-size: 17px; line-height: 2; color: var(--ink); overflow-wrap: anywhere; }
.mp-article__body > * + * { margin-top: 1.2em; }
.mp-article__body h2, .mp-article__body h3, .mp-article__body h4 { line-height: 1.5; margin-top: 2em; }
.mp-article__body h2 { font-size: 24px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.mp-article__body h3 { font-size: 20px; padding-left: 12px; border-left: 4px solid var(--accent); }
.mp-article__body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.mp-article__body figure { margin-left: 0; margin-right: 0; }
.mp-article__body figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.mp-article__body a { color: var(--accent-ink); text-decoration: underline; }
.mp-article__body ul, .mp-article__body ol { padding-left: 1.4em; }
.mp-article__body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.mp-article__body th, .mp-article__body td { border: 1px solid var(--line); padding: 8px 12px; }
.mp-article__body blockquote { margin-left: 0; padding: 12px 20px; border-left: 4px solid var(--line); background: var(--surface); }
.mp-article__body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.mp-article__foot { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.mp-article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.mp-article__step { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); text-decoration: none; }
.mp-article__step:hover { border-color: var(--accent); }
.mp-article__step small { font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.mp-article__step span { font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-article__step--next { text-align: right; grid-column: 2; }
.mp-article__back { margin-top: 24px; text-align: center; }
.mp-article__back a { color: var(--accent-ink); font-weight: 700; }
@media (max-width: 600px) { .mp-article__nav { grid-template-columns: 1fr; } .mp-article__step--next { grid-column: auto; } .mp-article__body { font-size: 16px; } }

/* 小見出し（h3）の書体。既定は見出しと同じ。太すぎる和文の見出し書体を使うデザインは、
   tokens.css で --font-subhead を読みやすい書体にする（小さい字でつぶれないように） */
h3 { font-family: var(--font-subhead, var(--font-display)); }
/* 小さい飾り文字（ラベル・番号・単位など）も小見出しの書体にする（太い和文書体のデザインで字がつぶれないように） */
.mp-eyebrow, .mp-num, .mp-badge, .mp-timeline time, .mp-pagehead__en, .mp-news time, .mp-si-flow__no, .mp-blog__meta time, .mp-stat small { font-family: var(--font-subhead, var(--font-display)); }
@media (max-width: 800px) { .mp-quote blockquote { font-family: var(--font-subhead, var(--font-display)); } }

/* フォーム：送信の状態、完了表示、ボット用のわな（画面には出さない） */
.mp-form__trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mp-form__hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 400; }
.mp-form__status { min-height: 1.6em; font-size: 14px; color: var(--muted); }
.mp-form__status.is-error { color: #B42318; font-weight: 700; }
.mp-form button[disabled] { opacity: .6; cursor: progress; }
.mp-form__done { max-width: 880px; padding: 28px 32px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); border-left: 6px solid var(--accent); }
.mp-form__done b { display: block; font-size: 20px; color: var(--ink); }
.mp-form__done p { margin-top: 10px; color: var(--muted); }
/* 見出しと「必須」を1つにまとめる（label が grid なので、まとめないと「必須」が横いっぱいに伸びる） */
.mp-form__label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
/* 送信後に隠す（.mp-form の display: grid に負けないように） */
.mp-form[hidden], .mp-form__done[hidden] { display: none !important; }
.mp-form__done { margin: 0 auto; }

/* ナビの中で目立たせるページ（sitemap の navigation.emphasis）をボタンにする */
.mp-nav { align-items: center; }
a.mp-nav__em { text-decoration: none; color: var(--brand); font-weight: 700; border: 1.5px solid var(--brand); border-radius: 999px; padding: 6px 16px; white-space: nowrap; }
.mp-nav a.mp-nav__em::after { content: none; }
a.mp-nav__em:hover { background: var(--brand); color: var(--on-brand, #fff); }

/* ---------- 推進体制図（committee）：取締役会 ⇅ 委員会（点線の枠に委員長・委員） ---------- */
.mp-org { --org-line: color-mix(in srgb, var(--ink) 62%, var(--bg)); margin: 0 auto; max-width: 720px; display: flex; flex-direction: column; align-items: center; }
.mp-org__box { display: flex; flex-direction: column; justify-content: center; text-align: center; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: var(--on-brand); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--brand)); border-radius: calc(var(--radius) / 2); padding: 14px 20px; line-height: 1.5; }
.mp-org__box b { font-family: var(--font-body); font-weight: 700; letter-spacing: .1em; }
.mp-org__box span { margin-top: 2px; font-size: 13px; letter-spacing: .08em; opacity: .9; }
.mp-org__box--top { min-width: 240px; padding: 16px 32px; }
.mp-org__box--top b { font-size: 20px; }
.mp-org__box--top span { font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; }
.mp-org__link { display: grid; grid-template-columns: 1fr 14px 14px 1fr; column-gap: 22px; align-items: center; width: 100%; height: 120px; }
.mp-org__flow { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .08em; line-height: 1.6; }
.mp-org__flow--up { text-align: right; }
.mp-org__arrow { position: relative; align-self: stretch; margin: 10px 0; }
.mp-org__arrow::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; background: var(--org-line); }
.mp-org__arrow::after { content: ''; position: absolute; left: 50%; width: 9px; height: 9px; border: solid var(--org-line); border-width: 1.5px 0 0 1.5px; }
.mp-org__arrow--up::after { top: 0; transform: translate(-50%, 1px) rotate(45deg); }
.mp-org__arrow--down::after { bottom: 0; transform: translate(-50%, -1px) rotate(225deg); }
.mp-org__frame { width: 100%; display: grid; grid-template-columns: 1fr minmax(0, 260px); gap: 24px; align-items: center; padding: clamp(24px, 4vw, 40px); border: 1.5px dashed var(--org-line); border-radius: calc(var(--radius) / 2); }
.mp-org__name h3 { font-size: clamp(22px, 3vw, 30px); letter-spacing: .08em; }
.mp-org__name span { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.mp-org__seats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mp-org__seats .mp-org__box { padding: 14px 16px; }
.mp-org__seats .mp-org__box b { font-size: 15px; }
.mp-org__contact { margin-top: 28px; font-size: 14px; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
  .mp-org__box--top { min-width: 0; width: min(100%, 260px); }
  .mp-org__link { height: 104px; column-gap: 14px; }
  .mp-org__flow { font-size: 13px; }
  .mp-org__frame { grid-template-columns: 1fr; text-align: center; padding: 24px 18px; }
}

/* ヘッダーの「お問い合わせ」（AX無料診断の横。控えめな枠線のボタン） */
.mp-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mp-header .mp-header__sub { white-space: nowrap; }

/* A/tokens.css */
/* 案A MERIDIAN のトークン（トップの見た目から抽出） */
:root {
  --bg: #FFFFFF;
  --surface: #F4F7FC;
  --ink: #0E1630;
  --muted: #3A4466;
  --line: #DCE3F0;
  --brand: #0B1F5C;
  --on-brand: #FFFFFF;
  --accent: #0077B6;
  --on-accent: #FFFFFF;
  --font-body: 'Noto Sans JP', system-ui, sans-serif;
  --font-display: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
  --radius: 4px;
  --radius-button: 4px;
}

/* A/style.css */
/* 案A MERIDIAN：トップの部品は style 属性で組み、ここは全体の地と強調だけ */
.a-root { font-family: 'Noto Sans JP', sans-serif; color: #0E1630; background: #FFFFFF; line-height: 1.7; }
:where(.a-root) a { color: #0B1F5C; }
:where(.a-root) a:hover { color: #0077B6; }
:where(body[data-page="top"] .a-root) h1 em, :where(body[data-page="top"] .a-root) h2 em { font-style: normal; color: #0B1F5C; }
:where(body[data-page="top"] .a-root .a-dark) h2 em { color: #5FD3F5; }
