/* ==========================================================================
   Scalence Inc. — Corporate Site
   Palette : Scalence_Shigoku_Theme
   Font    : Shippori Mincho / Noto Sans JP / Cormorant Garamond（自社サーバー配信：assets/css/fonts.css）
   ========================================================================== */

:root {
  /* Palette */
  --c-core: #2D0425;          /* 深紫：コーポレートコア */
  --c-core-deep: #1E0219;     /* 深紫の陰（グラデーション用） */
  --c-core-lift: #4A1240;     /* 深紫の光（グラデーション用） */
  --c-charcoal: #464648;      /* 見出し・枠線 */
  --c-gray: #5F5F62;          /* 本文・注釈 */
  --c-base: #F2F0EC;          /* 背景 */
  --c-white: #FFFFFF;
  --c-sage: #B4C8BE;          /* 補助要素 */
  --c-forest: #465F50;        /* 重要プロセス */
  --c-tan: #C8AF8C;           /* 論点・アクセント */
  --c-orange: #965F2D;        /* 結論・推奨（＝CTA） */
  --c-orange-deep: #7A4A20;
  --c-line: rgba(70, 70, 72, .16);
  --c-line-strong: rgba(70, 70, 72, .34);
  --c-line-light: rgba(242, 240, 236, .16);
  --c-text-light: rgba(242, 240, 236, .78);

  --container: 1200px;
  --gutter: max(clamp(20px, 5vw, 48px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --section-y: clamp(88px, 11vw, 168px);
  --header-h: 76px;
  --radius: 4px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --shadow: 0 1px 2px rgba(45, 4, 37, .04), 0 18px 40px -18px rgba(45, 4, 37, .22);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 767.98px) {
  :root { --header-h: 64px; }
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--c-base);
  color: var(--c-gray);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .04em;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .25em; }
p, ul, ol, dl, dd, figure, h1, h2, h3, h4 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--c-charcoal); font-weight: 700; line-height: 1.5; letter-spacing: .06em; }
h1, h2, h3, h4, .statement, .hero__catch, .section-lead, .hero__lead, .page-hero__lead, .case-card__title { word-break: auto-phrase; overflow-wrap: anywhere; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
::selection { background: var(--c-core); color: var(--c-base); }
:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 3px; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; animation-timing-function: var(--ease-out); }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px; background: var(--c-core); color: var(--c-base);
  transform: translateY(-200%); transition: transform .3s;
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.u-pc { display: none; }
@media (min-width: 768px) { .u-pc { display: inline; } }
.u-nowrap { white-space: nowrap; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - var(--gutter) * 2, 880px); margin-inline: auto; }

/* ---------- Typography ---------- */
.eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  color: var(--c-orange); font-size: 12px; line-height: 1.6; letter-spacing: .24em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow__en { font-weight: 700; }
.eyebrow__ja { color: var(--c-gray); letter-spacing: .14em; }
.eyebrow--light { color: var(--c-tan); }
.eyebrow--light .eyebrow__ja { color: var(--c-text-light); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 28px; height: 1px; background: currentColor; }

.section-title {
  margin-top: 22px;
  color: var(--c-core);
  font-size: clamp(25px, 1.9vw + 15px, 42px);
  line-height: 1.55;
  letter-spacing: .07em;
}
.section-title--light { color: var(--c-white); }
.section-lead { font-size: clamp(15px, .3vw + 14px, 17px); line-height: 2.05; }
.section--dark .section-lead { color: var(--c-text-light); }
.note { margin-top: 28px; font-size: 13px; color: var(--c-gray); }
.section--dark .note { color: var(--c-text-light); }

/* ---------- Buttons / Links ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor; --btn-hover-bg: var(--c-core);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 24px 0 30px;
  border: 1px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: .08em; text-decoration: none; text-align: center;
  word-break: keep-all;
  cursor: pointer;
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--btn-hover-bg); transform: translateY(102%);
  transition: transform .6s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.i-arrow { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.i-ext { display: inline-block; width: 13px; height: 13px; margin-left: 4px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn--primary { --btn-bg: var(--c-orange); --btn-fg: #fff; --btn-bd: var(--c-orange); --btn-hover-bg: var(--c-orange-deep); }
.btn--primary:hover { border-color: var(--c-orange-deep); }
.btn--ghost-light { --btn-fg: var(--c-base); --btn-bd: rgba(242, 240, 236, .42); --btn-hover-bg: var(--c-base); }
.btn--ghost-light:hover, .btn--ghost-light:focus-visible { color: var(--c-core); border-color: var(--c-base); }
.btn--sm { min-height: 42px; padding: 0 16px 0 22px; gap: 10px; font-size: 13px; }
.btn--sm .i-arrow { width: 15px; height: 15px; }
.btn--lg { min-height: 62px; padding: 0 28px 0 36px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn__note { margin-left: -4px; padding: 1px 9px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 99px; font-size: 11px; font-weight: 400; letter-spacing: .06em; white-space: nowrap; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 16px;
  color: var(--c-core); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-decoration: none;
}
.link-arrow__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--c-line-strong); border-radius: 50%;
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out), color .5s var(--ease-out);
}
.link-arrow__icon .i-arrow { width: 16px; height: 16px; }
.link-arrow:hover .link-arrow__icon { background: var(--c-core); border-color: var(--c-core); color: var(--c-base); }
.link-arrow:hover .i-arrow { transform: translateX(3px); }
.section--dark .link-arrow { color: var(--c-base); }
.section--dark .link-arrow__icon { border-color: rgba(242, 240, 236, .4); }
.section--dark .link-arrow:hover .link-arrow__icon { background: var(--c-base); color: var(--c-core); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--c-base);
  transition: transform .7s var(--ease-out), color .4s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(242, 240, 236, .86);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--c-line);
  opacity: 0; transition: opacity .4s;
}
.site-header.is-solid { color: var(--c-core); }
.site-header.is-solid::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  position: relative; height: 100%;
  width: min(100% - var(--gutter) * 2, 1360px); margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
  view-transition-name: site-header; /* ヘッダー本体に付けると ::before の backdrop-filter が効かなくなるため内側に */
}
.site-logo { flex: none; display: block; width: clamp(148px, 12vw + 40px, 190px); color: inherit; }
.site-logo svg, .site-footer__logo svg { width: 100%; aspect-ratio: 1008 / 165.93; fill: currentColor; }
.gnav { margin-left: auto; }
.gnav__list { display: flex; gap: 4px; }
.gnav__item { position: relative; }
.gnav__link {
  position: relative; display: block; padding: 10px 14px;
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-decoration: none;
}
.gnav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.gnav__link:hover::after, .gnav__link[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.gnav__sub {
  position: absolute; top: 100%; left: 50%; min-width: 320px; padding: 8px;
  background: var(--c-white); color: var(--c-charcoal); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; translate: -50% 10px;
  transition: opacity .35s, translate .5s var(--ease-out), visibility .35s;
}
.gnav__item--has-sub:hover .gnav__sub, .gnav__item--has-sub:focus-within .gnav__sub { opacity: 1; visibility: visible; translate: -50% 0; }
.gnav__item--has-sub.is-dismissed .gnav__sub { opacity: 0; visibility: hidden; }
.gnav__sub a { display: grid; gap: 2px; padding: 12px 16px; border-radius: 3px; text-decoration: none; transition: background-color .3s; }
.gnav__sub a:hover { background: var(--c-base); }
.gnav__sub-name { color: var(--c-core); font-size: 14px; font-weight: 700; }
.gnav__sub-desc { font-size: 12px; line-height: 1.6; color: var(--c-gray); }
.site-header__cta { flex: none; }
.menu-toggle {
  display: none; align-items: center; gap: 12px; margin-left: auto; padding: 12px 0 12px 12px;
  background: none; border: 0; cursor: pointer; font-size: 11px; letter-spacing: .2em;
  flex: none; white-space: nowrap;
}
.menu-toggle__label { display: inline-block; min-width: 4.6em; text-align: left; }
@media (max-width: 359.98px) { .site-header__inner { gap: 12px; } }
.menu-toggle__bars { position: relative; width: 30px; height: 10px; }
.menu-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .6s var(--ease-out), top .6s var(--ease-out);
}
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: 8px; }
.is-menu-open .menu-toggle__bars span:first-child { top: 4px; transform: rotate(24deg); }
.is-menu-open .menu-toggle__bars span:last-child { top: 4px; transform: rotate(-24deg); }
.is-menu-open .site-header { color: var(--c-base); transform: none; }
.is-menu-open .site-header::before { opacity: 1; background: var(--c-core); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--c-line-light); }

@media (max-width: 1023.98px) {
  .gnav, .site-header__cta { display: none; }
  .menu-toggle { display: flex; }
}

/* ---------- Drawer (mobile menu) ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 45; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--header-h) + 16px) var(--gutter) calc(40px + env(safe-area-inset-bottom));
  background: var(--c-core); color: var(--c-base);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
}
.is-menu-open .drawer { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease-in-out); }
.is-menu-open { overflow: hidden; }
.drawer__inner { max-width: 560px; margin-inline: auto; }
.drawer__nav > li {
  border-bottom: 1px solid var(--c-line-light);
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s, transform .9s var(--ease-out);
}
.is-menu-open .drawer__nav > li { opacity: 1; transform: none; }
.is-menu-open .drawer__nav > li:nth-child(1) { transition-delay: .25s; }
.is-menu-open .drawer__nav > li:nth-child(2) { transition-delay: .3s; }
.is-menu-open .drawer__nav > li:nth-child(3) { transition-delay: .35s; }
.is-menu-open .drawer__nav > li:nth-child(4) { transition-delay: .4s; }
.is-menu-open .drawer__nav > li:nth-child(5) { transition-delay: .45s; }
.drawer__nav > li > a { display: block; padding: 18px 0; font-size: 19px; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.drawer__sub { display: grid; gap: 2px; margin: -6px 0 16px; }
.drawer__sub a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0 8px 16px; color: var(--c-text-light); font-size: 15px; text-decoration: none; }
@media (max-width: 359.98px) { .drawer__sub a { flex-direction: column; align-items: flex-start; gap: 0; } }
.drawer__sub small { color: var(--c-tan); font-size: 11px; letter-spacing: .08em; }
.drawer__cta { display: grid; gap: 12px; margin-top: 32px; opacity: 0; transition: opacity .6s .5s; }
.is-menu-open .drawer__cta { opacity: 1; }

/* ---------- Dark surfaces / grain ---------- */
.section--dark, .hero, .page-hero, .cta-band, .site-footer { position: relative; isolation: isolate; background: var(--c-core); color: var(--c-text-light); }
.hero::after, .page-hero::after, .cta-band::after, .section--dark::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .05; mix-blend-mode: screen;
}

/* ---------- Hero (top) ---------- */
.hero { min-height: max(660px, 100svh); display: flex; flex-direction: column; overflow: hidden; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(70% 70% at 88% 12%, rgba(110, 36, 96, .55), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgba(18, 1, 15, .75), transparent 70%),
    var(--c-core);
}
.hero-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 40px); padding-bottom: 56px; }
.hero__title { margin: 0; color: var(--c-white); font-weight: 700; }
.hero__kicker {
  display: flex; align-items: center; gap: 14px; margin-bottom: clamp(22px, 3vw, 36px);
  color: var(--c-tan); font-size: clamp(12px, .3vw + 11px, 14px); letter-spacing: .2em; line-height: 1.7;
  text-shadow: 0 0 2px rgba(45, 4, 37, .9), 0 0 14px rgba(45, 4, 37, .85);
}
.hero__kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.hero__catch { display: block; font-size: clamp(38px, 5.6vw, 84px); line-height: 1.32; letter-spacing: .12em; }
.ln { display: block; overflow: hidden; padding-bottom: .04em; }
.ln > span { display: inline-block; }
.hero__lead { max-width: 36em; margin-top: clamp(28px, 3vw, 40px); color: var(--c-text-light); font-size: clamp(15px, .5vw + 12.5px, 17.5px); line-height: 2.05; text-shadow: 0 0 2px rgba(45, 4, 37, .9), 0 0 14px rgba(45, 4, 37, .85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: clamp(32px, 4vw, 48px); }
.hero__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-bottom: clamp(24px, 3vw, 36px);
}
.scroll-cue { display: flex; align-items: center; gap: 14px; color: var(--c-text-light); font-size: 11px; letter-spacing: .3em; text-decoration: none; }
.scroll-cue__line { position: relative; width: 1px; height: 56px; background: rgba(242, 240, 236, .2); overflow: hidden; }
/* transform で動かす（top だと毎フレーム再レイアウト）。2回で止める（WCAG 2.2.2：5秒以内に停止） */
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--c-tan);
  transform: translateY(-100%);
  animation: cue 2.4s var(--ease-in-out) 2;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(250%); } }
.hero__svc { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 28px; }
.hero__svc a { position: relative; color: var(--c-text-light); font-size: 12px; letter-spacing: .16em; text-decoration: none; transition: color .3s; }
.hero__svc a::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 10px; vertical-align: 2px; border: 1px solid var(--c-tan); transform: rotate(45deg); }
.hero__svc a:hover { color: var(--c-white); }
@media (max-width: 767.98px) {
  .hero__kicker { letter-spacing: .1em; }
  .hero__svc { display: none; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero { overflow: hidden; }
.page-hero__inner { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(56px, 7vw, 104px); }
.page-hero__title { margin-top: 20px; color: var(--c-white); font-size: clamp(25px, 2.6vw + 16px, 54px); line-height: 1.45; letter-spacing: .08em; }
.page-hero__lead { max-width: 44em; margin-top: 24px; color: var(--c-text-light); font-size: clamp(15px, .3vw + 14px, 17px); line-height: 2.05; text-shadow: 0 0 2px rgba(45, 4, 37, .9), 0 0 14px rgba(45, 4, 37, .85); }
.page-hero--short .page-hero__inner { padding-bottom: clamp(44px, 5vw, 72px); }
.breadcrumb { margin-bottom: clamp(28px, 4vw, 48px); font-size: 12px; letter-spacing: .08em; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li { color: rgba(242, 240, 236, .6); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: rgba(242, 240, 236, .3); }
.breadcrumb a { color: var(--c-text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-white); text-decoration: underline; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--white { background: var(--c-white); }
.section--tight { padding-block: calc(var(--section-y) * .62); }
.section-head { margin-bottom: clamp(44px, 6vw, 80px); }
.section-head .section-lead { margin-top: 24px; max-width: 40em; }
.section-head--split { display: grid; gap: 24px 64px; align-items: end; }
.section-head--split .section-lead { margin-top: 0; }
@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; row-gap: 0; }
  /* 小見出し・見出し・説明文を同じグリッドに並べ、説明文の上端を見出しの上端にそろえる */
  .section-head--split > div { display: contents; }
  .section-head--split .eyebrow { grid-column: 1; grid-row: 1; }
  .section-head--split .section-title { grid-column: 1; grid-row: 2; }
  .section-head--split .section-lead { grid-column: 2; grid-row: 2; margin-top: 22px; } /* 22px＝見出しの上余白と同じ */
}
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Philosophy / Statement ---------- */
.statement {
  margin-top: clamp(28px, 4vw, 48px);
  color: var(--c-core); font-size: clamp(27px, 3.3vw + 10px, 58px); line-height: 1.62; letter-spacing: .1em;
}
.js .statement .ch { opacity: .14; transition: opacity .5s linear; }
.js .statement .ch.on { opacity: 1; }
.philosophy__body { display: grid; gap: 32px 64px; margin-top: clamp(40px, 5vw, 64px); }
.philosophy__body p { max-width: 36em; font-size: clamp(15px, .3vw + 14px, 17px); line-height: 2.1; }
@media (min-width: 1024px) {
  .philosophy__body { grid-template-columns: 1fr auto; align-items: end; padding-left: 33%; }
}
.mvv { display: grid; margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--c-line-strong); }
.mvv__item { position: relative; padding: 32px 0 36px; border-bottom: 1px solid var(--c-line); }
.mvv__label { display: flex; align-items: baseline; gap: 12px; color: var(--c-orange); font-size: 12px; font-weight: 700; letter-spacing: .24em; }
.mvv__label span { color: var(--c-gray); font-weight: 400; letter-spacing: .12em; }
.mvv__title { margin-top: 14px; color: var(--c-core); font-size: clamp(19px, .8vw + 14px, 25px); line-height: 1.6; }
.mvv__text { margin-top: 12px; font-size: 14.5px; line-height: 1.95; }
@media (min-width: 1024px) {
  .mvv { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .mvv__item { padding: 36px 40px 8px 0; border-bottom: 0; border-top: 1px solid var(--c-line-strong); }
  .mvv__item + .mvv__item { padding-left: 40px; border-left: 1px solid var(--c-line); }
  .mvv__item::before {
    content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--c-orange);
    transition: width 1.4s var(--ease-out) var(--d, 0s);
  }
  .mvv__item.is-in::before { width: 64px; }
  .mvv__item + .mvv__item::before { left: 40px; }
  .mvv__item:last-child { padding-right: 0; }
}

/* ---------- Journey (services as lifecycle) ---------- */
.journey__track { position: relative; }
.journey__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
@media (max-width: 1099.98px) { .journey__svg { display: none; } }
.journey__line { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.journey__line { stroke: var(--c-core); }
.journey__list { position: relative; display: grid; gap: 0; }
.journey__step { position: relative; padding: 0 0 48px 44px; }
.journey__node {
  position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--c-white); border: 1.5px solid var(--c-line-strong);
  transition: border-color .6s var(--ease-out), background-color .6s var(--ease-out), transform .8s var(--ease-out);
}
.journey__node::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--c-tan);
  opacity: 0; transform: scale(.4); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out);
}
.journey__step.is-active .journey__node { border-color: var(--c-core); background: var(--c-core); }
.journey__step.is-active .journey__node::after { opacity: 1; transform: scale(1); }
.journey__phase { color: var(--c-orange); font-size: 11.5px; font-weight: 700; letter-spacing: .2em; }
.journey__phase span { display: block; margin-top: 2px; color: var(--c-gray); font-weight: 400; letter-spacing: .1em; } /* 英字の下に和文（4列の高さをそろえる） */
.journey__name { margin-top: 10px; font-size: clamp(20px, .6vw + 16px, 24px); letter-spacing: .08em; }
.journey__name a { color: var(--c-core); text-decoration: none; }
.journey__points { margin-top: 16px; display: grid; gap: 6px; }
.journey__points li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.8; }
.journey__points li::before { content: ""; position: absolute; left: 0; top: .82em; width: 6px; height: 1px; background: var(--c-tan); }
.link-more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  color: var(--c-core); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-decoration: none;
  border-bottom: 1px solid var(--c-line-strong); padding-bottom: 6px; transition: border-color .4s, gap .5s var(--ease-out);
}
.link-more .i-arrow { width: 15px; height: 15px; }
.link-more:hover { border-color: var(--c-core); gap: 14px; }
.js .journey__step .journey__body { opacity: .28; transform: translateY(14px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .journey__step.is-active .journey__body { opacity: 1; transform: none; }
.js .journey__step:focus-within .journey__body { opacity: 1; transform: none; }
/* モバイル：縦の幹（創業・成長期→M&A→PMI）が伸び、IPOは幹から分かれる脇道として字下げする */
.journey__list::before {
  content: ""; position: absolute; top: 10px; bottom: 48px; left: 7px; width: 1.5px; transform-origin: top;
  transform: scaleY(var(--p, 1)); background: var(--c-core);
}
@media (max-width: 1099.98px) {
  .journey__step--ipo { padding-left: 76px; }
  .journey__step--ipo .journey__node { left: 32px; }
  .journey__step--ipo::before {
    content: ""; position: absolute; left: 7px; top: -26px; width: 27px; height: 38px;
    border-left: 1.5px solid var(--c-core); border-bottom: 1.5px solid var(--c-core); border-bottom-left-radius: 22px;
  }
  .js .journey__step--ipo::before { opacity: 0; transition: opacity .6s var(--ease-out); }
  .js .journey__step--ipo.is-active::before { opacity: 1; }
}
/* PC：カード上部の帯に線を描く。創業・成長期から上下2本に分かれ、上＝IPOを目指す道、下＝M&A→PMI の道 */
@media (min-width: 1100px) {
  .journey__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 2.6vw, 40px); padding-top: 140px; }
  .journey__list::before { display: none; }
  .journey__step { padding: 0; }
  .journey__node { left: -7px; top: -39.5px; } /* 下の道（帯の上端から y=108） */
  .journey__step--start .journey__node { top: -77.5px; } /* 分岐点（y=70） */
  .journey__step--ipo .journey__node { top: -115.5px; } /* 上の道（y=32） */
  .journey__body { padding-top: 0; }
}
.journey__tax {
  display: grid; gap: 10px 40px; align-items: center; margin-top: clamp(48px, 6vw, 80px); padding: 28px 32px;
  border: 1px solid var(--c-line); border-left: 3px solid var(--c-forest); background: var(--c-base);
}
.journey__tax-label { color: var(--c-forest); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.journey__tax-label strong { display: block; margin-top: 4px; color: var(--c-core); font-size: 18px; letter-spacing: .08em; }
.journey__tax p { font-size: 14.5px; line-height: 1.95; }
.journey__tax .journey__tax-note { margin-top: 10px; color: var(--c-gray); font-size: 12.5px; line-height: 1.85; }
@media (min-width: 1100px) { .journey__tax { grid-template-columns: 220px 1fr; } }

/* ---------- Why / reasons ---------- */
.reasons { display: grid; gap: 0; border-top: 1px solid var(--c-line-light); }
.reason { position: relative; display: grid; gap: 10px 32px; padding: 36px 0 40px; border-bottom: 1px solid var(--c-line-light); }
.reason__num { color: var(--c-tan); font-size: 13px; font-weight: 700; letter-spacing: .2em; }
.reason__num::after { content: ""; display: inline-block; width: 40px; height: 1px; margin-left: 14px; vertical-align: middle; background: currentColor; opacity: .6; }
.reason__title { color: var(--c-white); font-size: clamp(20px, .9vw + 15px, 27px); letter-spacing: .08em; }
.reason__sub { color: var(--c-tan); font-size: 13.5px; letter-spacing: .1em; }
.reason__text { display: grid; gap: 8px; margin-top: 8px; color: var(--c-text-light); font-size: 14.5px; line-height: 1.95; }
p.reason__text { display: block; } /* 文中の span（.nw）がグリッド項目として縦に並ばないように */
.reason__text li { position: relative; padding-left: 18px; }
.reason__text li::before { content: ""; position: absolute; left: 0; top: .9em; width: 8px; height: 1px; background: var(--c-tan); }
.reason__result { margin-top: 10px; color: var(--c-white); font-size: 14.5px; font-weight: 700; letter-spacing: .08em; }
@media (min-width: 1024px) {
  .reasons { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .reason { align-content: start; padding: 40px 36px 8px 0; border-bottom: 0; border-top: 1px solid var(--c-line-light); }
  .reason + .reason { padding-left: 36px; border-left: 1px solid var(--c-line-light); }
  /* 結びの一文を各列の下端に揃える */
  .reasons:not(.reasons--light) .reason { display: flex; flex-direction: column; gap: 10px; }
  .reasons:not(.reasons--light) .reason__result { margin-top: auto; padding-top: 10px; }
}
.reasons--light { border-color: var(--c-line); }
.reasons--light .reason { border-color: var(--c-line); }
.reasons--light .reason__num { color: var(--c-orange); }
.reasons--light .reason__title { color: var(--c-core); }
.reasons--light .reason__sub { color: var(--c-forest); }
.reasons--light .reason__text { color: var(--c-gray); }
.reasons--light .reason__text li::before { background: var(--c-orange); }
.reasons--light .reason__result { color: var(--c-core); }
@media (min-width: 1024px) { .reasons--light .reason + .reason { border-left-color: var(--c-line); } }

.stats { display: grid; gap: 1px; margin-top: clamp(56px, 7vw, 96px); background: var(--c-line-light); border: 1px solid var(--c-line-light); }
.stat { display: flex; flex-direction: column; gap: 10px; padding: 32px 32px 30px; background: var(--c-core); }
.stat dt { color: var(--c-white); font-size: 14.5px; font-weight: 700; letter-spacing: .08em; }
.stat__value { order: -1; display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; color: var(--c-tan); }
.stat__num { font-size: clamp(46px, 3vw + 30px, 68px); line-height: 1; letter-spacing: .02em; }
.stat__unit { font-size: 16px; letter-spacing: .1em; }
.stat__tilde { display: inline-block; margin: 0 .06em; font-size: .5em; vertical-align: .32em; }
.stat__note { color: var(--c-text-light); font-size: 12.5px; line-height: 1.8; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Cases ---------- */
.case-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.case-card { --mx: 50%; --my: 50%; position: relative; }
.case-card__link {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: clamp(28px, 3vw, 40px);
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(200, 175, 140, .16), transparent 45%), var(--c-white);
  border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none;
  transition: border-color .5s, box-shadow .6s var(--ease-out), transform .6s var(--ease-out);
}
.case-card__link::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--c-orange);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out);
}
.case-card__link:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow); transform: translateY(-4px); }
.case-card__link:hover::before { transform: scaleX(1); }
.case-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.case-card__no { color: var(--c-orange); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 3px 12px; border: 1px solid var(--c-line-strong); border-radius: 14px; color: var(--c-charcoal); font-size: 11.5px; letter-spacing: .08em; line-height: 1.7; }
.case-card__title { margin-top: 18px; color: var(--c-core); font-size: clamp(18px, .6vw + 14px, 22px); line-height: 1.65; text-wrap: balance; }
.case-card__client { margin-top: 8px; font-size: 13px; color: var(--c-gray); }
.case-card__ba { display: grid; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.case-card__ba div { display: grid; grid-template-columns: 5.6em 1fr; gap: 12px; font-size: 14px; line-height: 1.85; }
.case-card__ba dt { color: var(--c-gray); font-size: 11px; font-weight: 700; letter-spacing: .16em; padding-top: 3px; }
.case-card__ba div:last-child dt { color: var(--c-orange); }
.case-card__ba div:last-child dd { color: var(--c-charcoal); font-weight: 700; }
@media (max-width: 413.98px) { .case-card__ba div { grid-template-columns: 1fr; gap: 0; } .case-card__ba dt { padding-top: 0; } }
.case-card__more { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 24px; color: var(--c-core); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.case-card__more .i-arrow { width: 15px; height: 15px; }
.case-card__link:hover .case-card__more .i-arrow { transform: translateX(4px); }
/* カード全体のクリック領域は見出しリンクの ::after で確保（リンク名は見出しのみ） */
.case-card__a { color: inherit; text-decoration: none; }
.case-card__a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.case-card__a:focus-visible { outline: none; }
.case-card__link:has(.case-card__a:focus-visible) { outline: 2px solid var(--c-orange); outline-offset: 3px; }

/* ---------- Message ---------- */
.message__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .message__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 88px; } }
.message__photo { position: relative; max-width: 480px; }
.message__photo::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: 0; background: var(--c-core);
}
@media (max-width: 1023.98px) { .message__photo { margin-right: 24px; } } /* 右にずらした影がビューポートを越えないように */
.message__photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.message__photo figcaption {
  position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 8px; padding: 14px 0 0;
  color: var(--c-gray); font-size: 12px; letter-spacing: .12em;
}
.message__text { display: grid; gap: 1.4em; margin-top: 32px; font-size: clamp(15px, .3vw + 14px, 16.5px); line-height: 2.1; }
.message__sign { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-top: 36px; color: var(--c-charcoal); font-size: 13px; letter-spacing: .1em; }
.message__sign strong { color: var(--c-core); font-size: 22px; letter-spacing: .16em; }
.message__sign-en { color: var(--c-gray); font-size: 12px; letter-spacing: .14em; }
.message .link-arrow { margin-top: 36px; }

/* ---------- Flow ---------- */
.flow__list { position: relative; display: grid; gap: 16px; }
.flow__step { position: relative; padding: 32px 28px 30px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); }
.section--white .flow__step { background: var(--c-base); }
.flow__no { color: var(--c-orange); font-size: 11px; font-weight: 700; letter-spacing: .24em; }
.flow__no span { margin-left: 6px; font-size: 26px; letter-spacing: .04em; vertical-align: -3px; }
.flow__step h3, .flow__step h4 { margin-top: 12px; color: var(--c-core); font-size: 18px; letter-spacing: .08em; font-feature-settings: "palt"; }
.flow-tabs__panel:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 4px; }
/* タブ（M&A：ご依頼内容に応じた進め方）。JS が動かないときはタブを隠し、全パネルを見出し付きで縦に並べる */
.flow-tabs__list { display: none; }
.js .flow-tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.flow-tabs__tab { padding: 10px 22px; background: transparent; border: 1px solid var(--c-line-strong); border-radius: 999px; color: var(--c-charcoal); font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .06em; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.flow-tabs__tab:hover { border-color: var(--c-core); color: var(--c-core); }
.flow-tabs__tab[aria-selected="true"] { background: var(--c-core); border-color: var(--c-core); color: var(--c-white); }
.flow-tabs__tab:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 3px; }
.flow-tabs__title { margin: 0 0 16px; color: var(--c-core); font-size: 17px; letter-spacing: .08em; text-align: center; }
.flow-tabs__panel + .flow-tabs__panel { margin-top: 40px; }
.js .flow-tabs__panel + .flow-tabs__panel { margin-top: 0; }
.js .flow-tabs__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flow-tabs__panel[hidden] { display: none; }
@media print {
  .flow-tabs__list { display: none !important; }
  .flow-tabs__panel[hidden] { display: block !important; }
  .js .flow-tabs__title { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .flow-tabs__panel + .flow-tabs__panel { margin-top: 24px !important; }
}
.flow__step p:last-child { margin-top: 10px; font-size: 14px; line-height: 1.9; }
.flow__step .flow__badge { display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 99px; background: var(--c-orange); color: #fff; font-size: 11px; letter-spacing: .08em; vertical-align: 3px; }
@media (min-width: 900px) {
  .flow__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .flow__step { border-radius: 0; }
  .flow__step + .flow__step { border-left: 0; }
  .flow__step:not(:last-child)::after {
    content: ""; position: absolute; right: -8px; top: 40px; z-index: 1; width: 15px; height: 15px;
    background: inherit; border-top: 1px solid var(--c-line); border-right: 1px solid var(--c-line); transform: rotate(45deg);
  }
}
.flow__cta { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: clamp(40px, 5vw, 56px); text-align: center; }
.flow__note { font-size: 13px; }
.assure { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.assure li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px;
  border: 1px solid var(--c-line-strong); border-radius: 99px; color: var(--c-charcoal); font-size: 12.5px; letter-spacing: .06em; line-height: 1.6;
}
.assure li::before { content: ""; width: 10px; height: 6px; border-left: 1.5px solid var(--c-forest); border-bottom: 1.5px solid var(--c-forest); transform: rotate(-45deg) translate(1px, -2px); }
.assure--light li { border-color: rgba(242, 240, 236, .3); color: var(--c-base); }
.assure--light li::before { border-color: var(--c-tan); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: 32px 80px; }
@media (min-width: 1024px) { .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .faq__grid .section-head { margin-bottom: 0; } }
.faq__list { border-top: 1px solid var(--c-line-strong); }
.faq__item { border-bottom: 1px solid var(--c-line); interpolate-size: allow-keywords; }
.faq__item summary {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start;
  padding: 24px 0; color: var(--c-core); font-size: clamp(15px, .3vw + 14px, 17px); font-weight: 700; line-height: 1.75; letter-spacing: .06em;
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before { content: "Q"; color: var(--c-orange); font-size: 18px; line-height: 1.5; letter-spacing: 0; }
.faq__item summary::after {
  content: ""; width: 14px; height: 14px; margin-top: 7px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform .5s var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .6s var(--ease-out), content-visibility .6s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
.faq__a { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 0 30px 28px 0; font-size: 15px; line-height: 2; }
.faq__a::before { content: "A"; color: var(--c-forest); font-size: 18px; font-weight: 700; line-height: 1.6; }

/* ---------- CTA band ---------- */
.cta-band { overflow: hidden; padding-block: clamp(96px, 11vw, 160px); text-align: center; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 90% at 50% 120%, rgba(150, 95, 45, .28), transparent 70%), radial-gradient(50% 60% at 100% 0%, rgba(110, 36, 96, .5), transparent 70%);
}
.cta-band__mark {
  position: absolute; right: -6%; bottom: -12%; z-index: -1; width: min(70vw, 820px); aspect-ratio: 227.19 / 161.93;
  fill: var(--c-tan); opacity: .07; transform: translate3d(0, var(--py, 0px), 0);
}
.cta-band__inner { display: flex; flex-direction: column; align-items: center; }
.cta-band__title { margin-top: 24px; color: var(--c-white); font-size: clamp(27px, 2.6vw + 14px, 50px); line-height: 1.55; letter-spacing: .08em; }
.cta-band__lead { max-width: 48em; margin-top: 24px; color: var(--c-text-light); font-size: clamp(15px, .3vw + 14px, 16.5px); line-height: 2.05; text-wrap: balance; word-break: auto-phrase; }
.cta-band .assure { justify-content: center; margin-top: 28px; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; margin-top: 40px; }
@media (max-width: 767.98px) { .cta-band__actions { width: 100%; } .cta-band__actions .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(64px, 8vw, 104px); color: var(--c-text-light); border-top: 1px solid var(--c-line-light); }
.site-footer__top { display: grid; gap: 48px; padding-bottom: 56px; }
@media (min-width: 1024px) { .site-footer__top { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; } }
.site-footer__logo { display: block; width: 210px; color: var(--c-base); }
.site-footer__tagline { margin-top: 18px; color: var(--c-tan); font-size: 12px; letter-spacing: .3em; }
.site-footer__address { margin-top: 24px; font-size: 13px; line-height: 2; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
@media (max-width: 399.98px) { .site-footer__nav { grid-template-columns: 1fr; gap: 28px; } }
@media (min-width: 768px) { .site-footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-footer__heading { margin-bottom: 14px; color: var(--c-tan); font-size: 11px; font-weight: 700; line-height: 1.95; letter-spacing: .26em; text-transform: uppercase; }
.site-footer__col li + li { margin-top: 6px; }
.site-footer__col a { font-size: 13.5px; text-decoration: none; transition: color .3s; }
.site-footer__col a:hover { color: var(--c-white); text-decoration: underline; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 24px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line-light);
  font-size: 12px; letter-spacing: .06em;
}
.site-footer__copy small { font-size: 12px; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translateY(calc(100% + 32px)); transition: transform .7s var(--ease-out);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { min-height: 56px; box-shadow: 0 14px 34px -10px rgba(45, 4, 37, .5); }

@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* ---------- Service pages ---------- */
.issues { display: grid; gap: 12px; }
@media (min-width: 768px) { .issues { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.issues__item {
  position: relative; padding: 22px 24px 22px 60px; background: var(--c-base); border-radius: var(--radius);
  color: var(--c-charcoal); font-size: 15px; font-weight: 700; line-height: 1.8; letter-spacing: .04em;
}
.issues__item::before {
  content: ""; position: absolute; left: 24px; top: calc(22px + .9em); width: 20px; height: 1.5px;  /* 1行目の高さに細い横線（見出しの小ラベルの線と同じ扱い） */
  background: var(--c-tan);
}
.issues-answer { margin-top: clamp(40px, 5vw, 56px); padding: clamp(28px, 4vw, 44px); background: var(--c-core); color: var(--c-text-light); border-radius: var(--radius); }
.issues-answer h3 { color: var(--c-white); font-size: clamp(19px, .8vw + 14px, 24px); }
.issues-answer p { margin-top: 12px; font-size: 15px; line-height: 2; }

.menu-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .menu-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* カードが奇数枚のとき最終行に空きマスを作らない（2列時は最後の1枚を全幅、3列で5枚のときは3枚＋2枚で横幅を揃える） */
@media (min-width: 768px) and (max-width: 1099.98px) { .menu-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .menu-grid--3:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .menu-grid--3:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
  .menu-grid--3:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
}
.menu-card { position: relative; display: flex; flex-direction: column; padding: 32px 30px 30px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); }
.section--white .menu-card { background: var(--c-base); border-color: transparent; }
.menu-card__no { color: var(--c-orange); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.menu-card__title { margin-top: 12px; color: var(--c-core); font-size: clamp(18px, .4vw + 15px, 20px); line-height: 1.6; }
.menu-card__text { margin-top: 12px; font-size: 14.5px; line-height: 1.95; }
.menu-card .tags { margin-top: auto; padding-top: 20px; }
.menu-card .tag { border-color: var(--c-sage); background: rgba(180, 200, 190, .18); color: var(--c-forest); }

.svc-nav { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
@media (min-width: 640px) { .svc-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .svc-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc-nav__item {
  position: relative; display: grid; gap: 6px; padding: 28px 64px 26px 28px; background: var(--c-white); text-decoration: none;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
}
.svc-nav__phase { color: var(--c-orange); font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.svc-nav__name { color: var(--c-core); font-size: 17px; font-weight: 700; letter-spacing: .08em; }
.svc-nav__desc { font-size: 12.5px; color: var(--c-gray); }
.svc-nav__item .i-arrow { position: absolute; right: 24px; top: 30px; color: var(--c-core); }
.svc-nav__item:hover { background: var(--c-core); }
.svc-nav__item:hover * { color: var(--c-base); }
.svc-nav__item:hover .svc-nav__phase { color: var(--c-tan); }
.svc-nav__item:hover .i-arrow { transform: translateX(4px); }
.svc-nav__item[aria-current="page"] { background: var(--c-base); pointer-events: none; }
.svc-nav__item[aria-current="page"]::after { content: "表示中"; position: absolute; right: 24px; top: 28px; font-size: 11px; color: var(--c-gray); }
.svc-nav__item[aria-current="page"] .i-arrow { display: none; }

/* ---------- Cases page ---------- */
.case-detail { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--c-line-strong); }
.case-detail:first-child { border-top: 0; padding-top: 0; }
.case-detail__head { display: grid; gap: 12px 48px; }
@media (min-width: 1024px) { .case-detail__head { grid-template-columns: 160px 1fr; } }
.case-detail__no { color: var(--c-orange); font-size: 13px; font-weight: 700; letter-spacing: .24em; }
.case-detail__no span { display: block; margin-top: 4px; color: var(--c-core); font-size: 44px; line-height: 1.1; letter-spacing: .02em; }
.case-detail__title { margin-top: 16px; color: var(--c-core); font-size: clamp(21px, 1.2vw + 15px, 31px); line-height: 1.6; }
.case-detail__client { margin-top: 10px; font-size: 14px; }
.case-detail__flow { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 1024px) { .case-detail__flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-left: 208px; } }
.case-col { position: relative; padding: 28px 28px 30px; background: var(--c-white); border-top: 3px solid var(--c-line-strong); }
.case-col--approach { border-top-color: var(--c-forest); }
.case-col--after { border-top-color: var(--c-orange); }
@media (min-width: 1024px) {
  .case-col:not(:last-child)::after {
    content: ""; position: absolute; right: -12px; top: 50%; z-index: 1; width: 0; height: 0;
    border-block: 12px solid transparent; border-left: 12px solid var(--c-white); translate: 0 -50%;
  }
}
.case-col h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--c-charcoal); font-size: 13px; letter-spacing: .2em; }
.case-col--approach h3 { color: var(--c-forest); }
.case-col--after h3 { color: var(--c-orange); }
.case-col h3 span { color: var(--c-gray); font-size: 12px; font-weight: 400; letter-spacing: .1em; }
.case-col ul { display: grid; gap: 8px; margin-top: 16px; }
.case-col li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.85; }
.case-col li::before { content: ""; position: absolute; left: 0; top: .85em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-line-strong); }
.case-col--approach li::before { background: var(--c-sage); }
.case-col--after li { color: var(--c-charcoal); font-weight: 700; }
.case-col--after li::before { background: var(--c-orange); }
.case-detail__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; }
@media (min-width: 1024px) { .case-detail__links { margin-left: 208px; } }

/* ---------- About page ---------- */
.mvv-large { display: grid; border-top: 1px solid var(--c-line-strong); }
.mvv-large__item { display: grid; gap: 14px 64px; padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--c-line); }
@media (min-width: 1024px) { .mvv-large__item { grid-template-columns: 220px 1fr; } }
.mvv-large__label { color: var(--c-orange); font-size: 13px; font-weight: 700; letter-spacing: .26em; }
.mvv-large__label span { display: block; margin-top: 4px; color: var(--c-gray); font-size: 12px; font-weight: 400; letter-spacing: .14em; }
.mvv-large__title { color: var(--c-core); font-size: clamp(23px, 1.8vw + 14px, 40px); line-height: 1.6; letter-spacing: .08em; }
.mvv-large__text { margin-top: 18px; max-width: 42em; font-size: 15.5px; line-height: 2.05; }

.profile { display: grid; gap: 48px 80px; }
@media (min-width: 1024px) { .profile { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.profile__name { color: var(--c-core); font-size: 28px; letter-spacing: .16em; }
.profile__name small { display: block; margin-top: 4px; color: var(--c-gray); font-size: 13px; font-weight: 400; letter-spacing: .14em; }
.profile__role { margin-top: 12px; font-size: 14px; }
.timeline { border-top: 1px solid var(--c-line-strong); }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.timeline__year { color: var(--c-orange); font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.timeline__org { color: var(--c-core); font-weight: 700; font-size: 15px; line-height: 1.7; }
.timeline__desc { margin-top: 4px; font-size: 14px; line-height: 1.85; }
.expertise { display: grid; gap: 1px; margin-top: 48px; background: var(--c-line); border: 1px solid var(--c-line); }
@media (min-width: 768px) { .expertise { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.expertise div { padding: 22px 24px; background: var(--c-white); }
.expertise dt { color: var(--c-forest); font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.expertise dd { margin-top: 6px; font-size: 14px; line-height: 1.85; }

.company-table { border-top: 1px solid var(--c-line-strong); }
.company-table div { display: grid; gap: 4px 40px; padding: 22px 0; border-bottom: 1px solid var(--c-line); }
@media (min-width: 768px) { .company-table div { grid-template-columns: 180px 1fr; } }
.company-table dt { color: var(--c-core); font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.company-table dd { font-size: 15px; line-height: 1.95; }
.company-table dd a { color: var(--c-core); }
/* 会社概要：ロゴマーク（文字なし）。SP は表の上、PC は左に置く */
.company-wrap { display: grid; gap: 28px; }
.company-mark { display: flex; }
.company-mark svg { width: 60px; aspect-ratio: 227.19 / 161.93; fill: var(--c-core); }
@media (min-width: 1024px) {  /* PC：表と同じ高さ（お問い合わせの行まで）の生成りの面にマークを置く */
  .company-wrap { grid-template-columns: 300px 1fr; gap: 64px; align-items: stretch; }
  .company-mark { align-items: center; justify-content: center; background: var(--c-base); }
  .company-mark svg { width: 128px; }
}

/* ---------- 支援実績：代表の3つの経験（3つの円が重なる図＋各カード） ---------- */
.career-venn { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.career-venn__fig { max-width: 520px; width: 100%; margin: 0 auto; }
.career-venn__svg { display: block; width: 100%; height: auto; overflow: visible; }
.career-venn__c { stroke-width: 1.5; mix-blend-mode: multiply; }
.career-venn__c--audit { fill: rgba(70, 95, 80, .16); stroke: var(--c-forest); }
.career-venn__c--biz { fill: rgba(150, 95, 45, .14); stroke: var(--c-orange); }
.career-venn__c--cons { fill: rgba(45, 4, 37, .09); stroke: var(--c-core); }
.career-venn__label { fill: var(--c-core); font-family: var(--font-head); font-size: 27px; font-weight: 700; letter-spacing: .08em; text-anchor: middle; }
.career-venn__sub { fill: var(--c-gray); font-family: var(--font-body); font-size: 17px; font-weight: 700; letter-spacing: .06em; text-anchor: middle; }
.career-venn__center { fill: var(--c-orange); font-family: var(--font-head); font-size: 26px; font-weight: 700; letter-spacing: .12em; text-anchor: middle; }
.career-venn__list { display: grid; gap: 14px; }
.career-venn__item { padding: 20px 22px 22px; background: var(--c-base); border-left: 3px solid var(--c-sage); }
.career-venn__item--audit { border-left-color: var(--c-forest); }
.career-venn__item--biz { border-left-color: var(--c-orange); }
.career-venn__item--cons { border-left-color: var(--c-core); }
.career-venn__name { color: var(--c-core); font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: .08em; }
.career-venn__name span { display: inline-block; margin-left: 12px; color: var(--c-gray); font-family: var(--font-body); font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
.career-venn__key { margin-top: 6px; color: var(--c-charcoal); font-size: 14.5px; font-weight: 700; word-break: auto-phrase; }
.career-venn__body { margin-top: 6px; font-size: 13.5px; line-height: 1.9; word-break: auto-phrase; overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .career-venn { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

/* ---------- IPO：一般的な上場スケジュール（表。期間をまたぐ項目は colspan の帯） ---------- */
.ipo-sched { margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--c-line); }
.ipo-sched__title { margin-top: 14px; color: var(--c-core); font-size: clamp(21px, 1.2vw + 15px, 28px); line-height: 1.6; }
.ipo-sched__lead { max-width: 46em; margin-top: 14px; font-size: 15px; line-height: 2; word-break: auto-phrase; }
.ipo-sched__hint { margin-top: 24px; color: var(--c-gray); font-size: 12px; }
.ipo-sched__hint::before { content: "←→ "; letter-spacing: -.1em; }
.ipo-sched__scroll { margin-top: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ipo-sched__scroll:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 4px; }
.ipo-sched__table { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 6px; table-layout: fixed; font-size: 12.5px; line-height: 1.65; }
.ipo-sched__c-label { width: 112px; }
.ipo-sched__c-listing { width: 52px; }
.ipo-sched__table thead th { padding: 10px 4px 12px; border-bottom: 2px solid var(--c-core); color: var(--c-core); font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: .06em; text-align: center; }
.ipo-sched__table thead th span { display: block; margin-top: 2px; color: var(--c-gray); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; }
.ipo-sched__table tbody th { padding: 0 8px 0 0; color: var(--c-charcoal); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-align: left; vertical-align: middle; }
.ipo-sched__table td { padding: 0; vertical-align: middle; }
.ipo-sched__bar { display: block; padding: 10px 12px; background: var(--c-white); border-left: 3px solid var(--c-sage); border-radius: 0; color: var(--c-charcoal); font-weight: 700; word-break: auto-phrase; }
.ipo-sched__bar + .ipo-sched__bar { margin-top: 6px; }
.ipo-sched__tall { height: 1px; } /* 縦に伸ばしたセル：箱をセルの高さいっぱいに */
.ipo-sched__tall > .ipo-sched__bar { height: 100%; }
.ipo-sched__bar small { display: block; margin-top: 2px; color: var(--c-gray); font-size: 11.5px; font-weight: 500; }
.ipo-sched__bar--key { border-left-color: var(--c-forest); }
.ipo-sched__ours th { color: var(--c-orange); }
.ipo-sched__ours .ipo-sched__bar { background: var(--c-core); border-left-color: var(--c-tan); color: var(--c-white); }
.ipo-sched__ours .ipo-sched__bar small { color: var(--c-text-light); }
.ipo-sched__listing-head { border-bottom-color: var(--c-orange) !important; color: var(--c-orange) !important; }
.ipo-sched__listing { background: var(--c-orange); color: var(--c-white); text-align: center; }
.ipo-sched__listing span { writing-mode: vertical-rl; font-size: 15px; font-weight: 700; letter-spacing: .6em; }
.ipo-sched__notes { margin-top: 18px; color: var(--c-gray); font-size: 12px; line-height: 1.9; }
@media (max-width: 1023.98px) {  /* SP：横スクロール中も項目名が見えるよう、左の列を固定 */
  .ipo-sched__table tbody th, .ipo-sched__table thead td { position: sticky; left: 0; z-index: 1; background: var(--c-base); box-shadow: 6px 0 0 var(--c-base); }
}
@media (min-width: 1024px) {
  .ipo-sched__hint { display: none; }
  .ipo-sched__table { min-width: 0; font-size: 13px; }
  .ipo-sched__c-label { width: 128px; }
}
/* 独立したセクションに置く図（IPO）：上の区切り線・余白なし、見出しは h2 */
.ipo-sched--standalone { margin-top: 0; padding-top: 0; border-top: 0; }
.ipo-sched--standalone .ipo-sched__title { font-size: clamp(23px, 1.4vw + 16px, 32px); }
/* 導入文の中で特に伝えたい一文（太字＋下線） */
.ipo-sched__emph { display: inline-block; margin-top: 10px; color: var(--c-core); font-weight: 700; text-decoration: underline; text-decoration-color: var(--c-orange); text-decoration-thickness: 1px; text-underline-offset: 6px; }
/* 期間の到達点（N-2期：体制整備の完了 など） */
.ipo-sched__table thead th .ipo-sched__goal, .dgm-card__head .ipo-sched__goal { display: block; margin-top: 6px; color: var(--c-orange); font-family: var(--font-body); font-size: 11.5px; font-style: normal; font-weight: 700; letter-spacing: .06em; }
.dgm-card__head .ipo-sched__goal { margin-top: 4px; font-size: 12px; }
/* 区切り（社外関係者との手続き／社内の準備／Scalenceの支援） */
.ipo-sched__table tbody .ipo-sched__group th { position: static; padding: 14px 0 5px; background: none; border-bottom: 1px solid var(--c-line-strong); box-shadow: none; color: var(--c-core); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-align: left; vertical-align: bottom; }
.ipo-sched__table tbody .ipo-sched__group th span { position: sticky; left: 0; }
.ipo-sched__table tbody tr.ipo-sched__group:first-child th { padding-top: 2px; }
.ipo-sched__table tbody .ipo-sched__group--line th { padding: 4px 0 0; border-bottom: 2px solid var(--c-core); }
/* 負荷のピーク（吹き出し） */
.ipo-sched__bar--peak { border-left-color: var(--c-orange); }
.ipo-sched__peak { position: relative; display: table; margin: -2px 0 9px; padding: 2px 8px; background: var(--c-orange); color: var(--c-white); font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .06em; line-height: 1.6; }
.ipo-sched__peak::after { content: ""; position: absolute; left: 12px; bottom: -5px; border-style: solid; border-width: 5px 5px 0; border-color: var(--c-orange) transparent transparent; }

/* ---------- サービスページの図：帯の補足・M&Aの調整・スマホ用の期間カード（diagrams.py が出力） ---------- */
.ipo-sched__listing em { display: block; margin-bottom: 10px; font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .04em; writing-mode: horizontal-tb; }
.ipo-sched--ma .ipo-sched__ours td { vertical-align: top; }
.ipo-sched--ma .ipo-sched__c-dd { width: 19%; }
.ipo-sched--ma .ipo-sched__c-close { width: 96px; }
.ipo-sched__table thead .nw, .dgm-card__head .nw { white-space: nowrap; } /* 期間の見出しは語の途中で折り返さない */
.ipo-sched__table thead th b, .dgm-card__head b { font-weight: inherit; } /* クロージング欄：補足（前提条件の充足・代金決済・株式等の移転）を横書きで置くため広げる */
.ipo-sched--ma .ipo-sched__listing em { margin: 0 4px 12px; font-size: 10.5px; line-height: 1.7; letter-spacing: 0; }
.ipo-sched__listing--head { vertical-align: top !important; padding-top: 14px !important; }
.ipo-sched__listing.ipo-sched__listing--head span { display: block; margin: 0 4px 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .5); writing-mode: horizontal-tb; font-size: 12.5px; letter-spacing: .02em; white-space: nowrap; }
.ipo-sched--ma .ipo-sched__listing--head em { margin: 0 4px; }
.ipo-sched__listing span { letter-spacing: .4em; }
.ipo-sched__ours .ipo-sched__bar--partner, .dgm-card__row--ours .ipo-sched__bar.ipo-sched__bar--partner { background: var(--c-white); border: 1px dashed var(--c-core); border-left: 3px solid var(--c-tan); color: var(--c-core); }
.ipo-sched__ours .ipo-sched__bar--partner small, .dgm-card__row--ours .ipo-sched__bar.ipo-sched__bar--partner small { color: var(--c-gray); }
.dgm-cards { display: grid; gap: 12px; margin-top: 28px; }
.dgm-card { padding: 18px 18px 16px; background: var(--c-white); border-top: 3px solid var(--c-core); }
.dgm-card__head { color: var(--c-core); font-family: var(--font-head); font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.dgm-card__head span { margin-left: 10px; color: var(--c-gray); font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.dgm-card__rows { margin-top: 10px; }
.dgm-card__row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--c-line); }
.dgm-card__row dt { color: var(--c-charcoal); font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1.7; }
.dgm-card__row dd { display: grid; gap: 6px; }
.dgm-card__row .ipo-sched__bar { padding: 8px 10px; background: var(--c-base); font-size: 13px; line-height: 1.65; }
.dgm-card__row--ours { margin: 4px -18px -16px; padding: 12px 18px 16px; background: var(--c-core); border-top: 0; }
.dgm-card__row--ours dt { color: var(--c-tan); }
.dgm-card__row--ours .ipo-sched__bar { background: rgba(242, 240, 236, .08); border-left-color: var(--c-tan); color: var(--c-white); }
.dgm-card__row--ours .ipo-sched__bar small { color: var(--c-text-light); }
.dgm-card__span { display: inline-block; margin-top: 4px; padding: 1px 8px; border: 1px solid var(--c-line-strong); border-radius: 999px; color: var(--c-gray); font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.dgm-card__row--ours .dgm-card__span { border-color: rgba(242, 240, 236, .3); color: var(--c-text-light); }
.dgm-cards__mile { display: flex; align-items: center; gap: 10px; color: var(--c-orange); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.dgm-cards__mile::before, .dgm-cards__mile::after { content: ""; flex: 1; height: 1.5px; background: var(--c-orange); }
@media (min-width: 640px) and (max-width: 1023.98px) {
  .dgm-card__row { grid-template-columns: 112px minmax(0, 1fr); }
}
@media (max-width: 1023.98px) {  /* スマホ・タブレットは期間ごとのカード、PCは表 */
  .ipo-sched .ipo-sched__scroll, .ipo-sched .ipo-sched__hint { display: none; }
}
@media (min-width: 1024px) {
  .dgm-cards { display: none; }
}
@media (max-width: 1199.98px), print {  /* 列が狭いとき・印刷時は、語のまとまりより枠に収めることを優先 */
  .ipo-sched__table .nw { white-space: normal; }
}

/* ---------- CFO：担い手（外部 → 社内）と引継ぎの矢印 ---------- */
.ipo-sched__bar--ext { background: var(--c-white); border: 1px dashed var(--c-charcoal); border-left: 3px solid var(--c-tan); }
.ipo-sched__bar--int { background: var(--c-forest); border-left-color: var(--c-sage); color: var(--c-white); }
.ipo-sched__bar--int small { color: rgba(255, 255, 255, .82); }
.ipo-sched__bar--bridge {
  position: relative; padding: 10px 16px 26px; background: var(--c-tan); border-left: 0; color: var(--c-core); text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 50% 100%, 0 calc(100% - 16px)); letter-spacing: .08em;
}
.ipo-sched__dir { display: block; margin-bottom: 2px; color: var(--c-core); font-size: 10.5px; font-style: normal; font-weight: 700; letter-spacing: .2em; opacity: .8; }
.ipo-sched__bar--bridge .dgm-card__span { border-color: rgba(45, 4, 37, .35); color: var(--c-core); }
.ipo-sched__bar--bridge small { color: var(--c-core); opacity: .85; }
.ipo-sched__ours .ipo-sched__bar--handoff { border-left-color: var(--c-orange); box-shadow: inset 0 0 0 1px rgba(200, 175, 140, .45); }
.dgm-card__row .ipo-sched__bar--ext { background: var(--c-white); }
.dgm-card__row .ipo-sched__bar--int { background: var(--c-forest); color: var(--c-white); }
.dgm-card__row .ipo-sched__bar--bridge { padding: 8px 12px 24px; background: var(--c-tan); }

/* ---------- PMI：段階カード＋Day1＋並行して進む決算対応の帯（diagrams.py の _stages） ---------- */
.pmi-road { margin-top: 30px; }
.pmi-stage { position: relative; padding: 20px 20px 18px; background: var(--c-white); border-top: 3px solid var(--c-core); }
.pmi-stage__when { color: var(--c-gray); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.pmi-stage__name { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; color: var(--c-core); font-family: var(--font-head); font-size: 20px; letter-spacing: .06em; }
.pmi-stage__no { flex: none; color: var(--c-orange); font-family: var(--font-en, var(--font-head)); font-size: 15px; letter-spacing: .04em; }
.pmi-stage__goal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 12px; padding: 8px 10px; background: var(--c-base); color: var(--c-core); font-size: 14px; font-weight: 700; letter-spacing: .04em; line-height: 1.5; }
.pmi-stage__goal-l { padding: 1px 7px; border: 1px solid var(--c-orange); color: var(--c-orange); font-size: 10.5px; letter-spacing: .1em; }
.pmi-level { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.pmi-level i { display: block; width: 5px; background: var(--c-line-strong); }
.pmi-level i:nth-child(1) { height: 25%; } .pmi-level i:nth-child(2) { height: 50%; } .pmi-level i:nth-child(3) { height: 75%; } .pmi-level i:nth-child(4) { height: 100%; }
.pmi-level i.on { background: var(--c-orange); }
.pmi-stage__items { margin-top: 12px; font-size: 13px; line-height: 1.65; }
.pmi-stage__items li { position: relative; padding: 7px 0 7px 14px; border-top: 1px solid var(--c-line); color: var(--c-charcoal); font-weight: 700; word-break: auto-phrase; }
.pmi-stage__items li::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; background: var(--c-sage); }
.pmi-stage__items small { display: block; margin-top: 1px; color: var(--c-gray); font-size: 11.5px; font-weight: 500; }
.pmi-ours { padding: 14px 18px 16px; background: var(--c-core); color: var(--c-white); }
.pmi-ours__h { color: var(--c-tan); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; }
.pmi-ours__list li { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--c-tan); font-size: 13px; font-weight: 700; line-height: 1.6; }
.pmi-ours__list small { display: block; color: var(--c-text-light); font-size: 11.5px; font-weight: 500; }
.pmi-road__day1 { display: flex; align-items: center; gap: 10px; color: var(--c-orange); font-weight: 700; letter-spacing: .12em; }
.pmi-road__day1-h { font-family: var(--font-head); font-size: 17px; }
.pmi-road__day1-t { font-size: 12px; }
.pmi-road__parallel { position: relative; padding: 14px 18px; background: var(--c-forest); color: var(--c-white); }
.pmi-par__tag { display: inline-block; padding: 1px 9px; background: var(--c-tan); color: var(--c-core); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.pmi-par__when { margin-left: 8px; color: var(--c-core); font-weight: 700; letter-spacing: .04em; }
.pmi-par__label { margin-top: 8px; color: var(--c-white); font-family: var(--font-body); font-size: 14.5px; font-weight: 700; letter-spacing: .04em; line-height: 1.6; }
.pmi-par__label small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .85); font-size: 12px; font-weight: 500; }
.pmi-par__note { display: inline-block; margin-top: 8px; padding: 2px 9px; border: 1px solid rgba(255, 255, 255, .6); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; }
.pmi-par__ours { margin-top: 10px; padding: 8px 10px; background: var(--c-core); font-size: 12.5px; font-weight: 700; line-height: 1.6; }
.pmi-par__ours span { display: block; color: var(--c-tan); font-size: 11px; letter-spacing: .12em; }
.pmi-par__ours small { display: block; color: var(--c-text-light); font-size: 11.5px; font-weight: 500; }
@media (max-width: 1023.98px) {  /* スマホ・タブレット：段階を縦に。Day1 は横線、帯は「並行して進む」囲みで */
  .pmi-stage + .pmi-ours { margin-top: 0; }
  .pmi-ours { margin-bottom: 4px; }
  .pmi-ours + .pmi-stage, .pmi-road__parallel + .pmi-stage { margin-top: 28px; }
  .pmi-ours + .pmi-stage::before { content: ""; position: absolute; left: 50%; top: -22px; width: 12px; height: 12px; border-right: 2px solid var(--c-line-strong); border-bottom: 2px solid var(--c-line-strong); transform: translateX(-50%) rotate(45deg); }
  .pmi-road__day1 { margin: 24px 0 -8px; }
  .pmi-road__day1::before, .pmi-road__day1::after { content: ""; flex: 1; height: 2px; background: var(--c-orange); }
  .pmi-road__day1 + .pmi-stage::before { display: none; }
  .pmi-road__day1 + .pmi-stage { margin-top: 20px; }
  .pmi-road__parallel { margin: 16px 0 0 18px; border-left: 6px solid var(--c-tan); }
  .pmi-road__parallel + .pmi-stage { margin-top: 20px; }
}
@media (min-width: 1024px) {  /* PC：段階を横に。Day1 の縦帯を挟み、決算対応の帯は統合初期〜基盤整備の下に通す */
  .pmi-road { display: grid; grid-template-columns: minmax(0, 1fr) 50px repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 10px 14px; }
  .pmi-stage--1 { grid-column: 1; grid-row: 1; } .pmi-ours--1 { grid-column: 1; grid-row: 3; }
  .pmi-road__day1 { grid-column: 2; grid-row: 1 / 4; flex-direction: column; justify-content: flex-start; gap: 12px; padding-top: 14px; background: var(--c-orange); color: var(--c-white); }
  .pmi-road__day1-h { font-size: 14px; letter-spacing: .02em; }
  .pmi-road__day1-t { writing-mode: vertical-rl; font-size: 14px; letter-spacing: .5em; }
  .pmi-stage--2 { grid-column: 3; grid-row: 1; } .pmi-ours--2 { grid-column: 3; grid-row: 3; }
  .pmi-road__parallel { grid-column: 3 / 5; grid-row: 2; padding-right: 44px; clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%); }
  .pmi-stage--3 { grid-column: 4; grid-row: 1; } .pmi-ours--3 { grid-column: 4; grid-row: 3; }
  .pmi-stage--4 { grid-column: 5; grid-row: 1; } .pmi-ours--4 { grid-column: 5; grid-row: 3; }
  .pmi-stage:not(.pmi-stage--1):not(.pmi-stage--4)::after, .pmi-stage--1::after {
    content: ""; position: absolute; right: -11px; top: 30px; z-index: 1; width: 13px; height: 13px;
    background: var(--c-white); border-top: 1px solid var(--c-line-strong); border-right: 1px solid var(--c-line-strong); transform: rotate(45deg);
  }
  .pmi-stage--1::after { display: none; }
}
@media print {
  .pmi-road__day1, .pmi-road__parallel, .pmi-ours, .pmi-par__ours, .pmi-level i.on, .ipo-sched__bar--int, .ipo-sched__bar--bridge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pmi-stage, .pmi-ours, .pmi-road__parallel, .pmi-par__ours { break-inside: avoid; }
  .pmi-stage { break-after: avoid; }
  .ipo-sched__bar.ipo-sched__bar--bridge { padding: 7px 8px 22px; border: 0; }
  .ipo-sched__bar.ipo-sched__bar--ext { border: 1px dashed var(--c-charcoal); border-left: 3px solid var(--c-tan); }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px 72px; align-items: start; }
/* DOM はフォームが先（モバイルの表示順・Tab順）。PCでは案内を左列に置く */
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .contact-grid > .contact-aside { order: -1; } }
/* 案内が画面より高くなる低い画面では追従させない（下端の資料請求導線が隠れるため） */
@media (min-width: 1024px) and (min-height: 900px) { .contact-aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.contact-aside h2 { color: var(--c-core); font-size: clamp(21px, .8vw + 16px, 26px); }
.contact-aside > p { margin-top: 16px; font-size: 15px; line-height: 2; }
.mini-flow { margin-top: 28px; border-left: 1px solid var(--c-line-strong); }
.mini-flow li { position: relative; padding: 0 0 22px 28px; }
.mini-flow li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--c-base); border: 1.5px solid var(--c-orange); }
.mini-flow strong { display: block; color: var(--c-core); font-size: 15px; letter-spacing: .06em; }
.mini-flow span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.8; }
.contact-aside .assure { margin-top: 8px; }
.contact-aside__alt { margin-top: 32px; padding: 22px 24px; background: var(--c-white); border-radius: var(--radius); font-size: 13.5px; line-height: 1.9; }
.contact-aside__alt strong { color: var(--c-core); }

.form-card { padding: clamp(28px, 4vw, 52px); background: var(--c-white); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-intro { margin-bottom: 28px; font-size: 13.5px; }
.field { display: grid; gap: 10px; padding-block: 18px; padding-inline: 0; border: 0; margin: 0; min-width: 0; }
.field + .field { border-top: 1px solid var(--c-line); }
.field__label, .field legend { display: flex; align-items: center; gap: 10px; padding: 0; color: var(--c-core); font-size: 14.5px; font-weight: 700; letter-spacing: .06em; }
.req, .opt { padding: 1px 8px; border-radius: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; line-height: 1.7; }
.req { background: var(--c-orange); color: #fff; }
.opt { background: var(--c-base); color: var(--c-gray); font-weight: 400; }
.field__hint { font-size: 12.5px; color: var(--c-gray); line-height: 1.7; }
.input, .textarea, .select {
  width: 100%; padding: 14px 16px; background: var(--c-base); border: 1px solid rgba(70, 70, 72, .62); border-radius: var(--radius);
  color: var(--c-charcoal); font-size: 16px; line-height: 1.6; transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.textarea { min-height: 160px; resize: vertical; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--c-charcoal); }
.input:focus, .textarea:focus, .select:focus { outline: 2px solid transparent; outline-offset: 2px; background: var(--c-white); border-color: var(--c-core); box-shadow: 0 0 0 4px rgba(45, 4, 37, .08); }
.input::placeholder, .textarea::placeholder { color: var(--c-gray); opacity: 1; }
.field.is-invalid .input, .field.is-invalid .textarea { border-color: #A3392B; background: #FBF3F1; }
.field__error { display: none; color: #A3392B; font-size: 12.5px; }
.field.is-invalid .field__error { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid rgba(70, 70, 72, .62); border-radius: 99px;
  color: var(--c-charcoal); font-size: 13.5px; line-height: 1.5; letter-spacing: .04em; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip span::before { content: ""; width: 12px; height: 12px; border: 1px solid rgba(70, 70, 72, .62); border-radius: 3px; transition: inherit; }
.chip--radio span::before { border-radius: 50%; }
.chip input:checked + span { background: var(--c-core); border-color: var(--c-core); color: var(--c-base); }
.chip input:checked + span::before { background: var(--c-tan); border-color: var(--c-tan); }
.chip input:focus-visible + span { outline: 2px solid var(--c-orange); outline-offset: 2px; }
.field-row { display: grid; gap: 0 20px; }
@media (min-width: 768px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field-row .field + .field { border-top: 0; } }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.8; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--c-core); flex: none; }
.form-submit { margin-top: 28px; }
.form-submit .btn { min-height: 64px; font-size: 16px; }
.form-submit__note { margin-top: 14px; font-size: 12.5px; text-align: left; }
.form-submit__note--sub { margin-top: 4px; color: var(--c-gray); font-size: 12px; }
.hp-field { position: absolute !important; left: -9999px !important; }


/* ---------- Prose (privacy etc.) ---------- */
.prose { font-size: 15px; line-height: 2.05; overflow-wrap: anywhere; }
.prose > * { max-width: 880px; }
.prose h2 { margin-top: 2.6em; padding-top: 1.4em; border-top: 1px solid var(--c-line); color: var(--c-core); font-size: 19px; }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p, .prose ul, .prose ol { margin-top: 1em; }
.prose ul li, .prose ol li { position: relative; padding-left: 1.4em; }
.prose ul li::before { content: "・"; position: absolute; left: 0; }
.prose ol { counter-reset: li; }
.prose ol li::before { counter-increment: li; content: "(" counter(li) ")"; position: absolute; left: 0; font-size: .92em; }
.prose ol li { padding-left: 2.2em; }

/* ==========================================================================
   Motion（JS有効時のみ初期状態を隠す。動きを減らす設定では全て即時表示）
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* 見出しは要素単位でフェード（1文字ずつの opacity/blur はメインスレッド負荷が大きいため廃止） */
.js [data-split] { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .9s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-split].is-in { opacity: 1; transform: none; }

/* ファーストビューは CSS アニメーションで初回描画から開始（main.js の実行を待たない） */
@keyframes hero-ln { from { transform: translate3d(0, 108%, 0); } }
@keyframes hero-item { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
.js .hero .ln > span { animation: hero-ln 1.2s var(--ease-out) calc(.15s + var(--i, 0) * .1s) both; }
.js [data-hero-item] { animation: hero-item .9s var(--ease-out) var(--d, .3s) both; }
/* リード文はLCP要素になりやすいため、演出なしで最初から表示 */
.js .hero__lead[data-hero-item], .js .page-hero__lead[data-hero-item] { opacity: 1; transform: none; transition: none; animation: none; }
.js .hero-canvas { opacity: 0; transition: opacity 2s ease .1s; }
.js.is-loaded .hero-canvas { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  .js [data-reveal], .js [data-split], .js [data-split] .ch, .js .hero .ln > span, .js [data-hero-item], .js .hero-canvas,
  .js .journey__step .journey__body, .js .statement .ch {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; animation: none !important;
  }
  .scroll-cue__line::after { animation: none; }
  .journey__list::before { transform: none; }
  /* 操作に伴う移動・ワイプ演出も止める */
  .drawer, .is-menu-open .drawer, .drawer__nav > li, .drawer__cta, .site-header, .sticky-cta, .btn::before, .i-arrow,
  .case-card__link, .case-card__link::before, .faq__item::details-content, .faq__item summary::after, .mvv__item::before { transition: none !important; }
  .case-card__link:hover { transform: none; }
}

/* ---------- Additions: sub pages ---------- */
.page-hero__sub { display: block; margin-top: 10px; color: var(--c-tan); font-size: clamp(14px, .5vw + 11px, 18px); font-weight: 700; letter-spacing: .14em; }
.svc-rows { border-top: 1px solid var(--c-line-strong); }
.svc-row { display: grid; gap: 20px 64px; padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--c-line); }
@media (min-width: 1024px) { .svc-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.svc-row__phase { color: var(--c-orange); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.svc-row__phase span { margin-left: 10px; color: var(--c-gray); font-weight: 400; letter-spacing: .1em; }
.svc-row__phase span:only-child { margin-left: 0; color: var(--c-orange); font-weight: 700; } /* 番号（PHASE）表記を外した後は和文ラベルだけを表示 */
.svc-row__name { margin-top: 12px; color: var(--c-core); font-size: clamp(23px, 1.2vw + 16px, 32px); letter-spacing: .08em; }
.svc-row__name small { display: block; margin-top: 4px; color: var(--c-forest); font-size: 13px; letter-spacing: .12em; }
.svc-row__text { margin-top: 16px; font-size: 15px; line-height: 2; }
.svc-row .link-arrow { margin-top: 24px; }
.svc-row__menu { display: grid; gap: 1px; align-self: start; background: var(--c-line); border: 1px solid var(--c-line); }
@media (min-width: 640px) {
  .svc-row__menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-row__menu li:last-child:nth-child(odd) { grid-column: 1 / -1; } /* 項目数が奇数のとき、最後の行に空きマスを作らない */
}
.svc-row__menu li { padding: 16px 20px; background: var(--c-white); color: var(--c-charcoal); font-size: 14px; font-weight: 700; line-height: 1.7; }
.svc-row__menu li span { display: block; margin-top: 2px; color: var(--c-gray); font-size: 12.5px; font-weight: 400; }
.scene-grid { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
@media (min-width: 640px) { .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.scene { display: flex; flex-direction: column; gap: 8px; padding: 28px 28px 26px; background: var(--c-white); text-decoration: none; transition: background-color .5s var(--ease-out); }
.section--white .scene { background: var(--c-base); }
.scene__label { color: var(--c-orange); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.scene__title { color: var(--c-core); font-size: 16px; font-weight: 700; line-height: 1.75; letter-spacing: .04em; }
.scene__to { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; color: var(--c-gray); font-size: 12.5px; }
.scene__to .i-arrow { width: 14px; height: 14px; }
a.scene:hover { background: var(--c-core); }
a.scene:hover .scene__title { color: var(--c-white); }
a.scene:hover .scene__to { color: var(--c-tan); }
a.scene:hover .scene__label { color: var(--c-tan); }
.thanks-steps { display: grid; gap: 12px; margin-top: 28px; }
.thanks-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 20px 24px; background: var(--c-white); border-radius: var(--radius); font-size: 14.5px; line-height: 1.9; }
.thanks-steps b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-core); color: var(--c-tan); font-size: 14px; }
.thanks-steps strong { display: block; color: var(--c-core); font-size: 15.5px; }

/* ==========================================================================
   Typography — Web fonts
   案A（既定）「品格」: 見出し Shippori Mincho / 本文 Noto Sans JP（10/16 Zen Kaku Gothic New から変更）/ 英字・数字 Cormorant Garamond（ロゴと同系のガラモンド）
   （10/2 林さん決定。B・C案と比較プレビュー機能は削除済み）
   ========================================================================== */
/* Cormorant Garamond 到着前の代替（字幅を寄せて差し替え時のリフローを抑える） */
@font-face { font-family: "Cormorant Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Times"); size-adjust: 92%; }
:root {
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", "Yu Gothic", sans-serif;
  --font-head: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-en: "Cormorant Garamond", "Cormorant Fallback", serif;
  --head-weight: 600;
}

body { font-family: var(--font-body); }
h1, h2, h3, h4, .statement, .hero__catch, .section-title, .page-hero__title, .cta-band__title,
.mvv__title, .mvv-large__title, .case-card__title, .case-detail__title, .reason__title, .menu-card__title,
.journey__name, .svc-row__name, .svc-nav__name, .profile__name, .message__sign strong, .issues-answer h3,
.contact-aside h2, .flow__step h3, .timeline__org {
  font-family: var(--font-head); font-weight: var(--head-weight);
}
.page-hero__sub, .svc-row__name small { font-family: var(--font-body); font-weight: 700; }

/* 英字ラベル・数字はロゴと同系のセリフ体で */
.eyebrow__en, .mvv__label, .mvv-large__label, .reason__num, .journey__phase, .case-card__no, .case-detail__no,
.menu-card__no, .flow__no, .svc-nav__phase, .svc-row__phase, .scene__label, .site-footer__heading, .site-footer__tagline,
.scroll-cue, .stat__num, .case-card__ba dt, .case-col h3, .journey__tax-label, .timeline__year, .message__sign-en,
.profile__name small {
  font-family: var(--font-en);
  font-variant-numeric: lining-nums; /* Cormorant の既定は旧スタイル数字（1→I、0→o に見える） */
}
.stat__num { font-variant-numeric: lining-nums proportional-nums; }
.eyebrow__ja, .mvv__label span, .mvv-large__label span, .journey__phase span, .svc-row__phase span, .case-col h3 span,
.journey__tax-label strong, .stat__unit { font-family: var(--font-body); }
.eyebrow__en { font-size: 1.22em; font-weight: 600; letter-spacing: .16em; }
:is(.mvv__label, .mvv-large__label, .reason__num, .journey__phase, .case-card__no, .menu-card__no, .svc-nav__phase, .svc-row__phase, .scene__label, .site-footer__heading, .case-card__ba dt, .case-col h3, .journey__tax-label) { font-weight: 600; letter-spacing: .14em; }
/* Cormorant は字面が小さいため和文ラベルより一回り大きく（em は親基準になるため px で指定） */
:is(.mvv__label, .case-card__no, .menu-card__no, .svc-row__phase, .scene__label, .journey__tax-label) { font-size: 14px; }
:is(.mvv-large__label, .reason__num, .case-col h3) { font-size: 15px; }
.journey__phase { font-size: 13.5px; }
:is(.svc-nav__phase, .site-footer__heading, .case-card__ba dt) { font-size: 13px; }
.mvv__label span, .svc-row__phase span { font-size: 12px; }
.journey__phase span { font-size: 11.5px; }
.stat__num { font-weight: 500; font-size: clamp(54px, 3.4vw + 34px, 80px); }
.flow__no span { font-size: 32px; font-weight: 600; }
.case-detail__no span { font-size: 54px; font-weight: 500; }
.timeline__year { font-size: 19px; font-weight: 600; }
.site-footer__tagline { font-size: 17px; font-style: normal; letter-spacing: .12em; }
.faq__item summary::before, .faq__a::before { font-family: var(--font-en); font-size: 22px; font-weight: 600; line-height: 1.2; }

/* 見出しはプロポーショナル詰め（palt）＋字間で、和文の“間”を整える */
:is(h1, h2, h3, .statement, .hero__catch, .section-title, .page-hero__title, .cta-band__title, .mvv__title, .mvv-large__title, .case-card__title, .case-detail__title, .reason__title, .menu-card__title, .journey__name, .svc-row__name, .issues-answer h3) { font-feature-settings: "palt"; }
/* Webフォント時の微調整：本文は細く見えやすいため Medium、見出しは字間を詰める */
body { font-weight: 500; }
:is(.section-title, .page-hero__title, .cta-band__title, .mvv-large__title) { letter-spacing: .04em; }
:is(.reason__title, .menu-card__title, .case-card__title, .case-detail__title, .mvv__title, .journey__name) { letter-spacing: .03em; }

/* ---------- 端末・設定への配慮（レビュー反映） ---------- */
@media (max-width: 1023.98px) { html { scroll-padding-bottom: 96px; } }
@media (max-width: 1023.98px) and (max-height: 480px) { .sticky-cta { display: none; } }
/* JS無効時：ヘッダーは固定せず、メニューはフッターのリンク集へ */
html:not(.js) .site-header { position: absolute; }
html:not(.js) .menu-toggle { display: none; }
.menu-fallback { display: none; }
@media (max-width: 1023.98px) {
  html:not(.js) .menu-fallback { display: flex; align-items: center; margin-left: auto; padding: 12px 0 12px 12px; color: inherit; font-size: 11px; letter-spacing: .2em; text-decoration: none; }
}
@media (prefers-contrast: more) {
  :root { --c-line: rgba(70, 70, 72, .45); --c-line-strong: var(--c-charcoal); --c-text-light: var(--c-base); }
  .input, .textarea, .select, .chip span, .chip span::before { border-color: var(--c-charcoal); }
}
@media (forced-colors: active) {
  .chip input:checked + span { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; }
  .chip input:checked + span::before { background: HighlightText; border-color: HighlightText; }
  .faq__item summary::after { forced-color-adjust: none; background: linear-gradient(CanvasText, CanvasText) center / 14px 1.5px no-repeat, linear-gradient(CanvasText, CanvasText) center / 1.5px 14px no-repeat; }
  .menu-toggle__bars span { forced-color-adjust: none; background: ButtonText; }
  .case-col:not(:last-child)::after { display: none; }
  .journey__line { stroke: CanvasText; }
  .journey__list::before { forced-color-adjust: none; background: CanvasText; }
}

/* ---------- 印刷・PDF保存（稟議資料として配られる想定） ---------- */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  :root { --header-h: 0px; }
  body { background: #fff; }
  .js [data-reveal], .js [data-split], .js [data-split] .ch, .js .statement .ch, .js .journey__step .journey__body,
  .js [data-hero-item], .js .hero .ln > span, .js .hero-canvas { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; animation: none !important; }
  .skip-link, .sticky-cta, .drawer, .menu-toggle, .menu-fallback, .gnav, .site-header__cta,
  .hero-canvas, .cta-band__mark, .scroll-cue, .journey__svg, .hero__actions, .cta-band__actions, .site-footer__nav { display: none !important; }
  .site-header { position: static; height: auto; padding-bottom: 6mm; color: var(--c-core) !important; transform: none !important; }
  .site-header::before { display: none !important; }
  .hero::before, .hero::after, .page-hero::before, .page-hero::after, .section--dark::after, .cta-band::before, .cta-band::after { display: none !important; }
  .hero, .page-hero, .section--dark, .cta-band, .site-footer, .stat, .issues-answer { background: #fff !important; color: var(--c-gray) !important; }
  .hero { min-height: 0; }
  .page-hero__inner, .hero__inner { padding-block: 0 8mm; }
  .issues-answer { border: 1px solid var(--c-charcoal); }
  .cta-band { padding-block: 10mm; border-top: 1px solid var(--c-line-strong); }
  .site-footer { padding-top: 8mm; border-top: 1px solid var(--c-charcoal); break-inside: avoid; }
  .site-footer__logo { color: var(--c-core); }
  .site-footer__bottom { padding-bottom: 0; }
  /* 成長の道筋：印刷中に画面幅の判定が変わっても、線とノードを点灯した状態で印刷する（背景グラフィックOFFでも出す） */
  .journey__list::before { transform: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .journey__node { border-color: var(--c-core) !important; background: var(--c-core) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .journey__node::after { opacity: 1 !important; transform: none !important; }
  .journey__step--ipo::before { opacity: 1 !important; }
  .page-hero__title, .hero__title, .section-title--light, .cta-band__title, .reason__title, .reason__result, .stat dt, .issues-answer h3 { color: var(--c-core) !important; }
  .hero__kicker, .hero__lead, .page-hero__lead { text-shadow: none !important; }
  .page-hero__lead, .hero__lead, .cta-band__lead, .section--dark .section-lead, .reason__text, .stat__note, .issues-answer p, .breadcrumb li, .breadcrumb a, .site-footer__address, .site-footer__bottom { color: var(--c-gray) !important; }
  .eyebrow--light, .eyebrow--light .eyebrow__ja, .page-hero__sub, .reason__num, .reason__sub, .stat__value, .site-footer__tagline, .site-footer__heading { color: var(--c-orange) !important; }
  .assure--light li { color: var(--c-charcoal); border-color: var(--c-line-strong); }
  .faq__item::details-content { content-visibility: visible; block-size: auto; }
  .faq__item summary::after { display: none; }
  .menu-card, .case-card, .case-col, .flow__step, .issues__item, .reason, .stat, .scene, .svc-nav__item, .svc-row, .mvv-large__item,
  .company-table div, .timeline li, .expertise div, .faq__item, .message__photo, .section-head { break-inside: avoid; }
  h2, h3, .eyebrow, .section-head, .case-detail__head { break-after: avoid; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; word-break: break-all; }
  /* IPOの上場スケジュール：紙幅に収め、深紫・オレンジの面は色を残す（10/13 検証済みの指定） */
  .ipo-sched__hint, .dgm-cards { display: none !important; }
  .ipo-sched .ipo-sched__scroll { display: block !important; overflow: visible; break-inside: avoid; }
  .ipo-sched__table { min-width: 0 !important; border-spacing: 4px; font-size: 8.5pt; }
  .ipo-sched__c-label { width: 22mm; }
  .ipo-sched__c-listing { width: 11mm; }
  .ipo-sched--ma .ipo-sched__c-close { width: 20mm; }
  .ipo-sched__table thead th { padding: 6px 2px 8px; font-size: 11pt; }
  .ipo-sched__table thead th span, .ipo-sched__bar small { font-size: 7.5pt; }
  .ipo-sched__table tbody th { font-size: 8.5pt; }
  .ipo-sched__table tbody th, .ipo-sched__table thead td { position: static; background: none; box-shadow: none; }
  .ipo-sched__bar { padding: 7px 8px; border-top: 1px solid var(--c-line-strong); border-right: 1px solid var(--c-line-strong); border-bottom: 1px solid var(--c-line-strong); }
  .ipo-sched__ours .ipo-sched__bar, .ipo-sched__listing, .ipo-sched__peak { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .career-venn { grid-template-columns: 1fr 1.1fr; break-inside: avoid; }
  .career-venn__item { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- CV導線（レビュー反映） ---------- */
.page-hero__actions { margin-top: 32px; }
.link-more--light { color: var(--c-base); border-bottom-color: rgba(242, 240, 236, .45); }
.link-more--light:hover { border-color: var(--c-base); }
@media (max-width: 419.98px) {
  .btn--lg, .drawer__cta .btn, .page-hero__actions .btn { padding: 0 18px 0 24px; gap: 10px; letter-spacing: .04em; }
  .page-hero__actions .btn { width: 100%; }
}
@media (max-width: 359.98px) {
  .btn__note { display: none; }
  .btn:not(.btn--sm) { padding: 0 18px 0 24px; gap: 10px; letter-spacing: .04em; }
}

/* ---------- 表示確認レビュー反映（第2ラウンド） ---------- */
/* ファーストビュー：ノートPCの低い画面でも主CTAが初期表示に入るよう、縦方向も高さで抑える */
@media (min-width: 1024px) {
  .hero__catch { font-size: clamp(44px, min(5.6vw, 9.5svh), 84px); }
  .hero__inner { padding-top: calc(var(--header-h) + clamp(12px, 4svh, 40px)); padding-bottom: clamp(20px, 4svh, 56px); }
  .hero__kicker { margin-bottom: clamp(12px, 3svh, 36px); }
  .hero__lead { margin-top: clamp(14px, 3svh, 40px); }
  .hero__actions { margin-top: clamp(18px, 4svh, 48px); }
}
/* お問い合わせ：ヒーローと上余白を詰め、最初の入力欄を早く見せる */
.page-contact #form { padding-top: clamp(40px, 4vw, 64px); }
.page-hero--short .page-hero__inner { padding-top: calc(var(--header-h) + clamp(32px, 3vw, 48px)); }
/* 改行位置：狭い列の箇条書きも語句単位で折り返す */
.journey__points li, .case-col li, .svc-row__menu li, .reason__text li, .case-card__ba dd, .case-card__client, .case-detail__client, .stat dt, .scene__title, .issues__item, .timeline__org, .timeline__desc, .company-table dd, .expertise dd { word-break: auto-phrase; }
.timeline__desc, .company-table dd, .expertise dd { overflow-wrap: anywhere; } /* 語句単位で折り返し、収まらない長い語だけ途中で折る */
p, li, dd { text-wrap: pretty; }
.nw { white-space: nowrap; }
/* 320px 級の端末 */
@media (max-width: 359.98px) {
  .hero__catch { font-size: 34px; }
  .section-title { font-size: 23px; }
  .page-hero__title { font-size: 24px; }
}
/* 390px 未満：チップが2行になる幅では角丸を控えめにし、末尾1文字の行を避ける */
@media (max-width: 413.98px) {
  .chip span { border-radius: 14px; word-break: auto-phrase; text-wrap: pretty; }
}
/* 改行位置の個別調整 */
.scene__title { text-wrap: pretty; }
[data-group="theme"] > .field__hint { word-break: auto-phrase; } /* お問い合わせの税務の案内文：事務所名・「税務DD」を語の途中で折らない */
.reason__title { text-wrap: wrap; }

/* ---------- 背景アニメーションの一時停止ボタン（WCAG 2.2.2） ---------- */
.motion-toggle {
  position: absolute; right: var(--gutter); bottom: clamp(76px, 9vh, 104px); z-index: 2;
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  background: rgba(45, 4, 37, .35); border: 1px solid rgba(242, 240, 236, .32); border-radius: 50%;
  color: var(--c-base); cursor: pointer; transition: border-color .3s, background-color .3s;
}
.page-hero .motion-toggle { bottom: 20px; }
.motion-toggle:hover, .motion-toggle:focus-visible { border-color: var(--c-tan); background: rgba(45, 4, 37, .6); }
.motion-toggle__icon { position: relative; width: 10px; height: 12px; }
.motion-toggle__icon::before, .motion-toggle__icon::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; }
.motion-toggle__icon::before { left: 0; } .motion-toggle__icon::after { right: 0; }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon::before { left: 1px; width: 0; height: 0; background: none; border-left: 10px solid currentColor; border-block: 6px solid transparent; }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon::after { display: none; }
@media (max-width: 767.98px) { .hero .motion-toggle { bottom: 24px; } }
@media print { .motion-toggle { display: none !important; } }

/* ---------- 表示確認レビュー反映（第3ラウンド：TOP文言修正後の改行・余白） ---------- */
/* MVV見出し（トップ3列）：3見出しとも2行に収める（1024〜1279pxは列内余白を40→32px） */
@media (min-width: 1024px) { .mvv__title { font-size: clamp(18px, 2.3vw - 5.8px, 24.4px); } }
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .mvv__item { padding-right: 32px; }
  .mvv__item + .mvv__item { padding-left: 32px; }
  .mvv__item + .mvv__item::before { left: 32px; }
}
/* 私たちについて：大きいMVV見出しを小型スマホで MISSION・VISION 2行／VALUE 3行に */
@media (max-width: 389.98px) { .mvv-large__title { font-size: clamp(18px, 6.8vw - 3px, 23px); } }
/* 税務帯（トップ・サービス一覧）：語句単位で折り返し、狭い画面では左右余白を詰める */
.journey__tax p { word-break: auto-phrase; }
@media (max-width: 479.98px) { .journey__tax { padding-inline: 20px; } }

/* 選ばれる理由：見出し・結びの一文を語句単位で、行の長さをそろえて折り返す */
.reason__title, .reason__result { word-break: auto-phrase; text-wrap: balance; }

/* 10/16 本文を Noto Sans JP に替えたことで行数が増えた3か所を、替える前と同じ行数に戻す（比較検証：scratchpad/font_noto_qa） */
@media (min-width: 900px) and (max-width: 1199.98px) { .flow__step { padding-inline: 22px; } } /* 進め方の4列（PMI 1024px で3→4行） */
@media (min-width: 768px) and (max-width: 1099.98px) { .menu-card { padding-inline: 24px; } } /* 支援メニューのカード（PMI 768px で3→4行） */
@media (max-width: 767.98px) { .page-services #partners .section-lead { letter-spacing: .02em; } } /* サービス一覧の冒頭説明（390px で3→4行） */

/* 10/19 送信完了ページ：「このあとの流れ」が初回相談希望の場合の流れであることの注記（ChatGPT レビュー GPT-02） */
.thanks-note { margin-top: 16px; font-size: 14px; line-height: 1.9; }
.thanks-note + .thanks-steps { margin-top: 20px; }

/* 10/23 サービス間ナビの説明文：4列表示で折り返すとき、語の途中で切らない（PMI「統合計画・決算対応・レポーティング」） */
.svc-nav__desc { word-break: auto-phrase; }

/* 10/23 サービス一覧：支援項目の線画アイコン（_build/menu_icons.py。色は分析色・強、線は細め） */
.svc-row__menu li:has(> .i-menu) { position: relative; padding-left: 62px; }
.i-menu { position: absolute; left: 20px; top: 18px; width: 26px; height: 26px; fill: none; stroke: var(--c-forest); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 479.98px) { .svc-row__menu li:has(> .i-menu) { padding-left: 54px; } .i-menu { left: 16px; width: 24px; height: 24px; } }

/* 10/23 フォームの送信前の自動確認（Turnstile。静的サイトのみ）。通常は見えないので場所をとらない。確認の操作が必要なとき・不備のときだけ余白をとる */
.field.field--turnstile { border-top: 0; padding-block: 0; gap: 8px; }
.field--turnstile.is-active, .field--turnstile.is-invalid { padding-top: 18px; }

/* 10/23 静的サイトのフォーム（受付は Cloudflare。WordPress 版は .scalence-cf7 側の同じ指定を使う） */
.form-submit__error { margin: 12px 0 0; color: #A3392B; font-size: 13.5px; line-height: 1.8; } /* 送信できなかったときの案内（main.js） */
.form-submit__error:empty { display: none; }
.form-nojs { margin: 18px 0 0; color: #A3392B; font-size: 13.5px; line-height: 1.8; } /* JavaScript が動かないときだけ表示 */
.js .form-nojs, .wpcf7-form .form-nojs { display: none; }
html:not(.js) form[data-endpoint] .form-submit { display: none; } /* 送れないボタンは出さない */
.form-closed { padding: 8px 0; line-height: 2; } /* 受付停止中の案内（SCALENCE_NO_FORMS=1 のビルド） */
/* 送信前の自動確認（Turnstile）の確認欄は幅300px以上で表示されるため、狭いスマホでは縮めて画面からはみ出さないようにする */
.contact-grid > * { min-width: 0; }
@media (max-width: 395px) { .field--turnstile .cf-turnstile { zoom: .93; } }
@media (max-width: 374px) { .field--turnstile .cf-turnstile { zoom: .88; } }
@media (max-width: 359px) { .field--turnstile .cf-turnstile { zoom: .74; } }
