/* ==========================================================================
   合同会社Neo story
   概念: 「つなぐ」を主役に置く。背景のネットワーク場が全ページを貫き、
         スクロールとポインタに連動して密度・色・流速が変わる。
   制約: 外部フォント・外部スクリプトなし / ビルド不要 / 95KB級
   ========================================================================== */

:root {
  --void: #05060d;
  --void-2: #0d1024;
  --bone: #e9edf8;
  --bone-2: #f3f5fc;
  --ink: #0b0d18;
  --ink-soft: #3c4257;
  --muted: #8f98b6;
  --accent-text: #94aef5;
  --blue: #6f8dff;
  --glow: #9db8f0;
  --line-d: #1b2036;
  --line-l: #cdd3e6;

  --max: 1280px;
  --gut: 32px;

  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
          "Yu Gothic", Meiryo, sans-serif;
  --mono: "SFMono-Regular", "Menlo", "Consolas", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* 区画は斜めに出入りする。横へはみ出したぶんは画面の外として扱う */
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 820px; }

::selection { background: var(--blue); color: #fff; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   背景のネットワーク場
   ========================================================================== */

#field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.6s var(--ease) .2s;
}

.ready #field { opacity: 1; }

/* 明るい面。背景を覆い、ネットワークを透かさない */
.panel-light {
  position: relative; z-index: 1;
  background: rgba(8, 9, 18, .84); color: var(--bone);
}

/* 明るい地では、同じ色だと読みにくくなるため濃度を上げる（WCAG AA 4.5:1 を満たす） */
.panel-light {
  --ink: #e9edf8;
  --ink-soft: #b6bdd6;
  --muted: #8f98b6;
  --accent-text: #94aef5;
  --line-l: #232a45;
}


.panel-bone2 { background: rgba(12, 14, 28, .86); }

/* 暗い面。背景を透かす */
.panel-void { position: relative; z-index: 1; background: transparent; }

/* ==========================================================================
   読み込み画面
   ========================================================================== */

.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--void);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--gut); color: var(--bone);
  transition: transform 1.1s var(--ease-io);
}

.loader.done { transform: translateY(-100%); }

.loader .mark {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .3em;
  color: var(--muted);
}

.loader .count {
  font-family: var(--serif); font-size: clamp(4rem, 22vw, 13rem);
  line-height: .82; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}

.loader .bar {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 0; height: 1px;
  background: rgba(255,255,255,.14);
}

.loader .bar i {
  display: block; height: 100%; width: 100%; background: var(--blue);
  transform: scaleX(0); transform-origin: 0 50%;
}

.no-js .loader { display: none; }

/* ページ遷移の覆い */

.veil {
  position: fixed; inset: 0; z-index: 90; background: var(--void);
  transform: translateY(100%); pointer-events: none;
}

.veil.in { transform: translateY(0); transition: transform .72s var(--ease-io); }
.veil.out { transform: translateY(-100%); transition: transform .72s var(--ease-io); }

/* ==========================================================================
   カーソル（細かい操作ができる環境のみ）
   ========================================================================== */

.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none;
  border-radius: 50%; mix-blend-mode: difference; opacity: 0;
}

.cursor { width: 6px; height: 6px; background: #fff; margin: -3px 0 0 -3px; }

.cursor-ring {
  width: 42px; height: 42px; margin: -21px 0 0 -21px;
  border: 1px solid rgba(255,255,255,.55);
  transition: width .35s var(--ease), height .35s var(--ease),
              margin .35s var(--ease), border-color .35s var(--ease);
}

.has-cursor .cursor, .has-cursor .cursor-ring { opacity: 1; }

.has-cursor.hot .cursor-ring {
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-color: rgba(255,255,255,.9);
}

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* ==========================================================================
   進捗と目次
   ========================================================================== */

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 80;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--glow));
  pointer-events: none;
}

.rail {
  position: fixed; left: 22px; top: 50%; transform: translateY(-50%);
  z-index: 40; display: flex; flex-direction: column; gap: 16px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .18em;
  mix-blend-mode: difference; color: #fff;
}

.rail a {
  text-decoration: none; opacity: .38; display: flex; align-items: center; gap: 10px;
  transition: opacity .4s var(--ease);
}

.rail a i {
  display: block; width: 14px; height: 1px; background: currentColor;
  transition: width .5s var(--ease);
}

.rail a.on { opacity: 1; }
.rail a.on i { width: 34px; }

/* 横送りの区間では目次がカードに重なるため隠す */
body.in-pin .rail { opacity: 0; pointer-events: none; }
.rail { transition: opacity .5s var(--ease); }

@media (max-width: 1100px) { .rail { display: none; } }

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  mix-blend-mode: difference; color: #fff;
  transition: transform .5s var(--ease);
}

.site-header.hide { transform: translateY(-110%); }

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 90px;
}

.brand {
  text-decoration: none; font-family: var(--mono);
  font-size: .92rem; font-weight: 500; letter-spacing: .22em;
}

.brand em { font-style: normal; opacity: .55; }

.nav { display: flex; gap: 34px; align-items: center; }

.nav a {
  text-decoration: none; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase; position: relative; padding: 8px 0;
}

.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .5s var(--ease);
}

.nav a:hover::after, .nav a[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: 0 50%;
}

.burger {
  display: none; width: 46px; height: 46px; border: 0; background: none;
  padding: 0; cursor: pointer; margin-right: -12px;
}

.burger span {
  display: block; height: 1px; width: 26px; margin: 6px auto; background: #fff;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 全画面メニュー */

.drawer {
  position: fixed; inset: 0; z-index: 65; background: var(--void-2);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gut); visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-io), visibility 0s linear .8s;
}

.drawer.open {
  clip-path: inset(0 0 0 0); visibility: visible;
  transition: clip-path .8s var(--ease-io), visibility 0s;
}

.drawer nav { display: flex; flex-direction: column; }

.drawer nav a {
  font-family: var(--serif); font-size: clamp(1.9rem, 11vw, 3rem);
  text-decoration: none; padding: 14px 0; line-height: 1.25;
  border-bottom: 1px solid var(--line-d);
  display: flex; align-items: baseline; gap: 18px;
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.drawer nav a span {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; color: var(--muted);
}

.drawer.open nav a { opacity: 1; transform: none; }
.drawer.open nav a:nth-child(1) { transition-delay: .2s; }
.drawer.open nav a:nth-child(2) { transition-delay: .27s; }
.drawer.open nav a:nth-child(3) { transition-delay: .34s; }
.drawer.open nav a:nth-child(4) { transition-delay: .41s; }
.drawer.open nav a:nth-child(5) { transition-delay: .48s; }

body.locked { overflow: hidden; }

/* ==========================================================================
   文字
   ========================================================================== */

h1, h2, h3 {
  font-family: var(--serif); font-weight: 600;
  letter-spacing: .015em; line-height: 1.42; margin: 0;
}

h2 { font-size: clamp(1.7rem, 4.4vw, 3rem); line-height: 1.36; }
h3 { font-size: 1.12rem; }

.tag {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 26px; display: flex; align-items: center; gap: 16px;
}

.tag::after {
  content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 1.2s var(--ease) .1s;
}

.tag.is-in::after { transform: scaleX(1); }

.lead { color: var(--ink-soft); margin: 24px 0 0; max-width: 44em; }

.panel-void .lead { color: #a9b2c4; }

/* ==========================================================================
   出現の演出
   ========================================================================== */

.js [data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: .1s; }
.js [data-reveal][data-delay="2"] { transition-delay: .2s; }
.js [data-reveal][data-delay="3"] { transition-delay: .3s; }
.js [data-reveal][data-delay="4"] { transition-delay: .4s; }

/* 一文字ずつ */

.split { display: block; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split .c { display: inline-block; }

.js .split .c {
  transform: translateY(105%) rotate(4deg);
  transition: transform 1.1s var(--ease);
}

.js .split.is-in .c { transform: none; }

/* ==========================================================================
   ヒーロー
   ========================================================================== */

.hero {
  position: relative; z-index: 1; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 150px 0 120px;
}

.hero h1 {
  font-size: clamp(2rem, 6.6vw, 5rem);
  line-height: 1.2; letter-spacing: -.015em; margin: 0;
}

.hero h1 .l { display: block; }

/* 2行目はわずかに字下げして版面にリズムを作る */
.hero h1 .l:nth-child(2) { padding-left: .9em; }

.hero .sub {
  margin: 54px 0 0; display: grid; gap: 40px;
  grid-template-columns: 1fr minmax(0, 30em);
  align-items: end;
}

.hero .sub p { margin: 0; color: #a9b2c4; font-size: 1rem; }

.hero .idx {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .24em;
  color: var(--muted); text-transform: uppercase;
}

.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 34px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; font-family: var(--mono); font-size: .62rem;
  letter-spacing: .22em; color: var(--muted); text-transform: uppercase;
}

.hero-foot .line {
  display: block; width: 1px; height: 54px; background: rgba(255,255,255,.2);
  position: relative; overflow: hidden; margin: 0 auto 10px;
}

.hero-foot .line::after {
  content: ""; position: absolute; inset: 0; background: var(--glow);
  animation: drop 2.6s var(--ease-io) infinite;
}

@keyframes drop {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* 下層ページの見出し */

.page-head {
  position: relative; z-index: 1;
  padding: clamp(170px, 22vw, 260px) 0 clamp(80px, 10vw, 130px);
}

.page-head h1 {
  font-size: clamp(2rem, 6.6vw, 4.4rem); line-height: 1.2; margin: 0 0 26px;
}

.page-head p { color: #a9b2c4; max-width: 42em; margin: 0; }

/* ==========================================================================
   流れる帯
   ========================================================================== */

.marquee {
  position: relative; z-index: 1; overflow: hidden;
  border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d);
  padding: 26px 0; background: rgba(5,7,12,.55); backdrop-filter: blur(2px);
}

.marquee .track { display: flex; width: max-content; will-change: transform; }

.marquee span {
  font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 2rem);
  padding: 0 30px; white-space: nowrap; color: #cfd6e4;
}

.marquee span::after { content: "＋"; color: var(--blue); margin-left: 30px; }

/* ==========================================================================
   セクション
   ========================================================================== */

section { padding: clamp(90px, 11vw, 160px) 0; }

/* 指標 */

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 68px; border-top: 1px solid var(--line-l);
}

.panel-void .stats { border-color: var(--line-d); }

.stat { padding: 34px 0 0; border-right: 1px solid var(--line-l); padding-right: 26px; }
.stat:last-child { border-right: 0; }

.panel-void .stat { border-color: var(--line-d); }

.stat .num {
  font-family: var(--serif); font-size: clamp(2.4rem, 5.6vw, 4rem);
  line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}

.stat .num em { font-style: normal; font-size: .42em; margin-left: .12em; color: var(--accent-text); }

.stat .cap { font-size: .82rem; color: var(--muted); margin-top: 16px; }

/* ==========================================================================
   横に流れるサービス（画面に留めて横送り）
   ========================================================================== */

.pin { position: relative; z-index: 1; }

.pin-stage {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}

.pin-head {
  padding: 0 var(--gut); max-width: var(--max); margin: 0 auto 44px; width: 100%;
}

.pin-track {
  display: flex; gap: 24px; padding: 0 var(--gut);
  will-change: transform;
}

.panelcard {
  flex: 0 0 min(420px, 78vw); min-height: 46svh;
  border: 1px solid var(--line-d); padding: 40px 34px;
  display: flex; flex-direction: column; gap: 16px;
  background: rgba(10,14,22,.66); backdrop-filter: blur(3px);
  transition: border-color .5s var(--ease), background .5s var(--ease);
}

.panelcard:hover { border-color: var(--blue); background: rgba(16,24,42,.8); }

.panelcard .no {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .24em; color: var(--accent-text);
}

.panelcard h3 { font-size: 1.34rem; }
.panelcard p { margin: 0; color: #a2abbd; font-size: .93rem; line-height: 1.9; }

.pin-hint {
  margin-top: 34px; padding: 0 var(--gut); max-width: var(--max);
  margin-left: auto; margin-right: auto; width: 100%;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .2em;
  color: var(--muted); text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
}

.pin-hint b { display: block; height: 1px; flex: 1; background: var(--line-d); position: relative; }
.pin-hint b i {
  position: absolute; left: 0; top: 0; height: 100%; width: 100%;
  background: var(--blue); transform: scaleX(0); transform-origin: 0 50%;
}

/* 横送りが使えない画面では縦に積む */

.pin.stack .pin-stage { position: static; height: auto; display: block; }
.pin.stack .pin-track { flex-direction: column; transform: none !important; }
.pin.stack .panelcard { flex: none; width: 100%; min-height: 0; }
.pin.stack .pin-hint { display: none; }

/* ==========================================================================
   一覧（考え方・実績）
   ========================================================================== */

.rows { margin-top: 68px; border-top: 1px solid var(--line-l); }
.panel-void .rows { border-color: var(--line-d); }

.row {
  display: grid; grid-template-columns: 96px 1fr minmax(0, 34em);
  gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--line-l);
  position: relative; align-items: start;
}

.panel-void .row { border-color: var(--line-d); }

.row::before {
  content: ""; position: absolute; left: -20px; right: -20px; top: 0; bottom: 0;
  background: rgba(226,138,108,.07); opacity: 0; transition: opacity .5s var(--ease);
  pointer-events: none;
}

.row:hover::before { opacity: 1; }

.row .n {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .2em;
  color: var(--accent-text); padding-top: 8px;
}

.row h3 { font-size: 1.28rem; }

.row .meta {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-top: 12px;
}

.row .body { color: var(--ink-soft); font-size: .94rem; }
.panel-void .row .body { color: #a2abbd; }

.row dl { margin: 0; }
.row dt {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin-top: 18px;
}
.row dt:first-child { margin-top: 0; }
.row dd { margin: 6px 0 0; }

/* ==========================================================================
   表
   ========================================================================== */

.table-scroll { overflow-x: auto; margin-top: 52px; -webkit-overflow-scrolling: touch; }

table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .94rem; }

th, td {
  border-bottom: 1px solid var(--line-l); padding: 20px 22px;
  text-align: left; vertical-align: top;
}

.panel-void th, .panel-void td { border-color: var(--line-d); }
thead th, .panel-void thead th { border-bottom-color: currentColor; }

thead th {
  border-bottom-width: 1px; border-bottom-color: currentColor;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; font-weight: 500; color: var(--muted);
}

tbody th { width: 28%; font-weight: 600; }

.price { font-family: var(--serif); font-size: 1.34rem; white-space: nowrap; }

/* ==========================================================================
   ボタン
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 18px;
  text-decoration: none; padding: 20px 34px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; border: 1px solid currentColor;
  position: relative; overflow: hidden; isolation: isolate;
  background: none; cursor: pointer; color: inherit;
  transition: color .5s var(--ease);
}

.btn::before {
  content: ""; position: absolute; inset: 0; background: currentColor;
  transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1;
}

.btn:hover::before { transform: none; }
.panel-light .btn:hover { color: var(--void); }
.panel-void .btn:hover, .hero .btn:hover, .cta .btn:hover { color: var(--void); }

.btn i { display: block; width: 22px; height: 1px; background: currentColor; flex: none;
  transition: width .5s var(--ease); }

.btn:hover i { width: 34px; }

.btn-row { margin-top: 56px; display: flex; gap: 18px; flex-wrap: wrap; }

/* ==========================================================================
   結び
   ========================================================================== */

.cta { position: relative; z-index: 1; text-align: center; }

.cta h2 { font-size: clamp(2rem, 7vw, 4.6rem); line-height: 1.24; }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .btn-row { justify-content: center; }

/* ==========================================================================
   フォーム
   ========================================================================== */

form { margin-top: 56px; max-width: 720px; }

label {
  display: block; margin: 34px 0 12px; font-family: var(--mono);
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}

.req { color: #ff6b6b; margin-left: 10px; }

input, textarea, select {
  width: 100%; padding: 14px 2px; border: 0;
  border-bottom: 1px solid #65729f; background: transparent;
  color: inherit; font: inherit; border-radius: 0;
  transition: border-color .4s var(--ease);
}

input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--blue); }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px;
}

select option { background: var(--void-2); color: var(--bone); }

textarea { min-height: 150px; resize: vertical; }

.form-note { color: var(--muted); font-size: .84rem; margin-top: 30px; }
.form-msg { margin-top: 30px; font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; }
.form-msg.ok { color: var(--glow); }
.form-msg.ng { color: #ff6b6b; }

/* ==========================================================================
   フッター
   ========================================================================== */

.site-footer {
  position: relative; z-index: 1; padding: 100px 0 48px;
  border-top: 1px solid var(--line-d); color: var(--muted); font-size: .86rem;
}

.site-footer a { color: #cfd6e4; text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }

.footer-nav { display: flex; gap: 30px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; }

.footer-bottom {
  margin-top: 72px; padding-top: 26px; border-top: 1px solid var(--line-d);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
}

/* ==========================================================================
   画面幅
   ========================================================================== */

@media (max-width: 1000px) {
  .row { grid-template-columns: 64px 1fr; }
  .row .body { grid-column: 1 / -1; }
  .hero .sub { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 860px) {
  :root { --gut: 22px; }
  .nav { display: none; }
  .burger { display: block; }
  .site-header .wrap { min-height: 72px; }
  .hero { min-height: 94svh; padding: 132px 0 110px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; line-height: 1.86; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-l); padding-bottom: 26px; }
  .panel-void .stat { border-color: var(--line-d); }
  .stat:last-child { border-bottom: 0; }
  .btn { width: 100%; justify-content: space-between; padding: 18px 24px; }
  .btn-row { flex-direction: column; }
  .row { grid-template-columns: 1fr; gap: 10px; padding: 32px 0; }
  .row .n { padding-top: 0; }
  .tag { flex-wrap: wrap; }
  .tag::after { display: none; }
  section { padding: 76px 0; }
  .footer-top { flex-direction: column; gap: 30px; }
  th, td { padding: 15px 14px; }
}

/* ==========================================================================
   動きを控える設定
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .split .c { transform: none; }
  .tag::after { transform: scaleX(1); }
  .loader { display: none; }
  #field { opacity: 1; }
  .pin .pin-stage { position: static; height: auto; display: block; }
  .pin .pin-track { flex-direction: column; transform: none !important; }
  .pin .panelcard { flex: none; width: 100%; min-height: 0; }
  .pin-hint { display: none; }
}

/* --- 文書ページの箇条書き（privacy） --------------------------------------- */
.doc-list { margin: 22px 0 0; padding: 0; list-style: none; }
.doc-list li {
  position: relative; padding-left: 22px; margin-top: 12px;
  font-size: .98rem; line-height: 1.9; color: var(--ink-soft);
}
.doc-list li::before {
  content: ""; position: absolute; left: 0; top: .82em;
  width: 10px; height: 1px; background: var(--blue);
}

/* --- 対応業界（トップ 01 Track Record） --------------------------------- */
.ind {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1.35;
  letter-spacing: .01em; color: var(--ink);
}
.panel-void .ind { color: var(--bone); }

/* 8枚を4列2段で揃える。段ごとに区切り線を引く */
.stats.inds { grid-template-columns: repeat(4, 1fr); border-top: 0; }
.stats.inds .stat { border-top: 1px solid var(--line-l); padding-bottom: 30px; }
.panel-void .stats.inds .stat { border-color: var(--line-d); }
.stats.inds .stat:nth-child(4n) { border-right: 0; }

@media (max-width: 1000px) {
  .stats.inds { grid-template-columns: repeat(2, 1fr); }
  .stats.inds .stat { border-right: 1px solid var(--line-l); }
  .stats.inds .stat:nth-child(2n) { border-right: 0; }
}

@media (max-width: 620px) {
  .ind { font-size: 1.3rem; }
  .stats.inds { grid-template-columns: 1fr; }
  .stats.inds .stat { border-right: 0; border-bottom: 0; padding-bottom: 24px; }
  .stats.inds .stat:last-child { border-bottom: 0; }
}

/* --- 到達性: スキップリンクとフォーカス表示 ------------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  padding: 12px 20px; background: var(--blue); color: #fff;
  font-size: .9rem; text-decoration: none; border-radius: 2px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }
#main:focus { outline: none; }

a:focus-visible, button:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px;
}
.panel-void a:focus-visible, .site-header a:focus-visible,
.site-footer a:focus-visible, .burger:focus-visible {
  outline-color: var(--glow);
}

/* --- 印刷 ------------------------------------------------------------------ */
@media print {
  .loader, .veil, #field, .cursor, .cursor-ring, .progress,
  .site-header, .drawer, .marquee, .skip-link, .btn-row { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .panel-void, .panel-light, section, main, .wrap {
    background: #fff !important; color: #000 !important;
  }
  h1, h2, h3, .ind, .num { color: #000 !important; }
  .lead, .cap, p { color: #222 !important; }
  a { color: #000 !important; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  section { padding: 18pt 0 !important; page-break-inside: avoid; }
  table { page-break-inside: avoid; }
  .site-footer { border-top: 1px solid #999; padding-top: 12pt; }
}

/* --- フォーム: 誤りのある欄と送信中の状態 ---------------------------------- */
input.invalid, textarea.invalid, select.invalid {
  border-bottom: 2px solid #d93a3a;
  background: rgba(217, 58, 58, .07);
}
.btn[disabled] { opacity: .55; cursor: progress; pointer-events: none; }
.form-msg.ng { color: #ff6b6b; line-height: 1.8; }

/* --- 文書ページ: 小見出しの間隔 -------------------------------------------- */
.narrow h3 { margin: 40px 0 0; color: var(--ink); }
.panel-void .narrow h3 { color: var(--bone); }
.narrow h3 + p, .narrow h3 + .doc-list { margin-top: 12px; }

/* --- スクロール追従の区間 ---------------------------------------------------
   外側の高さで「スクロールできる長さ」を決め、内側を画面に貼り付ける。
   JavaScript が進捗を --p（0〜1）として外側に書き込む。 */
.scrub { position: relative; height: calc((1 + var(--len, 3)) * 100svh); }

.scrub-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; place-items: center; overflow: hidden;
}

.scrub-stage .scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

.scrub-copy {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gut);
  pointer-events: none;
}

/* 二つの文面を同じ位置に重ね、進捗で入れ替える。
   高さは長いほうに合わせて確保するので、入れ替わっても行が動かない */
.phases { position: relative; min-height: 15em; }
.scrub-copy .phase { position: absolute; left: 0; right: 0; top: 0; max-width: 46%; }
.scrub-copy .phase h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.26; margin: 0; }
.scrub-copy .phase p { margin: 20px 0 0; color: var(--muted); }

@media (max-width: 999px) {
  .scrub-stage { place-items: start center; }
  .scrub-copy { padding-top: 17svh; }
  .scrub-copy .phase { max-width: none; }
  .phases { min-height: 13em; }
}

/* 前半が消えきる直前から後半が現れる。文章が一切ない区間を作らない */
.scrub-copy .p1 {
  opacity: calc(1 - var(--p, 0) * 2.3);
  transform: translateY(calc(var(--p, 0) * -30px));
}
.scrub-copy .p2 {
  opacity: calc((var(--p, 0) - 0.38) * 3.1);
  transform: translateY(calc((1 - var(--p, 0)) * 30px));
}

/* 区間の進み具合を示す細い線 */
.scrub-bar {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 46px;
  height: 1px; background: var(--line-d); z-index: 2;
}
.scrub-bar i {
  position: absolute; inset: 0; background: var(--blue);
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
}

@media (max-width: 860px) {
  .scrub { height: calc((1 + var(--len-sm, 2.4)) * 100svh); }
  .scrub-copy .phase p { font-size: .94rem; }
}

/* 動きを減らす設定では、貼り付けも進捗も使わず結論だけを見せる */
@media (prefers-reduced-motion: reduce) {
  .scrub { height: auto; }
  .scrub-stage { position: static; height: auto; padding: 96px 0; }
  .scrub-stage .scene { position: relative; height: 46svh; }
  .scrub-copy .phase { position: static; }
  .scrub-copy .p1 { display: none; }
  .scrub-copy .p2 { opacity: 1; transform: none; }
  .scrub-bar { display: none; }
}

/* --- トップ: カード送りの周辺 ---------------------------------------------
   読むものは 3D のカードに載る。DOM は行き先の一覧と合図だけを持つ。 */
.sr {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

#home-track { height: 520svh; }

.seek {
  position: fixed; z-index: 4;
  left: var(--gut); bottom: 46px;
  display: flex; flex-direction: column; gap: 13px;
}
.seek-q {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .22em;
  color: #b9c2de; margin: 0 0 6px; text-transform: uppercase;
}
.seek a {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .18em;
  color: #97a4cf; text-decoration: none;
  transition: color .4s var(--ease), transform .4s var(--ease);
}
.seek a i { font-style: normal; color: #6d7aad; margin-right: 8px; transition: color .4s var(--ease); }
.seek a:hover, .seek a:focus-visible { color: #e9edfa; transform: translateX(4px); }
.seek a:hover i { color: var(--glow); }

.scrollhint {
  position: fixed; z-index: 4; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  font-family: var(--mono); font-size: .6rem; letter-spacing: .34em;
  color: #7d89b5; margin: 0;
  animation: hintpulse 2.6s ease-in-out infinite;
}
@keyframes hintpulse {
  0%, 100% { opacity: .4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(5px); }
}
@media (prefers-reduced-motion: reduce) { .scrollhint { animation: none; } }

/* --- 夜間レビューの反映 ----------------------------------------------------- */
/* 下層でヘッダーが本文に重ならないよう、降りたら地を敷く */
.site-header.solid { background: rgba(5, 6, 13, .82); backdrop-filter: blur(9px); }

/* 左下の一覧: いま見ているカードが灯る */
.seek a.on { color: #e9edfa; }
.seek a.on i { color: var(--glow); }

/* SCROLL の合図: 終端では消える */
.scrollhint { transition: opacity .6s var(--ease); }
.scrollhint.off { opacity: 0 !important; animation: none; }

/* 動きを抑える設定: 意味のないスクロールの長さを持たせない */
@media (prefers-reduced-motion: reduce) {
  #home-track { height: 0; }
  .scrollhint { display: none; }
}



/* 終端では行き先一覧も引く。フッターと重ねない */
.seek { transition: opacity .5s var(--ease); }
.seek.off { opacity: 0; pointer-events: none; }

/* 動きを抑える設定では、一覧と合図は出さない（本文とフッターが担う） */
@media (prefers-reduced-motion: reduce) { .seek { display: none; } }

/* ==========================================================================
   窓（win）— 1画面完結のページ
   参照の文法: 左列に題名・メタ・本文・リンク、右に内容の面。
   ページスクロールは存在せず、送る操作は「閉じてトップへ戻る」。
   ========================================================================== */

body.winpage .site-footer { display: none; }
body.winpage { height: 100svh; overflow: hidden; }

.win {
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-content: center;
  padding: 108px var(--gut) 56px;
  max-width: var(--max); margin: 0 auto;
  position: relative; z-index: 1;
}

/* --- 左列 ------------------------------------------------------------------ */
.win-side { display: flex; flex-direction: column; justify-content: center; min-width: 0; }

.win-meta {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; margin: 0 0 22px;
  color: var(--muted);
}
.win-meta b { color: var(--accent-text); font-weight: 500; }
.win-meta span { color: #6d7aad; padding: 0 .5em; }

.win-side h1 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.3; margin: 0 0 24px; letter-spacing: .02em;
}

.win-side .lead { font-size: .95rem; line-height: 2; margin: 0 0 30px; }

.win-links { display: flex; flex-direction: column; gap: 12px; }
.win-links a {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em;
  color: var(--accent-text); text-decoration: underline;
  text-underline-offset: 4px; width: fit-content;
}
.win-links a:hover { color: var(--bone); }
.win-close {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em;
  color: var(--muted); text-decoration: none; margin-top: 26px; width: fit-content;
}
.win-close:hover { color: var(--bone); }

.win-legal { margin-top: 34px; display: flex; gap: 18px; }
.win-legal a {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .2em;
  color: #5f6a94; text-decoration: none; text-transform: uppercase;
}
.win-legal a:hover { color: var(--muted); }

/* --- 右の面 ---------------------------------------------------------------- */
.win-main { min-width: 0; display: flex; flex-direction: column; justify-content: center; }

/* 事業の箱。2×2 */
.win-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wbox {
  position: relative;
  border: 1px solid rgba(150, 165, 215, .2);
  background: rgba(9, 10, 22, .58);
  border-radius: 10px;
  padding: 22px 24px 20px;
  overflow: hidden;
}
.wbox::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--bx, var(--blue));
  opacity: .85;
}
.wbox .no {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .22em;
  color: var(--bx, var(--accent-text)); margin-bottom: 10px;
}
.wbox h2 { font-size: 1.14rem; margin: 0 0 10px; letter-spacing: .02em; }
.wbox p { font-size: .8rem; line-height: 1.85; color: var(--ink-soft); margin: 0 0 12px; }
.wbox .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wbox .tags i {
  font-style: normal; font-family: var(--mono); font-size: .6rem;
  letter-spacing: .1em; color: var(--muted);
  border: 1px solid rgba(150, 165, 215, .22); border-radius: 999px;
  padding: 3px 9px;
}
.wbox .note { font-size: .68rem; color: var(--muted); margin: 10px 0 0; }

/* 一覧の行（実績など） */
.win-rows { display: flex; flex-direction: column; }
.wrow {
  display: grid; grid-template-columns: 150px 1fr;
  gap: 18px; align-items: baseline;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(150, 165, 215, .14);
}
.wrow:first-child { border-top: 1px solid rgba(150, 165, 215, .14); }
.wrow .k {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .14em;
  color: var(--accent-text);
}
.wrow .v { font-size: .86rem; color: var(--ink); }
.wrow .s { font-size: .72rem; color: var(--muted); margin-left: 10px; }

/* 詳細ページのある行。押せることが分かるようにする */
a.wrow {
  grid-template-columns: 150px 1fr auto;
  text-decoration: none; cursor: pointer;
  transition: background .35s var(--ease), padding-left .35s var(--ease);
}
a.wrow:hover, a.wrow:focus-visible { background: rgba(111, 141, 255, .07); padding-left: 12px; }
a.wrow .go {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em;
  color: var(--muted); white-space: nowrap;
  opacity: .55; transition: opacity .35s var(--ease), color .35s var(--ease);
}
a.wrow:hover .go, a.wrow:focus-visible .go { opacity: 1; color: var(--accent-text); }
a.wrow .go::after { content: " ->"; }
@media (max-width: 720px) {
  a.wrow { grid-template-columns: 150px 1fr; }
  a.wrow .go { display: none; }
}

/* 経歴の段 */
.win-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.wstep {
  border: 1px solid rgba(150, 165, 215, .18); border-radius: 10px;
  background: rgba(9, 10, 22, .55); padding: 16px 18px;
}
.wstep .no { font-family: var(--mono); font-size: .6rem; color: var(--accent-text); letter-spacing: .2em; margin-bottom: 8px; }
.wstep h3 { font-size: .88rem; margin: 0 0 6px; line-height: 1.5; }
.wstep p { font-size: .7rem; line-height: 1.7; color: var(--muted); margin: 0; }

/* 事業者情報のコンパクト表 */
.win-table { border-top: 1px solid rgba(150, 165, 215, .16); }
.win-table .wrow { grid-template-columns: 96px 1fr; padding: 10px 4px; }
.win-table .k { color: var(--muted); }
.win-table .v { font-size: .78rem; }

/* 内部スクロールの文書面（Privacy / Policy） */
.win-pane {
  max-height: calc(100svh - 240px);
  overflow-y: auto;
  padding: 6px 26px 40px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(150,165,215,.35) transparent;
  border-top: 1px solid rgba(150, 165, 215, .18);
  border-bottom: 1px solid rgba(150, 165, 215, .18);
}
.win-pane h2 { font-size: 1.15rem; margin: 34px 0 12px; }
.win-pane h2:first-child { margin-top: 18px; }
.win-pane p, .win-pane li { font-size: .82rem; line-height: 1.95; color: var(--ink-soft); }
.win-pane table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.win-pane th, .win-pane td {
  text-align: left; font-size: .78rem; padding: 8px 10px 8px 0;
  border-bottom: 1px solid rgba(150,165,215,.14); color: var(--ink-soft);
}
.win-pane th { color: var(--muted); font-weight: 500; white-space: nowrap; }

/* フォーム面 */
.win-form .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.win-form label { margin-top: 14px; }
.win-form textarea { min-height: 96px; resize: none; }
.win-form .btn-row { margin-top: 22px; }
.win-form .form-note { margin-top: 16px; font-size: .68rem; }

/* --- 閉じる合図 ------------------------------------------------------------ */
.closehint {
  position: fixed; z-index: 5; left: 50%; top: 76px; transform: translateX(-50%);
  font-family: var(--mono); font-size: .58rem; letter-spacing: .3em;
  color: #7d89b5; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  pointer-events: none;
}
.closehint i {
  display: block; width: 84px; height: 1px;
  background: rgba(150, 165, 215, .25); position: relative; overflow: hidden;
}
.closehint i::after {
  content: ""; position: absolute; inset: 0;
  background: var(--glow);
  transform: scaleX(var(--cp, 0)); transform-origin: 0 50%;
}

/* --- 狭い画面 --------------------------------------------------------------
   1画面厳守は現実的でないため、窓の中だけ縦に流す */
@media (max-width: 960px) {
  body.winpage { height: auto; overflow: visible; }
  .win { height: auto; min-height: 100svh; grid-template-columns: 1fr; gap: 30px; padding-top: 96px; }
  .win-grid { grid-template-columns: 1fr; }
  .win-steps { grid-template-columns: 1fr; }
  .wrow { grid-template-columns: 108px 1fr; }
  .closehint { display: none; }
  body.winpage .site-footer { display: block; }
}

/* --- 窓のページは、演出なしで一枚の面として即座に見せる ---------------------
   出現演出は初回付与時に発火しない競合があり、窓では価値も薄い */
body.winpage [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
body.winpage .split .c { opacity: 1 !important; transform: none !important; transition: none !important; }
body.winpage .split .w { display: inline; white-space: normal; overflow: visible; }

/* --- 窓の可読性 -------------------------------------------------------------
   背景に星と粒子が動くため、灰色の文字が沈む。窓の中は明度を一段上げる */
.win .lead { color: #c9d0e6; }
.win-meta { color: #a7b0cc; }
.wbox { background: rgba(8, 9, 20, .78); }
.wbox p { color: #ccd3e8; }
.wbox .tags i { color: #b9c2dc; border-color: rgba(170, 184, 226, .34); }
.wbox .note { color: #aab3d0; }
.wrow .v { color: #eef1fa; }
.wrow .s { color: #a7b0cc; }
.wrow .k { color: #a8bcf8; }
.wstep { background: rgba(8, 9, 20, .78); }
.wstep p { color: #aab3d0; }
.win-table .k { color: #a7b0cc; }
.win-table .v { color: #dfe4f2; }
.win-pane p, .win-pane li { color: #c6cde4; }
.win-pane th { color: #a7b0cc; }
.win-pane td { color: #c6cde4; }
.win-form label { color: #b7c0da; }
.win-form .form-note { color: #a7b0cc; }
.win-close { color: #a7b0cc; }
.win-legal a { color: #8791b8; }

/* 行き先一覧は画面に出さない（2026-08-23 ユーザー指示）。
   カードのクリック機構と読み上げ・検索のための実体としてだけ残す */
.seek { display: none !important; }

/* ==========================================================================
   ケーススタディ。1画面に収め、章は横並びの見出しで切り替える
   ========================================================================== */
.case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(150,165,215,.16); border: 1px solid rgba(150,165,215,.16);
  margin: 0 0 26px; }
.case-facts div { background: rgba(9,10,22,.75); padding: 11px 13px; }
.case-facts dt { font-family: var(--mono); font-size: .55rem; letter-spacing: .16em;
  color: var(--muted); margin: 0 0 5px; }
.case-facts dd { margin: 0; font-size: .74rem; line-height: 1.5; color: var(--ink); }

.tabs { display: flex; flex-direction: column; min-height: 0; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }

.tabbar { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px;
  border-bottom: 1px solid rgba(150,165,215,.16); padding-bottom: 12px; }
.tabbar label {
  display: inline-flex; align-items: baseline; gap: 7px; cursor: pointer;
  padding: 7px 13px; border: 1px solid rgba(150,165,215,.16); border-radius: 999px;
  font-size: .76rem; color: var(--muted); letter-spacing: .04em; white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.tabbar label b { font-family: var(--mono); font-size: .56rem; letter-spacing: .12em;
  color: #6d7aad; font-weight: 400; transition: color .3s var(--ease); }
.tabbar label:hover { color: var(--bone); border-color: rgba(150,165,215,.34); }

#ct0:checked ~ .tabbar label[for="ct0"], #ct1:checked ~ .tabbar label[for="ct1"],
#ct2:checked ~ .tabbar label[for="ct2"], #ct3:checked ~ .tabbar label[for="ct3"],
#ct4:checked ~ .tabbar label[for="ct4"], #ct5:checked ~ .tabbar label[for="ct5"],
#ct6:checked ~ .tabbar label[for="ct6"] {
  color: var(--void); background: var(--glow); border-color: var(--glow);
}
#ct0:checked ~ .tabbar label[for="ct0"] b, #ct1:checked ~ .tabbar label[for="ct1"] b,
#ct2:checked ~ .tabbar label[for="ct2"] b, #ct3:checked ~ .tabbar label[for="ct3"] b,
#ct4:checked ~ .tabbar label[for="ct4"] b, #ct5:checked ~ .tabbar label[for="ct5"] b,
#ct6:checked ~ .tabbar label[for="ct6"] b { color: rgba(5,6,13,.62); }
#ct0:focus-visible ~ .tabbar label[for="ct0"], #ct1:focus-visible ~ .tabbar label[for="ct1"],
#ct2:focus-visible ~ .tabbar label[for="ct2"], #ct3:focus-visible ~ .tabbar label[for="ct3"],
#ct4:focus-visible ~ .tabbar label[for="ct4"], #ct5:focus-visible ~ .tabbar label[for="ct5"],
#ct6:focus-visible ~ .tabbar label[for="ct6"] { outline: 2px solid var(--blue); outline-offset: 3px; }

.panes { position: relative; min-height: 0; overflow-y: auto; padding-right: 4px; }
.panes::-webkit-scrollbar { width: 4px; }
.panes::-webkit-scrollbar-thumb { background: rgba(150,165,215,.2); border-radius: 4px; }
.pane { display: none; animation: paneIn .5s var(--ease) both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
#ct0:checked ~ .panes .pane:nth-of-type(1), #ct1:checked ~ .panes .pane:nth-of-type(2),
#ct2:checked ~ .panes .pane:nth-of-type(3), #ct3:checked ~ .panes .pane:nth-of-type(4),
#ct4:checked ~ .panes .pane:nth-of-type(5), #ct5:checked ~ .panes .pane:nth-of-type(6),
#ct6:checked ~ .panes .pane:nth-of-type(7) { display: block; }

.pane .phead { font-family: var(--serif); font-size: 1.18rem; line-height: 1.6;
  color: var(--ink); margin: 0 0 14px; letter-spacing: .02em; }
.pane .phead2 { font-family: var(--serif); font-size: .98rem; color: var(--ink);
  margin: 24px 0 12px; letter-spacing: .02em; }
.pane p { font-size: .8rem; line-height: 1.95; color: var(--ink-soft); margin: 0 0 12px; }
.pane em { font-style: normal; color: var(--ink); font-weight: 600; }
.pane .pfoot { font-size: .74rem; line-height: 1.9; color: var(--muted);
  margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(150,165,215,.14); }
.pane .pfoot.note { font-size: .68rem; line-height: 1.85; }

/* 00 全体像 */
.ba { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: stretch; margin: 0 0 16px; }
.ba-col { border: 1px solid rgba(150,165,215,.18); padding: 15px 17px; background: rgba(9,10,22,.6); }
.ba-col b { display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .18em;
  margin: 0 0 10px; font-weight: 400; }
.ba-before b { color: #b98a8a; }
.ba-after { border-color: rgba(111,141,255,.36); background: rgba(20,26,58,.6); }
.ba-after b { color: var(--accent-text); }
.ba-col ul { margin: 0; padding: 0; list-style: none; }
.ba-col li { font-size: .74rem; line-height: 1.75; color: var(--ink-soft);
  padding: 0 0 0 13px; margin: 0 0 8px; position: relative; }
.ba-col li:last-child { margin-bottom: 0; }
.ba-col li::before { content: ""; position: absolute; left: 0; top: .72em;
  width: 5px; height: 1px; background: currentColor; opacity: .5; }
.ba-arrow { position: relative; }
.ba-arrow::before { content: ""; position: absolute; top: 50%; left: 8px; right: 8px;
  height: 1px; background: linear-gradient(90deg, rgba(150,165,215,.3), var(--blue)); }
.ba-arrow::after { content: ""; position: absolute; top: 50%; right: 8px;
  width: 5px; height: 5px; border-top: 1px solid var(--blue); border-right: 1px solid var(--blue);
  transform: translateY(-50%) rotate(45deg); }

.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.kpis div { border: 1px solid rgba(150,165,215,.16); padding: 12px 8px; text-align: center;
  background: rgba(9,10,22,.55); }
.kpis b { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1;
  color: var(--glow); font-weight: 500; margin: 0 0 6px; }
.kpis span { font-size: .62rem; line-height: 1.4; color: var(--muted); display: block; }

/* 01 課題 */
.sym { display: grid; gap: 7px; margin: 4px 0 0; }
.sym div { border-left: 2px solid rgba(150,165,215,.28); padding: 8px 0 8px 14px;
  font-size: .76rem; line-height: 1.8; color: var(--ink-soft); }
.sym b { font-family: var(--mono); font-size: .58rem; letter-spacing: .12em;
  color: var(--accent-text); display: block; margin: 0 0 3px; font-weight: 400; }
.pane .pull { border-left: 2px solid var(--blue); padding: 3px 0 3px 18px; margin: 18px 0 0; }
.pane .pull p { font-family: var(--serif); font-size: .95rem; line-height: 1.85;
  color: var(--ink); margin: 0; }

/* 02 進め方 */
.pane .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 0; }
.pane .step { border: 1px solid rgba(150,165,215,.18); padding: 15px 16px;
  background: rgba(9,10,22,.6); }
.pane .step b { display: block; font-family: var(--mono); font-size: .56rem; letter-spacing: .12em;
  color: var(--accent-text); margin: 0 0 8px; font-weight: 400; }
.pane .step h3 { font-size: .86rem; margin: 0 0 8px; font-weight: 600; color: var(--ink);
  letter-spacing: .02em; line-height: 1.5; }
.pane .step p { font-size: .72rem; line-height: 1.8; margin: 0; }

/* 03 分析の設計 */
.tbl { overflow-x: auto; margin: 4px 0 0; }
.pane table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .72rem; }
.pane th, .pane td { border: 1px solid rgba(150,165,215,.16); padding: 9px 11px;
  text-align: left; vertical-align: top; line-height: 1.7; }
.pane th { background: rgba(111,141,255,.1); color: var(--ink); font-weight: 600;
  font-size: .66rem; letter-spacing: .04em; }
.pane td { color: var(--ink-soft); }
.pane td b { color: var(--ink); font-weight: 600; }

/* 04 絞り込み */
.layers { display: grid; gap: 6px; margin: 4px 0 0; }
.layer { border: 1px solid rgba(150,165,215,.18); padding: 11px 15px;
  background: rgba(9,10,22,.55); display: grid; grid-template-columns: 128px 1fr; gap: 14px;
  align-items: baseline; }
.layer b { font-size: .8rem; color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.layer span { font-size: .72rem; line-height: 1.75; color: var(--ink-soft); }
.layer.l2 { margin-right: 7%; border-color: rgba(111,141,255,.26); }
.layer.l3 { margin-right: 14%; border-color: rgba(157,184,240,.42); background: rgba(20,26,58,.6); }

.pane .list { margin: 4px 0 0; padding: 0; list-style: none; }
.pane .list li { position: relative; padding: 0 0 0 20px; margin: 0 0 9px;
  font-size: .75rem; line-height: 1.85; color: var(--ink-soft); }
.pane .list li::before { content: ""; position: absolute; left: 2px; top: .82em;
  width: 8px; height: 1px; background: var(--accent-text); }
.pane .list li b { color: var(--ink); font-weight: 600; margin-right: .6em; }
.pane .list-lg li { font-size: .78rem; margin-bottom: 13px; }
.pane .list-lg li b { display: block; margin: 0 0 3px; }

/* 05 成果物 */
.pane .deliv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 4px 0 0; }
.pane .deliv div { border: 1px solid rgba(150,165,215,.18); padding: 13px 15px;
  font-size: .71rem; line-height: 1.75; color: var(--ink-soft); background: rgba(9,10,22,.55); }
.pane .deliv div b { display: block; color: var(--ink); font-weight: 600;
  margin: 0 0 5px; font-size: .78rem; }

@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .pane .deliv { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .ba { grid-template-columns: 1fr; gap: 8px; }
  .ba-arrow { display: none; }
  .pane .steps { grid-template-columns: 1fr; }
  .pane .deliv { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .layer { grid-template-columns: 1fr; gap: 4px; }
  .layer.l2, .layer.l3 { margin-right: 0; }
  .tabbar label { font-size: .7rem; padding: 6px 10px; }
}


/* --- ケースの面は、暗い地に載るため文字色トークンを明るい側へ振る --- */
.win-case {
  --ink: #eef1fa;
  --ink-soft: #c9d0e6;
  --muted: #a7b0cc;
  --accent-text: #a8bcf8;
}
.win-case .pane p { color: var(--ink-soft); }
.win-case .pane em, .win-case .pane td b, .win-case .pane .list li b { color: #f2f4fc; }
.win-case .tabbar label { color: #b9c2dc; border-color: rgba(170,184,226,.3); }
.win-case .tabbar label b { color: #8f9bc4; }
.win-case .case-facts dd { color: #e4e8f6; }
.win-case .case-facts dt { color: #a7b0cc; }
.win-case .kpis span { color: #b0b9d5; }
.win-case .pane .pfoot { color: #b0b9d5; }


/* --- ケースの面の調整（2026-08-27）------------------------------------------
   1. 章を切り替えても見出しの位置が動かないよう、上詰めにして高さを固定する
   2. 文字が小さく感じられたため、全体に一段大きくする
   3. 守秘の注記は左列の最下部に置く */

/* 1. 上詰め。タブ帯の位置を固定し、切り替え時に上の空きが動かないようにする */
.win-case .win-main { justify-content: flex-start; }
.win-case .tabs { height: 100%; }
.win-case .panes { flex: 1 1 auto; }
.win-case .tabbar { flex: 0 0 auto; }

/* 2. 文字を一段大きく */
.win-case .tabbar label { font-size: .84rem; padding: 8px 15px; gap: 8px; }
.win-case .tabbar label b { font-size: .6rem; }
.win-case .pane .phead { font-size: 1.42rem; margin: 0 0 18px; }
.win-case .pane .phead2 { font-size: 1.12rem; margin: 28px 0 14px; }
.win-case .pane p { font-size: .88rem; line-height: 2; margin: 0 0 14px; }
.win-case .pane .pfoot { font-size: .8rem; margin: 22px 0 0; padding-top: 16px; }

.win-case .ba-col { padding: 18px 20px; }
.win-case .ba-col b { font-size: .62rem; margin-bottom: 12px; }
.win-case .ba-col li { font-size: .82rem; line-height: 1.85; margin-bottom: 10px; padding-left: 15px; }
.win-case .ba { grid-template-columns: 1fr 42px 1fr; margin-bottom: 20px; }

.win-case .kpis { gap: 10px; }
.win-case .kpis div { padding: 16px 10px; }
.win-case .kpis b { font-size: 1.95rem; margin-bottom: 8px; }
.win-case .kpis span { font-size: .68rem; }

.win-case .sym div { font-size: .84rem; line-height: 1.9; padding: 10px 0 10px 16px; }
.win-case .sym b { font-size: .62rem; margin-bottom: 4px; }
.win-case .pane .pull { padding-left: 22px; margin-top: 22px; }
.win-case .pane .pull p { font-size: 1.06rem; line-height: 1.9; }

.win-case .pane .steps { gap: 12px; }
.win-case .pane .step { padding: 18px 19px; }
.win-case .pane .step b { font-size: .6rem; margin-bottom: 10px; }
.win-case .pane .step h3 { font-size: .96rem; margin-bottom: 10px; }
.win-case .pane .step p { font-size: .8rem; line-height: 1.9; }

.win-case .pane table { font-size: .79rem; }
.win-case .pane th, .win-case .pane td { padding: 11px 13px; line-height: 1.75; }
.win-case .pane th { font-size: .72rem; }

.win-case .layer { padding: 13px 17px; grid-template-columns: 138px 1fr; }
.win-case .layer b { font-size: .88rem; }
.win-case .layer span { font-size: .8rem; line-height: 1.8; }

.win-case .pane .list li { font-size: .83rem; line-height: 1.9; margin-bottom: 11px; padding-left: 22px; }
.win-case .pane .list-lg li { font-size: .86rem; margin-bottom: 15px; }

.win-case .pane .deliv { gap: 11px; }
.win-case .pane .deliv div { padding: 15px 17px; font-size: .78rem; line-height: 1.8; }
.win-case .pane .deliv div b { font-size: .85rem; margin-bottom: 6px; }

.win-case .case-facts dd { font-size: .78rem; }
.win-case .case-facts div { padding: 12px 14px; }

/* 3. 左列の最下部に置く注記 */
.win-note {
  margin: 26px 0 0; font-size: .64rem; line-height: 1.85;
  color: #8f98b6; max-width: 34em;
}

@media (max-width: 1180px) {
  .win-case .pane .phead { font-size: 1.28rem; }
  .win-case .kpis b { font-size: 1.7rem; }
  .win-case .tabbar label { font-size: .78rem; padding: 7px 12px; }
}
@media (max-width: 960px) {
  .win-case .win-main { justify-content: flex-start; }
  .win-case .tabs { height: auto; }
  .win-note { margin-top: 20px; }
}


/* --- ケースの面：上の空きの解消（2026-08-27）--------------------------------
   .win は align-content:center のため、行が中身の高さになり画面中央へ寄る。
   章ごとに中身の高さが違うと、上の空きが変わって見出しまで動いていた。
   ケースの面だけ行を画面いっぱいに伸ばし、上端で固定する */
.win-case { align-content: stretch; }
.win-case .win-side { justify-content: center; }
.win-case .win-main { justify-content: flex-start; min-height: 0; }
.win-case .tabs { height: 100%; min-height: 0; }
.win-case .panes { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

/* --- 実績ページ：枠ごとに案件を並べる ------------------------------------- */
.wbox .plist { margin: 0; padding: 0; list-style: none; }
.wbox .plist li {
  position: relative; padding: 0 0 0 15px; margin: 0 0 9px;
  font-size: .8rem; line-height: 1.7; color: #ccd3e8;
}
.wbox .plist li:last-child { margin-bottom: 0; }
.wbox .plist li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 6px; height: 1px; background: var(--blue); opacity: .8;
}
.wbox .plist a {
  color: #eef1fa; text-decoration: none;
  border-bottom: 1px solid rgba(157, 184, 240, .42);
  padding-bottom: 1px; transition: color .3s var(--ease), border-color .3s var(--ease);
}
.wbox .plist a:hover { color: #a8bcf8; border-color: #a8bcf8; }
.wbox .plist a .tag {
  display: inline-block; margin-left: 8px; font-family: var(--mono);
  font-size: .56rem; letter-spacing: .12em; color: #a8bcf8;
  border: 1px solid rgba(157, 184, 240, .38); border-radius: 999px;
  padding: 2px 7px; vertical-align: middle; white-space: nowrap;
}
.wbox .plist a:hover .tag { background: rgba(111, 141, 255, .16); }
.works-note { margin: 22px 0 0; font-size: .64rem; line-height: 1.85; color: #8f98b6; max-width: 34em; }


/* --- ケース：成果物イメージ（実物ではなく、構造だけを借りた見本）------------ */
#ct7:checked ~ .tabbar label[for="ct7"] {
  color: var(--void); background: var(--glow); border-color: var(--glow);
}
#ct7:checked ~ .tabbar label[for="ct7"] b { color: rgba(5,6,13,.62); }
#ct7:focus-visible ~ .tabbar label[for="ct7"] { outline: 2px solid var(--blue); outline-offset: 3px; }
#ct7:checked ~ .panes .pane:nth-of-type(8) { display: block; }

.slides { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 0; }

.slide {
  margin: 0; padding: 13px 15px 11px;
  background: #f3f5fc; color: #0b0d18;
  border: 1px solid rgba(150,165,215,.3);
  box-shadow: 0 10px 30px rgba(0,0,0,.34);
  display: flex; flex-direction: column; min-height: 0;
}
.sl-head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  border-bottom: 1px solid #c6cde2; padding-bottom: 7px; margin-bottom: 8px; }
.sl-head span { font-family: var(--mono); font-size: .52rem; letter-spacing: .1em; color: #64719c; }
.sl-head b { font-size: .84rem; font-weight: 700; color: #0b0d18; letter-spacing: .01em; }
.sl-msg { font-size: .68rem !important; line-height: 1.6 !important; color: #1c2440 !important;
  background: #dde3f5; border-left: 2px solid #3f5cc4;
  padding: 6px 9px !important; margin: 0 0 10px !important; }
.sl-body { flex: 1 1 auto; min-height: 0; }
.sl-body.sl-center { display: flex; align-items: center; justify-content: center; }
.sl-foot { font-size: .52rem; line-height: 1.5; color: #6f7b9f;
  border-top: 1px solid #d6dcec; padding-top: 6px; margin-top: 9px; }

/* 集計マトリクス */
.mtx { display: grid; grid-template-columns: 54px repeat(5, 1fr); gap: 3px; }
.mtx .mh { font-family: var(--mono); font-size: .48rem; color: #64719c; text-align: center; padding-bottom: 2px; }
.mtx .ml { font-size: .55rem; color: #1c2440; line-height: 1.3; align-self: center; }
.mtx .mc { height: 15px; background: #e2e7f5; border: 1px solid #ccd4e9; border-radius: 2px; }
.mtx .mc.on { background: #4a63c8; border-color: #4a63c8; }

/* 評価フレーム */
.ev { display: grid; gap: 5px; }
.ev-r { display: grid; grid-template-columns: 56px 1fr 26px; gap: 8px; align-items: center; }
.ev-r span { font-size: .58rem; color: #1c2440; }
.ev-r em { font-style: normal; font-size: .54rem; color: #3f5cc4; font-weight: 700; text-align: right; }
.ev-r i { display: block; height: 8px; background: #e2e7f5; border-radius: 2px; position: relative; }
.ev-r i::before { content: ""; position: absolute; inset: 0 auto 0 0; background: #4a63c8; border-radius: 2px; }
.ev-r i.b3::before { width: 88%; }
.ev-r i.b2::before { width: 58%; }
.ev-r i.b1::before { width: 26%; }
.ev-r i.b0::before { width: 0; }
.ev-r.muted span, .ev-r.muted em { color: #8a93b3; }

/* 三層 */
.tri { width: 100%; max-width: 240px; position: relative; }
.tri > div { border: 1px solid #b9c2dc; margin: 0 auto 4px; text-align: center;
  font-size: .56rem; color: #1c2440; padding: 5px 0; background: #e8ecf8; }
.tri .t1 { width: 100%; }
.tri .t2 { width: 72%; background: #ccd6f4; }
.tri .t3 { width: 44%; background: #4a63c8; color: #fff; border-color: #4a63c8; }
.tri .t-gap { border: 1px dashed #3f5cc4; background: transparent;
  font-size: .5rem; color: #3f5cc4; width: 100%; margin-top: 6px; }

/* 施策の判断 */
.jd { display: grid; gap: 3px; }
.jd-h, .jd-r { display: grid; grid-template-columns: 1fr 52px 44px; gap: 6px; align-items: center; }
.jd-h span { font-family: var(--mono); font-size: .48rem; color: #64719c; letter-spacing: .08em; }
.jd-r { background: #e8ecf8; padding: 4px 7px; border-radius: 2px; }
.jd-r span { font-size: .56rem; color: #1c2440; }
.jd-r em { font-style: normal; font-size: .5rem; font-weight: 700; text-align: center;
  padding: 2px 0; border-radius: 2px; color: #fff; }
.j-c { background: #3f7d5a; }
.j-i { background: #4a63c8; }
.j-s { background: #9a5a5a; }

@media (max-width: 1180px) { .slides { gap: 11px; } .sl-head b { font-size: .78rem; } }
@media (max-width: 960px) { .slides { grid-template-columns: 1fr; } }


/* --- ケース：上端に揃え、空きを作らない（2026-08-27 再修正）-----------------
   前回は右列だけを上詰めにしたが、左列が縦中央寄せのままだった。
   短い左列が画面中央に置かれるため、その上に大きな空きが残っていた。
   両列とも上端で揃え、行そのものも上から始める */
.win-case { align-content: start; padding-top: 92px; padding-bottom: 32px; }
.win-case .win-side { justify-content: flex-start; }
.win-case .win-main { justify-content: flex-start; }

/* 左列。上に詰めたぶん、間の余白を締める */
.win-case .win-side h1 { margin-top: 6px; }
.win-case .win-side .lead { margin-bottom: 22px; }
.win-case .case-facts { margin-bottom: 20px; }
.win-case .win-close { margin-top: 4px; }
.win-case .win-legal { margin-top: 20px; }
.win-case .win-note { margin-top: 18px; }

/* 右列。章の中身は画面内に収める。溢れた場合だけ内側で送る */
.win-case .tabbar { margin-bottom: 16px; padding-bottom: 11px; }
.win-case .panes { overflow-y: auto; overscroll-behavior: contain; }

@media (max-width: 960px) {
  .win-case { padding-top: 88px; align-content: start; }
}


/* --- サービス・実績の面：文字を一段大きくする（2026-08-27）------------------
   .wbox / .win-grid はサービスと実績の2ページでしか使っていないため、
   ここを直接上げてよい。左列は他ページと共有するため win-lg で囲う */
.wbox { padding: 26px 28px 24px; }
.wbox .no { font-size: .72rem; letter-spacing: .2em; margin-bottom: 12px; }
.wbox h2 { font-size: 1.4rem; margin: 0 0 13px; }
.wbox p { font-size: .95rem; line-height: 1.95; margin: 0 0 15px; }
.wbox .tags { gap: 7px; }
.wbox .tags i { font-size: .68rem; padding: 4px 11px; }
.wbox .note { font-size: .78rem; margin-top: 13px; }

.wbox .plist li { font-size: .95rem; line-height: 1.8; margin-bottom: 11px; padding-left: 17px; }
.wbox .plist li::before { top: .78em; width: 7px; }
.wbox .plist a .tag { font-size: .62rem; padding: 3px 9px; margin-left: 9px; }

/* 左列。この2ページだけ大きくする */
.win-lg .win-meta { font-size: .74rem; margin-bottom: 24px; }
.win-lg .win-side .lead { font-size: 1.06rem; line-height: 2.05; margin-bottom: 32px; }
.win-lg .win-links a { font-size: .94rem; }
.win-lg .works-note { font-size: .72rem; }

@media (max-width: 1180px) {
  .wbox h2 { font-size: 1.24rem; }
  .wbox p, .wbox .plist li { font-size: .88rem; }
  .win-lg .win-side .lead { font-size: .98rem; }
}


/* --- ケース：章の中身は高さを持たせない（2026-08-27 三度目の修正）-----------
   空きの正体は .panes を flex:1 で画面いっぱいに伸ばしていたこと。
   中身の少ない章では、その伸ばした箱がそのまま空白として残っていた。
   中身の高さに合わせ、収まらないときだけ内側で送る。
   左列は当初どおり中段に戻す */
.win-case { align-content: stretch; padding-top: 108px; padding-bottom: 56px; }
.win-case .win-side { justify-content: center; }
.win-case .win-main { justify-content: flex-start; }
.win-case .tabs { height: 100%; }
.win-case .panes { flex: 0 1 auto; overflow-y: auto; }

/* 左列を中段に戻したので、間隔も元の広さへ */
.win-case .win-side h1 { margin-top: 0; }
.win-case .win-side .lead { margin-bottom: 28px; }
.win-case .case-facts { margin-bottom: 24px; }
.win-case .win-legal { margin-top: 26px; }
.win-case .win-note { margin-top: 22px; }

/* 成果物の章は、見本を絞って資料本体への導線を主役にする */
.deck-lead { display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border: 1px solid rgba(157,184,240,.38); background: rgba(20,26,58,.6);
  padding: 16px 20px; margin: 0 0 16px; }
.deck-lead p { margin: 0 !important; flex: 1 1 260px; font-size: .84rem !important; }
.deck-open {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--glow); color: #05060d; font-size: .84rem; font-weight: 600;
  padding: 11px 20px; border-radius: 999px; white-space: nowrap;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.deck-open:hover { background: #b9cdf7; transform: translateX(3px); }
.deck-open span { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; }

@media (max-width: 960px) {
  .win-case { padding-top: 96px; }
  .win-case .tabs { height: auto; }
}

/* ケース内のマスキング表記 */
.win-case .msk-i { color: #d8b48a; font-family: var(--mono); font-size: .92em; letter-spacing: .04em; }

/* --- ケース：章の中身が section への全体指定を拾っていた -------------------
   style.css の `section { padding: clamp(90px,11vw,160px) 0 }` を、
   タブの中身（section.pane）が継いでいたため、上下に 160px の空白が入り、
   さらにその分だけ本文が画面からあふれてスクロールしていた。
   これが「上段の空白」の正体。版面側の調整では直らない */
.win-case .pane { padding: 0; }

/* --- ケース：タブ帯を1行に収め、本文の縦を確保する ------------------------- */
.win-case .tabbar { gap: 3px; margin-bottom: 14px; padding-bottom: 10px; flex-wrap: nowrap; }
.win-case .tabbar label { font-size: .78rem; padding: 7px 12px; gap: 6px; }
.win-case .tabbar label b { font-size: .55rem; }
.win-case .pane p { margin-bottom: 11px; }
.win-case .pane .pfoot { margin-top: 14px; padding-top: 11px; }
.win-case .pane .phead { margin-bottom: 14px; }
.win-case .pane .phead2 { margin: 20px 0 11px; }
.win-case .layer { padding: 11px 15px; }
.win-case .pane .list li { margin-bottom: 9px; }
.win-case .pane .pull { margin-top: 16px; }
.win-case .sym div { padding: 8px 0 8px 16px; }
@media (max-width: 1080px) { .win-case .tabbar { flex-wrap: wrap; } }
.win-case .layers { gap: 5px; }
.win-case .layer { padding: 9px 15px; }
.win-case .pane .list li { margin-bottom: 7px; line-height: 1.8; }
.win-case .pane .phead2 { margin: 16px 0 9px; }
.win-case .pane .pfoot { margin-top: 12px; padding-top: 10px; font-size: .72rem; line-height: 1.8; }

/* --- 三層の略称（TAM / SAM / SOM）------------------------------------------ */
.win-case .layer b { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.win-case .layer b i {
  font-style: normal; font-family: var(--mono); font-size: .58rem; letter-spacing: .14em;
  color: var(--accent-text); border: 1px solid rgba(157, 184, 240, .38);
  border-radius: 999px; padding: 2px 8px; line-height: 1.5;
}
.win-case .layer.l3 b i { color: #05060d; background: var(--glow); border-color: var(--glow); }

/* --- ケース：タブが増えたので帯を1行に収め、本文の縦を稼ぐ ----------------- */
.win-case .tabbar { gap: 3px; margin-bottom: 12px; padding-bottom: 9px; }
.win-case .tabbar label { font-size: .72rem; padding: 6px 10px; gap: 5px; }
.win-case .tabbar label b { font-size: .52rem; }
.win-case .pane table { font-size: .74rem; }
.win-case .pane th, .win-case .pane td { padding: 8px 10px; line-height: 1.6; }
.win-case .pane th { font-size: .68rem; }
.win-case .pane .phead { font-size: 1.3rem; margin-bottom: 12px; }
.win-case .pane p { font-size: .84rem; line-height: 1.9; margin-bottom: 10px; }
.win-case .pane .list li { font-size: .79rem; line-height: 1.75; margin-bottom: 7px; }
.win-case .pane .list-lg li { font-size: .81rem; margin-bottom: 11px; }
.win-case .layer { padding: 8px 14px; }
.win-case .layer span { font-size: .76rem; line-height: 1.7; }
.win-case .layer b { font-size: .84rem; }
.win-case .pane .step p { font-size: .74rem; line-height: 1.75; }
.win-case .pane .step h3 { font-size: .84rem; }
.win-case .pane .deliv div { padding: 11px 13px; font-size: .74rem; line-height: 1.7; }
.win-case .pane .deliv div b { font-size: .8rem; }
.win-case .ba-col li { font-size: .78rem; line-height: 1.7; margin-bottom: 7px; }
.win-case .sym div { font-size: .79rem; line-height: 1.75; padding: 7px 0 7px 14px; }
.win-case .pane .pfoot { font-size: .7rem; margin-top: 11px; padding-top: 9px; }
/* タブ帯の高さは、文字の行送り（body の 1.9）を継いで膨らんでいた */
.win-case .tabbar label { line-height: 1.25; align-items: center; }
.win-case .tabbar label b { line-height: 1; }
/* 三層の図と見出しをさらに詰める（章によっては1画面に収まらないため） */
.win-case .layers { gap: 4px; }
.win-case .layer { padding: 6px 13px; grid-template-columns: 124px 1fr; gap: 12px; }
.win-case .layer span { font-size: .74rem; line-height: 1.6; }
.win-case .layer b { font-size: .8rem; }
.win-case .layer b i { font-size: .52rem; padding: 1px 6px; }
.win-case .pane .phead2 { font-size: .96rem; margin: 12px 0 7px; }
.win-case .pane .pfoot { font-size: .68rem; margin-top: 9px; padding-top: 8px; }
.win-case .pane .list li { margin-bottom: 5px; line-height: 1.7; }
.win-case .pane .list li b { margin-right: .5em; }

/* ==========================================================================
   ケースの図。案件ごとに、その案件の肝に合う形を使う
   三層＝入れ子構造／格子＝掛け合わせ／漏斗＝絞り込み／関門＝合否／
   四象限＝2軸評価／横断帯＝分離と統括
   ========================================================================== */

/* --- 格子：掛け合わせで条件が決まることを示す ------------------------------ */
.cmx { display: grid; grid-template-columns: 116px repeat(var(--n, 2), 1fr); gap: 5px; margin: 4px 0 0; }
.cmx .h { font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; color: var(--accent-text);
  text-align: center; align-self: end; padding-bottom: 3px; }
.cmx .l { font-size: .78rem; color: var(--ink); align-self: center; line-height: 1.4; }
.cmx .c { border: 1px solid rgba(150,165,215,.2); background: rgba(9,10,22,.55);
  padding: 9px 11px; font-size: .72rem; line-height: 1.55; color: var(--ink-soft); border-radius: 3px; }
.cmx .c.on { border-color: rgba(111,141,255,.32); background: rgba(16,22,48,.6); }
.cmx .c.hot { border-color: rgba(157,184,240,.5); background: rgba(24,32,66,.7); color: var(--ink); }

/* --- 漏斗：段ごとに絞り込まれることを示す ---------------------------------- */
.funnel { display: grid; gap: 5px; justify-items: center; margin: 4px 0 0; }
.funnel > div { width: calc(var(--w) * 1%); border: 1px solid rgba(150,165,215,.22);
  background: rgba(9,10,22,.55); padding: 9px 16px; display: grid;
  grid-template-columns: 132px 1fr; gap: 14px; align-items: baseline; border-radius: 3px; }
.funnel > div:last-child { border-color: rgba(157,184,240,.5); background: rgba(22,29,60,.7); }
.funnel b { font-size: .8rem; color: var(--ink); }
.funnel span { font-size: .73rem; line-height: 1.6; color: var(--ink-soft); }

/* --- 関門：通過しないと次に進めないことを示す ------------------------------ */
.gate { display: grid; gap: 6px; margin: 4px 0 0; }
.gate > div { border: 1px solid rgba(150,165,215,.2); background: rgba(9,10,22,.55);
  padding: 9px 14px; display: grid; grid-template-columns: 22px 132px 1fr; gap: 12px;
  align-items: baseline; border-radius: 3px; }
.gate b { font-family: var(--mono); font-size: .62rem; color: var(--accent-text); }
.gate em { font-style: normal; font-size: .8rem; color: var(--ink); font-weight: 600; }
.gate span { font-size: .73rem; line-height: 1.6; color: var(--ink-soft); }
.gate .g-judge { border-color: rgba(200,150,150,.42); background: rgba(40,22,26,.5); }
.gate .g-judge b, .gate .g-judge em { color: #e0a5a5; }
.gate .g-pass { border-color: rgba(157,184,240,.5); background: rgba(22,29,60,.7); }

/* --- 四象限：2軸で評価したことを示す -------------------------------------- */
.cquad { position: relative; width: 100%; aspect-ratio: 3.4 / 1; margin: 6px 0 0;
  border: 1px solid rgba(150,165,215,.2); background: rgba(9,10,22,.5); border-radius: 3px; }
.cquad::before, .cquad::after { content: ""; position: absolute; background: rgba(150,165,215,.2); }
.cquad::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.cquad::after { top: 50%; left: 0; right: 0; height: 1px; }
.cquad i { position: absolute; transform: translate(-50%, 50%); font-style: normal;
  font-size: .72rem; color: var(--ink); background: rgba(12,16,34,.94);
  border: 1px solid rgba(150,165,215,.3); padding: 5px 11px; border-radius: 3px; white-space: nowrap; }
.cquad i.hot { background: var(--glow); color: #05060d; border-color: var(--glow); font-weight: 600; }
.cquad u { text-decoration: none; position: absolute; font-family: var(--mono);
  font-size: .55rem; letter-spacing: .1em; color: var(--muted); }
.cquad .ax1 { left: 6px; top: calc(50% + 6px); }
.cquad .ax2 { right: 6px; top: calc(50% + 6px); }
.cquad .ay1 { left: calc(50% + 8px); bottom: 4px; }
.cquad .ay2 { left: calc(50% + 8px); top: 4px; }

/* --- 横断帯：分けたうえで束ねる者がいることを示す -------------------------- */
.spanx { margin: 4px 0 0; }
.spanx .sd-top { border: 1px solid rgba(157,184,240,.5); background: rgba(22,29,60,.72);
  padding: 9px 15px; font-size: .78rem; color: var(--ink); border-radius: 3px 3px 0 0;
  text-align: center; letter-spacing: .02em; }
.spanx .sd-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 5px; }
.spanx .sd-cols > div { border: 1px solid rgba(150,165,215,.22); background: rgba(9,10,22,.55);
  padding: 10px 12px; border-top: 2px solid rgba(111,141,255,.42); border-radius: 0 0 3px 3px; }
.spanx .sd-cols b { display: block; font-size: .78rem; color: var(--ink); margin-bottom: 4px; }
.spanx .sd-cols span { font-size: .7rem; line-height: 1.55; color: var(--ink-soft); }
.spanx .sd-note { margin-top: 6px; font-size: .68rem; color: var(--muted); text-align: center;
  border-top: 1px dashed rgba(150,165,215,.24); padding-top: 6px; }

@media (max-width: 960px) {
  .cmx { grid-template-columns: 1fr; }
  .funnel > div { width: 100% !important; grid-template-columns: 1fr; gap: 4px; }
  .gate > div { grid-template-columns: 1fr; gap: 4px; }
  .spanx .sd-cols { grid-template-columns: 1fr; }
  .cquad { aspect-ratio: 1.6 / 1; }
}
/* 図の高さを、1画面に収まるよう詰める */
.win-case .funnel { gap: 4px; }
.win-case .funnel > div { padding: 7px 14px; grid-template-columns: 108px 1fr; gap: 12px; }
.win-case .funnel b { font-size: .78rem; }
.win-case .funnel span { font-size: .71rem; line-height: 1.55; }
.win-case .cquad { aspect-ratio: 3.9 / 1; }
.win-case .gate > div { padding: 8px 13px; }
.win-case .gate span { font-size: .71rem; line-height: 1.55; }
.win-case .cmx .c { padding: 8px 10px; font-size: .71rem; line-height: 1.5; }
.win-case .spanx .sd-top { padding: 8px 14px; font-size: .76rem; }
.win-case .spanx .sd-cols > div { padding: 8px 11px; }

/* ==========================================================================
   ケースの図（第二群）。00・01・02・05・06 も案件ごとに形を変えるための部品
   ========================================================================== */

/* --- 3列カード：並列する3つの要素を示す ------------------------------------ */
.c3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 4px 0 0; }
.c3 > div { border: 1px solid rgba(150,165,215,.2); background: rgba(9,10,22,.58);
  border-top: 2px solid var(--bx, rgba(111,141,255,.5)); padding: 12px 14px; border-radius: 0 0 3px 3px; }
.c3 b { display: block; font-size: .82rem; color: var(--ink); margin-bottom: 6px; line-height: 1.4; }
.c3 span { font-size: .73rem; line-height: 1.7; color: var(--ink-soft); }
.c3 i { font-style: normal; display: block; font-family: var(--mono); font-size: .55rem;
  letter-spacing: .14em; color: var(--accent-text); margin-bottom: 6px; }

/* --- 連鎖：原因から結果へ、段が下るごとに矢印でつなぐ ---------------------- */
.chain { display: grid; gap: 0; margin: 4px 0 0; }
.chain > div { border: 1px solid rgba(150,165,215,.2); background: rgba(9,10,22,.55);
  padding: 9px 15px; display: grid; grid-template-columns: 96px 1fr; gap: 14px;
  align-items: baseline; border-radius: 3px; }
.chain > div + div { margin-top: 16px; position: relative; }
.chain > div + div::before { content: ""; position: absolute; left: 46px; top: -13px;
  width: 1px; height: 10px; background: rgba(111,141,255,.55); }
.chain > div + div::after { content: ""; position: absolute; left: 43px; top: -6px;
  width: 6px; height: 6px; border-right: 1px solid rgba(111,141,255,.8);
  border-bottom: 1px solid rgba(111,141,255,.8); transform: rotate(45deg); }
.chain b { font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; color: var(--accent-text); }
.chain span { font-size: .76rem; line-height: 1.7; color: var(--ink-soft); }
.chain > div:last-child { border-color: rgba(200,150,150,.4); background: rgba(38,22,26,.5); }
.chain > div:last-child b { color: #e0a5a5; }

/* --- 縦の時系列：時期が進むことを示す -------------------------------------- */
.tline { display: grid; gap: 0; margin: 4px 0 0; position: relative; padding-left: 16px; }
.tline::before { content: ""; position: absolute; left: 3px; top: 8px; bottom: 8px;
  width: 1px; background: rgba(150,165,215,.28); }
.tline > div { position: relative; padding: 0 0 14px 16px; }
.tline > div:last-child { padding-bottom: 0; }
.tline > div::before { content: ""; position: absolute; left: -16px; top: 6px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--glow); }
.tline b { display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .12em;
  color: var(--accent-text); margin-bottom: 3px; }
.tline em { font-style: normal; display: block; font-size: .84rem; color: var(--ink);
  font-weight: 600; margin-bottom: 4px; }
.tline span { font-size: .74rem; line-height: 1.65; color: var(--ink-soft); }

/* --- 2階層：本体と付随を分けて示す ----------------------------------------- */
.tier2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 0; }
.tier2 > div { border: 1px solid rgba(150,165,215,.2); background: rgba(9,10,22,.55);
  padding: 12px 15px; border-radius: 3px; }
.tier2 > div.main { border-color: rgba(157,184,240,.44); background: rgba(20,26,58,.6); }
.tier2 h4 { margin: 0 0 9px; font-family: var(--mono); font-size: .58rem; letter-spacing: .14em;
  color: var(--accent-text); font-weight: 400; padding-bottom: 7px;
  border-bottom: 1px solid rgba(150,165,215,.2); }
.tier2 ul { margin: 0; padding: 0; list-style: none; }
.tier2 li { font-size: .74rem; line-height: 1.6; color: var(--ink-soft);
  padding-left: 13px; margin-bottom: 7px; position: relative; }
.tier2 li:last-child { margin-bottom: 0; }
.tier2 li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px;
  background: var(--accent-text); }
.tier2 li b { color: var(--ink); font-weight: 600; }

/* --- 対比：やる／やらないを並べる ------------------------------------------ */
.dd { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 0; }
.dd > div { border: 1px solid rgba(150,165,215,.2); background: rgba(9,10,22,.55);
  padding: 13px 16px; border-radius: 3px; }
.dd > div.do { border-color: rgba(120,190,160,.4); background: rgba(14,30,24,.5); }
.dd > div.dont { border-color: rgba(200,150,150,.36); background: rgba(34,20,24,.45); }
.dd h4 { margin: 0 0 10px; font-family: var(--mono); font-size: .58rem; letter-spacing: .14em;
  font-weight: 400; padding-bottom: 7px; border-bottom: 1px solid rgba(150,165,215,.18); }
.dd > div.do h4 { color: #8fd0b0; }
.dd > div.dont h4 { color: #e0a5a5; }
.dd ul { margin: 0; padding: 0; list-style: none; }
.dd li { font-size: .75rem; line-height: 1.7; color: var(--ink-soft);
  padding-left: 14px; margin-bottom: 9px; position: relative; }
.dd li:last-child { margin-bottom: 0; }
.dd li::before { position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: .7rem; }
.dd > div.do li::before { content: "+"; color: #8fd0b0; }
.dd > div.dont li::before { content: "-"; color: #e0a5a5; }
.dd li b { color: var(--ink); font-weight: 600; }

/* --- 番号付きの2列：要点を順序つきで並べる -------------------------------- */
.numc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 0; }
.numc > div { border: 1px solid rgba(150,165,215,.2); background: rgba(9,10,22,.55);
  padding: 12px 15px 12px 46px; position: relative; border-radius: 3px; }
.numc > div::before { counter-increment: nc; content: counter(nc, decimal-leading-zero);
  position: absolute; left: 14px; top: 12px; font-family: var(--mono); font-size: .82rem;
  color: rgba(157,184,240,.5); }
.numc { counter-reset: nc; }
.numc b { display: block; font-size: .8rem; color: var(--ink); margin-bottom: 5px; line-height: 1.4; }
.numc span { font-size: .73rem; line-height: 1.65; color: var(--ink-soft); }

/* --- 多段の変換フロー：段を追って形が変わることを示す --------------------- */
.conv { display: grid; gap: 5px; margin: 4px 0 0; }
.conv > div { display: grid; grid-template-columns: 26px 128px 1fr 116px; gap: 12px;
  align-items: baseline; border: 1px solid rgba(150,165,215,.2); background: rgba(9,10,22,.55);
  padding: 8px 14px; border-radius: 3px; }
.conv > div:last-child { border-color: rgba(157,184,240,.48); background: rgba(22,29,60,.68); }
.conv i { font-style: normal; font-family: var(--mono); font-size: .6rem; color: var(--accent-text); }
.conv b { font-size: .78rem; color: var(--ink); }
.conv span { font-size: .72rem; line-height: 1.55; color: var(--ink-soft); }
.conv em { font-style: normal; font-size: .68rem; color: var(--muted); text-align: right;
  font-family: var(--mono); letter-spacing: .04em; }

@media (max-width: 960px) {
  .c3, .tier2, .dd, .numc { grid-template-columns: 1fr; }
  .chain > div { grid-template-columns: 1fr; gap: 4px; }
  .conv > div { grid-template-columns: 22px 1fr; gap: 8px; }
  .conv em { display: none; }
}

/* --- 会社概要も、サービス・実績と同じ文字の大きさに揃える ------------------ */
.win-lg .wstep { padding: 20px 22px; }
.win-lg .wstep .no { font-size: .72rem; letter-spacing: .2em; margin-bottom: 12px; }
.win-lg .wstep h3 { font-size: 1.06rem; margin: 0 0 9px; line-height: 1.5; }
.win-lg .wstep p { font-size: .88rem; line-height: 1.85; }
.win-lg .win-steps { gap: 16px; margin-bottom: 24px; }
.win-lg .win-table .k { font-size: .78rem; }
.win-lg .win-table .v { font-size: .95rem; }
.win-lg .wrow { padding: 15px 4px; }
/* 経歴の箱は、サービス・実績の箱と同じ大きさにする */
.win-lg .wstep h3 { font-size: 1.4rem; margin: 0 0 13px; }
.win-lg .wstep p { font-size: .95rem; line-height: 1.95; }
.win-lg .wstep { padding: 26px 28px 24px; }

/* --- 立場を言い切る一行。リード文の上に置く ------------------------------- */
.lead-key {
  font-family: var(--serif); font-size: clamp(1.12rem, 1.6vw, 1.42rem);
  line-height: 1.7; color: #f2f4fc; margin: 0 0 16px; letter-spacing: .03em;
}
.win-lg .lead-key { font-size: clamp(1.2rem, 1.8vw, 1.56rem); margin-bottom: 18px; }
