/* 三水竹株式会社 — site.css
   路線図の世界で組む。ブランドカラー #5B67AE を「本線」の色として面と線に使い、
   工程は駅、流れは線で示す。文字は単色、影は無彩色（グラデーション文字・発光は使わない）。
   構成：tokens → base → buttons → header → color fields → hero（路線）→ page head → layout → components → guide → CTA/footer → mobile */

@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin-600-normal.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin-800-normal.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --night: #0c1030;
  --night-2: #141a45;
  --ink: #14183a;
  --indigo: #5b67ae;
  --indigo-deep: #444f96;
  --violet: #7c6fe0;
  --iris: #9ba6f5;
  --cyan: #62e0d8;
  --paper: #f4f5fb;
  --white: #ffffff;
  --rule: #dfe2f1;
  --body: #3d4266;
  --muted: #62678a;
  /* 濃い面（墨色・深いブランドカラー）の上の文字 */
  --on-dark: #e6e9ff;
  --on-dark-2: #c9cef0;
  --on-dark-3: #9aa2d6;
  --stamp: #c9402a;
  /* 路線の色：1＝技術、2＝実務（本線）、3＝経営支援 */
  --line-1: #0e877b;
  --line-2: #5b67ae;
  --line-3: #d2482f;
  --track: 6px;
  --focus: #14183a;

  --lilac: #b9c1ff;
  --shadow: 0 1px 2px rgba(20, 24, 58, .05), 0 12px 32px -12px rgba(20, 24, 58, .18);
  --shadow-lift: 0 2px 4px rgba(20, 24, 58, .06), 0 24px 48px -16px rgba(20, 24, 58, .28);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --cjk: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", YuGothic, "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
  --font: "Overpass", var(--cjk);

  --gutter: clamp(20px, 5vw, 48px);
  --band: clamp(72px, 9vw, 128px);
}
/* --font は :root で一度解決されるため、言語ごとに --font も宣言し直す（--cjk だけ変えても効かない） */
.lang-zh {
  --cjk: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Hiragino Sans GB", sans-serif;
  --font: "Overpass", var(--cjk);
}
/* 英語版：本文も Overpass。和文フォントは日本語の固有名詞が混ざったとき用の予備 */
.lang-en {
  --cjk: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font: "Overpass", var(--cjk);
}
.lang-en body, body.lang-en { line-height: 1.7; overflow-wrap: break-word; }
.lang-en h1, .lang-en h2, .lang-en h3 { letter-spacing: -0.01em; }
.lang-en .hero__title { font-size: clamp(1.75rem, 1rem + 4vw, 4.25rem); line-height: 1.1; letter-spacing: -0.02em; }
/* 英文は1行 75 字前後まで（Overpass の ch は実際の字幅より広いので em で指定） */
.lang-en .lede > p, .lang-en .prose p { max-width: 36em; }
.lang-en .ledger__stamp { font-size: 0.6875rem; letter-spacing: 0; }
.lang-en .quotes li::before { content: "“"; color: var(--violet); }
.lang-en .quotes li::after { content: "”"; color: var(--violet); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, table { margin: 0; }
/* 本文は最後の行に1語だけ残さない（対応ブラウザのみ） */
p, li, dd, td { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
/* palt：見出しの約物（、。）の空きを詰める */
h1, h2, h3 { color: var(--ink); line-height: 1.35; font-weight: 700; text-wrap: balance; letter-spacing: 0.01em; font-feature-settings: "palt"; }
/* 日本語の見出しを文節単位で折り返す（対応ブラウザのみ） */
.lang-ja h1, .lang-ja h2, .lang-ja h3, .lang-ja .keyline, .lang-ja .quotes li,
.lang-ja .hero__lead span, .lang-ja .lede p, .lang-ja .lines p, .lang-ja .loop__stop span, .lang-ja .cta__text, .lang-ja .mottosec__jp, .lang-ja .steps p, .lang-ja .facts dd, .lang-ja .card__text { word-break: auto-phrase; }
h2 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem); }
.h-xl { font-size: clamp(1.875rem, 1rem + 3vw, 3.5rem); line-height: 1.3; }
h3 { font-size: 1.125rem; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--indigo-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--violet); }
address { font-style: normal; }
::selection { background: var(--indigo); color: #fff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 880px; }
.muted { color: var(--muted); }
.icon { display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 10px 28px;
  border: 1.5px solid transparent; border-radius: 12px;
  font: inherit; font-weight: 700; line-height: 1.3; text-decoration: none;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .15s, color .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 40px; padding: 6px 18px; font-size: 0.9375rem; border-radius: 10px; }
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 1px 2px rgba(8, 10, 32, .3), 0 8px 18px -10px rgba(8, 10, 32, .55); }
.btn--primary:hover { background: var(--indigo-deep); color: #fff; box-shadow: 0 2px 4px rgba(8, 10, 32, .3), 0 14px 24px -12px rgba(8, 10, 32, .6); transform: translateY(-1px); }
.btn--ghost { border-color: var(--indigo); color: var(--indigo-deep); background: transparent; }
.btn--ghost:hover { background: var(--indigo); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e9ebfa; color: var(--ink); transform: translateY(-1px); }
.btn--outline { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .04); }
.btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand:hover { color: var(--ink); }
.brand img { display: block; width: 38px; height: 38px; border-radius: 50%; }
.brand__name { font-size: 1.0625rem; white-space: nowrap; letter-spacing: 0.04em; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav__list { display: flex; gap: 2px; }
.site-nav__list a {
  position: relative; display: block; padding: 8px 14px; color: var(--body); text-decoration: none;
  font-size: 0.9375rem; font-weight: 700; white-space: nowrap; transition: color .15s;
}
.site-nav__list a:hover { color: var(--indigo-deep); }
/* 現在地は線の上の駅として示す */
.site-nav__list a[aria-current="page"] { color: var(--ink); }
.site-nav__list a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -15px; height: var(--track); background: var(--indigo);
}
.site-nav__side { display: flex; align-items: center; gap: 16px; }
.site-nav__side .btn { white-space: nowrap; }
.lang-switch { display: flex; padding: 3px; border: 1px solid var(--rule); border-radius: 10px; }
.lang-switch a { display: block; padding: 3px 11px; border-radius: 7px; font-size: 0.875rem; color: var(--body); text-decoration: none; white-space: nowrap; }
.lang-switch a:hover { color: var(--indigo-deep); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; font-weight: 700; }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px;
  border: 1px solid var(--rule); border-radius: 10px; background: transparent; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); margin-inline: auto; content: ""; position: relative; border-radius: 2px;
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

/* 英語版は社名・メニューが長いので、PC 幅の狭いところだけ余白を詰める */
.lang-en .brand__name { letter-spacing: 0.01em; }
@media (min-width: 1021px) and (max-width: 1200px) {
  .site-header__in { gap: 16px; }
  .site-nav { gap: 16px; }
  .site-nav__list a { padding-inline: 10px; }
  .site-nav__side { gap: 10px; }
  .lang-switch a { padding-inline: 8px; }
  .lang-en .site-header__in { gap: 16px; }
  .lang-en .site-nav { gap: 16px; }
  .lang-en .site-nav__list { gap: 2px; }
  .lang-en .site-nav { gap: 12px; }
  .lang-en .site-nav__list a { padding-inline: 8px; }
  .lang-en .site-nav__side { gap: 10px; }
  .lang-en .lang-switch a { padding-inline: 8px; }
  .lang-en .brand { gap: 10px; flex-shrink: 0; }
}

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 24px; box-shadow: 0 24px 32px -24px rgba(20, 24, 58, .3);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { padding: 14px 4px; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .site-nav__list a[aria-current="page"] { padding-left: 18px; }
  .site-nav__list a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: var(--track); height: auto; }
  .site-nav__side { justify-content: space-between; padding-top: 20px; }
}

/* ---------- color fields ----------
   .dark は墨色の面（実績など）。hero・ページ見出し・標語はブランドカラーの面。 */
.dark {
  --focus: #fff;
  position: relative; isolation: isolate;
  background: var(--ink);
  color: var(--on-dark-2);
}
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark a { color: #c7ceff; }
.dark a:hover { color: #fff; }
.dark .btn--primary, .dark .btn--outline { color: #fff; }
.dark .btn--light { color: var(--ink); }

/* ---------- hero（路線） ----------
   白い1本の線。領収書を始発に、3つの駅を通り、終点の駅から仕訳帳に着く。
   面はブランドカラー。線から下を一段深い面（--indigo-deep）にして、線を「ホームの縁」として見せる。 */
.hero {
  --book-w: 460px; --focus: #fff; --hero-ink: #fff; --track-c: #fff; --stop-fill: var(--indigo);
  background: var(--indigo); color: #fff; overflow: hidden;
}
.hero__in { padding-block: clamp(40px, 5vw, 72px) clamp(32px, 3.5vw, 48px); }
/* 1行が折り返さない大きさに：和文12字が版面に収まるよう vw で決める */
.hero__title { color: var(--hero-ink); font-size: clamp(1.375rem, 7.2vw, 4.5rem); font-weight: 800; line-height: 1.18; letter-spacing: 0; }
.hero__title span { display: block; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--book-w)); align-items: end; gap: 24px 40px; margin-top: clamp(20px, 2.4vw, 32px); }
.hero__lead { font-size: 1.0625rem; line-height: 1.75; }
.hero__lead span { display: block; text-wrap: balance; }
.hero__lead span:first-child { margin-bottom: 4px; color: var(--hero-ink); font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem); font-weight: 700; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn--outline { border-color: rgba(255, 255, 255, .7); }

/* --ty：線の中心の高さ。駅・終点・深い面はすべてここに揃える */
.route {
  --slip-w: 200px; --stop: 30px; --ty: 96px;
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: calc(var(--slip-w) + 12px) minmax(0, 1fr) minmax(0, var(--book-w));
  align-items: start; margin-top: clamp(40px, 4.5vw, 64px);
}
.route figcaption { grid-column: 1 / -1; margin-top: 14px; font-size: 0.875rem; text-align: right; }
.route__from { position: relative; z-index: 2; }
.slip {
  width: var(--slip-w); padding: 16px 20px 24px; background: #fff; color: var(--ink); font-size: 0.875rem; line-height: 1.6;
  transform: rotate(-4deg); filter: drop-shadow(0 12px 16px rgba(20, 24, 58, .3));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 94% 100%, 88% calc(100% - 6px), 82% 100%, 76% calc(100% - 6px), 70% 100%, 64% calc(100% - 6px), 58% 100%, 52% calc(100% - 6px), 46% 100%, 40% calc(100% - 6px), 34% 100%, 28% calc(100% - 6px), 22% 100%, 16% calc(100% - 6px), 10% 100%, 4% calc(100% - 6px), 0 100%);
}
.slip__title { font-weight: 700; letter-spacing: 0.4em; text-align: center; border-bottom: 1px dashed #b9c0ee; padding-bottom: 8px; }
.slip__amount { font-size: 1.75rem; font-weight: 800; line-height: 1.2; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
/* 3つの駅は等分に置く。線は領収書の下から出て、終点の駅で止まる */
.route__line {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: calc(var(--ty) - var(--stop) / 2) 56px 0 0;
  color: var(--hero-ink); font-weight: 700; font-size: 0.9375rem; line-height: 1.45; text-align: center;
}
.route__line::before { content: ""; position: absolute; left: calc(var(--slip-w) / -2); right: 28px; top: calc(var(--ty) - var(--track) / 2); height: var(--track); background: var(--track-c); transform-origin: left center; }
.route__line::after {
  content: ""; position: absolute; right: 8px; top: calc(var(--ty) - 20px);
  width: 40px; height: 40px; border-radius: 50%; background: var(--stop-fill); border: 13px solid var(--track-c);
}
.route__line li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-inline: 4px; text-wrap: balance; }
.route__line li { white-space: nowrap; }
.route__stop { display: block; width: var(--stop); height: var(--stop); border-radius: 50%; background: var(--stop-fill); border: var(--track) solid var(--track-c); }
.route__to {
  position: relative; z-index: 1; padding: 20px 24px 24px; background: #fff; color: var(--ink);
  border-radius: 14px; box-shadow: 0 2px 4px rgba(20, 24, 58, .12), 0 28px 48px -24px rgba(20, 24, 58, .55);
}
.ledger { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ledger caption { text-align: left; font-weight: 700; font-size: 1.0625rem; padding-bottom: 12px; color: var(--ink); }
.ledger th, .ledger td { padding: 9px 6px; text-align: left; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.ledger thead th { font-size: 0.875rem; color: var(--muted); font-weight: 500; border-bottom: 2px solid var(--ink); }
.ledger tbody tr:last-child td { border-bottom: 3px double var(--ink); }
.ledger .num, .num { text-align: right; white-space: nowrap; }
.ledger td.num { font-weight: 700; }
/* 1行目は、いま届いた領収書（¥3,980）の仕訳 */
.ledger tbody tr:first-child td { background: #eef0fa; }
/* 確認印は伝票と同じく右上に。朱肉らしく下の罫線に重ねる */
.ledger__stamp {
  position: absolute; right: 20px; top: 10px;
  display: grid; place-items: center; width: 60px; height: 60px;
  border: 3px solid var(--stamp); border-radius: 50%;
  color: var(--stamp); font-size: 0.875rem; font-weight: 800; letter-spacing: 0.04em;
  transform: rotate(-14deg); mix-blend-mode: multiply;
}

/* 線から下を一段深い面（ホーム）にする。境目は硬く、グラデーションは使わない */
.hero--depth .route::before { content: ""; position: absolute; z-index: -1; left: -100vw; right: -100vw; top: var(--ty); bottom: -240px; background: var(--indigo-deep); }

/* 信頼の帯：深い面の上、細い罫線で区切る（カードにしない） */
.proof {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-top: clamp(28px, 3.5vw, 44px); padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .24); color: #fff; font-size: 1rem; line-height: 1.5;
}
.proof li { padding-right: clamp(24px, 3vw, 40px); }
.proof li + li { padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid rgba(255, 255, 255, .24); }
.proof b { margin-right: 0.2em; color: #fff; font-size: 1.25rem; font-weight: 800; font-feature-settings: "palt"; }
.lang-en .proof b { margin-inline: 0; }
@media (max-width: 760px) {
  .proof { display: block; padding-top: 0; }
  .proof li { padding: 12px 0; }
  .proof li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .24); }
}

/* 動きはここだけ：線が伸び、駅が点き、終点に着き、仕訳が1行ずつ入り、最後に確認印。
   初めから薄く見えている状態から始める */
@media (prefers-reduced-motion: no-preference) {
  .route__line::before { animation: track-x 1.4s var(--ease) .3s backwards; }
  .route__line li, .route__line::after { animation: stop-in .5s var(--ease) backwards; }
  .route__line li:nth-child(1) { animation-delay: .55s; }
  .route__line li:nth-child(2) { animation-delay: .85s; }
  .route__line li:nth-child(3) { animation-delay: 1.15s; }
  .route__line::after { animation-delay: 1.45s; }
  .ledger tbody tr { animation: row-in .55s var(--ease) backwards; }
  .ledger tbody tr:nth-child(1) { animation-delay: 1.6s; }
  .ledger tbody tr:nth-child(2) { animation-delay: 1.8s; }
  .ledger tbody tr:nth-child(3) { animation-delay: 2s; }
  .ledger tbody tr:nth-child(4) { animation-delay: 2.2s; }
  .ledger__stamp { animation: stamp-in .4s var(--ease) 2.6s backwards; }
}
@keyframes track-x { from { transform: scaleX(0); } }
@keyframes track-y { from { transform: scaleY(0); } }
@keyframes stop-in { from { opacity: .25; transform: translateY(8px); } }
@keyframes row-in { from { opacity: .2; transform: translateX(-10px); } }
@keyframes stamp-in { from { opacity: 0; transform: rotate(-14deg) scale(1.35); } }

/* 1021〜1240px：仕訳帳を細くし、摘要の列を省く（駅名が領収書に当たらない幅を保つ） */
@media (max-width: 1240px) {
  .hero { --book-w: 400px; }
  .route { --slip-w: 184px; }
  .route__line { padding-right: 52px; font-size: 0.875rem; }
  .ledger th:nth-child(5), .ledger td:nth-child(5) { display: none; }
}
/* 狭い画面：領収書と縦の路線を横に並べ、その下の終点に仕訳帳を置く。確認印まで1画面目に入れる */
@media (max-width: 1020px) {
  .hero__row { grid-template-columns: minmax(0, 1fr); }
  .route { --slip-w: clamp(128px, 36vw, 176px); --stop: 26px; --cg: 20px; grid-template-columns: var(--slip-w) minmax(0, 1fr); column-gap: var(--cg); row-gap: 44px; margin-top: 36px; }
  .route__from { grid-column: 1; grid-row: 1; }
  .slip { padding: 12px 14px 20px; font-size: 0.875rem; line-height: 1.55; }
  .slip__amount { font-size: 1.375rem; margin: 6px 0 4px; }
  /* 線は領収書の右上から出て駅1に入り、縦に下りて仕訳帳の上の終点に着く */
  .route__line { grid-column: 2; grid-row: 1; align-self: stretch; display: flex; flex-direction: column; gap: 22px; padding: 10px 0 0; font-size: 0.9375rem; text-align: left; }
  .route__line::before { left: calc(var(--stop) / 2 - var(--track) / 2); right: auto; top: calc(10px + var(--stop) / 2); bottom: -24px; width: var(--track); height: auto; transform-origin: center top; }
  .route__line::after { display: none; }
  .route__from::after {
    content: ""; position: absolute; z-index: -1; left: 50%; right: calc(-1 * var(--cg));
    top: calc(10px + var(--stop) / 2 - var(--track) / 2); height: var(--track); background: var(--track-c);
  }
  .route__to::before {
    content: ""; position: absolute; left: calc(var(--slip-w) + var(--cg) + var(--stop) / 2 - 20px); top: -40px;
    width: 40px; height: 40px; border-radius: 50%; background: var(--stop-fill); border: 13px solid var(--track-c);
  }
  .route__line li { flex-direction: row; align-items: center; gap: 14px; padding: 0; white-space: normal; }
  .route__stop { flex: none; }
  .route__to { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: 600px; }
  .ledger th:nth-child(5), .ledger td:nth-child(5) { display: table-cell; }
  .route figcaption { grid-row: 3; margin-top: -30px; text-align: left; }
  .hero--depth .route::before { top: -16px; }
}
/* スマホ：見出しは大きく、文節で3行に（ja は \u200B の位置で折る） */
@media (max-width: 600px) {
  .hero__title { font-size: clamp(1.875rem, 9.4vw, 2.75rem); line-height: 1.16; }
  .lang-ja .hero__title span { word-break: keep-all; }
}
@media (max-width: 1020px) and (prefers-reduced-motion: no-preference) {
  .route__line::before { animation-name: track-y; }
  .route__to::before { animation: stop-in .5s var(--ease) 1.45s backwards; }
}
@media (max-width: 400px) {
  .route { --slip-w: clamp(112px, 34vw, 136px); --cg: 16px; }
  .route__line { font-size: 0.875rem; }
  .route__line li { gap: 12px; white-space: nowrap; }
  .slip { padding: 10px 9px 18px; font-size: 0.75rem; white-space: nowrap; }
  .slip__title { letter-spacing: 0.3em; }
}
@media (max-width: 520px) {
  .ledger th:nth-child(5), .ledger td:nth-child(5) { display: none; }
  .route__to { padding: 16px 16px 18px; }
  .ledger th, .ledger td { padding: 8px 5px; }
  .ledger__stamp { right: 12px; top: 8px; width: 54px; height: 54px; }
}

/* ---------- page head ----------
   ブランドカラーの面。下端の線と駅から本文が始まる。 */
.pagehead { --focus: #fff; position: relative; background: var(--indigo); color: #fff; padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 88px); overflow: hidden; }
.pagehead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: var(--track); background: #fff; }
.pagehead .wrap { position: relative; }
.pagehead .wrap::after {
  content: ""; position: absolute; left: var(--gutter); bottom: calc(clamp(56px, 7vw, 88px) * -1 + 12px);
  width: 26px; height: 26px; border-radius: 50%; background: var(--indigo); border: 6px solid #fff; z-index: 1;
}
.pagehead__title { color: #fff; font-size: clamp(2.125rem, 1.2rem + 3.2vw, 3.75rem); line-height: 1.25; }
.pagehead__lead { margin-top: 18px; max-width: 36em; font-size: 1.125rem; color: #fff; }

/* ---------- bands & layout ---------- */
.band { padding-block: var(--band); }
.band--tint { background: var(--paper); }
.band--first { padding-top: clamp(72px, 10vw, 140px); }
.band + .band:not(.band--tint):not(.dark) { border-top: 1px solid var(--rule); }
.band--tint + .band:not(.band--tint):not(.dark), .dark + .band:not(.band--tint):not(.dark) { border-top: 0; }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 24px; }
.split__h { grid-column: 1 / span 6; }
.split__h > p { margin-top: 14px; color: var(--muted); }
.split__h .card__icon { margin-bottom: 20px; }
.split__body { grid-column: 7 / -1; }
.split__body > * + * { margin-top: 24px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split__h, .split__body { grid-column: 1 / -1; } }

.lede { max-width: 46em; margin-bottom: clamp(32px, 4.5vw, 56px); }
.lede > p { margin-top: 16px; font-size: 1.0625rem; }
.lede--text { margin-bottom: 0; font-size: 1.125rem; color: var(--ink); }
.prose p { max-width: 42em; }
.prose h2 { margin-top: 48px; font-size: 1.375rem; }
.prose h2 + * { margin-top: 16px; }
.prose > * + p { margin-top: 20px; }
.minor { font-size: 0.9375rem; color: var(--muted); font-weight: 700; letter-spacing: 0.06em; }
.keyline {
  padding: 20px 24px; border-radius: 12px;
  background: #eceefa;
  color: var(--ink); font-weight: 700; font-size: 1.125rem; line-height: 1.7;
}
.keyline--center { margin: 40px auto 0; max-width: 40em; }
.dark .keyline { background: rgba(255, 255, 255, .07); color: #fff; }
.notice { margin-top: 24px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; font-size: 0.9375rem; color: var(--ink); }
.band--tint .notice { background: var(--white); }
.plain li + li { margin-top: 6px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column; padding: 32px 30px 28px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 20px;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #b9c0ee; }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--indigo); color: #fff;
}
.card__title { margin-top: 6px; font-size: 1.3125rem; line-height: 1.45; }
.card__text { margin-top: 12px; flex: 1; }
.card__link { margin-top: 22px; align-self: flex-start; font-weight: 700; text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid var(--indigo); }
/* カード全体をクリックできるようにする */
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.card__actions { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 20px; margin-top: 22px; }
.card__actions .card__link { margin-top: 0; }
/* カード全面のリンクより手前に置き、こちらだけ別の行き先にする */
.card__ext { position: relative; z-index: 1; padding: 6px 14px; border-radius: 999px; background: var(--paper); color: var(--indigo-deep); font-weight: 700; font-size: 0.9375rem; text-decoration: none; }
.card__ext:hover { background: var(--indigo); color: #fff; }
/* 自社システムは1本の線に並ぶ3つの駅。順序はないので番号は付けない */
.cards--product { position: relative; gap: 40px; }
/* 線は駅から次の駅まで。最初の駅で始まり、最後の駅で終わる */
.cards--product .card:not(:last-child)::after { content: ""; position: absolute; left: 15px; right: -55px; top: 12px; height: var(--track); background: var(--indigo); }
.cards--product .card { position: relative; padding: 56px 0 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.cards--product .card::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: var(--track) solid var(--indigo); }
.cards--product .card:hover, .cards--product .card:focus-within { transform: none; box-shadow: none; }
.cards--product .card:hover::before, .cards--product .card:focus-within::before { background: var(--indigo); }
.cards--product .card__link::after { border-radius: 0; }
.cards--product .card__title { margin-top: 0; }
.cards--product .card__actions { min-height: 40px; align-items: center; }
@media (max-width: 900px) {
  .cards--product { gap: 36px; }
  .cards--product .card:not(:last-child)::after { left: 12px; right: auto; top: 15px; bottom: -51px; width: var(--track); height: auto; }
  .cards--product .card { padding: 0 0 0 52px; }
}
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- illustrations ----------
   イラストは明るい背景（#f9fbff 付近）で描かれているので、置く面も同じ色にしてなじませる。
   重い影・発光・枠線は付けない。 */
.band--visual { background: #f9fbff; }
.band + .band--visual, .band--visual + .band:not(.band--tint):not(.dark) { border-top: 0; }

/* 3つの事業領域：3本の路線。色の線の始点にバッジ（路線記号）を置く */
.lines__row {
  --line: var(--line-2);
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 5fr) minmax(0, 6fr); gap: 8px 32px; align-items: start;
  padding: 44px 0 40px; border-top: var(--track) solid var(--line);
}
.lines__row--1 { --line: var(--line-1); }
.lines__row--3 { --line: var(--line-3); }
.lines__badge {
  display: grid; place-items: center; width: 56px; height: 56px; margin-top: -75px; border-radius: 50%;
  background: var(--line); color: #fff; font-size: 1.625rem; font-weight: 800; line-height: 1; box-shadow: 0 0 0 6px var(--paper);
}
.lines__row h3 { grid-column: 2; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.lines__row h3 a { color: var(--ink); text-decoration: none; }
.lines__row h3 a:hover { color: var(--line); text-decoration: underline; }
/* 行全体を押せるようにする */
.lines__row h3 a::after { content: ""; position: absolute; inset: 0; }
.lines__row p { grid-column: 3; font-size: 1.0625rem; }
@media (max-width: 760px) {
  .lines__row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 40px 0 32px; }
  .lines__badge { margin-top: -71px; width: 52px; height: 52px; }
  .lines__row h3, .lines__row p { grid-column: 1; }
  .lines__row p { font-size: 1rem; }
}

/* 事業内容ページ：領域ごとに路線の色の線で区切り、路線記号を見出しの前に置く */
.band.domain { --line: var(--line-2); border-top: var(--track) solid var(--line); }
.band.domain--1 { --line: var(--line-1); }
.band.domain--3 { --line: var(--line-3); }
.pagehead + .band.domain { border-top: 0; }
.domain__badge { margin: 0 0 20px; box-shadow: none; }

/* DX の 6 工程：環状線。上段を左から右へ、下段を右から左へ進み、最初の駅に戻る */
.loop {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 40px 0 0; border: var(--track) solid var(--indigo); border-radius: 96px;
}
.loop__stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 40px 20px 36px; text-align: center; line-height: 1.6; }
.loop__stop b { color: var(--ink); font-size: 1.125rem; letter-spacing: 0.06em; }
.loop__num {
  position: absolute; left: 50%; top: -3px; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: var(--track) solid var(--indigo); color: var(--ink); font-weight: 800; font-size: 1.0625rem; line-height: 1;
}
.loop__stop--4, .loop__stop--5, .loop__stop--6 { grid-row: 2; padding: 36px 20px 44px; }
.loop__stop--4 { grid-column: 3; }
.loop__stop--5 { grid-column: 2; }
.loop__stop--6 { grid-column: 1; }
.loop__stop--4 .loop__num, .loop__stop--5 .loop__num, .loop__stop--6 .loop__num { top: auto; bottom: -3px; transform: translate(-50%, 50%); }
.loop__note { margin-top: 44px; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
  /* スマホでは縦の線。最後の駅から線が左に回り込んで最初へ戻る */
  .loop { display: block; border: 0; border-left: var(--track) solid var(--indigo); border-radius: 0; margin-left: 19px; padding: 4px 0; }
  .loop__stop, .loop__stop--4, .loop__stop--5, .loop__stop--6 { align-items: flex-start; text-align: left; padding: 14px 0 14px 40px; }
  .loop__num, .loop__stop--4 .loop__num, .loop__stop--5 .loop__num, .loop__stop--6 .loop__num { left: -3px; top: 50%; bottom: auto; transform: translate(-50%, -50%); }
  .loop__note { margin-top: 20px; text-align: left; }
}

/* Technology follows Business.（文字だけの面） */
.mottosec { background: var(--indigo); color: #fff; padding-block: clamp(88px, 12vw, 176px); }
.mottosec__en { font-size: clamp(2.25rem, 0.6rem + 7.4vw, 6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: #fff; }
.mottosec__jp { margin-top: 24px; color: #fff; font-weight: 700; font-size: clamp(1rem, 0.9rem + 0.6vw, 1.375rem); }

.platform-goal { margin-top: 48px; padding: 28px 32px; border-radius: 0; background: var(--indigo-deep); color: #fff; text-align: center; }
.platform-goal__en { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); font-weight: 700; letter-spacing: 0.04em; line-height: 1.3; margin-bottom: 6px; }

/* ---------- product blocks ---------- */
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.product--flip .product__visual { order: 2; }
.product__visual .mock { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(20, 24, 58, .55); }
.product__body > p { margin-top: 14px; }
.product__body .minor { margin-top: 28px; }
.product__open { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px !important; }
.product__host { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 860px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .product--flip .product__visual { order: 0; }
}

/* ---------- lists & small components ---------- */

/* 順序のある工程 */
/* 順序のある工程：1本の線に番号つきの駅（狭い画面では縦の線） */
.steps { --gap: 32px; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); margin-bottom: 40px; }
.steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { counter-increment: step; position: relative; padding: 64px 8px 0 0; }
.steps li::before {
  content: counter(step); position: absolute; z-index: 1; left: 0; top: 0;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: var(--track) solid var(--indigo);
  color: var(--ink); font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 22px; right: calc(-1 * var(--gap) - 22px); top: 19px; height: var(--track); background: var(--indigo); }
.steps__en { font-size: 1.125rem; font-weight: 800; color: var(--ink); line-height: 1.4; letter-spacing: 0.02em; margin-bottom: 6px; }
.steps__h { margin-bottom: 6px; }
@media (max-width: 900px) {
  .steps, .steps--four { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding: 8px 0 32px 64px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:not(:last-child)::after { left: 19px; right: auto; top: 22px; bottom: -22px; width: var(--track); height: auto; }
}

.btnrow { display: flex; flex-wrap: wrap; gap: 12px 16px; }

/* ---------- ご利用の流れ（/flow/） ---------- */
/* 並列の項目はカードにせず、上の罫線で区切る */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 32px; }
.perks__item { padding-top: 22px; border-top: 1px solid var(--rule); }
.perks .card__icon { display: flex; justify-content: flex-start; width: auto; height: auto; background: none; border-radius: 0; color: var(--indigo); }
.perks .icon { width: 28px; height: 28px; }
.perks__h { margin: 14px 0 8px; font-size: 1.0625rem; line-height: 1.5; }
.perks__item p { font-size: 0.9375rem; line-height: 1.75; }
@media (max-width: 1000px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .perks { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .perks__item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 16px; padding: 18px 0; }
  .perks__item .card__icon { grid-row: span 2; align-self: start; padding-top: 2px; }
  .perks__h { margin: 0; }
}

.contactbar { margin-top: 28px; padding: 18px 22px; border-radius: 14px; background: var(--paper); }
.contactbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 8px; }
.contactbar__label { font-weight: 700; color: var(--ink); }
.contactbar__list { display: flex; flex-wrap: wrap; gap: 8px; }
.contactbar__list li { padding: 3px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--rule); color: var(--indigo-deep); font-weight: 700; font-size: 0.9375rem; }
.contactbar__note { color: var(--muted); font-size: 0.9375rem; }

.phase + .phase { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--rule); }
.phase__head { align-self: start; position: sticky; top: 104px; }
.phase__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); }
.phase__note { display: inline-block; margin-top: 14px; padding: 4px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--rule); color: var(--indigo-deep); font-size: 0.9375rem; font-weight: 700; }
@media (max-width: 860px) { .phase__head { position: static; } }

/* 番号の丸を縦線でつなぐ */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 22px; bottom: 22px; width: var(--track); background: var(--indigo); }
.timeline__item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; }
.timeline__item + .timeline__item { margin-top: 28px; }
.timeline__num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: var(--track) solid var(--indigo); color: var(--ink); font-weight: 800; font-size: 1rem;
}
.timeline__card { padding-top: 8px; }
.timeline__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; font-size: 1.125rem; }
.timeline__term { font-size: 0.875rem; font-weight: 500; color: var(--indigo); letter-spacing: 0.04em; }
.timeline__card > p:not(.timeline__foot) { font-size: 0.9375rem; line-height: 1.8; }
.timeline__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.timeline__link { font-size: 0.9375rem; font-weight: 700; }
.timeline__loop { position: relative; margin-top: 28px; padding: 16px 0 0 62px; border-top: 1px solid var(--rule); color: var(--indigo-deep); font-weight: 700; font-size: 0.9375rem; }
/* 繰り返しの印：線の色の点線の輪（環状線） */
.timeline__loop::before { content: ""; position: absolute; left: 9px; top: 14px; width: 26px; height: 26px; border-radius: 50%; border: 4px dotted var(--indigo); }

/* 担当（お客様／当社／双方／税理士） */
.who { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em; }
.who--client { background: #fbf1df; color: #8a6420; }
.who--us { background: #e9ebfa; color: var(--indigo-deep); }
.who--both { background: #eef0f4; color: #4c5170; }
.who--pro { background: #dff6f4; color: #1d6e69; }

.motto { margin-top: clamp(40px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--rule); }
.motto p + p { margin-top: 12px; color: var(--ink); font-weight: 700; }
.motto--left { margin-top: 40px; padding: 28px 30px; border: 0; border-radius: 16px; background: var(--paper); }
.motto--left p { font-size: 1.25rem; font-weight: 700; color: var(--ink); line-height: 1.7; }
.motto footer { margin-top: 10px; color: var(--muted); }

/* 実績の数字（濃紺の面で使う） */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid rgba(255, 255, 255, .22); }
.facts > div { padding: 28px 0 8px; }
.facts dt { font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4rem); font-weight: 700; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }
.facts dd { margin-top: 8px; color: var(--on-dark-2); font-weight: 500; }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); border-top: 0; } .facts > div { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .22); } }
.approval { margin-top: 40px; padding: 24px 28px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; background: rgba(255, 255, 255, .04); color: #fff; }
.approval > * + * { margin-top: 12px; }
/* 実績：システム数と大阪府の承認を横に並べる（約120社・2023年は首屏の下の帯に） */
.statsec__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 40px; align-items: start; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .22); }
.statsec__grid .facts { display: block; border-top: 0; }
.statsec__grid .facts > div { padding: 0; border-top: 0; }
.statsec__grid .approval { margin-top: 0; }
@media (max-width: 760px) { .statsec__grid { grid-template-columns: minmax(0, 1fr); } }
.approval__meta { display: flex; flex-wrap: wrap; gap: 6px 36px; }
.approval__meta > div { display: flex; gap: 12px; }
.approval__meta dt { flex: none; color: var(--on-dark-3); }
.approval__meta dd { font-weight: 700; }

.taglist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.taglist li { padding: 6px 16px; background: var(--white); border: 1px solid var(--rule); border-radius: 999px; font-size: 0.9375rem; color: var(--ink); }
.split__body .taglist li { background: var(--paper); border-color: transparent; }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 14px; }
.checks--single { grid-template-columns: minmax(0, 1fr); }
.checks li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 22px; height: 22px; border-radius: 50%; background: var(--indigo); }
.checks li::after {
  content: ""; position: absolute; left: 6px; top: 0.72em; width: 10px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
@media (max-width: 520px) { .checks { grid-template-columns: minmax(0, 1fr); } }

.cert { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 28px; align-items: start; padding: 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; }
.cert__img { display: block; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.cert__img:hover, .cert__img:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.cert__img img { display: block; width: 100%; }
.cert__body > p:first-child { color: var(--ink); }
.cert__rows { margin-top: 18px; border-top: 1px solid var(--rule); }
.cert__rows > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.cert__rows dt { color: var(--muted); font-weight: 700; }
.cert__rows dd { color: var(--ink); }
.prose .cert__zoom { margin-top: 16px; font-size: 0.9375rem; }
@media (max-width: 600px) {
  .cert { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 18px; }
  .cert__img { max-width: 280px; margin-inline: auto; }
}

.numbered { counter-reset: n; }
.numbered li { counter-increment: n; position: relative; padding: 14px 0 14px 48px; border-bottom: 1px solid var(--rule); color: var(--ink); font-weight: 500; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: 13px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 700; font-size: 0.875rem; }

.quotes li {
  padding: 20px 0; border-top: 1px solid var(--rule);
  font-size: clamp(1.125rem, 1rem + 0.9vw, 1.5rem); font-weight: 700; color: var(--ink); line-height: 1.6;
}
.split__body.quotes > * + * { margin-top: 0; }
.quotes li:last-child { border-bottom: 1px solid var(--rule); }
.lang-ja .quotes li::before { content: "「"; color: var(--violet); }
.lang-ja .quotes li::after { content: "」"; color: var(--violet); }
.lang-zh .quotes li::before { content: "“"; color: var(--violet); }
.lang-zh .quotes li::after { content: "”"; color: var(--violet); }

/* 従来 / 3WB の流れ（濃紺の面）。従来は途切れた駅、3WB は1本の線で終点まで */
.flow { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 14px 24px; align-items: start; padding: 32px 0; }
.flow + .flow { border-top: 1px solid rgba(255, 255, 255, .16); }
.flow__label { padding-top: 2px; font-weight: 700; color: var(--on-dark-3); }
.flow__steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.flow__steps li { position: relative; padding: 40px 10px 0 0; color: var(--on-dark-2); font-size: 0.9375rem; line-height: 1.5; }
.flow__steps li::before { content: ""; position: absolute; z-index: 1; left: 2px; top: 2px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); }
.flow__steps li:not(:last-child)::after { content: ""; position: absolute; left: 32px; right: 8px; top: 12px; border-top: 2px dashed rgba(255, 255, 255, .28); }
.flow__note { grid-column: 2; color: var(--on-dark-3); font-size: 0.9375rem; }
.flow--after .flow__label { color: #fff; }
.flow--after .flow__steps li { color: #fff; font-weight: 700; }
.flow--after .flow__steps li::before { left: 0; top: 0; width: 26px; height: 26px; border: var(--track) solid #fff; background: var(--ink); }
.flow--after .flow__steps li:not(:last-child)::after { left: 13px; right: -13px; top: 10px; border-top: var(--track) solid #fff; }
.flow--after .flow__steps li:last-child::before { left: -7px; top: -7px; width: 40px; height: 40px; border: 13px solid #fff; }
.flow--after .flow__note { color: #fff; font-weight: 700; }
@media (max-width: 760px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__note { grid-column: 1; }
  .flow__steps { grid-auto-flow: row; }
  .flow__steps li { padding: 2px 0 18px 44px; }
  .flow__steps li:not(:last-child)::after { left: 12px; right: auto; top: 30px; bottom: 4px; border-top: 0; border-left: 2px dashed rgba(255, 255, 255, .28); }
  .flow--after .flow__steps li:not(:last-child)::after { left: 10px; right: auto; top: 13px; bottom: -13px; border-top: 0; border-left: var(--track) solid #fff; }
}

/* 企業データの路線：9つの駅が1本の線で終点に着く */
.chain { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 32px; }
.chain li { position: relative; padding: 42px 8px 0 0; color: var(--ink); font-weight: 700; font-size: 0.9375rem; line-height: 1.45; }
.chain li::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: var(--track) solid var(--indigo); }
.chain li:not(:last-child)::after { content: ""; position: absolute; left: 13px; right: -13px; top: 10px; height: var(--track); background: var(--indigo); }
.chain li:last-child::before { left: -7px; top: -7px; width: 40px; height: 40px; border: 13px solid var(--indigo); }
@media (max-width: 760px) {
  .chain { grid-auto-flow: row; }
  .chain li { padding: 2px 0 16px 44px; }
  .chain li:not(:last-child)::after { left: 10px; right: auto; top: 13px; bottom: -13px; width: var(--track); height: auto; }
}

/* SYSTEM × OPERATION × PROFESSIONAL（濃紺の面）。3つを1本の線でつなぐ */
.trio { --gap: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.trio__col { position: relative; padding-top: 56px; color: var(--on-dark); }
.trio__col::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); border: var(--track) solid #fff; }
.trio__col:not(:last-child)::after { content: ""; position: absolute; left: 15px; right: calc(-1 * var(--gap) - 15px); top: 12px; height: var(--track); background: #fff; }
.trio__h { font-size: 1.375rem; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 12px; color: #fff; }
@media (max-width: 760px) {
  .trio { grid-template-columns: minmax(0, 1fr); }
  .trio__col { padding: 0 0 32px 56px; }
  .trio__col:last-child { padding-bottom: 0; }
  .trio__col:not(:last-child)::after { left: 12px; right: auto; top: 15px; bottom: -15px; width: var(--track); height: auto; }
}

/* 強み：並列の項目は上の罫線で区切る */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
.grid3 li { padding-top: 22px; border-top: 1px solid var(--rule); }
.dark .grid3 li { border-top-color: rgba(255, 255, 255, .24); }
.grid3__h { font-size: 1.0625rem; font-weight: 800; letter-spacing: 0.04em; margin-bottom: 8px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid3 { grid-template-columns: minmax(0, 1fr); gap: 0; } .grid3 li { padding: 18px 0; } }

/* 沿革（会社情報）：縦の線と駅 */
dl.timeline { position: relative; padding-left: 28px; }
dl.timeline::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: var(--track); background: var(--indigo); border-radius: 0; }
dl.timeline > div { position: relative; display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; }
dl.timeline > div::before { content: ""; position: absolute; left: -28px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--indigo); }
dl.timeline dt { font-size: 1.25rem; font-weight: 700; color: var(--ink); line-height: 1.5; }
dl.timeline dd { color: var(--body); }
dl.timeline .timeline__next::before { border-color: var(--cyan) !important; background: var(--cyan) !important; }
dl.timeline .timeline__next dt { color: var(--indigo-deep); }
dl.timeline .timeline__next dd { color: var(--ink); font-weight: 700; }
@media (max-width: 520px) { dl.timeline > div { grid-template-columns: minmax(0, 1fr); } }

.deftable, .pricetable { width: 100%; border-collapse: collapse; }
.deftable th, .deftable td, .pricetable th, .pricetable td { padding: 18px 16px 18px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.deftable tr:first-child th, .deftable tr:first-child td { border-top: 2px solid var(--ink); }
.deftable th { width: 30%; min-width: 8em; color: var(--muted); font-weight: 500; }
.deftable td { color: var(--ink); }
.pricetable { font-variant-numeric: tabular-nums; }
.pricetable thead th { font-size: 0.875rem; color: var(--muted); font-weight: 500; border-bottom: 2px solid var(--ink); }
.pricetable tbody th { font-weight: 500; color: var(--ink); }
.pricetable td { color: var(--ink); font-weight: 700; padding-right: 0; }
.pricetable thead th.num { padding-right: 0; }
.pricetable .num { white-space: normal; text-align: right; }
@media (max-width: 560px) {
  .deftable th, .deftable td { display: block; width: 100%; }
  .deftable th { border-bottom: 0; padding-bottom: 0; }
  .deftable td { padding-top: 4px; }
  .deftable tr:first-child td { border-top: 0; }
}
.price { font-size: clamp(2.75rem, 1.6rem + 3.6vw, 4.25rem); font-weight: 700; line-height: 1.2; color: var(--indigo-deep); font-variant-numeric: tabular-nums; }

.jobgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.jobgrid > * + * { margin-top: 0; }
.jobgrid > div { padding-top: 16px; border-top: 1px solid var(--ink); }
.jobgrid .minor { margin-bottom: 10px; color: var(--indigo-deep); }
.jobgrid li { color: var(--ink); }
@media (max-width: 560px) { .jobgrid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* 連絡手段は2つの列。カードにせず罫線で分ける */
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.channel { padding: 32px 40px 8px 0; border-top: 2px solid var(--ink); }
.channel + .channel { padding-left: 40px; border-left: 1px solid var(--rule); }
.channel .card__icon { display: flex; justify-content: flex-start; width: auto; height: auto; background: none; border-radius: 0; color: var(--indigo); }
.channel .icon { width: 30px; height: 30px; }
.channel h2 { margin-top: 16px; font-size: 1.375rem; }
.channel p { margin-top: 12px; }
.channel p:last-child { margin-top: 24px; }
@media (max-width: 720px) { .channels { grid-template-columns: minmax(0, 1fr); } .channel { padding: 28px 0; } .channel + .channel { padding-left: 0; border-left: 0; border-top-width: 1px; border-top-color: var(--rule); } }

.access { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.access__addr { color: var(--ink); }
.access p { margin-top: 20px; }
@media (max-width: 640px) { .access { grid-template-columns: minmax(0, 1fr); } }

.code404 { font-size: clamp(4.5rem, 14vw, 9rem); font-weight: 700; line-height: 1; color: var(--indigo); }
.band--first h1 { margin-top: 8px; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); }

/* ---------- guide（来社案内） ---------- */
.guide > h2 { font-size: 1.375rem; margin-top: 48px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.guide > h2:first-child { margin-top: 0; }
.guide__addr { margin-top: 18px; color: var(--ink); font-size: 1.0625rem; line-height: 2; }
.guide__maplink { margin-top: 8px; color: var(--ink); }
.metro { margin-top: 8px; }
.metro li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink); font-size: 1.0625rem; }
.metro__lines { display: inline-flex; gap: 6px; flex: none; }
/* Osaka Metro の路線記号（T＝谷町線、C＝中央線）を路線色で示す */
.line { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 1rem; line-height: 1; }
.line--t { background: #522886; }
.line--c { background: #01875f; }
.metro strong { font-size: 1.1875rem; margin: 0 2px; }
.metro mark { background: #ffe07a; color: var(--ink); font-weight: 700; padding: 2px 10px; border-radius: 4px; white-space: nowrap; }
.guide__photos { display: grid; gap: 20px; margin-top: 40px; }
.guide__photos img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 14px; box-shadow: var(--shadow); }
.guide__map { margin-top: 40px; }
.guide__map iframe { display: block; width: 100%; height: 450px; border: 0; border-radius: 14px; background: var(--paper); }
.guide__company { margin-top: 40px; padding: 26px 28px; background: var(--paper); border-radius: 16px; color: var(--ink); }
.guide__company-name { font-weight: 700; font-size: 1.125rem; }
.guide__company dl { margin-top: 12px; }
.guide__company dl > div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.guide__company dt { font-weight: 700; color: var(--indigo-deep); letter-spacing: 0.04em; }

/* ---------- CTA & footer ----------
   CTA はページの終点。ページ見出しの駅で始まった線が、ここの終点の駅に着く */
.cta { --focus: #fff; position: relative; overflow: hidden; background: var(--indigo-deep); color: var(--on-dark); }
.cta::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: var(--track); background: #fff; }
.cta__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(88px, 9vw, 120px) clamp(64px, 8vw, 104px); }
.cta__in::before { content: ""; position: absolute; left: var(--gutter); top: 5px; width: 40px; height: 40px; border-radius: 50%; background: var(--indigo-deep); border: 13px solid #fff; }
.cta__title { color: #fff; font-size: clamp(1.5rem, 1rem + 1.8vw, 2.25rem); }
.cta__text { margin-top: 10px; max-width: 34em; }
.cta .btn { flex: none; min-width: 180px; }
@media (max-width: 720px) { .cta__in { flex-direction: column; align-items: flex-start; } }

.site-footer { --focus: #fff; background: var(--night); color: var(--on-dark-2); font-size: 0.9375rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.site-footer__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 32px 40px; padding-block: 64px 44px; }
.site-footer__name { color: #fff; font-weight: 700; font-size: 1.0625rem; margin-bottom: 10px; letter-spacing: 0.04em; }
.site-footer__name span { margin-left: 8px; font-weight: 400; font-size: 0.875rem; color: #8e95c4; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.site-footer__legal li + li { margin-top: 10px; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 30px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 0.875rem; color: #8e95c4; }
@media (max-width: 820px) { .site-footer__in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- mobile reading comfort ----------
   本文は 16px（最小 14px）、見出しは 20〜32px。ブロックの間隔を広めに取る。 */
@media (max-width: 640px) {
  h2 { font-size: 1.75rem; }
  .hero__lead { font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .pagehead__lead { font-size: 1rem; }
  .split { row-gap: 20px; }
  .split__body > * + * { margin-top: 20px; }
  .lede { margin-bottom: 32px; }
  .lede > p { font-size: 1rem; }
  .card { padding: 26px 22px 24px; }
  .checks { gap: 14px; }
  .facts dt { font-size: 2.25rem; }
  .quotes li { font-size: 1.0625rem; padding: 16px 0; }
  .approval { padding: 22px 20px; }
  .approval__meta { flex-direction: column; gap: 4px; }
  .cta__in { gap: 24px; }
  .cta .btn { width: 100%; }
  .guide > h2 { margin-top: 40px; }
  .guide__addr, .metro li { font-size: 1rem; }
  .metro li { align-items: flex-start; }
  .guide__map iframe { height: 360px; }
  .guide__company { padding: 22px 20px; }
  .site-footer__in { gap: 36px; padding-block: 56px 36px; }
  .site-footer__name span { display: block; margin: 2px 0 0; }
  .site-footer address { line-height: 2; }
  .site-footer__nav { gap: 14px 20px; }
  .site-footer__legal li + li { margin-top: 14px; }
  .site-footer__base { flex-direction: column; gap: 6px; padding-block: 20px 32px; }
}

@media print {
  .site-header, .cta, .nav-toggle { display: none; }
  .dark { background: #fff; color: #000; }
  .dark h1, .dark h2, .dark h3 { color: #000; }
}
