/* ==========================================================================
   VILLION Inc. — site.css
   基本は白・黒・グレー。差し色の赤（#c8102e）はロゴのVIと、ごく一部だけ。
   動きの「途中の状態」はすべて html.motion の下にだけ書く。
   JSが無い／動きを減らす設定のときは、最初から完成した状態で表示される。
   ========================================================================== */

@font-face {
  font-family: "Mulish";
  src: url("../fonts/Mulish.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --ink2: #2e2e2e;
  --sub: #6f6f6f;
  --mute: #a6a6a6;
  --line: #e7e7e7;
  --line2: #cfcfcf;
  --paper: #ffffff;
  --gray: #f5f5f5;
  --black: #0b0b0b;
  --red: #c8102e;
  --en: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --ja: "Mulish", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --gut: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --hd: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease2: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
body {
  margin: 0;
  font-family: var(--ja);
  font-weight: 300;
  font-size: 15px;
  line-height: 2;
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt" 0;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 300; }
b, strong { font-weight: 500; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; font-size: 13px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--sub); }
.small { font-size: 13px; line-height: 1.95; }
.pc { display: inline; }
@media (max-width: 767px) { .pc { display: none; } }

/* ---------- 文字の部品 ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--en); font-weight: 400; font-size: 11px; line-height: 1;
  letter-spacing: .32em; text-transform: uppercase; color: var(--sub);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.display {
  font-family: var(--en); font-weight: 200;
  font-size: clamp(54px, 10.5vw, 168px); line-height: .92; letter-spacing: -.035em;
}
.h2 { font-size: clamp(24px, 3vw, 40px); line-height: 1.6; letter-spacing: .08em; font-weight: 300; }
.lead { font-size: clamp(15px, 1.25vw, 17px); line-height: 2.15; color: var(--ink2); }
.num { font-family: var(--en); font-weight: 300; letter-spacing: .12em; font-size: 11px; color: var(--sub); }

/* 下線が伸びるリンク */
.ul, .textlink, .nav a:not(.nav__cta), .ft__links a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 100% 100%;
  transition: background-size .6s var(--ease);
  padding-bottom: 2px;
}
.textlink { background-size: 100% 1px; background-image: linear-gradient(var(--line2), var(--line2)), linear-gradient(currentColor, currentColor); background-size: 100% 1px, 0% 1px; background-position: 0 100%, 100% 100%; }
.ul:hover, .nav a:not(.nav__cta):hover, .ft__links a:hover, .nav a[aria-current="page"] { background-size: 100% 1px; background-position: 0 100%; }
.textlink:hover { background-size: 100% 1px, 100% 1px; background-position: 0 100%, 0 100%; }

/* ---------- ボタン ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 18px;
  height: 58px; padding: 0 32px; border-radius: 999px; overflow: hidden;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  font-size: 13px; letter-spacing: .16em; font-weight: 400; line-height: 1;
  cursor: pointer; isolation: isolate;
  transition: transform .7s var(--ease), color .45s var(--ease), border-color .45s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: #3a3a3a; transform: translateY(102%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: none; }
.btn .arrow { display: inline-block; font-family: var(--en); transition: transform .55s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light::before { background: #d9d9d9; }
.btn--line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--line-light::before { background: #fff; }
.btn--line-light:hover { color: var(--ink); }

/* ---------- ヘッダー ---------- */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--hd);
  display: flex; align-items: center; color: var(--ink);
  transition: transform .6s var(--ease), color .5s var(--ease);
}
.hd::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(0,0,0,.06);
  opacity: 0; transition: opacity .5s, background-color .5s, border-color .5s;
}
.hd.is-scrolled::before { opacity: 1; }
.hd.is-dark { color: #fff; }
.hd.is-dark::before { background: rgba(11,11,11,.6); border-bottom-color: rgba(255,255,255,.08); }
.hd.is-hidden { transform: translateY(-100%); }
.hd__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.logo svg { height: 15px; width: auto; overflow: visible; }
.logo__ja { font-size: 10.5px; letter-spacing: .14em; color: currentColor; opacity: .55; line-height: 1; padding-left: 14px; border-left: 1px solid currentColor; }
.vl-vi { fill: var(--red); }
.vl-ll { fill: currentColor; }
.nav ul { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav a { font-size: 12.5px; letter-spacing: .12em; line-height: 1.4; }
.nav__cta {
  display: inline-flex; align-items: center; height: 38px; padding: 0 20px; border-radius: 999px;
  border: 1px solid currentColor; transition: background-color .4s, color .4s;
}
.nav__cta:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.hd.is-dark .nav__cta:hover { background: #fff; color: var(--ink); border-color: #fff; }
.menu-btn { display: none; }
.menu { display: none; }

@media (max-width: 900px) {
  .logo__ja { display: none; }
  html:not(.js) .hd { position: absolute; height: auto; padding: 18px 0; }
  html:not(.js) .hd__in { flex-direction: column; align-items: flex-start; }
  html:not(.js) .nav ul { flex-wrap: wrap; gap: 6px 18px; }
  .js .nav { display: none; }
  .js .menu-btn {
    display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 10px 0; cursor: pointer;
    font-family: var(--en); font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  }
  .menu-btn__bars { position: relative; width: 26px; height: 9px; }
  .menu-btn__bars::before, .menu-btn__bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
    transition: transform .5s var(--ease), top .5s var(--ease);
  }
  .menu-btn__bars::before { top: 0; }
  .menu-btn__bars::after { top: 8px; }
  .menu-open .menu-btn__bars::before { top: 4px; transform: rotate(18deg); }
  .menu-open .menu-btn__bars::after { top: 4px; transform: rotate(-18deg); }
  .js .menu {
    display: flex; flex-direction: column; justify-content: center;
    position: fixed; inset: 0; z-index: 55; background: var(--black); color: #fff;
    padding: calc(var(--hd) + 20px) var(--gut) 40px;
    visibility: hidden; opacity: 0; transition: opacity .5s var(--ease), visibility 0s .5s;
  }
  .menu-open .menu { visibility: visible; opacity: 1; transition: opacity .5s var(--ease); }
  .menu-open .hd { color: #fff; }
  .menu-open .hd::before { opacity: 0; }
  .menu li { overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.12); }
  .menu a {
    display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0;
    font-size: 22px; letter-spacing: .1em; line-height: 1.4;
    transform: translateY(100%); transition: transform .7s var(--ease);
  }
  .menu a span { font-family: var(--en); font-size: 11px; letter-spacing: .24em; opacity: .5; text-transform: uppercase; }
  .menu-open .menu a { transform: none; }
  .menu-open .menu li:nth-child(2) a { transition-delay: .05s; }
  .menu-open .menu li:nth-child(3) a { transition-delay: .1s; }
  .menu-open .menu li:nth-child(4) a { transition-delay: .15s; }
  .menu-open .menu li:nth-child(5) a { transition-delay: .2s; }
  .menu-open .menu li:nth-child(6) a { transition-delay: .25s; }
  .menu__mail { margin-top: 36px; font-family: var(--en); font-size: 14px; letter-spacing: .08em; opacity: .7; }
  .menu-open, .menu-open body { overflow: hidden; }
}

/* ---------- セクション共通 ---------- */
.sec { padding: clamp(110px, 13vw, 200px) 0; position: relative; }
.sec--tight { padding-top: 0; }
.sec__head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 88px); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > .sec__head { margin-bottom: 0; position: sticky; top: calc(var(--hd) + 32px); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split > .sec__head { position: static; margin-bottom: 8px; }
}

/* ---------- 下層ページの見出し ---------- */
.phead { padding: calc(var(--hd) + clamp(80px, 12vw, 180px)) 0 clamp(72px, 9vw, 130px); position: relative; overflow: hidden; }
.phead .display { margin: 28px 0 0; white-space: nowrap; }
.phead__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); margin-top: clamp(40px, 6vw, 90px); align-items: start; }
.phead h1 { font-size: clamp(20px, 2.1vw, 28px); letter-spacing: .1em; line-height: 1.75; }
.phead__line { position: absolute; left: var(--gut); right: var(--gut); bottom: 0; height: 1px; background: var(--line); transform-origin: left; }
@media (max-width: 900px) { .phead__row { grid-template-columns: 1fr; } }

/* ---------- 見えたら現れる ---------- */
.motion [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-reveal="fade"] { transform: none; }
.motion [data-reveal="line"] { opacity: 1; transform: none; }
.motion [data-reveal="line"]::before { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.motion [data-reveal="line"].is-in::before { transform: none; }
.motion .phead__line { transform: scaleX(0); transition: transform 1.8s var(--ease) .3s; }
.motion .is-in .phead__line, .motion .phead__line.is-in { transform: none; }

/* 1文字ずつ */
[data-split] .ch { display: inline-block; }
.motion [data-split] .ch { opacity: 0; transform: translate3d(0, .55em, 0) rotate(4deg); transform-origin: left bottom; transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--base, 0s) + var(--i) * 28ms); }
.motion [data-split].is-in .ch { opacity: 1; transform: none; }

/* 線で描く SVG */
.motion [data-draw] .dr { transition: stroke-dashoffset 1.8s var(--ease2); transition-delay: var(--dd, 0s); }
.motion [data-draw] .df { opacity: 0; transition: opacity 1s var(--ease); transition-delay: var(--dd, 0s); }
.motion [data-draw].is-in .dr { stroke-dashoffset: 0 !important; }
.motion [data-draw].is-in .df { opacity: 1; }

/* ---------- スクロール連動の固定セクション ---------- */
.scene { position: relative; }
.scene__sticky { position: relative; }
.motion .scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ===== トップ：ファーストビュー ===== */
.hero__sticky { display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--hd) + 24px) 0 60px; }
.motion .hero { height: 125vh; }
.hero__grid { position: absolute; inset: 0; pointer-events: none; }
.hero__grid i { position: absolute; background: var(--line); }
.hero__grid .gx { left: 0; right: 0; height: 1px; }
.hero__grid .gy { top: 0; bottom: 0; width: 1px; }
.hero__grid .gx:nth-child(1) { top: 22%; } .hero__grid .gx:nth-child(2) { top: 78%; }
.hero__grid .gy:nth-child(3) { left: var(--gut); } .hero__grid .gy:nth-child(4) { right: var(--gut); }
.hero__grid .gy:nth-child(5) { left: 50%; opacity: .55; }
.hero__inner { position: relative; width: 100%; max-width: var(--max); padding: 0 var(--gut); text-align: center; will-change: transform, opacity; }
.hero__logo { width: min(80vw, 980px); margin: 0 auto; will-change: transform, opacity; transform-origin: 50% 60%; }
.hero__logo svg { width: 100%; height: auto; overflow: hidden; }
.hero__logo .vl-ll { fill: var(--ink); }
.hero__text { margin-top: clamp(36px, 5vh, 64px); will-change: transform, opacity; }
.hero__eyebrow { justify-content: center; margin-bottom: clamp(36px, 6vh, 64px); }
.hero__eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero__copy { font-size: clamp(21px, 2.9vw, 42px); line-height: 1.7; letter-spacing: .1em; font-weight: 300; }
.hero__btns { justify-content: center; margin-top: clamp(32px, 5vh, 52px); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--en); font-size: 10px; letter-spacing: .34em; color: var(--sub); text-transform: uppercase;
}
.hero__scroll i { display: block; width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--ink); animation: scrollLine 2.4s var(--ease2) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 767px) {
  .motion .hero { height: 112vh; }
  .hero__eyebrow { letter-spacing: .2em; font-size: 10px; gap: 10px; }
  .hero__eyebrow::before, .hero__eyebrow::after { width: 16px; }
  .hero__logo { width: 86vw; }
  .hero__grid .gy:nth-child(5) { display: none; }
  .hero__btns .btn { height: 52px; padding: 0 26px; }
}
@media (max-height: 640px) and (min-width: 768px) { .hero__scroll { display: none; } }

/* 登場演出（時間で動く） */
.motion .hero__grid i { transform: scaleX(0); transform-origin: left; animation: gridIn 1.6s var(--ease) forwards; }
.motion .hero__grid .gy { transform: scaleY(0); transform-origin: top; }
.motion .hero__grid i:nth-child(2) { animation-delay: .12s; transform-origin: right; }
.motion .hero__grid i:nth-child(3) { animation-delay: .2s; }
.motion .hero__grid i:nth-child(4) { animation-delay: .28s; transform-origin: bottom; }
.motion .hero__grid i:nth-child(5) { animation-delay: .4s; }
@keyframes gridIn { to { transform: none; } }
.motion .lt-a { transform: translateY(110%); opacity: 0; animation: letterIn 1.3s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * .1s); transform-box: fill-box; }
@keyframes letterIn { to { transform: none; opacity: 1; } }
.motion .hero__logo .vl-vi { fill: var(--ink); animation: viOn 1.6s linear 1.55s forwards; }
@keyframes viOn {
  0% { fill: #111111; }
  18% { fill: #c8102e; }
  24% { fill: #3a0a12; }
  34% { fill: #c8102e; }
  40% { fill: #6d0918; }
  100% { fill: #c8102e; }
}
.hero__glow { opacity: 0; }
.motion .hero__glow { animation: glow 2.4s var(--ease) 1.6s forwards; }
@keyframes glow { 0% { opacity: 0; } 30% { opacity: .55; } 100% { opacity: 0; } }
.motion .hero__eyebrow, .motion .hero__btns, .motion .hero__scroll { opacity: 0; animation: fadeUp 1.2s var(--ease) forwards; }
.motion .hero__eyebrow { animation-delay: 2.4s; }
.motion .hero__btns { animation-delay: 5.55s; }
.motion .hero__scroll { animation-delay: 5.85s; }
.motion .hero__copy { --base: 2.5s; }
/* 2段目は一拍おいてから */
.motion .hero__copy .l2 .ch { transition-delay: calc(var(--base, 0s) + 1.1s + var(--i) * 34ms); }
.hero__sub { margin-top: 1.1em; font-size: clamp(13px, 1.15vw, 16px); line-height: 1.9; letter-spacing: .06em; color: var(--sub, #666); font-weight: 300; }
.motion .hero__sub { opacity: 0; animation: fadeUp 1.2s var(--ease) forwards; animation-delay: 5.15s; }
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
.motion .hero__scroll { animation-name: fadeIn; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== 一語ずつ浮かぶ文 ===== */
.words { padding: clamp(80px, 12vw, 160px) 0; }
.motion .words { height: 250vh; padding: 0; margin-top: -14vh; position: relative; z-index: 1; }
.motion .words__sticky { display: flex; align-items: flex-start; padding-top: max(calc(var(--hd) + 32px), 15vh); }
.words__text { margin-top: 40px; font-size: clamp(22px, 3.25vw, 48px); line-height: 1.75; letter-spacing: .06em; font-weight: 300; max-width: 22em; }
.words__text span { display: inline-block; transition: opacity .25s linear; }
.motion .words__text span { opacity: .12; }
@media (max-width: 767px) { .motion .words { height: 210vh; } .words__text { font-size: 22px; line-height: 1.85; } }

/* ===== 白から黒へ反転 ===== */
.invert__sticky { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--black); color: #fff; padding: 120px var(--gut); }
.motion .invert { height: 230vh; }
.motion .invert__sticky { background: #fff; color: var(--ink); padding: 0 var(--gut); }
.invert__big { font-family: var(--en); font-weight: 200; font-size: clamp(46px, 10vw, 168px); line-height: .98; letter-spacing: -.03em; will-change: transform; }
.invert__big span { display: block; }
.invert__sub { margin-top: clamp(28px, 4vw, 52px); font-size: clamp(16px, 1.6vw, 22px); letter-spacing: .16em; will-change: opacity, transform; }
.motion .invert__sub { opacity: 0; }

/* ===== 工程（線が伸びて点灯） ===== */
.process { background: var(--black); color: #fff; }
.process__sticky { display: flex; align-items: center; padding: clamp(100px, 12vw, 160px) 0; }
.motion .process { height: 340vh; }
.motion .process__sticky { padding: 0; }
.process .eyebrow { color: rgba(255,255,255,.55); }
.process__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(56px, 9vh, 110px); }
.process__note { font-size: 13px; color: rgba(255,255,255,.55); }
.process__list { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; --lp: 1; }
.process__track { position: absolute; left: 0; right: 0; top: 64px; height: 1px; background: rgba(255,255,255,.16); }
.process__fill { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--lp)); }
.process__tip { position: absolute; top: -3px; left: calc(var(--lp) * 100%); width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(200,16,46,.18); }
.process__item { position: relative; padding-top: 0; }
.process__item .num { color: rgba(255,255,255,.45); display: block; height: 40px; }
.process__dot { position: relative; z-index: 1; display: block; width: 13px; height: 13px; margin: 18px 0 28px -6px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: var(--black); transition: background-color .5s var(--ease), border-color .5s, transform .6s var(--ease); }
.process__item h3 { font-size: clamp(17px, 1.6vw, 22px); letter-spacing: .1em; line-height: 1.5; transition: color .6s; }
.process__item p { margin-top: 14px; font-size: 13px; line-height: 1.95; color: rgba(255,255,255,.62); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.process__item.is-on .process__dot { background: #fff; border-color: #fff; transform: scale(1.15); }
.motion .process__item h3 { color: rgba(255,255,255,.28); }
.motion .process__item.is-on h3 { color: #fff; }
.motion .process__item p { opacity: 0; transform: translateY(12px); }
.motion .process__item.is-on p { opacity: 1; transform: none; }
.process__loop { margin-top: clamp(28px, 5vh, 56px); position: relative; }
.process__loop svg { width: 100%; height: 76px; overflow: visible; }
.process__loop path { fill: none; stroke: rgba(255,255,255,.5); stroke-width: 1; stroke-dasharray: 4 6; }
.process__loop-mask { stroke: var(--black) !important; stroke-width: 4 !important; stroke-dasharray: none !important; }
.process__loop-label { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 6px 22px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: var(--black); font-size: 12px; letter-spacing: .14em; white-space: nowrap; line-height: 1.6; }
.motion .process__loop-label { opacity: 0; transition: opacity .8s var(--ease); }
.motion .process__loop.is-on .process__loop-label { opacity: 1; }
@media (max-width: 900px) {
  .motion .process { height: 300vh; }
  .process__list { grid-template-columns: 1fr; gap: 0; padding-left: 34px; }
  .process__track { left: 6px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .process__fill { transform-origin: top; transform: scaleY(var(--lp)); }
  .process__tip { left: -3px; top: calc(var(--lp) * 100%); margin: -3.5px 0 0; }
  .process__item { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding-bottom: 16px; }
  .process__item .num { height: auto; grid-column: 1; grid-row: 1; line-height: 2.1; }
  .process__dot { position: absolute; left: -34px; top: 7px; margin: 0; }
  .process__item h3 { grid-column: 2; font-size: 16px; line-height: 1.9; }
  .process__item p { grid-column: 1 / -1; margin-top: 2px; font-size: 12.5px; line-height: 1.8; }
  .process__head { margin-bottom: 28px; }
  .process__loop svg { display: none; }
  .process__loop { margin-top: 6px; }
  .process__loop-label { position: static; transform: none; display: inline-block; }
}
@media (max-width: 900px) and (max-height: 700px) { .process__item p { display: none; } }

/* ===== サービス（横スクロール） ===== */
.hs { padding: clamp(110px, 13vw, 180px) 0; }
.motion .hs { padding: 0; }
.motion .hs__sticky { display: flex; flex-direction: column; justify-content: center; }
.hs__head { display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vh, 64px); }
.hs__head .sec__head { margin: 0; }
.hs__bar { width: min(260px, 40vw); height: 1px; background: var(--line); position: relative; }
.hs__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.hs__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 0 var(--gut); max-width: var(--max); margin: 0 auto; }
.motion .hs__track { display: flex; gap: 24px; max-width: none; width: max-content; padding-left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); padding-right: var(--gut); will-change: transform; }
.scard {
  position: relative; display: flex; flex-direction: column; gap: 22px;
  min-height: 460px; padding: 34px 34px 32px; border: 1px solid var(--line2); background: #fff;
  transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s;
}
.motion .hs__track .scard { width: clamp(340px, 30vw, 420px); flex: none; min-height: min(520px, 62vh); }
.scard__top { display: flex; justify-content: space-between; align-items: start; }
.scard__n { font-family: var(--en); font-weight: 200; font-size: 56px; line-height: 1; letter-spacing: -.02em; }
.scard__icon { width: 64px; height: 64px; }
.scard__icon * { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.scard__body { margin-top: auto; }
.scard h3 { font-size: 18px; line-height: 1.65; letter-spacing: .06em; font-weight: 400; }
.scard p { margin-top: 14px; font-size: 13px; line-height: 1.95; color: var(--sub); transition: color .6s; }
.scard__arrow { display: inline-flex; align-items: center; justify-content: center; margin-top: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; font-family: var(--en); transition: transform .6s var(--ease); }
.scard:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.scard:hover p { color: rgba(255,255,255,.7); }
.scard:hover .scard__arrow { transform: rotate(-45deg); }
.scard--end { justify-content: center; align-items: center; text-align: center; border-style: dashed; }
.scard--end .scard__n { font-size: 40px; }
@media (max-width: 767px) {
  .motion .hs { padding: 110px 0; height: auto !important; }
  .motion .hs__sticky { position: relative; height: auto; overflow: visible; }
  .motion .hs__track { width: 100%; margin: 0; transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut) 8px; scroll-padding: 0 var(--gut); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .motion .hs__track::-webkit-scrollbar { display: none; }
  .motion .hs__track .scard { width: 80vw; min-height: 420px; scroll-snap-align: start; }
  .hs__bar { display: none; }
  .hs__swipe { display: block; }
}
.hs__swipe { display: none; margin-top: 14px; font-family: var(--en); font-size: 10px; letter-spacing: .3em; color: var(--sub); text-transform: uppercase; }

/* ===== コードと画面の線画 ===== */
.build { padding: clamp(110px, 13vw, 180px) 0; background: var(--gray); }
.motion .build { height: 320vh; padding: 0; }
.motion .build__sticky { display: flex; align-items: center; }
.build__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.build__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(8px, 2vh, 24px); }
.editor { background: #0d0d0d; color: #d6d6d6; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0,0,0,.45); }
.editor__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-bottom: 1px solid #222; }
.editor__bar i { width: 9px; height: 9px; border-radius: 50%; background: #333; }
.editor__bar span { margin-left: 12px; font-family: var(--mono); font-size: 11px; color: #777; letter-spacing: .02em; }
.editor pre { margin: 0; padding: 20px 0 24px; font-family: var(--mono); font-size: clamp(11px, .95vw, 13.5px); line-height: 1.85; letter-spacing: 0; overflow: hidden; counter-reset: ln; }
.editor .ln { display: block; white-space: pre; padding-left: 58px; position: relative; min-height: 1.85em; }
.editor .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 36px; text-align: right; color: #444; }
.editor .tx { display: inline-block; vertical-align: top; white-space: pre; overflow: hidden; max-width: none; }
.motion .editor .tx { max-width: calc(var(--n, 0) * 1ch); }
.editor .ln.is-cur .tx::after { content: ""; }
.motion .editor .ln.is-cur::after { content: ""; display: inline-block; width: 7px; height: 1.2em; vertical-align: -.2em; background: #fff; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.tk-k { color: #ffffff; }
.tk-s { color: #9b9b9b; }
.tk-c { color: #5c5c5c; }
.tk-v { color: #bdbdbd; }
.tk-f { color: #eaeaea; }
.wire { background: #fff; border: 1px solid var(--line2); border-radius: 10px; padding: 14px; }
.wire svg { width: 100%; height: auto; }
.wire .w { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.wire .w2 { stroke: var(--mute); }
.wire .wf { fill: var(--ink); stroke: none; }
.wire .wf2 { fill: #e9e9e9; stroke: none; }
.motion .wire .wf, .motion .wire .wf2 { opacity: 0; }
.build__cap { grid-column: 1 / -1; display: flex; gap: 24px; justify-content: space-between; font-size: 12px; color: var(--sub); }
@media (max-width: 900px) {
  .motion .build { height: 280vh; }
  .build__grid { grid-template-columns: 1fr; gap: 14px; }
  .build__head .h2 { font-size: 20px; }
  .editor pre { font-size: 10.5px; padding: 12px 0 14px; line-height: 1.7; }
  .editor .ln { padding-left: 36px; }
  .editor .ln::before { width: 22px; }
  .wire { padding: 8px; }
  .build__cap { display: none; }
}
@media (max-width: 900px) and (max-height: 760px) { .wire { display: none; } }

/* ===== 特徴の一覧 ===== */
.feats { border-top: 1px solid var(--line); }
.feat { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 0 24px; padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.feat::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); }
.feat__n { font-family: var(--en); font-weight: 200; font-size: 34px; line-height: 1.1; letter-spacing: -.01em; color: var(--mute); }
.feat h3 { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.7; letter-spacing: .06em; }
.feat > p:last-child { grid-column: 2; margin-top: 14px; color: var(--ink2); font-size: 14.5px; }
.motion .feat::before { transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.motion .feat.is-in::before { transform: none; }
.feat::before { transform: scaleX(0); }
@media (max-width: 600px) { .feat { grid-template-columns: 1fr; } .feat > p:last-child { grid-column: 1; } .feat__n { font-size: 26px; margin-bottom: 10px; } }

/* ===== 制作例・自社プロダクト ===== */
.works-teaser { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.thumbs__cell:nth-child(2n) { margin-top: 64px; }
.thumb { background: var(--gray); border-radius: 4px; overflow: hidden; }
.thumb svg { width: 100%; height: auto; }
.thumb figcaption { padding: 12px 14px; font-size: 11.5px; letter-spacing: .1em; color: var(--sub); border-top: 1px solid var(--line); background: #fff; }
@media (max-width: 900px) { .works-teaser { grid-template-columns: 1fr; } .thumbs__cell:nth-child(2n) { margin-top: 32px; } }

.cards { display: grid; gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .cards--2 { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line2); transition: border-color .5s, transform .7s var(--ease), box-shadow .7s var(--ease); }
.card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); }
.card__tag { font-size: 11px; letter-spacing: .16em; color: var(--sub); }
.card h3 { font-size: 20px; letter-spacing: .06em; line-height: 1.6; }
.card p { font-size: 14px; color: var(--ink2); }
.card__links { margin-top: auto; padding-top: 10px; font-size: 13px; }

/* 定義リスト（会社概要など） */
.dtable { border-top: 1px solid var(--line); }
.dtable > div { position: relative; display: grid; grid-template-columns: minmax(110px, 200px) minmax(0, 1fr); gap: 16px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.dtable > div::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); }
.motion .dtable > div::before { transform-origin: left; transition: transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.motion .dtable > div.is-in::before { transform: scaleX(1); }
.motion .dtable > div.is-in::before { animation: lineOut 1.4s var(--ease) 1.2s forwards; }
@keyframes lineOut { to { transform: scaleX(1); opacity: .0; } }
.dtable dt { font-size: 13px; color: var(--sub); letter-spacing: .1em; }
.dtable dd { font-size: 15px; }
.dtable dd li { position: relative; padding-left: 18px; }
.dtable dd li::before { content: ""; position: absolute; left: 0; top: 1em; width: 8px; height: 1px; background: var(--ink); }
@media (max-width: 600px) { .dtable > div { grid-template-columns: 1fr; gap: 4px; padding: 20px 0; } }

/* ---------- 下層：サービス ---------- */
.toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(48px, 6vw, 80px); }
.toc a { position: relative; display: flex; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 15px; letter-spacing: .06em; transition: padding .6s var(--ease); }
.toc a:nth-child(odd) { margin-right: 24px; }
.toc a:nth-child(even) { margin-left: 24px; }
.toc a span { font-family: var(--en); font-size: 11px; letter-spacing: .14em; color: var(--sub); }
.toc a::after { content: "↓"; margin-left: auto; font-family: var(--en); opacity: .4; transition: transform .6s var(--ease), opacity .4s; }
.toc a:hover { padding-left: 10px; }
.toc a:hover::after { transform: translateY(4px); opacity: 1; }
@media (max-width: 760px) { .toc { grid-template-columns: 1fr; } .toc a:nth-child(n) { margin: 0; } }

.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); padding: clamp(96px, 11vw, 160px) 0; border-top: 1px solid var(--line); scroll-margin-top: 40px; }
.svc__top { position: sticky; top: calc(var(--hd) + 32px); align-self: start; }
.svc__n { display: flex; align-items: baseline; gap: 16px; font-family: var(--en); font-size: 11px; letter-spacing: .3em; color: var(--sub); }
.svc__big { font-family: var(--en); font-weight: 200; font-size: clamp(80px, 11vw, 160px); line-height: .9; letter-spacing: -.04em; color: var(--ink); margin: 18px 0 26px -.04em; }
.svc h2 { font-size: clamp(21px, 2.1vw, 28px); letter-spacing: .08em; line-height: 1.6; margin-bottom: 20px; }
.stack__label { margin-top: 26px; font-size: 11.5px; letter-spacing: .14em; color: var(--sub); }
.stack__label + .stack { margin-top: 10px; }
.stack__label + .dtable { margin-top: 12px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.stack li, .chips li { font-family: var(--en); font-size: 11.5px; letter-spacing: .06em; line-height: 1; padding: 8px 12px; border: 1px solid var(--line2); border-radius: 999px; color: var(--ink2); }
.svc__body { display: grid; gap: clamp(48px, 5vw, 72px); }
.svc__block h3 { font-size: 13px; letter-spacing: .2em; color: var(--sub); margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.svc__block h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bullets li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.9; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: 12px; height: 1px; background: var(--ink); }
.bullets.small li { font-size: 13px; padding: 8px 0 8px 22px; }
.bullets.small li::before { top: 1.3em; width: 9px; }
.steps { position: relative; counter-reset: st; padding-left: 52px; --p: 1; }
.steps::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 1px; background: var(--ink); transform-origin: top; transform: scaleY(var(--p)); }
.steps li { position: relative; counter-increment: st; padding: 12px 0 18px; font-size: 14.5px; line-height: 1.9; transition: color .6s; }
.steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: -52px; top: 13px; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ink); background: #fff; font-family: var(--en); font-size: 10px; letter-spacing: 0; line-height: 1; transition: background-color .5s, color .5s, border-color .5s; }
.steps li.is-on::before { background: var(--ink); color: #fff; }
.motion .steps li { color: var(--mute); }
.motion .steps li::before { border-color: var(--line2); }
.motion .steps li.is-on { color: var(--ink); }
.motion .steps li.is-on::before { border-color: var(--ink); }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.meta > div { background: #fff; padding: 24px 26px; }
.meta dt { font-size: 12px; letter-spacing: .16em; color: var(--sub); margin-bottom: 10px; }
.meta dd { font-size: 14px; line-height: 1.95; }
@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; }
  .svc__top { position: static; }
  .meta { grid-template-columns: 1fr; }
}

/* ---------- 下層：開発パートナー ---------- */
.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.chain li { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 140px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; letter-spacing: .08em; transition: background-color .7s var(--ease), color .7s var(--ease); transition-delay: var(--d, 0s); }
.chain li .num { transition: color .7s; transition-delay: var(--d, 0s); }
.chain svg { width: 18px; height: 18px; }
.chain svg path { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 20; stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease); transition-delay: calc(var(--d, 0s) + .3s); }
.motion .chain svg path { stroke-dashoffset: 20; }
.motion .chain.is-in svg path { stroke-dashoffset: 0; }
.motion .chain.is-in li { background: var(--ink); color: #fff; }
.motion .chain.is-in li .num { color: rgba(255,255,255,.5); }
.motion .chain.is-done li { background: #fff; color: var(--ink); transition-delay: var(--d2, 0s); }
.motion .chain.is-done li .num { color: var(--sub); transition-delay: var(--d2, 0s); }
@media (max-width: 760px) { .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chain li { min-height: 110px; font-size: 14px; } }
.note { font-size: 13px; color: var(--sub); line-height: 1.95; }

.flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 44px; --p: 1; }
.flow::before, .flow::after { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: var(--line); }
.flow::after { background: var(--ink); transform-origin: left; transform: scaleX(var(--p)); }
.flow li { position: relative; counter-increment: fl; }
.flow { counter-reset: fl; }
.flow li::before { content: counter(fl, decimal-leading-zero); position: absolute; top: -44px; left: 0; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ink); background: #fff; font-family: var(--en); font-size: 10px; line-height: 1; transition: background-color .5s, color .5s, border-color .5s; }
.flow li.is-on::before { background: var(--ink); color: #fff; }
.motion .flow li::before { border-color: var(--line2); }
.motion .flow li.is-on::before { border-color: var(--ink); }
.flow b { display: block; font-weight: 400; font-size: 17px; letter-spacing: .08em; margin-bottom: 10px; }
.flow span { font-size: 13.5px; color: var(--ink2); line-height: 1.95; display: block; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; padding: 0 0 0 52px; gap: 26px; }
  .flow::before, .flow::after { left: 13px; right: auto; top: 14px; bottom: 14px; width: 1px; height: auto; }
  .flow::after { transform-origin: top; transform: scaleY(var(--p)); }
  .flow li::before { top: 0; left: -52px; }
}

/* ---------- 下層：制作例 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 40px); }
.works-grid .work:nth-child(2n) { margin-top: clamp(0px, 8vw, 120px); }
.work__thumb { background: var(--gray); overflow: hidden; border-radius: 4px; }
.work__thumb svg { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.work:hover .work__thumb svg { transform: scale(1.03); }
.work__body { padding-top: 26px; display: grid; gap: 12px; }
.work h3 { font-size: 19px; letter-spacing: .06em; line-height: 1.6; }
.work p { font-size: 14px; color: var(--ink2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 760px) { .works-grid { grid-template-columns: 1fr; } .works-grid .work:nth-child(2n) { margin-top: 0; } }

/* ---------- 下層：会社概要 ---------- */
.rep__name { font-size: clamp(26px, 3vw, 38px); letter-spacing: .14em; line-height: 1.4; }
.rep__role { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .14em; color: var(--sub); }
.rep__text { margin-top: 30px; }

/* 代表の経歴：立場の変遷（PCは画面を固定して1段ずつ点灯／スマホは縦線が伸びる） */
.career { position: relative; padding: clamp(110px, 13vw, 200px) 0; border-top: 1px solid var(--line); }
.motion .career { height: 320vh; padding: 0; }
.motion .career__sticky { display: flex; align-items: center; padding-top: calc(var(--hd) * .6); }
.career__head { display: flex; justify-content: space-between; align-items: end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(40px, 7vh, 88px); }
.career__head .sec__head { margin: 0; }
.career__note { font-size: 14.5px; line-height: 2; color: var(--ink2); }
.career__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
html:not(.motion) .career__grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-left: auto; }
.career__big { display: none; }
.motion .career__big { display: block; }
.career__mask { height: 1.3em; overflow: hidden; font-family: var(--en); font-weight: 200; font-size: clamp(44px, 5.4vw, 88px); line-height: 1.3; letter-spacing: -.03em; }
.career__words { transform: translate3d(0, calc(var(--ci, 0) * -1.3em), 0); transition: transform 1.1s var(--ease); }
.career__words span { display: block; height: 1.3em; }
.career__count { margin-top: 22px; font-family: var(--en); font-size: 11px; letter-spacing: .3em; color: var(--sub); }
.career__cur { color: var(--ink); }
.career__list { position: relative; padding-left: 56px; }
.career__list ol { display: grid; gap: clamp(22px, 4.2vh, 46px); }
.career__rail { position: absolute; left: 13px; top: 14px; bottom: 14px; width: 1px; background: var(--line); --lp: 1; }
.career__fill { position: absolute; inset: 0; background: var(--ink); transform-origin: top; transform: scaleY(var(--lp)); }
.career__tip { position: absolute; left: -3px; top: calc(var(--lp) * 100%); width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(200,16,46,.15); }
html:not(.motion) .career__tip { display: none; }
.career__item { position: relative; }
/* JSが無いときは線の長さを測れないので、最後の点から下の線を地の色で隠す */
html:not(.motion) .career__item:last-child::before { content: ""; position: absolute; left: -46px; top: 27px; bottom: -40px; width: 7px; background: var(--paper); }
.career__dot { position: absolute; left: -56px; top: 0; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-family: var(--en); font-size: 10px; letter-spacing: 0; line-height: 1; transition: background-color .5s, color .5s, border-color .5s, transform .6s var(--ease); }
.career__en { font-family: var(--en); font-size: 11px; line-height: 27px; letter-spacing: .3em; text-transform: uppercase; color: var(--sub); }
.career__item h3 { margin-top: 4px; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.6; letter-spacing: .08em; transition: color .6s; }
.career__item h3 + p { margin-top: 10px; font-size: 14px; line-height: 1.95; color: var(--ink2); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion .career__item:not(.is-on) .career__dot { background: #fff; color: var(--mute); border-color: var(--line2); }
.motion .career__item:not(.is-on) h3 { color: var(--mute); }
.motion .career__item:not(.is-on) h3 + p { opacity: .25; transform: translate3d(0, 8px, 0); }
.motion .career__item.is-on .career__dot { transform: scale(1.1); }
@media (max-width: 900px) {
  .motion .career { height: auto !important; padding: clamp(110px, 13vw, 200px) 0; }
  .motion .career .career__sticky { position: relative; height: auto; overflow: visible; display: block; padding-top: 0; }
  .career__grid, html:not(.motion) .career__grid { grid-template-columns: minmax(0, 1fr); margin: 0; }
  .motion .career__big { display: none; }
  .career__list { padding-left: 48px; }
  .career__dot { left: -48px; }
  html:not(.motion) .career__item:last-child::before { left: -38px; }
  .career__list ol { gap: 34px; }
}
@media (min-width: 901px) and (max-height: 720px) { .career__head { margin-bottom: 28px; } .career__note { display: none; } }

/* 代表の役割（黒地） */
.roles { background: var(--black); color: #fff; }
.roles .eyebrow, .roles .num { color: rgba(255,255,255,.5); }
.roles__head, .exp__head { display: flex; justify-content: space-between; align-items: end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 88px); }
.roles__head .sec__head, .exp__head .sec__head { margin: 0; }
.roles__note { font-size: 14.5px; line-height: 2; color: rgba(255,255,255,.62); }
.roles__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.role { display: flex; flex-direction: column; min-height: 270px; padding: clamp(22px, 2.2vw, 32px); background: var(--black); transition: background-color .6s var(--ease), color .6s var(--ease); }
.role__top { display: flex; justify-content: space-between; align-items: start; padding-bottom: clamp(36px, 4vw, 56px); }
.role__icon { width: 48px; height: 48px; overflow: visible; }
.role__icon * { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.role__en { font-family: var(--en); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.45); line-height: 1.6; transition: color .6s; }
.role h3 { margin-top: 6px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; letter-spacing: .08em; }
.role h3 + p { margin-top: 10px; font-size: 12.5px; line-height: 1.85; color: rgba(255,255,255,.62); transition: color .6s; }
.role:hover { background: #fff; color: var(--ink); }
.role:hover .role__en, .role:hover .num { color: var(--sub); }
.role:hover h3 + p { color: var(--ink2); }
@media (max-width: 1000px) { .roles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .role { min-height: 230px; } }
@media (max-width: 600px) {
  .roles__grid { grid-template-columns: minmax(0, 1fr); }
  .role { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; min-height: 0; padding: 22px 20px; }
  .role__top { grid-row: 1 / span 3; flex-direction: column-reverse; gap: 8px; margin: 0; padding: 0; }
  .role__icon { width: 40px; height: 40px; }
  .role h3 { margin-top: 2px; font-size: 17px; }
  .role h3 + p { margin-top: 4px; }
}

/* 関わってきた業界（スクロールで1語ずつ濃くなる） */
.inds { display: flex; flex-wrap: wrap; gap: .25em .95em; font-weight: 200; font-size: clamp(30px, 5.2vw, 78px); line-height: 1.4; letter-spacing: .04em; }
.inds li { display: inline-flex; align-items: flex-start; gap: .28em; transition: color .7s var(--ease); }
.inds__n { font-family: var(--en); font-weight: 300; font-size: 11px; line-height: 1; letter-spacing: .1em; color: var(--sub); padding-top: .9em; }
.motion .inds li { color: #dcdcdc; }
.motion .inds li.is-on { color: var(--ink); }
.inds__note { margin-top: clamp(36px, 5vw, 64px); font-size: 13px; color: var(--sub); }
@media (max-width: 600px) { .inds { font-size: 30px; gap: .2em .8em; } .inds__n { font-size: 10px; padding-top: .7em; } }

/* 代表の開発経験（一覧） */
.exp__note { max-width: 34em; padding-left: 20px; border-left: 1px solid var(--ink); font-size: 13px; line-height: 1.95; color: var(--ink2); }
.exp { border-top: 1px solid var(--line); }
.exp > li { position: relative; display: grid; grid-template-columns: minmax(130px, 2fr) minmax(0, 6fr) minmax(0, 3fr); gap: 10px clamp(24px, 3vw, 48px); padding: clamp(24px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); }
.exp > li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.exp > li:hover::after { transform: none; }
.exp__ind { display: flex; align-items: baseline; gap: 14px; font-size: 13px; letter-spacing: .12em; color: var(--ink2); line-height: 1.9; }
.exp h3 { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; letter-spacing: .06em; font-weight: 400; }
.exp__main p { margin-top: 6px; font-size: 13.5px; line-height: 1.95; color: var(--ink2); }
.exp__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: 6px; padding-top: 4px; }
.exp__tags li { font-size: 11px; letter-spacing: .06em; line-height: 1; padding: 7px 11px; border: 1px solid var(--line2); border-radius: 999px; color: var(--ink2); white-space: nowrap; }
.motion .exp > li[data-reveal] { transform: translate3d(0, 20px, 0); }
.motion .exp > li[data-reveal].is-in { transform: none; }
@media (max-width: 900px) {
  .exp > li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .exp__tags { justify-content: flex-start; padding-top: 8px; }
}

/* ---------- 下層：お問い合わせ ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 36px; }
.form__msg { display: none; padding: 20px 22px; border: 1px solid var(--ink); font-size: 14px; line-height: 1.95; }
.form__msg.is-shown { display: block; animation: fadeUp .8s var(--ease); }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { display: flex; align-items: center; gap: 10px; padding: 0; font-size: 13px; letter-spacing: .1em; margin-bottom: 10px; }
.req, .opt { font-size: 10.5px; letter-spacing: .1em; padding: 2px 8px; line-height: 1.5; border: 1px solid var(--ink); }
.opt { border-color: var(--line2); color: var(--sub); }
.req { background: var(--ink); color: #fff; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line2); border-radius: 0; background: transparent;
  padding: 12px 0; font: inherit; font-size: 16px; color: var(--ink); outline: none;
  background-image: linear-gradient(var(--ink), var(--ink)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .7s var(--ease);
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.9; }
.field input:focus, .field textarea:focus { background-size: 100% 1px; }
.field ::placeholder { color: var(--mute); }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label { position: relative; cursor: pointer; }
.radios input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radios span { display: inline-block; padding: 10px 20px; border: 1px solid var(--line2); border-radius: 999px; font-size: 13px; line-height: 1.4; transition: background-color .4s, color .4s, border-color .4s; }
.radios input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.radios input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.aside-box { position: sticky; top: calc(var(--hd) + 32px); padding: 34px; background: var(--black); color: #fff; display: grid; gap: 18px; }
.aside-box h2 { font-size: 15px; letter-spacing: .14em; }
.aside-box .muted { color: rgba(255,255,255,.62); }
.aside-box .bullets li { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.82); }
.aside-box .bullets li::before { background: #fff; }
.mail-big { font-family: var(--en); font-weight: 300; font-size: clamp(18px, 1.9vw, 24px); letter-spacing: .02em; word-break: break-all; }
@media (max-width: 900px) { .aside-box { position: static; } }

/* ---------- お問い合わせ導線（黒） ---------- */
.cta { background: var(--black); color: #fff; padding: clamp(120px, 15vw, 220px) 0 clamp(90px, 10vw, 140px); position: relative; overflow: hidden; }
.cta .eyebrow { color: rgba(255,255,255,.5); }
.cta__title { margin-top: 34px; font-size: clamp(28px, 5.4vw, 80px); line-height: 1.4; letter-spacing: .06em; font-weight: 200; }
.cta__row { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 80px); }
.cta__row p { max-width: 34em; color: rgba(255,255,255,.66); font-size: 14.5px; }
.cta__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta__circle {
  position: relative; display: grid; place-items: center; width: 168px; height: 168px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 13px; letter-spacing: .14em; text-align: center; line-height: 1.7;
  overflow: hidden; isolation: isolate; transition: transform .7s var(--ease), color .5s, border-color .5s;
}
.cta__circle::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .6s var(--ease); z-index: -1; }
.cta__circle:hover { color: var(--ink); border-color: #fff; }
.cta__circle:hover::before { transform: scale(1); }
.cta__circle .arrow { display: block; font-family: var(--en); }
.cta__mail { font-family: var(--en); font-weight: 300; font-size: 16px; letter-spacing: .06em; }

/* ---------- フッター ---------- */
.ft { background: var(--black); color: #fff; padding: 0 0 36px; position: relative; overflow: hidden; }
.ft__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 56px 0; border-top: 1px solid rgba(255,255,255,.12); }
.ft__name { font-size: 14px; letter-spacing: .12em; margin-bottom: 10px; }
.ft__desc { font-size: 12.5px; line-height: 2; color: rgba(255,255,255,.55); }
.ft__links { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: start; font-size: 12.5px; letter-spacing: .1em; max-width: 520px; }
.ft__mark { width: 100%; padding: 10px 0 30px; }
.ft__mark img { width: 100%; height: auto; opacity: .95; }
.ft__copy { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--en); font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.4); }
.ft__copy a { color: inherit; }
.motion .ft__mark img { clip-path: inset(0 0 100% 0); transition: clip-path 1.6s var(--ease); }
.motion .ft__mark.is-in img { clip-path: inset(0 0 0 0); }

/* ---------- カーソル（PCのみ） ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
.cursor { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid #fff; transition: opacity .3s, width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .45s; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: #fff; }
.has-cursor .cursor, .has-cursor .cursor-dot { opacity: 1; }
.cursor.is-link { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: rgba(255,255,255,1); }
.cursor.is-down { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.cursor.is-text { width: 2px; height: 28px; margin: -14px 0 0 -1px; border-radius: 1px; background: #fff; }

/* ---------- ページ遷移 ---------- */
.motion body { animation: pageIn .9s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.pt { position: fixed; inset: 0; z-index: 80; background: #fff; opacity: 0; pointer-events: none; transition: opacity .45s var(--ease2); }
.is-leaving .pt { opacity: 1; pointer-events: auto; }

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__scroll i::after { display: none; }
}
@media print {
  .hd, .cursor, .cursor-dot, .pt, .hero__scroll { display: none !important; }
}
@media (max-width: 480px) {
  .btn { padding: 0 22px; letter-spacing: .08em; gap: 12px; white-space: nowrap; }
  .process .h2 { font-size: 20px; }
}

/* 稲妻と同時に、VIの赤が一瞬強く光る */
.hero__logo.is-surge .vl-vi { filter: drop-shadow(0 0 24px rgba(255,31,45,.9)) drop-shadow(0 0 6px rgba(255,120,130,.9)); }
.hero__logo .vl-vi { transition: filter .25s ease-out; }
.hero__bolt .bolt__aura { transform-box: fill-box; transform-origin: center; }
.hero__logo.is-surge .hero__bolt .bolt__aura { animation: boltAura .16s ease-out forwards; }
@keyframes boltAura { 0% { transform: scale(.55); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
