:root {
  color-scheme: dark;
  --bg: #07111b;
  --bg-2: #101d2b;
  --ink: #fff8e8;
  --muted: #b8aa8f;
  --muted-2: #ead9b5;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --lime: #d6a84f;
  --cyan: #5f97a8;
  --blue: #28425f;
  --pink: #b94c45;
  --orange: #e0a45d;
  --paper: #f4ead5;
  --dark-ink: #18202a;
  --radius: 8px;
  --max: 1180px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  --scroll-progress: 0;
  --scroll-y: 0px;
  --scroll-depth: 0vh;
  --scroll-rotate: 0deg;
  --scroll-rotate-reverse: 0deg;
  --scroll-scale: 1;
  --pointer-x: 0;
  --pointer-y: 0;
  --tilt-x: 0;
  --tilt-y: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(214, 168, 79, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(95, 151, 168, 0.16), transparent 30rem),
    linear-gradient(180deg, var(--bg), #101d2b 46%, var(--paper) 46%, var(--paper));
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: clip;
}

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

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--lime), var(--orange), var(--cyan));
  box-shadow: 0 0 22px rgba(214, 168, 79, 0.44);
}

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

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
li,
dd,
dt,
span,
strong,
small {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  font-size: clamp(46px, 5.8vw, 82px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

h1 span {
  color: transparent;
  background: linear-gradient(110deg, var(--lime), var(--cyan), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
}

h2 {
  font-size: clamp(32px, 4.6vw, 62px);
  font-weight: 900;
}

h3 {
  font-size: 22px;
  font-weight: 900;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.cursor-glow::before {
  content: "";
  position: fixed;
  left: var(--x, 50vw);
  top: var(--y, 18vh);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 168, 79, 0.14), transparent 68%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.kinetic-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.kinetic-backdrop span {
  position: absolute;
  display: block;
  width: 34vw;
  min-width: 260px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  opacity: 0.3;
  filter: blur(1px);
  transform:
    translate3d(
      calc(var(--pointer-x) * 56px),
      calc(var(--scroll-y) * -0.03 + var(--pointer-y) * 42px),
      0
    )
    rotate(calc(var(--scroll-progress) * 120deg));
}

.kinetic-backdrop span:nth-child(1) {
  left: -10vw;
  top: 22vh;
  background: linear-gradient(135deg, rgba(0, 215, 255, 0.11), transparent);
}

.kinetic-backdrop span:nth-child(2) {
  right: -8vw;
  top: 48vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 216, 0.16), transparent 68%);
  transform:
    translate3d(
      calc(var(--pointer-x) * -72px),
      calc(var(--scroll-y) * -0.055 + var(--pointer-y) * -36px),
      0
    )
    rotate(calc(var(--scroll-progress) * -180deg));
}

.kinetic-backdrop span:nth-child(3) {
  left: 18vw;
  bottom: -18vw;
  background: linear-gradient(45deg, rgba(215, 255, 93, 0.1), transparent);
  transform:
    translate3d(
      calc(var(--pointer-x) * 28px),
      calc(var(--scroll-y) * -0.025 + var(--pointer-y) * 24px),
      0
    )
    rotate(calc(28deg + var(--scroll-progress) * 90deg));
}

.scroll-3d-object {
  position: fixed;
  top: 10vh;
  right: clamp(18px, 5vw, 76px);
  z-index: 1;
  width: clamp(96px, 10vw, 156px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.58;
  perspective: 900px;
  transform:
    translate3d(calc(var(--pointer-x) * -22px), var(--scroll-depth), 0)
    rotateX(calc(54deg + var(--pointer-y) * -12deg))
    rotateY(calc(var(--scroll-rotate) + var(--pointer-x) * 24deg))
    rotateZ(var(--scroll-rotate-reverse))
    scale(var(--scroll-scale));
  transform-style: preserve-3d;
  transition: opacity 220ms ease;
}

.scroll-3d-object::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 215, 255, 0.34), transparent 68%);
  filter: blur(18px);
  transform: translateZ(-30px);
}

.scroll-ring,
.scroll-cube,
.scroll-panel {
  position: absolute;
  display: block;
  transform-style: preserve-3d;
}

.scroll-ring {
  inset: 5%;
  border: 2px solid rgba(0, 215, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 42px rgba(0, 215, 255, 0.18), inset 0 0 26px rgba(215, 255, 93, 0.12);
}

.scroll-cube {
  inset: 30%;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--lime), var(--cyan) 48%, var(--pink));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), 0 0 34px rgba(0, 215, 255, 0.36);
  transform: translateZ(48px) rotateX(28deg) rotateY(34deg);
}

.scroll-panel {
  width: 42%;
  height: 23%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(8px);
}

.scroll-panel-a {
  left: -5%;
  top: 18%;
  transform: translateZ(36px) rotate(-16deg);
}

.scroll-panel-b {
  right: -2%;
  bottom: 16%;
  transform: translateZ(52px) rotate(12deg);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.74);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 255px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: #fff;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 20px;
  font-weight: 900;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.nav a,
.button,
.header-cta,
.evidence-links a {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav a:hover {
  color: #fff;
}

.nav a.is-current {
  color: #fff;
}

.nav a.is-current::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--lime);
}

.button,
.header-cta,
.evidence-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  font-weight: 900;
}

.header-cta,
.button.primary {
  color: #05070d;
  background: var(--lime);
}

.header-cta {
  padding: 0 18px;
  font-size: 14px;
}

.button {
  min-width: 174px;
  padding: 0 22px;
  border: 1px solid transparent;
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.button.ghost.light {
  color: var(--dark-ink);
  border-color: rgba(16, 24, 39, 0.18);
  background: rgba(16, 24, 39, 0.04);
}

.button:hover,
.header-cta:hover,
.evidence-links a:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 74px;
  background: #07111b;
}

.subpage {
  color: var(--dark-ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(214, 168, 79, 0.14), transparent 26rem),
    radial-gradient(circle at 86% 10%, rgba(95, 151, 168, 0.12), transparent 28rem),
    var(--paper);
}

.subpage .cursor-glow,
.subpage .page-progress,
.subpage .kinetic-backdrop {
  display: none;
}

.subpage .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px clamp(22px, 5vw, 56px) 76px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(7, 17, 27, 0.92), rgba(7, 17, 27, 0.68)),
    url("assets/ukiyo-ai-workflow.svg") center right / cover no-repeat,
    #07111b;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, var(--paper));
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(38px, 5.4vw, 76px);
}

.page-hero p:not(.status-pill) {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted-2);
  font-size: 18px;
  font-weight: 800;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--paper);
  transform: translate3d(calc(var(--pointer-x) * -16px), calc(var(--scroll-y) * -0.016 + var(--pointer-y) * -9px), 0);
}

/* Takuya提供画像の4x3フレームシートから作ったWebPを、静かな映像として巡回 */
.hero-media-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0;
  filter: saturate(0.98) contrast(1.04);
  will-change: opacity, transform;
  animation: heroKenBurns 33s ease-in-out infinite;
}

.hero-media-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0;
  filter: saturate(0.98) contrast(1.04);
}

.hero-media-frame:nth-child(1) { animation-delay: 0s; }
.hero-media-frame:nth-child(2) { animation-delay: 11s; }
.hero-media-frame:nth-child(3) { animation-delay: 22s; }

.hero-grid {
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image:
    linear-gradient(rgba(214, 168, 79, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 168, 79, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 62%);
  opacity: 0.7;
  animation: gridFloat 14s linear infinite;
  transform: translateY(calc(var(--scroll-y) * -0.04));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 27, 0.97) 0%, rgba(7, 17, 27, 0.86) 34%, rgba(7, 17, 27, 0.3) 61%, rgba(7, 17, 27, 0.04) 100%),
    linear-gradient(180deg, rgba(7, 17, 27, 0.44), transparent 38%, rgba(7, 17, 27, 0.62));
  filter: none;
  animation: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 26vh;
  background: linear-gradient(180deg, transparent, #07111b);
  pointer-events: none;
}

.hero-orbit {
  display: none;
  position: absolute;
  z-index: 2;
  right: 7vw;
  top: 17vh;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(214, 168, 79, 0.28);
  border-radius: 50%;
  transform:
    translate3d(calc(var(--pointer-x) * -30px), calc(var(--pointer-y) * -20px), 0)
    rotate(calc(var(--scroll-progress) * -140deg));
  animation: spin 22s linear infinite reverse;
}

.hero-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 28px var(--lime);
}

.hero-orbit span:nth-child(1) {
  left: 50%;
  top: -6px;
}

.hero-orbit span:nth-child(2) {
  right: 16px;
  bottom: 38px;
  background: var(--cyan);
  box-shadow: 0 0 28px var(--cyan);
}

.hero-orbit span:nth-child(3) {
  left: 28px;
  bottom: 58px;
  background: var(--pink);
  box-shadow: 0 0 28px var(--pink);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: block;
  width: min(var(--max), calc(100% - 48px));
  min-height: calc(100vh - 132px);
  margin: 0 auto;
  padding: 56px 0 42px;
}

.hero-copy,
.hero-console {
  min-width: 0;
}

.hero-copy {
  max-width: 720px;
  transform: translate3d(0, calc(var(--scroll-y) * -0.018), 0);
}

.status-pill,
.eyebrow,
.service-card span,
.timeline span,
.work-rail span,
.trust-board span,
.process-list span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 22px;
  padding: 4px 12px;
  border: 1px solid rgba(214, 168, 79, 0.36);
  border-radius: 999px;
  background: rgba(214, 168, 79, 0.12);
}

.hero-lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted-2);
  font-size: 18px;
  font-weight: 800;
  text-wrap: pretty;
}

.hero-note {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(244, 234, 213, 0.86);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-meta {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin: 30px 0 0;
}

.hero-meta div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-meta dt {
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-meta dd {
  margin: 0;
  color: #f6ecd8;
  font-size: 14px;
  font-weight: 700;
}

.hero-showcase {
  position: absolute;
  right: 0;
  bottom: clamp(24px, 5vh, 56px);
  display: block;
  width: min(490px, 38vw);
  min-width: 0;
  opacity: 0.92;
  transform:
    translate3d(calc(var(--pointer-x) * 18px), calc(var(--scroll-y) * 0.012 + var(--pointer-y) * 14px), 0)
    rotateX(calc(var(--pointer-y) * -5deg + var(--tilt-y) * 1deg))
    rotateY(calc(var(--pointer-x) * 7deg + var(--tilt-x) * 1deg));
  transform-style: preserve-3d;
  transition: transform 220ms ease;
}

.art-stack {
  display: grid;
  gap: 14px;
}

.art-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(8, 14, 28, 0.64);
  box-shadow: var(--shadow);
}

.art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: artImageDrift 19s ease-in-out infinite alternate;
}

.art-card-sub img { animation-delay: -7s; }

.art-card-main {
  min-height: 310px;
  animation: artCardFloat 10s ease-in-out infinite;
}

.art-card-sub {
  min-height: 182px;
  animation: artCardFloat 10s ease-in-out infinite;
  animation-delay: -5s;
}

.art-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 56%;
  background: linear-gradient(180deg, transparent, rgba(7, 17, 27, 0.78));
}

.art-caption {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 1;
}

.art-caption span {
  display: inline-block;
  margin-bottom: 6px;
  color: #f0d28e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.art-caption strong {
  display: block;
  font-size: 20px;
  line-height: 1.45;
}

.hero-kicker-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(8, 14, 28, 0.7);
  box-shadow: var(--shadow);
}

.hero-kicker-card span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-kicker-card strong {
  font-size: 15px;
  line-height: 1.7;
}

.spline-card,
.hero-console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)),
    rgba(8, 14, 28, 0.72);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.hero-console::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 36%, rgba(255, 255, 255, 0.12) 42%, transparent 50%);
  transform: translateX(-130%);
  animation: scan 5.8s ease-in-out infinite;
}

.spline-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 232px;
  padding: 18px;
  background:
    radial-gradient(circle at 28% 20%, rgba(215, 255, 93, 0.2), transparent 22rem),
    radial-gradient(circle at 74% 72%, rgba(255, 79, 216, 0.16), transparent 18rem),
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(8, 14, 28, 0.78);
}

.spline-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  perspective: 900px;
  transform: translateZ(40px);
}

.spline-ring,
.spline-core,
.spline-panel {
  position: absolute;
  display: block;
  transform-style: preserve-3d;
}

.spline-ring {
  width: 148px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 34px rgba(0, 215, 255, 0.12), 0 0 42px rgba(0, 215, 255, 0.14);
}

.ring-a {
  border-color: rgba(0, 215, 255, 0.5);
  animation: objectSpinA 8s linear infinite;
}

.ring-b {
  width: 112px;
  border-color: rgba(255, 79, 216, 0.48);
  animation: objectSpinB 7.2s linear infinite reverse;
}

.spline-core {
  width: 66px;
  aspect-ratio: 1;
  border-radius: 24px;
  background:
    linear-gradient(135deg, var(--lime), var(--cyan) 46%, var(--pink));
  box-shadow: 0 0 48px rgba(0, 215, 255, 0.42), 0 24px 60px rgba(0, 0, 0, 0.4);
  animation: corePulse 2.8s ease-in-out infinite;
}

.spline-panel {
  width: 76px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.panel-a {
  transform: translate3d(-88px, -72px, 48px) rotate(-12deg);
  animation: panelFloat 4.2s ease-in-out infinite;
}

.panel-b {
  transform: translate3d(92px, -34px, 34px) rotate(10deg);
  animation: panelFloat 4.6s ease-in-out infinite 0.35s;
}

.panel-c {
  transform: translate3d(34px, 84px, 56px) rotate(-6deg);
  animation: panelFloat 5s ease-in-out infinite 0.65s;
}

.spline-caption {
  transform: translateZ(34px);
}

.spline-caption span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.spline-caption strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.console-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
}

.console-top span:nth-child(2) {
  background: var(--orange);
}

.console-top span:nth-child(3) {
  background: var(--lime);
}

.console-top strong {
  margin-left: 6px;
}

.console-screen {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.signal-card {
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.signal-card:hover {
  transform: translateX(8px) scale(1.015);
  border-color: rgba(215, 255, 93, 0.38);
}

.signal-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cyan);
  transform: scaleY(0.35);
  transform-origin: top;
  animation: meter 3s ease-in-out infinite;
}

.signal-card:nth-child(2)::before {
  background: var(--lime);
  animation-delay: 0.4s;
}

.signal-card:nth-child(3)::before {
  background: var(--pink);
  animation-delay: 0.8s;
}

.signal-card:nth-child(4)::before {
  background: var(--orange);
  animation-delay: 1.2s;
}

.signal-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.signal-card strong {
  display: block;
  margin-top: 7px;
  font-size: 17px;
  line-height: 1.5;
}

.hero-ticker {
  position: relative;
  z-index: 3;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.hero-ticker div {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.hero-ticker span {
  padding: 15px 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.scene-strip {
  color: #05070d;
  background:
    linear-gradient(180deg, rgba(244, 234, 213, 0.96), rgba(238, 223, 192, 0.96)),
    var(--paper);
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(var(--max), calc(100% - 48px));
  margin: 40px auto 0;
}

.scene-card {
  overflow: hidden;
  border: 1px solid rgba(24, 32, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 251, 243, 0.9);
  box-shadow: 0 20px 50px rgba(23, 38, 56, 0.1);
}

.scene-visual {
  position: relative;
  min-height: 230px;
  background: linear-gradient(180deg, #efe1bf, #d8c49b);
}

.scene-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: sceneImageDrift 22s ease-in-out infinite alternate;
}

.scene-card:nth-child(2) .scene-visual img { animation-delay: -8s; }

.scene-visual-plain {
  display: grid;
  place-items: center;
}

.scene-diagram {
  position: relative;
  width: min(82%, 260px);
  aspect-ratio: 1;
}

.scene-diagram span {
  position: absolute;
  display: block;
  border-radius: 18px;
  background: rgba(24, 32, 42, 0.1);
  border: 1px solid rgba(24, 32, 42, 0.12);
}

.scene-diagram span:nth-child(1) {
  inset: 10% 24% auto 10%;
  height: 32%;
}

.scene-diagram span:nth-child(2) {
  inset: 38% 10% auto 40%;
  height: 22%;
  background: rgba(214, 168, 79, 0.2);
}

.scene-diagram span:nth-child(3) {
  inset: auto 18% 12% 16%;
  height: 20%;
}

.scene-diagram span:nth-child(4) {
  inset: 22% auto auto 70%;
  width: 18%;
  height: 52%;
  background: rgba(95, 151, 168, 0.2);
}

.scene-copy {
  padding: 20px 22px 24px;
}

.scene-number {
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.scene-copy h3 {
  margin-top: 10px;
  color: var(--dark-ink);
  font-size: 24px;
}

.scene-copy p {
  margin: 12px 0 0;
  color: rgba(24, 32, 42, 0.78);
}

.motion-lab {
  color: #05070d;
  background:
    linear-gradient(180deg, rgba(244, 234, 213, 0.96), rgba(238, 223, 192, 0.96)),
    var(--paper);
}

.motion-lab-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(430px, 0.78fr);
  gap: clamp(48px, 6vw, 86px);
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.motion-word {
  display: grid;
  gap: 0;
  line-height: 0.85;
  font-size: clamp(58px, 8.8vw, 128px);
  font-weight: 900;
  color: #07101d;
}

.motion-word span {
  display: block;
  transform: translateX(calc((var(--scroll-progress) - 0.18) * 72px));
}

.motion-word span:nth-child(2) {
  color: transparent;
  background: linear-gradient(95deg, var(--cyan), var(--pink), var(--lime));
  background-clip: text;
  -webkit-background-clip: text;
  transform: translateX(calc((0.58 - var(--scroll-progress)) * 72px));
}

.motion-word span:nth-child(3) {
  transform: translateX(calc((var(--scroll-progress) - 0.32) * 58px));
}

.motion-copy {
  min-width: 0;
}

.motion-copy h2 {
  font-size: clamp(30px, 3.8vw, 54px);
}

.motion-copy p:not(.eyebrow) {
  color: #526071;
  font-weight: 800;
}

.count-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.count-grid article {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(16, 24, 39, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 251, 241, 0.9);
  box-shadow: 0 18px 48px rgba(77, 55, 30, 0.1);
}

.ukiyo-bridge {
  color: var(--dark-ink);
  background:
    linear-gradient(180deg, rgba(244, 234, 213, 0.98), rgba(247, 240, 224, 0.98)),
    var(--paper);
}

.ukiyo-bridge::before {
  content: "";
  position: absolute;
  inset: 22px;
  z-index: -1;
  border: 1px solid rgba(77, 55, 30, 0.12);
  background:
    linear-gradient(90deg, rgba(77, 55, 30, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(77, 55, 30, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
}

.bridge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(var(--max), 100%);
  margin: 42px auto 0;
}

.bridge-grid article {
  min-height: 240px;
  padding: 26px;
  border: 1px solid rgba(77, 55, 30, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 251, 241, 0.92), rgba(239, 225, 192, 0.72));
  box-shadow: 0 22px 60px rgba(77, 55, 30, 0.09);
}

.bridge-grid span {
  color: #8f5d2f;
  font-size: 12px;
  font-weight: 900;
}

.bridge-grid h3 {
  margin-top: 14px;
  color: #162235;
}

.bridge-grid p {
  margin: 14px 0 0;
  color: #526071;
  font-weight: 800;
}

.count-grid strong {
  display: block;
  color: #07101d;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 0.95;
  font-weight: 900;
}

.count-grid small {
  display: block;
  margin-top: 10px;
  color: #667085;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-wrap,
.section-band {
  position: relative;
  z-index: 1;
  padding: 94px clamp(22px, 5vw, 56px);
  overflow: hidden;
  perspective: 1200px;
}

.kinetic-section::before,
.kinetic-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms ease, transform 900ms ease;
}

.kinetic-section::before {
  right: clamp(-140px, -7vw, -70px);
  top: 48px;
  width: min(36vw, 440px);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 215, 255, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 215, 255, 0.13), transparent 65%);
  transform: translate3d(0, 60px, 0) rotate(0deg);
}

.kinetic-section::after {
  left: clamp(-120px, -6vw, -60px);
  bottom: 36px;
  width: min(28vw, 320px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 79, 216, 0.15);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.08), transparent);
  transform: translate3d(0, -40px, 0) rotate(24deg);
}

.kinetic-section.is-active::before {
  opacity: 1;
  transform:
    translate3d(0, calc(var(--scroll-y) * -0.018), 0)
    rotate(calc(var(--scroll-progress) * 100deg));
}

.kinetic-section.is-active::after {
  opacity: 1;
  transform:
    translate3d(0, calc(var(--scroll-y) * 0.012), 0)
    rotate(calc(24deg - var(--scroll-progress) * 70deg));
}

.section-wrap {
  width: min(calc(var(--max) + 112px), 100%);
  margin: 0 auto;
}

.section-band {
  width: 100%;
}

.studio,
#services,
.process,
.contact,
.company {
  color: var(--dark-ink);
  background: #f4f7fb;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 44px;
  align-items: end;
  max-width: var(--max);
}

.section-heading p:not(.eyebrow),
.section-heading.split > p {
  margin: 16px 0 0;
  color: #526071;
  font-size: 16px;
  font-weight: 700;
  text-wrap: pretty;
}

.studio-stage,
.service-grid,
.timeline,
.trust-board,
.process-list,
.form-grid {
  display: grid;
  gap: 16px;
}

.studio-stage {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.studio-stage article,
.service-card,
.process-list li,
.company-list,
.contact-form {
  border: 1px solid rgba(16, 24, 39, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 24, 39, 0.08);
}

.studio-stage article,
.service-card,
.process-list li {
  padding: 26px;
  transform-style: preserve-3d;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.studio-stage article:hover,
.service-card:hover,
.process-list li:hover {
  transform: translateY(-8px) rotateX(3deg);
  border-color: rgba(0, 215, 255, 0.28);
  box-shadow: 0 28px 70px rgba(16, 24, 39, 0.16);
}

.studio-stage span {
  color: #6b4eff;
  font-size: 12px;
  font-weight: 900;
}

.studio-stage h3,
.service-card h3,
.process-list strong {
  display: block;
  margin-top: 12px;
  color: var(--dark-ink);
}

.studio-stage p,
.service-card p,
.process-list p {
  margin: 14px 0 0;
  color: #596779;
  font-weight: 700;
}

.web-flow,
.proof,
.trust {
  color: #fff;
  background:
    radial-gradient(circle at 84% 14%, rgba(255, 79, 216, 0.18), transparent 26rem),
    radial-gradient(circle at 12% 88%, rgba(0, 215, 255, 0.18), transparent 28rem),
    #07101d;
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--max);
}

.timeline article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.timeline article:nth-child(2),
.service-card:nth-child(2),
.process-list li:nth-child(2) {
  transition-delay: 80ms;
}

.timeline article:nth-child(3),
.service-card:nth-child(3),
.process-list li:nth-child(3) {
  transition-delay: 160ms;
}

.timeline article:nth-child(4),
.service-card:nth-child(4),
.process-list li:nth-child(4) {
  transition-delay: 240ms;
}

.timeline h3 {
  margin-top: 42px;
}

.timeline p,
.work-rail p,
.trust-inner p {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  min-height: 238px;
}

.subpage-section {
  padding-top: 82px;
  padding-bottom: 82px;
}

.detail-card,
.page-cta-card {
  border: 1px solid rgba(16, 24, 39, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 24, 39, 0.08);
}

.detail-card {
  min-height: 230px;
  padding: 26px;
}

.detail-card span,
.case-card span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-card span {
  color: #6b4eff;
}

.detail-card h3 {
  margin-top: 12px;
  color: var(--dark-ink);
}

.detail-card p {
  margin: 14px 0 0;
  color: #596779;
  font-weight: 700;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  color: #596779;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.feature-list.inverted {
  color: rgba(255, 255, 255, 0.72);
}

.case-grid {
  display: grid;
  gap: 18px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.case-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.case-card div {
  padding: clamp(24px, 4vw, 42px);
}

.case-card h3 {
  margin-top: 10px;
  color: #fff;
}

.case-card p {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.page-cta {
  color: var(--dark-ink);
  background: #f4f7fb;
}

.page-cta-card {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: clamp(28px, 5vw, 48px);
  background:
    radial-gradient(circle at 88% 12%, rgba(0, 215, 255, 0.12), transparent 22rem),
    #fff;
}

.page-cta-card h2 {
  color: var(--dark-ink);
}

.page-cta-card p:not(.eyebrow) {
  margin: 0;
  color: #596779;
  font-weight: 800;
}

.service-card.featured {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 215, 255, 0.9), rgba(110, 141, 255, 0.86)),
    #101827;
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured span {
  color: #fff;
}

.service-card.featured .feature-list {
  color: rgba(255, 255, 255, 0.86);
}

.service-card.featured .feature-list li::before {
  background: #fff;
}

.proof .section-heading p,
.trust .section-heading p,
.web-flow .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

.work-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(340px, 430px);
  gap: 18px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.work-rail article {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  scroll-snap-align: start;
}

.work-rail article:nth-child(1) {
  transform: translateY(calc(var(--scroll-y) * -0.006));
}

.work-rail article:nth-child(2) {
  transform: translateY(calc(var(--scroll-y) * 0.004));
}

.work-rail article:nth-child(3) {
  transform: translateY(calc(var(--scroll-y) * -0.004));
}

.work-rail img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.work-rail div {
  padding: 22px;
}

.work-rail h3 {
  margin-top: 10px;
}

.evidence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.evidence-links a {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.process-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 220px;
}

.process-list span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #05070d;
  background: var(--lime);
}

.trust-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1fr);
  gap: 48px;
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.trust-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trust-board article {
  min-height: 138px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.trust-board strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.5;
}

.contact-form {
  padding: 30px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  color: #2b3442;
  font-size: 14px;
  font-weight: 900;
}

label b {
  color: #b42318;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 24, 39, 0.16);
  border-radius: var(--radius);
  color: var(--dark-ink);
  background: #fff;
  font: inherit;
  font-weight: 700;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(0, 215, 255, 0.24);
  border-color: #00a8cc;
}

.contact-form > label,
.privacy-check,
.form-actions,
.form-status {
  margin-top: 18px;
}

.privacy-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy-check input {
  width: 18px;
  min-height: 18px;
}

.form-hp {
  position: absolute;
  left: -9999px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-status {
  min-height: 28px;
  color: #526071;
  font-weight: 800;
}

.form-status[data-state="success"] {
  color: #067647;
}

.form-status[data-state="error"] {
  color: #b42318;
}

.company-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.company-list div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(16, 24, 39, 0.1);
}

.company-list div:last-child {
  border-bottom: 0;
}

.company-list dt {
  color: #667085;
  font-weight: 900;
}

.company-list dd {
  margin: 0;
  color: var(--dark-ink);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(22px, 5vw, 56px);
  color: rgba(255, 255, 255, 0.7);
  background: #05070d;
  font-size: 13px;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(76px) scale(0.94) rotateX(8deg);
  filter: blur(10px);
  transition: opacity 820ms cubic-bezier(0.16, 1, 0.3, 1), transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 820ms ease;
  transform-origin: center top;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.kinetic-section:target .reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-copy.reveal.is-visible {
  transform: translate3d(0, calc(var(--scroll-y) * -0.018), 0);
}

.hero-showcase.reveal.is-visible {
  transform:
    translate3d(calc(var(--pointer-x) * 24px), calc(var(--scroll-y) * 0.025 + var(--pointer-y) * 20px), 0)
    rotateX(calc(var(--pointer-y) * -5deg + var(--tilt-y) * 1deg))
    rotateY(calc(var(--pointer-x) * 7deg + var(--tilt-x) * 1deg));
}

@keyframes gridFloat {
  to {
    background-position: 56px 56px;
  }
}

/* ヒーロー背景: 静かなクロスフェード+緩やかなケンバーンズ */
@keyframes heroKenBurns {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  6% {
    opacity: 1;
  }
  28% {
    opacity: 1;
  }
  34% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

/* ショーケース: カードの控えめな浮遊と画像の緩やかなドリフト */
@keyframes artCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes artImageDrift {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.09);
  }
}

@keyframes sceneImageDrift {
  from {
    transform: scale(1.01);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes scan {
  0%,
  46% {
    transform: translateX(-130%);
  }
  78%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes meter {
  0%,
  100% {
    transform: scaleY(0.36);
  }
  50% {
    transform: scaleY(1);
  }
}

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

@keyframes objectSpinA {
  to {
    transform: rotateX(68deg) rotateZ(360deg);
  }
}

@keyframes objectSpinB {
  to {
    transform: rotateY(72deg) rotateZ(360deg);
  }
}

@keyframes corePulse {
  0%,
  100% {
    transform: translateZ(30px) rotate(0deg) scale(0.96);
  }
  50% {
    transform: translateZ(54px) rotate(14deg) scale(1.04);
  }
}

@keyframes panelFloat {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .scroll-3d-object {
    display: none;
  }

  /* モーション抑制時はクロスフェードを止め、Takuya提供画像を静止表示 */
  .hero-media-frame {
    animation: none !important;
    opacity: 0;
    transform: scale(1.02);
  }

  .hero-media-poster {
    opacity: 1;
    transform: scale(1.02);
  }

  .art-card img,
  .art-card-main,
  .art-card-sub,
  .scene-visual img {
    animation: none !important;
    transform: none;
  }

  .art-card img,
  .scene-visual img {
    transform: scale(1.02);
  }
}

@media (max-width: 1020px) {
  .nav {
    display: none;
  }

  .hero-inner,
  .section-heading.split,
  .trust-inner,
  .motion-lab-inner {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 560px);
    max-width: 640px;
    margin-top: 34px;
  }

  .scene-grid,
  .studio-stage,
  .service-grid,
  .detail-grid,
  .bridge-grid,
  .timeline,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .art-card-main {
    min-height: 280px;
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .case-card img {
    min-height: 240px;
    max-height: 320px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 78px;
  }

  .site-header {
    min-height: 66px;
    padding: 11px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding-top: 66px;
    color: var(--dark-ink);
    background: var(--paper);
  }

  .hero-media {
    inset: 66px 0 auto;
    height: min(330px, 44vh);
  }

  .hero-media img {
    object-position: center top;
    transform:
      translate3d(calc(var(--pointer-x) * -8px), calc(var(--scroll-y) * -0.006), 0)
      scale(1.02);
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(244, 234, 213, 0.08) 0%, rgba(244, 234, 213, 0.7) 64%, var(--paper) 100%),
      linear-gradient(90deg, rgba(244, 234, 213, 0.92), rgba(244, 234, 213, 0.22) 58%, rgba(244, 234, 213, 0));
  }

  .hero::after {
    height: 18vh;
    background: linear-gradient(180deg, transparent, var(--paper));
  }

  .hero-grid {
    opacity: 0.18;
  }

  .hero-inner {
    width: calc(100% - 36px);
    min-height: 0;
    padding: min(360px, 44vh) 0 28px;
  }

  h1 {
    max-width: 340px;
    font-size: 34px;
    line-height: 1.12;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 19px;
  }

  .hero-lead {
    max-width: 340px;
    color: rgba(16, 24, 39, 0.76);
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .hero-note {
    max-width: 340px;
    color: rgba(16, 24, 39, 0.68);
    font-size: 14px;
  }

  .hero-meta {
    max-width: 340px;
    gap: 8px;
  }

  .hero-meta div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }

  .hero-meta dd {
    color: rgba(24, 32, 42, 0.82);
  }

  .status-pill {
    color: #6f4a24;
    border-color: rgba(143, 93, 47, 0.22);
    background: rgba(214, 168, 79, 0.12);
  }

  .page-hero {
    padding: 112px 20px 58px;
  }

  .page-hero h1 {
    max-width: 350px;
    font-size: 34px;
    line-height: 1.12;
  }

  .page-hero p:not(.status-pill) {
    max-width: 350px;
    font-size: 16px;
  }

  .hero-actions,
  .button,
  .form-actions .button {
    width: 100%;
  }

  .hero .button.ghost {
    color: var(--dark-ink);
    border-color: rgba(16, 24, 39, 0.18);
    background: rgba(255, 255, 255, 0.76);
  }

  .hero-orbit {
    display: none;
  }

  .hero-console {
    margin-top: 8px;
    color: var(--ink);
  }

  .hero-showcase {
    display: none;
  }

  .scene-grid,
  .studio-stage,
  .service-grid,
  .detail-grid,
  .bridge-grid,
  .timeline,
  .process-list {
    grid-template-columns: 1fr;
  }

  .scene-grid {
    width: calc(100% - 36px);
    margin-top: 28px;
  }

  .scene-copy h3 {
    font-size: 21px;
  }

  .scroll-3d-object {
    top: 18vh;
    right: 10px;
    width: 74px;
    opacity: 0.34;
  }

  .spline-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .spline-stage {
    min-height: 190px;
  }

  .spline-caption strong {
    font-size: 18px;
    line-height: 1.38;
  }

  .signal-card strong {
    font-size: 15px;
  }

  .section-wrap,
  .section-band {
    padding: 64px 20px;
  }

  .motion-lab-inner {
    width: 100%;
  }

  .motion-word {
    font-size: 54px;
  }

  .motion-word span,
  .motion-word span:nth-child(2),
  .motion-word span:nth-child(3) {
    transform: none;
  }

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

  .studio-stage,
  .service-grid,
  .detail-grid,
  .bridge-grid,
  .timeline,
  .process-list,
  .trust-board,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .case-grid {
    width: 100%;
  }

  .case-card img {
    min-height: 210px;
  }

  .case-card div,
  .detail-card,
  .page-cta-card {
    padding: 22px;
  }

  .timeline article {
    min-height: 190px;
  }

  .timeline h3 {
    margin-top: 24px;
  }

  .work-rail {
    grid-auto-columns: minmax(282px, 86vw);
  }

  .work-rail img {
    height: 190px;
  }

  .trust-inner {
    width: 100%;
  }

  .contact-form {
    padding: 22px;
  }

  .privacy-check {
    align-items: flex-start;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 18px;
  }
}

/* Direction reset after 2026-06-09 feedback:
   keep Takuya's moving ukiyo-e assets, but frame them as a modern AI studio visual. */
body {
  background:
    radial-gradient(circle at 78% 18%, rgba(214, 168, 79, 0.16), transparent 28rem),
    radial-gradient(circle at 18% 22%, rgba(95, 151, 168, 0.16), transparent 30rem),
    linear-gradient(180deg, #050914 0%, #07111b 48%, #edf2f7 48%, #edf2f7 100%);
}

h1,
h2,
h3 {
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero {
  min-height: 100svh;
  background: #050914;
}

.hero-media {
  inset: 74px 0 0 auto;
  width: min(62vw, 980px);
  background: #10151c;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-media-frame,
.hero-media-poster {
  object-position: center center;
  filter: saturate(1.08) contrast(1.08) brightness(0.84);
}

.hero::before {
  background:
    linear-gradient(90deg, #050914 0%, rgba(5, 9, 20, 0.98) 32%, rgba(5, 9, 20, 0.78) 52%, rgba(5, 9, 20, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 9, 20, 0.18), rgba(5, 9, 20, 0.88) 100%);
}

.hero::after {
  height: 16vh;
  background: linear-gradient(180deg, transparent, #07111b);
}

.hero-grid {
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, #000, transparent 52%);
  opacity: 0.24;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.55fr);
  align-items: end;
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(64px, 8vh, 96px) 0 54px;
}

.hero-copy {
  max-width: 740px;
}

.status-pill {
  color: #f3c96d;
  border-color: rgba(243, 201, 109, 0.36);
  background: rgba(243, 201, 109, 0.09);
}

h1 {
  max-width: 780px;
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 0.98;
  font-weight: 900;
}

h1 span {
  background: linear-gradient(110deg, #f5c96c 0%, #8fd6e8 45%, #ffffff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 680px;
  color: rgba(255, 248, 232, 0.92);
  font-size: clamp(17px, 1.35vw, 21px);
}

.hero-note {
  color: rgba(255, 248, 232, 0.66);
}

.hero-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 740px;
  gap: 10px;
}

.hero-meta div {
  display: block;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.hero-meta dt {
  margin-bottom: 4px;
  color: #f3c96d;
}

.hero-meta dd {
  color: rgba(255, 248, 232, 0.86);
}

.hero-showcase {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: 430px;
  justify-self: end;
  align-self: end;
}

.art-stack {
  gap: 12px;
}

.art-card {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(5, 9, 20, 0.48);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.art-card-main {
  min-height: 300px;
}

.art-card-sub {
  min-height: 150px;
}

.hero-kicker-card {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(5, 9, 20, 0.72);
  color: #fff8e8;
  backdrop-filter: blur(18px);
}

.hero-ticker {
  background: rgba(5, 9, 20, 0.86);
  border-color: rgba(255, 255, 255, 0.12);
}

.scene-strip,
.ukiyo-bridge {
  color: #fff8e8;
  background:
    radial-gradient(circle at 20% 20%, rgba(95, 151, 168, 0.16), transparent 28rem),
    linear-gradient(180deg, #07111b, #0b1824);
}

.scene-strip .section-heading p,
.ukiyo-bridge .section-heading p,
.scene-copy p,
.bridge-grid p {
  color: rgba(255, 248, 232, 0.72);
}

.scene-card,
.bridge-grid article {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.scene-visual {
  background: #0f1722;
}

.motion-sequence,
.motion-card img,
.scene-visual img {
  animation: none;
  transform: none;
}

.hero-media .motion-sequence {
  opacity: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.motion-card::before,
.scene-visual:has(img)::before {
  content: "UKIYO-E SCENE";
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 14px;
  padding: 4px 8px;
  border: 1px solid rgba(243, 201, 109, 0.32);
  border-radius: 999px;
  color: #f3c96d;
  background: rgba(5, 9, 20, 0.68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.scene-visual {
  position: relative;
}

.motion-card img,
.scene-visual img {
  filter: saturate(1.04) contrast(1.06) brightness(0.96);
}

@media (max-width: 980px) {
  .hero-media {
    width: 100%;
    clip-path: none;
    opacity: 0.52;
  }

  .hero-inner {
    display: block;
  }

  .hero-showcase {
    max-width: 560px;
    justify-self: start;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    background: #050914;
  }

  .hero {
    min-height: 100svh;
    color: #fff8e8;
    background: #050914;
  }

  .hero-media {
    inset: 66px 0 auto;
    height: 44svh;
    opacity: 0.9;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 9, 20, 0.1) 0%, rgba(5, 9, 20, 0.54) 34%, #050914 68%, #050914 100%);
  }

  .hero::after {
    background: linear-gradient(180deg, transparent, #050914);
  }

  .hero-inner {
    width: calc(100% - 36px);
    padding: calc(44svh + 22px) 0 34px;
  }

  h1 {
    max-width: 350px;
    color: #fff8e8;
    font-size: 38px;
    line-height: 1.05;
  }

  .hero-lead,
  .hero-note,
  .hero-meta dd {
    color: rgba(255, 248, 232, 0.78);
  }

  .hero .button.ghost {
    color: #fff8e8;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
  }

  .hero-showcase {
    display: block;
    margin-top: 28px;
  }

  .art-card-main {
    min-height: 220px;
  }

  .art-card-sub {
    display: none;
  }

  .scene-strip,
  .ukiyo-bridge {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* =====================================================================
   Cinema scroll-scrub hero & bands  (rebuild 2026-06-09)
   スクロール量に連動して浮世絵12コマを切り替える。自動ループは廃止。
   ===================================================================== */
.cinema { position: relative; isolation: isolate; }
.cinema-track { position: relative; height: 220vh; }
.cinema--band .cinema-track { height: 200vh; }

.cinema-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #0b0a07;
}

.cinema-media { position: absolute; inset: 0; z-index: 0; background: #0b0a07; }
.cinema-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  backface-visibility: hidden;
}
/* layer B crossfades over A by the scroll fraction between two frames */
.cinema-frame--b { opacity: var(--cinema-mix, 0); will-change: opacity; }
.cinema--band .cinema-frame { object-position: 56% 82%; }

.cinema-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,7,5,0.62) 0%, rgba(8,7,5,0.05) 24%, rgba(8,7,5,0) 50%, rgba(8,7,5,0.55) 80%, rgba(8,7,5,0.9) 100%),
    linear-gradient(90deg, rgba(8,7,5,0.82) 0%, rgba(8,7,5,0.32) 40%, rgba(8,7,5,0) 72%);
}
.cinema-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(231,178,90,0.10) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
}

.cinema-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) clamp(64px, 11vh, 132px);
}
.cinema-copy {
  max-width: 660px;
  opacity: var(--cinema-fade, 1);
  transform: translate3d(0, calc((1 - var(--cinema-fade, 1)) * 30px), 0);
  transition: opacity 0.18s linear;
}
.cinema .status-pill {
  display: inline-block;
  color: #f3e6c9;
  background: rgba(231,178,90,0.12);
  border: 1px solid rgba(231,178,90,0.4);
  border-radius: 999px;
  padding: 0.42em 1.1em;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.cinema h1 {
  font-family: "Zen Old Mincho", serif;
  color: #f8f2e6;
  font-weight: 700;
  font-size: clamp(2.05rem, 5.6vw, 4.05rem);
  line-height: 1.16;
  letter-spacing: 0.012em;
  margin: 0.85rem 0 1.15rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.45);
}
.cinema h1 span { color: #e7b25a; }
.cinema-lead {
  color: rgba(245,239,228,0.9);
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  line-height: 1.95;
  max-width: 38em;
  text-shadow: 0 1px 18px rgba(0,0,0,0.4);
}
.cinema-note {
  margin-top: 0.9rem;
  color: rgba(231,222,205,0.62);
  font-size: 0.86rem;
  line-height: 1.8;
  max-width: 34em;
}
.cinema-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}
/* band variant: smaller headline, eyebrow */
.cinema--band .cinema-content { padding-bottom: clamp(72px, 14vh, 150px); }
.cinema-eyebrow {
  color: #e7b25a;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}
.cinema--band h2 {
  font-family: "Zen Old Mincho", serif;
  color: #f8f2e6;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.28;
  margin: 0.7rem 0 1rem;
  max-width: 18em;
  text-shadow: 0 2px 26px rgba(0,0,0,0.45);
}
.cinema--band .cinema-lead { max-width: 33em; }

/* chapter counter / progress for bands */
.cinema-progress {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  bottom: clamp(28px, 5vh, 48px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(245,239,228,0.7);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.cinema-progress .bar {
  position: relative;
  width: clamp(80px, 16vw, 180px);
  height: 2px;
  background: rgba(245,239,228,0.22);
  border-radius: 2px;
  overflow: hidden;
}
.cinema-progress .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(var(--cinema-prog, 0));
  background: #e7b25a;
}

/* scroll hint */
.cinema-hint {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(28px, 5vh, 48px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(245,239,228,0.66);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: var(--cinema-fade, 1);
  transition: opacity 0.2s linear;
}
.cinema-hint span {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, #e7b25a, transparent);
  animation: cinemaHint 1.9s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes cinemaHint {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 720px) {
  .cinema-track { height: 185vh; }
  .cinema--band .cinema-track { height: 170vh; }
  .cinema-frame { object-position: 62% 50%; }
  .cinema-hint { display: none; }
  .cinema-content { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .cinema-track,
  .cinema--band .cinema-track { height: 100vh; height: 100svh; }
  .cinema-frame { transform: none !important; }
  .cinema-hint span { animation: none; }
}

/* =====================================================================
   Site-wide motion system v2 (2026-06-09)
   静かで意図的・順次的 — 「観察して組み直す」所作をサイト全体の所作に。
   ===================================================================== */
:root {
  --ease-calm: cubic-bezier(0.2, 0.7, 0.25, 1);
  --reveal-stagger: 72ms;
}

/* base reveal: 穏やかな上昇＋にじみ晴れ（旧3D回転/拡大を置換） */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition:
    opacity 0.82s var(--ease-calm),
    transform 0.82s var(--ease-calm),
    filter 0.82s var(--ease-calm);
  transition-delay: calc(var(--ri, 0) * var(--reveal-stagger));
  transform-origin: center top;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* stagger parent: 自身は静かなトリガーに徹し、子が順次定着する */
.reveal.stagger {
  opacity: 1;
  transform: none;
  filter: none;
}
.reveal .stagger-item {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(4px);
  transition:
    opacity 0.66s var(--ease-calm),
    transform 0.66s var(--ease-calm),
    filter 0.66s var(--ease-calm);
  transition-delay: calc(var(--ri, 0) * var(--reveal-stagger));
  will-change: opacity, transform;
}
.reveal.is-visible .stagger-item {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* section eyebrow: 短い罫線が引かれる「始まり」の所作 */
.section-heading .eyebrow {
  position: relative;
  display: inline-block;
  padding-left: 34px;
}
.section-heading .eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-calm) 0.12s;
}
.section-heading.is-visible .eyebrow::before {
  transform: scaleX(1);
}

/* 統一された穏やかなカードホバー */
.scene-card,
.bridge-grid article,
.studio-stage article,
.timeline article,
.work-rail article,
.trust-board article {
  transition: transform 0.4s var(--ease-calm), box-shadow 0.4s var(--ease-calm), border-color 0.4s var(--ease-calm);
}
.scene-card:hover,
.bridge-grid article:hover,
.studio-stage article:hover,
.timeline article:hover,
.work-rail article:hover,
.trust-board article:hover {
  transform: translateY(-6px);
}

/* cinema copy: ピン留め中の場面送りに合わせた微小な上方ドリフト */
.cinema-copy {
  transform: translate3d(0, calc(var(--cinema-prog, 0) * -22px), 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal .stagger-item {
    transition-duration: 0.001ms;
    transform: none;
    filter: none;
    opacity: 1;
  }
  .section-heading .eyebrow::before { transition: none; transform: scaleX(1); }
  .scene-card:hover,
  .bridge-grid article:hover,
  .studio-stage article:hover,
  .timeline article:hover,
  .work-rail article:hover,
  .trust-board article:hover { transform: none; }
  .cinema-copy { transform: none; }
}
