@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

:root {
  --black: #050507;
  --deep: #08090e;
  --paper: #eeece5;
  --white: #f5f3ed;
  --ink: #0a0a0b;
  --violet: #8c78ff;
  --cyan: #69e5dc;
  --pink: #f195cc;
  --lime: #cbff63;
  --line-dark: rgba(245, 243, 237, 0.18);
  --line-light: rgba(10, 10, 11, 0.18);
  --page-p: 0;
  --pointer-x: 50%;
  --pointer-y: 50%;
  --sans: "DM Sans", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
canvas {
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.intro {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 25px;
  background: var(--paper);
  color: var(--ink);
  transition: clip-path 1.1s cubic-bezier(.76, 0, .24, 1) 1.55s;
  clip-path: inset(0);
}

.is-ready .intro {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.intro-mark {
  display: flex;
  align-items: baseline;
  font-size: clamp(72px, 12vw, 180px);
  font-weight: 700;
  line-height: .7;
  letter-spacing: -.09em;
}

.intro-mark span {
  opacity: 0;
  transform: translateY(35px) scaleY(.55);
  transform-origin: bottom;
  animation: intro-letter .75s cubic-bezier(.22, 1, .36, 1) forwards;
}

.intro-mark__slash {
  color: var(--violet);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  animation-delay: .14s !important;
}

.intro-mark__m {
  animation-delay: .26s !important;
}

.intro-line {
  width: min(320px, 55vw);
  height: 2px;
  background: rgba(10, 10, 11, .15);
  overflow: hidden;
}

.intro-line::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--violet);
  transform: translateX(-100%);
  animation: intro-line 1s cubic-bezier(.22, 1, .36, 1) .25s forwards;
}

.intro p {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  opacity: 0;
  animation: intro-fade .5s ease .55s forwards;
}

@keyframes intro-letter {
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}

@keyframes intro-line {
  to { transform: translateX(0); }
}

@keyframes intro-fade {
  to { opacity: 1; }
}

#signal-canvas {
  position: fixed;
  z-index: 7;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.noise {
  position: fixed;
  z-index: 200;
  inset: 0;
  opacity: .05;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 23% 37%, rgba(255, 255, 255, .34) 0 1px, transparent 1px 3px);
  background-size: 133px 137px;
  mix-blend-mode: overlay;
}

.cursor {
  position: fixed;
  z-index: 300;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 243, 237, .55);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: width .22s, height .22s, border-color .22s, background .22s;
  mix-blend-mode: difference;
}

.cursor span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
}

.cursor.is-hovering {
  width: 68px;
  height: 68px;
  border-color: transparent;
  background: var(--white);
}

.site-header {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  padding: 0 clamp(18px, 2.2vw, 34px);
  color: var(--white);
  mix-blend-mode: difference;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity .7s ease 2s, transform .8s cubic-bezier(.22, 1, .36, 1) 2s;
}

.is-ready .site-header {
  opacity: 1;
  transform: translateY(0);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand b {
  font-weight: 400;
  opacity: .58;
}

.brand__sigil {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.brand__sigil i,
.brand__sigil::before,
.brand__sigil::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  transform-origin: 50% 0;
}

.brand__sigil i { transform: rotate(0deg) translate(-50%, -1px); }
.brand__sigil::before { transform: rotate(120deg) translate(-50%, -1px); }
.brand__sigil::after { transform: rotate(240deg) translate(-50%, -1px); }

.header-status {
  justify-self: center;
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .17em;
}

.header-status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.site-header nav {
  display: none;
}

.header-contact {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.header-contact span {
  display: inline-block;
  margin-left: 10px;
  transition: transform .2s;
}

.header-contact:hover span {
  transform: translate(3px, -3px);
}

.page-progress {
  position: fixed;
  z-index: 150;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .08);
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--pink));
  transform: scaleX(var(--page-p));
  transform-origin: left;
}

.scene-index {
  position: fixed;
  z-index: 118;
  right: 27px;
  top: 50%;
  display: grid;
  gap: 9px;
  justify-items: center;
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  mix-blend-mode: difference;
  transform: translateY(-50%);
}

.scene-index i {
  width: 1px;
  height: 62px;
  background: linear-gradient(var(--white) calc(var(--page-p) * 100%), rgba(255, 255, 255, .2) 0);
}

main {
  position: relative;
  z-index: 2;
}

.motion-section {
  --p: 0;
  --q: 1;
  --center: 0;
  position: relative;
}

.sticky-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.eyebrow,
.chapter-head,
.hero-edition {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
}

.jp-pair {
  font-family: var(--jp);
  font-weight: 500;
  letter-spacing: .08em;
}

.hero {
  height: 175svh;
  background: var(--paper);
  color: var(--ink);
}

.hero-stage {
  background: var(--paper);
}

.hero-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  clip-path: inset(calc(9% * var(--q)) calc(49% * var(--q)) round 28px);
  transform: scale(calc(.82 + var(--p) * .18));
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .08), transparent 25%, transparent 69%, rgba(0, 0, 0, .3)),
    linear-gradient(90deg, rgba(238, 236, 229, .2), transparent 33%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(calc(.85 + var(--p) * .38)) contrast(1.08);
  transform: scale(calc(1.09 - var(--p) * .06)) rotate(calc((var(--p) - .5) * 1.2deg));
}

.hero-image__iris {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: var(--paper);
  clip-path: circle(calc(7% + var(--p) * 78%) at 50% 50%);
  mix-blend-mode: color;
  opacity: calc(.46 * var(--q));
}

/* ヒーロー上部スクリム — 実機レビュー(7/31): 結晶画像の明部でヘッダー文字が混色するため */
.hero-stage::before {
  content: "";
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(rgb(5 5 7 / .72), rgb(5 5 7 / .38) 55%, transparent);
  pointer-events: none;
}

.hero-image__echo {
  position: absolute;
  z-index: 3;
  top: 16%;
  left: 50%;
  width: min(46vw, 640px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(calc(.35 + var(--p) * .95));
  opacity: calc(.6 * var(--q));
}

.hero-image__echo--b {
  transform: translate(-50%, -50%) scale(calc(.15 + var(--p) * 1.35));
  border-color: rgba(105, 229, 220, .4);
}

.hero-image__label {
  position: absolute;
  z-index: 4;
  right: 26px;
  bottom: 26px;
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
}

.hero-edition {
  position: absolute;
  z-index: 4;
  top: 96px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  opacity: calc(.95 - var(--p) * .8);
}

.hero-title {
  position: absolute;
  z-index: 5;
  top: 49%;
  left: 2.2vw;
  right: 2.2vw;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin: 0;
  font-size: clamp(82px, 15.1vw, 226px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .68;
  transform: translateY(calc(-50% - var(--p) * 24vh));
  /* Codexレビュー+7/31iPad検証: 画像展開前(明背景)=ink、展開後(暗画像)=whiteへ進行連動で補間。
     differenceに頼らず常時コントラストを確保する */
  color: color-mix(in oklab, var(--ink) calc((1 - var(--p, 0)) * 100%), var(--white));
  text-shadow: 0 2px 26px rgb(5 5 7 / calc(var(--p, 0) * .55));
}

.hero-title > span {
  display: block;
  opacity: 0;
  transform: scaleY(.5) translateY(70px);
  transform-origin: bottom;
  transition: opacity .8s ease 2.18s, transform 1.1s cubic-bezier(.22, 1, .36, 1) 2.05s;
}

.is-ready .hero-title > span {
  opacity: 1;
  transform: scaleY(1) translateY(0);
}

.hero-title__ideas {
  grid-column: 1 / -1;
}

.hero-title__need {
  padding-left: 1.4vw;
  transition-delay: 2.17s !important;
}

.hero-title__need em {
  color: var(--violet);
  font-family: var(--serif);
  font-size: .62em;
  font-weight: 400;
  letter-spacing: -.045em;
}

.hero-title__motion {
  justify-self: end;
  padding-right: .05em;
  transition-delay: 2.27s !important;
}

.hero-copy {
  position: absolute;
  z-index: 6;
  left: 28px;
  right: 28px;
  bottom: 27px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  opacity: calc(1 - var(--p) * 1.8);
  transform: translateY(calc(var(--p) * 30px));
}

.hero-copy p {
  margin: 0;
}

.hero-copy .jp-pair {
  font-size: clamp(16px, 1.65vw, 24px);
  line-height: 1.75;
}

.hero-copy > p:last-child {
  width: 320px;
  font-size: 16px;
  line-height: 1.65;
}

.hero-scroll {
  position: absolute;
  z-index: 6;
  right: 28px;
  bottom: 122px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .16em;
  opacity: calc(1 - var(--p) * 3);
}

.hero-scroll i {
  width: 42px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: scroll-pulse 1.7s ease-in-out infinite;
}

@keyframes scroll-pulse {
  50% { transform: scaleX(.28); transform-origin: right; }
}

.manifesto {
  height: 240svh;
  background: var(--paper);
  color: var(--ink);
}

.manifesto-stage {
  display: grid;
  place-content: center;
  background: var(--paper);
  padding: 7vh 3vw 3vh;
}

.manifesto-stage > .eyebrow {
  position: absolute;
  top: 94px;
  left: 28px;
}

.manifesto-stage > .eyebrow span {
  display: inline-block;
  margin-right: 32px;
  color: var(--violet);
}

.manifesto-lines {
  position: relative;
  z-index: 2;
  width: 94vw;
  transform: scale(calc(.7 + var(--p) * .3));
}

.manifesto-lines p {
  margin: 0;
  font-size: clamp(54px, 10.8vw, 164px);
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: .76;
  white-space: nowrap;
}

.manifesto-lines p:nth-child(1),
.manifesto-lines p:nth-child(3) {
  transform: translateX(calc((1 - var(--p)) * -18vw));
}

.manifesto-lines p:nth-child(2),
.manifesto-lines p:nth-child(4) {
  text-align: right;
  transform: translateX(calc((1 - var(--p)) * 20vw));
}

.manifesto-lines .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.manifesto-lines .serif {
  padding-right: .05em;
  color: var(--violet);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.035em;
}

.manifesto-jp {
  position: absolute;
  z-index: 3;
  right: 3vw;
  bottom: 5vh;
  margin: 0;
  padding: 9px 12px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--jp);
  font-size: clamp(16px, 1.7vw, 25px);
  font-weight: 500;
  letter-spacing: .18em;
  transform: translateY(calc((1 - var(--p)) * 30px));
  opacity: var(--p);
}

.manifesto-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(46vw, 660px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(calc(var(--p) * 160deg)) scale(calc(.25 + var(--p) * .9));
  opacity: calc(.08 + var(--p) * .14);
}

.manifesto-orbit i {
  position: absolute;
  inset: 0;
  border: 1px solid var(--violet);
  border-radius: 50%;
}

.manifesto-orbit i:nth-child(2) { transform: rotateX(62deg); }
.manifesto-orbit i:nth-child(3) { transform: rotateY(62deg); }

.story {
  height: 290svh;
}

.chapter-head {
  position: absolute;
  z-index: 20;
  top: 94px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
}

.chapter-head--light {
  color: var(--white);
}

.growth {
  background: var(--lime);
  color: var(--ink);
}

.growth-stage {
  isolation: isolate;
  background: var(--lime);
}

.growth-image {
  position: absolute;
  z-index: 2;
  top: 13vh;
  right: 6vw;
  width: min(65vw, 990px);
  height: 70vh;
  overflow: hidden;
  clip-path: inset(calc(44% * var(--q)) calc(40% * var(--q)));
  transform: translateX(calc((var(--p) - .5) * -13vw)) rotate(calc((var(--p) - .5) * -5deg));
  box-shadow: 0 25px 80px rgba(0, 0, 0, .28);
}

.growth-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  mix-blend-mode: color;
  opacity: calc(.55 * var(--q));
}

.growth-image > img,
.growth-image__slice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.15) saturate(.95);
}

.growth-image > img {
  transform: scale(1.14) translateX(calc((var(--p) - .5) * 8%));
}

.growth-image__slice {
  position: absolute;
  inset: 0;
  clip-path: polygon(28% 0, 66% 0, 82% 100%, 42% 100%);
  transform: translateX(calc((var(--p) - .5) * 18vw));
  filter: saturate(1.5);
}

.growth-ghost {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  margin: 0;
  color: transparent;
  font-size: clamp(180px, 32vw, 470px);
  font-weight: 700;
  letter-spacing: -.1em;
  line-height: .7;
  white-space: nowrap;
  -webkit-text-stroke: 2px rgba(10, 10, 11, .14);
  transform: translate(calc(-50% + (var(--p) - .5) * 10vw), -50%) scaleX(calc(.75 + var(--p) * .3));
}

.growth-copy {
  position: absolute;
  z-index: 5;
  left: 3vw;
  bottom: 7vh;
  /* rgb(193,245,110)はlimeとの差分がちょうどink(10,10,11)になる値。
     lime面では従来通りのink表示、画像貫通部では明るいライム系に反転して常時可読 */
  color: rgb(193, 245, 110);
  mix-blend-mode: difference;
}

.growth-copy .eyebrow {
  margin-bottom: 22px;
}

.growth-copy h2,
.field-title h2,
.prism-copy h2,
.company-top h2 {
  margin: 0;
  font-size: clamp(57px, 8.3vw, 126px);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .78;
}

.growth-copy h2 {
  transform: translateY(calc((1 - var(--p)) * 80px)) scaleX(calc(.72 + var(--p) * .28));
  transform-origin: left bottom;
}

.growth-copy h2 em,
.field-title h2 em,
.prism-copy h2 em,
.company-top h2 em {
  font-family: var(--serif);
  font-weight: 400;
}

.copy-pair {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(240px, 1fr);
  gap: clamp(28px, 7vw, 120px);
  align-items: end;
  max-width: 730px;
  margin-top: 30px;
}

.copy-pair p {
  margin: 0;
}

.copy-pair .jp-pair {
  font-size: clamp(16px, 1.6vw, 23px);
  line-height: 1.75;
}

.copy-pair p:last-child {
  font-size: 16px;
  line-height: 1.7;
}

.growth-meter {
  position: absolute;
  z-index: 6;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .12em;
}

.growth-meter i {
  width: 22px;
  height: 1px;
  background: currentColor;
  transform: scaleX(var(--p));
}

.field {
  height: 340svh;
  background: var(--deep);
}

.field-stage {
  background: var(--deep);
}

.field-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(calc(18% * var(--q)) calc(10% * var(--q)));
}

.field-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
  filter: brightness(calc(.52 + var(--p) * .34)) saturate(calc(.62 + var(--p) * .7));
  transform: scale(calc(1.2 - var(--p) * .13)) translateY(calc((var(--p) - .5) * -4vh));
}

.field-image__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 9, 14, .78), transparent 35%, rgba(8, 9, 14, .48)),
    linear-gradient(90deg, rgba(8, 9, 14, .55), transparent 40%);
}

.field-title {
  position: absolute;
  z-index: 4;
  top: 17vh;
  left: 3vw;
  color: var(--white);
  transform: translateY(calc(var(--p) * -26vh));
  opacity: calc(1 - var(--p) * 1.65);
}

.field-title .eyebrow {
  margin-bottom: 18px;
  color: var(--cyan);
}

.field-title h2 em {
  color: var(--pink);
  font-size: .83em;
}

.field-title .jp-pair {
  margin: 26px 0 0;
  font-size: clamp(16px, 1.7vw, 24px);
  line-height: 1.7;
}

.service-track {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 37vw);
  gap: 1.2vw;
  width: max-content;
  padding: 0 4vw;
  transform: translate3d(calc((1 - var(--p)) * 103vw - var(--p) * 22vw), -42%, 0);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 62vh;
  padding: clamp(22px, 2.7vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(245, 243, 237, .34);
  background: rgba(8, 9, 14, .46);
  color: var(--white);
  backdrop-filter: blur(16px);
  transition: color .35s, border-color .35s, background .35s, transform .35s;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: translateY(102%);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.service-card:hover,
.service-card:focus-visible {
  border-color: var(--paper);
  color: var(--ink);
  transform: translateY(-12px);
}

.service-card:hover::before,
.service-card:focus-visible::before {
  transform: translateY(0);
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card__number,
.service-card__type {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .15em;
}

.service-card__number {
  align-self: flex-end;
}

.service-card__type {
  color: var(--cyan);
}

.service-card:hover .service-card__type,
.service-card:focus-visible .service-card__type {
  color: var(--violet);
}

.service-card h3 {
  margin: 20px 0;
  font-size: clamp(40px, 4.7vw, 72px);
  font-weight: 600;
  letter-spacing: -.07em;
  line-height: .78;
}

.service-card__jp {
  margin: 0;
  font-family: var(--jp);
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 1.75;
  letter-spacing: .06em;
}

.service-card__arrow {
  position: absolute;
  right: clamp(22px, 2.7vw, 42px);
  bottom: clamp(22px, 2.7vw, 42px);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform .3s;
}

.service-card:hover .service-card__arrow {
  transform: rotate(45deg);
}

.field-count {
  position: absolute;
  z-index: 3;
  right: 2vw;
  bottom: -4vh;
  margin: 0;
  color: rgba(255, 255, 255, .06);
  font-size: 33vw;
  font-weight: 700;
  letter-spacing: -.1em;
  line-height: .7;
}

.prism {
  height: 310svh;
  background: var(--black);
}

.prism-stage {
  isolation: isolate;
  background: var(--black);
}

.prism-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(140, 120, 255, .12), transparent 34vw);
}

.prism-visual {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 53%;
  width: min(48vw, 690px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(calc((var(--p) - .5) * 24deg)) scale(calc(.65 + var(--p) * .42));
}

.prism-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 243, 237, .18);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  filter: drop-shadow(0 0 50px rgba(140, 120, 255, .25));
}

.prism-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.18) saturate(1.18);
  transform: rotate(calc((var(--p) - .5) * -38deg)) scale(calc(1.27 - var(--p) * .12));
}

.prism-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 26%, rgba(5, 5, 7, .15) 72%);
}

.spectrum {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 48%;
  width: 90vw;
  height: 44vh;
  transform: translateY(-50%);
}

.spectrum i {
  position: absolute;
  left: 0;
  top: 50%;
  width: calc(6% + var(--p) * 94%);
  height: 2.7vh;
  transform-origin: left center;
  opacity: calc(.1 + var(--p) * .72);
  filter: blur(2px);
  mix-blend-mode: screen;
}

.spectrum i:nth-child(1) { background: linear-gradient(90deg, rgba(105,229,220,.85), transparent); transform: rotate(-15deg); }
.spectrum i:nth-child(2) { background: linear-gradient(90deg, rgba(140,120,255,.85), transparent); transform: rotate(-7deg); }
.spectrum i:nth-child(3) { background: linear-gradient(90deg, rgba(241,149,204,.82), transparent); transform: rotate(1deg); }
.spectrum i:nth-child(4) { background: linear-gradient(90deg, rgba(255,211,113,.78), transparent); transform: rotate(9deg); }
.spectrum i:nth-child(5) { background: linear-gradient(90deg, rgba(203,255,99,.72), transparent); transform: rotate(17deg); }

.prism-axis {
  position: absolute;
  background: rgba(245, 243, 237, .18);
}

.prism-axis--x {
  top: 50%;
  left: -30vw;
  right: -30vw;
  height: 1px;
}

.prism-axis--y {
  top: -30vh;
  bottom: -30vh;
  left: 50%;
  width: 1px;
}

.prism-copy {
  position: absolute;
  z-index: 8;
  left: 3vw;
  bottom: 6vh;
  mix-blend-mode: difference;
}

.prism-copy .eyebrow {
  margin-bottom: 18px;
  color: var(--cyan);
}

.prism-copy h2 {
  font-size: clamp(60px, 8.8vw, 134px);
  transform: translateY(calc((1 - var(--p)) * 90px));
}

.prism-copy h2 em {
  color: var(--pink);
}

.prism-copy .copy-pair {
  max-width: 680px;
  /* h2と同量のスクロール変位で同期し、演出途中の重なりを防ぐ */
  transform: translateY(calc((1 - var(--p)) * 90px));
}

.method-steps {
  position: absolute;
  z-index: 9;
  right: 3vw;
  bottom: 5vh;
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  width: min(36vw, 520px);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.method-steps li {
  display: grid;
  gap: 8px;
  padding: 14px 12px 0 0;
  border-right: 1px solid var(--line-dark);
}

.method-steps li:last-child {
  border-right: 0;
}

.method-steps span,
.method-steps small {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
}

.method-steps b {
  font-family: var(--serif);
  font-size: 25px;
  font-style: italic;
  font-weight: 400;
}

.method-steps small {
  font-family: var(--jp);
  letter-spacing: .04em;
  opacity: .58;
}

.neal {
  min-height: 125svh;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.neal-stage {
  position: relative;
  min-height: 125svh;
  padding: 21vh 3vw 9vh;
}

.neal-marquee {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  overflow: hidden;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.neal-marquee div {
  display: flex;
  align-items: baseline;
  gap: 2vw;
  width: max-content;
  padding: 14px 0 13px;
  animation: marquee 24s linear infinite;
}

.neal-marquee span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
}

.neal-marquee i {
  color: var(--violet);
  font-family: var(--serif);
  font-size: 24px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.neal-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr .7fr;
  gap: 4vw;
  align-items: center;
  min-height: 82vh;
}

.neal-copy .eyebrow {
  margin-bottom: 22px;
  color: var(--violet);
}

.neal-copy h2 {
  margin: 0;
  font-size: clamp(110px, 16vw, 240px);
  font-weight: 700;
  letter-spacing: -.105em;
  line-height: .66;
}

.neal-tagline {
  margin: 28px 0 0;
  font-size: clamp(23px, 2.4vw, 36px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: .88;
}

.neal-copy .jp-pair {
  margin: 30px 0 0;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.75;
}

.neal-signal {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140,120,255,.19), transparent 63%);
}

.neal-signal span {
  position: absolute;
  width: 100%;
  height: 1px;
  background: var(--violet);
  transform: rotate(calc(var(--i, 0) * 36deg));
  opacity: .25;
}

.neal-signal span:nth-child(1) { --i: 0; }
.neal-signal span:nth-child(2) { --i: 1; }
.neal-signal span:nth-child(3) { --i: 2; }
.neal-signal span:nth-child(4) { --i: 3; }
.neal-signal span:nth-child(5) { --i: 4; }

.neal-signal::before,
.neal-signal::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid var(--violet);
  border-radius: 50%;
  animation: signal-ring 3s ease-out infinite;
}

.neal-signal::after {
  animation-delay: 1.5s;
}

@keyframes signal-ring {
  from { transform: scale(.2); opacity: .75; }
  to { transform: scale(1.05); opacity: 0; }
}

.neal-signal i {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: clamp(80px, 10vw, 150px);
  font-style: italic;
}

.neal-description {
  align-self: end;
  padding-bottom: 9vh;
}

.neal-description p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.neal-description .jp-body {
  margin-top: 25px;
  font-family: var(--jp);
  font-size: 12px;
}

.company {
  min-height: 165svh;
  padding: 15vh 3vw 32px;
  background:
    radial-gradient(circle at 82% 20%, rgba(140, 120, 255, .18), transparent 29vw),
    var(--black);
}

.company-top {
  position: relative;
  min-height: 73vh;
}

.company-top .eyebrow {
  margin-bottom: 5vh;
  color: var(--cyan);
}

.company-top h2 {
  max-width: 10ch;
  font-size: clamp(74px, 11vw, 168px);
}

.company-top h2 em {
  color: var(--pink);
}

.company-top .jp-pair {
  position: absolute;
  right: 3vw;
  bottom: 10vh;
  margin: 0;
  font-size: clamp(18px, 2.1vw, 30px);
  line-height: 1.75;
}

.company-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 8vw;
  margin-bottom: 14vh;
  border-top: 1px solid var(--line-dark);
}

.company-intro {
  padding-top: 30px;
}

.company-intro > p:first-child {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .17em;
}

.company-intro h3 {
  margin: 0;
  font-family: var(--jp);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 500;
}

.company-intro > p:last-child {
  margin: 36px 0 0;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .1em;
  opacity: .55;
}

.company-data {
  margin: 0;
}

.company-data > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-dark);
}

.company-data dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .82;
}

.company-data dd {
  margin: 0;
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .04em;
}

.company-data ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

.contact-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 215px;
  padding: 30px 0;
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.contact-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: translateY(101%);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.contact-stage:hover {
  color: var(--ink);
}

.contact-stage:hover::before {
  transform: translateY(0);
}

.contact-stage > * {
  position: relative;
  z-index: 1;
}

.contact-stage__label {
  position: absolute;
  top: 28px;
  left: 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
}

.contact-stage strong {
  align-self: end;
  padding-top: 45px;
  font-size: clamp(27px, 6vw, 91px);
  font-weight: 500;
  letter-spacing: -.065em;
}

.contact-stage i {
  display: grid;
  place-items: center;
  width: clamp(78px, 10vw, 150px);
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 30px;
  font-style: normal;
  transition: transform .45s;
}

.contact-stage:hover i {
  transform: rotate(45deg);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding-top: 32px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  opacity: .58;
}

footer a {
  justify-self: center;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}

footer span:last-child {
  justify-self: end;
}

@media (min-width: 1000px) {
  .site-header nav {
    position: absolute;
    top: calc(50vh - 172px);
    right: 22px;
    display: grid;
    gap: 12px;
    justify-items: end;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
  }

  .site-header nav a::before {
    content: attr(data-index);
    margin-right: 8px;
    opacity: .42;
  }

  .site-header nav a {
    transition: transform .2s, opacity .2s;
  }

  .site-header nav a:hover {
    opacity: .55;
    transform: translateX(-5px);
  }
}

.site-header nav,
.header-status {
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .header-status {
    display: none;
  }
}

@media (max-height: 660px) {
  .scene-index {
    display: none;
  }
}

@media (max-width: 999px) {
  /* Codexレビュー P0-4: モバイル/タブレットに主要導線を復活（水平ナビ・44pxタップ） */
  .site-header nav {
    position: static;
    display: flex;
    gap: 4px;
    justify-self: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .site-header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
  }
  .site-header nav a::before { content: none; }

  .scene-index {
    display: none;
  }

  .hero-title {
    font-size: clamp(74px, 15vw, 150px);
    letter-spacing: -.045em;
  }

  .service-track {
    grid-template-columns: repeat(3, 52vw);
  }

  .service-card {
    height: 56vh;
  }

  .prism-copy {
    bottom: 7vh;
  }

  .method-steps {
    top: 17vh;
    right: 3vw;
    bottom: auto;
    width: 44vw;
  }

  .neal-grid {
    grid-template-columns: .9fr 1.1fr;
  }

  .neal-description {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    padding: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 64px;
    padding: 4px 16px;
  }
  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    margin-top: -4px;
  }

  .header-status {
    display: none;
  }

  .header-contact {
    font-size: 13px;
  }

  .chapter-head,
  .hero-edition {
    top: 122px;
    left: 16px;
    right: 16px;
    font-size: 8px;
  }

  .hero {
    height: 155svh;
  }

  .hero-image {
    clip-path: inset(calc(14% * var(--q)) calc(47% * var(--q)) round 20px);
  }

  .hero-title {
    top: 43%;
    left: 14px;
    right: 14px;
    grid-template-columns: 1fr;
    font-size: clamp(64px, 19vw, 82px);
    letter-spacing: -.035em;
    line-height: .73;
    transform: translateY(calc(-50% - var(--p) * 17vh));
  }

  .hero-title__ideas,
  .hero-title__need,
  .hero-title__motion {
    grid-column: 1;
  }

  .hero-title__need {
    padding-left: 30vw;
  }

  .hero-title__motion {
    justify-self: start;
  }

  .hero-copy {
    left: 16px;
    right: 16px;
    bottom: 22px;
  }

  .hero-copy > p:last-child,
  .hero-scroll {
    display: none;
  }

  .manifesto {
    height: 210svh;
  }

  .manifesto-stage {
    padding-left: 16px;
    padding-right: 16px;
  }

  .manifesto-stage > .eyebrow {
    top: 78px;
    left: 16px;
  }

  .manifesto-lines {
    width: calc(100vw - 32px);
  }

  .manifesto-lines p {
    font-size: clamp(44px, 13.4vw, 80px);
    line-height: .82;
  }

  .manifesto-jp {
    right: 16px;
    bottom: 8vh;
    font-size: 14px;
  }

  .story {
    height: 245svh;
  }

  /* 7/31実機レビュー: 黒見出しが暗い画像と重なり消えるため、モバイルは上=画像/下=テキストの分割構図に */
  /* ステージはheight:100svhなので、内部のtop系オフセットもsvhで揃える。
     vhのままだと実機Safari(URLバー表示時 svh<vh)でテキストがステージ下端に到達する */
  .growth-image {
    top: 11svh;
    right: -16vw;
    width: 100vw;
    height: 32svh;
  }

  .growth-copy {
    top: 46svh;
    left: 16px;
    right: 16px;
    bottom: auto;
  }

  .growth-copy h2,
  .field-title h2,
  .prism-copy h2 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .copy-pair {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 38px;
  }

  .copy-pair p:last-child {
    max-width: 330px;
  }

  .growth-meter {
    display: none;
  }

  .field {
    height: 300svh;
  }

  .field-title {
    top: 17vh;
    left: 16px;
  }

  .service-track {
    grid-template-columns: repeat(3, 80vw);
    gap: 4vw;
    padding: 0 10vw;
    transform: translate3d(calc((1 - var(--p)) * 103vw - var(--p) * 156vw), -40%, 0);
  }

  .service-card {
    height: 58vh;
  }

  .service-card h3 {
    font-size: clamp(43px, 12vw, 64px);
  }

  .prism-visual {
    top: 39%;
    left: 53%;
    width: 84vw;
  }

  .prism-copy {
    left: 16px;
    right: 16px;
    bottom: 5vh;
  }

  .prism-copy .copy-pair {
    padding-right: 8vw;
  }

  .method-steps {
    top: 178px;
    left: 16px;
    right: 16px;
    width: auto;
  }

  .neal-stage {
    padding: 20vh 16px 9vh;
  }

  .neal-grid {
    grid-template-columns: 1fr;
  }

  .neal-copy h2 {
    font-size: clamp(100px, 36vw, 160px);
  }

  .neal-signal {
    width: min(86vw, 470px);
    justify-self: center;
  }

  .neal-description {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .company {
    min-height: 155svh;
    padding: 13vh 16px 24px;
  }

  .company-top {
    min-height: 64vh;
  }

  .company-top h2 {
    font-size: clamp(61px, 18vw, 100px);
  }

  .company-top .jp-pair {
    right: 0;
    bottom: 6vh;
    font-size: 16px;
  }

  .company-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .company-data > div {
    grid-template-columns: 105px 1fr;
    gap: 16px;
  }

  .contact-stage {
    grid-template-columns: 1fr auto;
    min-height: 170px;
  }

  .contact-stage strong {
    font-size: clamp(19px, 5.7vw, 36px);
  }

  .contact-stage i {
    width: 62px;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  footer a {
    justify-self: end;
  }

  footer span:last-child {
    display: none;
  }
}

@media (max-width: 420px) {
  .header-contact {
    border-bottom: 0;
  }

  .header-contact span {
    margin-left: 3px;
  }

  .hero-title {
    font-size: clamp(57px, 19.6vw, 82px);
  }

  .manifesto-lines p {
    font-size: clamp(39px, 12.7vw, 56px);
  }

  .growth-copy h2,
  .field-title h2,
  .prism-copy h2 {
    font-size: clamp(42px, 13.8vw, 60px);
  }

  .service-card {
    height: 55vh;
  }
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor {
    display: none;
  }
}

/* prefers-reduced-motion: 2026-07-31夜、完全静的化はヤヤレビューで差し戻し。
   代替の「calm motion tier」（穏やかなモーション版）を設計中 — 合意後に実装 */

/* ============ unified boot screen (2026-07-25 brand統一) ============ */
.boot {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: #cbff63; color: #0e1116;
  animation: bootHide .6s cubic-bezier(.83, 0, .17, 1) 1.85s forwards;
}
.boot__mark { width: 60px; height: 60px; animation: bootSpin 1.6s linear infinite; }
.boot__type { margin: 0; font-family: "Syne", "Space Grotesk", Arial, sans-serif; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.boot__type span { font-size: 9px; font-weight: 700; letter-spacing: .1em; margin-left: 8px; }
@keyframes bootSpin { to { transform: rotate(360deg); } }
@keyframes bootHide { to { opacity: 0; visibility: hidden; pointer-events: none; } }

svg.brand__sigil { width: 18px; height: 18px; border: 0; }
svg.brand__sigil::before, svg.brand__sigil i { display: none; }

.brand { font-family: "Syne", "Space Grotesk", Arial, sans-serif; font-weight: 800; }
