/* ============================================================
   NEVE — New Experience, Visuals & Engagement.
   Dark × Orange / Particle Wave Edition
============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0c;
  --text: #f2f2f2;
  --sub: #a8a8a8;
  --dim: #8a8a8a;
  --faint: #5a5a5a;
  --line: #2a2a2a;
  --accent: #ff6a1a;
  --accent-soft: rgba(255, 106, 26, 0.35);
  --panel: rgba(255, 255, 255, 0.02);
  --btn-line: #3d3d3d;
  --card-line: #232323;
  --ring: rgba(240, 240, 240, 0.4);
  --font-en: "Helvetica Neue", "Helvetica", Arial, sans-serif;
  --font-ja: "Helvetica Neue", "Yu Gothic", "游ゴシック", "Hiragino Kaku Gothic ProN", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { height: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0d0d0c; }
.en { font-family: var(--font-en); }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 背景キャンバス ---------- */
#wave {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}
.no-fx #wave { opacity: 1; }

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

/* ---------- 吹雪トランジション ---------- */
#blizzard {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

/* ---------- プリローダー(白背景の黒い塊) ---------- */
.loader {
  position: fixed; inset: 0;
  z-index: 100;
  background: #d8d4ca;
}
html[data-loader-seen="true"] .loader { display: none; }
.loader canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.loader .l-brand {
  position: absolute;
  top: 34px; left: 48px;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: #4c483f;
}
.loader .l-brand em { font-style: normal; color: var(--accent); }
.loader .l-count {
  position: absolute;
  right: 48px; bottom: 30px;
  font-size: clamp(56px, 8.5vw, 110px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #161616;
  font-variant-numeric: tabular-nums;
}
.loader .l-count sup { font-size: 0.22em; font-weight: 400; color: var(--accent); vertical-align: super; }

/* ---------- カスタムカーソル ---------- */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0;
  z-index: 99;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}
.cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor-ring {
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid var(--ring);
  display: flex; align-items: center; justify-content: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease),
              background .35s, border-color .35s;
}
.cursor-ring .cv { font-family: var(--font-en); font-size: 10px; letter-spacing: 0.2em; color: #0d0d0c; opacity: 0; transition: opacity .3s; }
.cursor-ring.is-link { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: var(--accent); }
.cursor-ring.is-view { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--accent); border-color: var(--accent); }
.cursor-ring.is-view .cv { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }


/* ---------- テーマ切り替えボタン(右下固定) ---------- */
.theme-toggle {
  position: fixed;
  right: 48px;
  bottom: 96px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--faint);
  cursor: pointer;
  transition: border-color .35s;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.theme-toggle:hover { border-color: var(--accent); }
/* 子要素はクリックを拾わず、ボタン全域がヒットエリアになる */
.theme-toggle span, .theme-toggle i { pointer-events: none; }
.theme-toggle i { font-style: normal; color: var(--faint); }
.theme-toggle span {
  position: relative;
  padding-left: 12px;
  transition: color .35s;
}
.theme-toggle span::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity .35s, transform .35s var(--ease);
}
/* ダーク時はBLACK、ライト時はWHITEがアクティブ */
.theme-toggle .tb { color: var(--text); }
.theme-toggle .tb::before { opacity: 1; transform: scale(1); }
.theme-toggle.is-light .tb { color: var(--faint); }
.theme-toggle.is-light .tb::before { opacity: 0; transform: scale(0.4); }
.theme-toggle.is-light .tw { color: var(--text); }
.theme-toggle.is-light .tw::before { opacity: 1; transform: scale(1); }
.is-subpage .theme-toggle { bottom: 34px; }

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: rgba(13, 13, 12, 0.72);
  color: var(--text);
  padding: 10px 13px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  cursor: pointer;
}

/* ---------- ページカウンター ---------- */
.pagecount {
  position: fixed;
  right: 48px; bottom: 34px;
  z-index: 50;
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: var(--dim);
  font-size: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  min-width: 96px;
  text-align: right;
}
.pagecount strong { font-size: 22px; font-weight: 600; color: var(--text); margin-right: 4px; }
.pagecount::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 36px; height: 1px;
  background: var(--accent);
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex; align-items: center; gap: 24px;
  padding: 22px 48px;
  opacity: 0;
  background: linear-gradient(to bottom, rgba(13,13,12,0.85), rgba(7,7,7,0));
}
.no-fx .header { opacity: 1; }
.header .logo { font-family: var(--font-en); font-size: 26px; font-weight: 800; letter-spacing: 0.06em; }
.header .tagline { font-size: 10.5px; color: var(--sub); line-height: 1.6; letter-spacing: 0.04em; }
.header nav {
  margin-left: auto;
  display: flex; align-items: center;
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: 0.14em;
}
.header nav a { position: relative; padding: 6px 0 6px 16px; margin-left: 14px; }
.header nav a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity .35s, transform .35s var(--ease);
}
.header nav a.is-active::before, .header nav a:hover::before { opacity: 1; transform: scale(1); }
.header nav .sep { color: var(--faint); margin-left: 14px; }

/* ---------- 右端固定タブ ---------- */
.side-tabs { position: fixed; right: 0; top: 92px; z-index: 60; display: grid; gap: 10px; }
.side-tabs a {
  box-shadow: -8px 10px 26px -14px rgba(0, 0, 0, 0.5);
  writing-mode: vertical-rl;
  font-family: var(--font-en);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: #dcdcdc;
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid var(--line);
  border-right: none;
  border-top: 2px solid var(--accent);
  padding: 30px 13px;
  transition: background .3s, color .3s;
}
.side-tabs a:hover { background: var(--accent); color: #0d0d0c; }

.mobile-nav {
  position: fixed;
  left: 18px;
  right: 18px;
  top: 72px;
  z-index: 58;
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(13, 13, 12, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--sub);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.mobile-nav a:hover { border-color: var(--accent); color: var(--text); }

.mobile-panel {
  position: fixed;
  top: 70px;
  left: 18px;
  right: 18px;
  z-index: 82;
  display: none;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(13, 13, 12, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.7);
}
.mobile-panel nav {
  display: grid;
  gap: 10px;
}
.mobile-panel nav a {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.22em;
}
.mobile-panel nav a::after {
  content: "→";
  color: var(--accent);
}
.panel-theme {
  margin-top: 22px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--sub);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.panel-theme i { font-style: normal; color: var(--faint); }
.panel-theme.is-light span:last-child,
.panel-theme:not(.is-light) span:first-child { color: var(--text); }
.panel-actions {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
html.menu-open .mobile-panel { display: block; }

/* ---------- 共通パーツ ---------- */
.label {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--sub);
  text-transform: uppercase;
}
.label .sl { color: var(--accent); }
.label.accent { color: var(--accent); }

.l { display: block; overflow: hidden; }
.li { display: block; transform: translateY(115%); will-change: transform; }
.no-fx .li { transform: none; }
[data-fade] { will-change: transform, opacity; }

/* ボタン */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 20px 30px;
  border: 1px solid var(--btn-line);
  font-size: 13px;
  letter-spacing: 0.18em;
  overflow: hidden;
  will-change: transform;
}
.btn { box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.5); }
.btn.ghost { box-shadow: none; }
.btn .fill {
  position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s var(--ease);
}
.btn:hover .fill { transform: scaleX(1); transform-origin: left; }
.btn > *:not(.fill) { position: relative; z-index: 1; transition: color .35s; }
.btn:hover span, .btn:hover .ico { color: #0d0d0c !important; }
.btn .ico { color: var(--accent); font-family: var(--font-en); font-size: 15px; }
.btn.ghost { border-color: transparent; border-bottom: 1px solid var(--accent); padding: 14px 6px; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px 48px 100px;
}
.hero .label { margin-bottom: 40px; }
.hero h1 {
  font-family: var(--font-en);
  font-size: clamp(56px, 9.6vw, 138px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
  max-width: 12em;
}
.hero .lead {
  margin-top: 38px;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: #d0d0d0;
}
.hero .actions { display: flex; align-items: center; gap: 40px; margin-top: 52px; flex-wrap: wrap; }
.hero .scroll {
  position: absolute;
  left: 52px; bottom: 44px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--dim);
}
.hero .scroll i {
  display: block;
  width: 1px; height: 54px;
  margin: 14px 0 0 12px;
  background: linear-gradient(var(--accent), transparent);
  animation: hint 2.2s var(--ease) infinite;
}
@keyframes hint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- SHARED CHALLENGES ---------- */
.challenges { padding: 60px 48px 130px; }
.challenges .labels { display: grid; gap: 8px; margin-bottom: 64px; }
.challenges .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.chal { position: relative; padding: 16px 26px 26px 0; }
.chal::before {
  content: "";
  position: absolute;
  right: 0; top: 0;
  width: 1px; height: 100%;
  background: var(--line);
  transform: rotate(14deg) scaleY(0);
  transform-origin: top;
}
.chal:last-child::before { display: none; }
.no-fx .chal::before { transform: rotate(14deg) scaleY(1); }
.chal .num {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--faint);
  letter-spacing: 0.04em;
}
.chal p { margin-top: 20px; font-size: 13.5px; line-height: 2.1; letter-spacing: 0.12em; }
.chal .dot { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 22px; }

/* ---------- ABOUT ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
  padding: 60px 48px 170px;
}
.about .ring { position: relative; height: 420px; }
.about .ring svg {
  width: 100%; height: 100%;
  overflow: visible;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.4));
}
.about h2 {
  margin-top: 26px;
  font-size: clamp(24px, 2.9vw, 38px);
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: 0.14em;
}
.about .body {
  margin-top: 34px;
  font-size: 13px;
  line-height: 2.35;
  letter-spacing: 0.14em;
  color: var(--sub);
  max-width: 560px;
}

/* ---------- WORKS ---------- */
.works { padding: 130px 48px 140px; border-top: 1px solid var(--line); }
.works h2 { margin-top: 26px; font-size: clamp(26px, 3.4vw, 44px); font-weight: 600; letter-spacing: 0.14em; }
.works .grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.wcard {
  border: 1px solid var(--card-line);
  background: var(--panel);
  box-shadow: 0 28px 60px -22px rgba(0, 0, 0, 0.55), 0 8px 20px -10px rgba(0, 0, 0, 0.4);
}
.wcard .thumb { overflow: hidden; position: relative; aspect-ratio: 1 / 0.86; }
.wcard .thumb img { object-position: var(--work-thumbnail-position, center); transform: scale(1.02); transition: transform 1.3s var(--ease); will-change: transform; }
.wcard:hover .thumb img { transform: scale(1.09); }
.wcard .info { padding: 30px 28px 30px; }
.wcard h3 { font-family: var(--font-en); font-size: 22px; font-weight: 600; letter-spacing: 0.02em; }
.wcard .cats { margin-top: 12px; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.16em; color: var(--sub); }
.wcard .cats i { font-style: normal; color: var(--accent); padding: 0 6px; }
.wcard .desc { margin-top: 20px; font-size: 12px; line-height: 2; letter-spacing: 0.08em; color: #c9c9c9; min-height: 3.6em; }
.wcard .stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.wcard .stat { padding: 20px 6px 20px 0; }
.wcard .stat + .stat { border-left: 1px solid var(--line); padding-left: 22px; }
.wcard .stat .k { font-size: 10.5px; letter-spacing: 0.14em; color: var(--dim); }
.wcard .stat .v { margin-top: 10px; font-family: var(--font-en); font-size: 15px; letter-spacing: 0.06em; }
.wcard .stat .v strong { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; margin-right: 3px; font-variant-numeric: tabular-nums; }
.wcard .stat .v em { font-style: normal; color: var(--accent); font-size: 12px; margin-left: 4px; letter-spacing: 0.1em; }
.wcard .view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: 0.22em;
}
.wcard .view .ar { color: var(--accent); transition: transform .45s var(--ease); }
.wcard {
  transition: transform .45s var(--ease), box-shadow .45s, border-color .35s;
}
.wcard:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 106, 26, 0.55);
  box-shadow: 0 34px 70px -26px rgba(0, 0, 0, 0.72), 0 10px 26px -16px rgba(0, 0, 0, 0.5);
}
.wcard:hover .view .ar { transform: translateX(10px); }

/* ---------- マーキー ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.marquee .track { display: flex; width: max-content; will-change: transform; }
.marquee .chunk {
  display: flex; align-items: center; gap: 48px;
  padding-right: 48px;
  font-family: var(--font-en);
  font-size: clamp(38px, 5.6vw, 78px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}
.marquee .chunk span:nth-child(odd) {
  color: transparent;
  -webkit-text-stroke: 1px var(--faint);
}
.marquee .chunk i { font-style: normal; color: var(--accent); }

/* ---------- SERVICES ---------- */
.services { padding: 130px 48px 150px; }
.services h2 {
  margin-top: 26px;
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.16em;
}
.services .grid {
  margin-top: 74px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.svc {
  padding: 34px 26px 40px;
  border-left: 1px solid var(--line);
  position: relative;
}
.svc:last-child { border-right: 1px solid var(--line); }
.svc .num {
  font-family: var(--font-en);
  font-size: 34px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--faint);
  transition: -webkit-text-stroke .4s, color .4s;
}
.svc h3 { margin-top: 22px; font-family: var(--font-en); font-size: 17px; font-weight: 600; letter-spacing: 0.12em; }
.svc .icon { margin: 30px 0 6px; height: 64px; color: #bdbdbd; }
.svc .icon svg { width: 64px; height: 64px; }
.svc .icon .ac { stroke: var(--accent); }
.svc ul { margin-top: 20px; list-style: none; }
.svc li { font-size: 12px; letter-spacing: 0.12em; color: #c4c4c4; padding: 7px 0; }
.svc .dot { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 22px; }

/* ---------- PROCESS ---------- */
.process { padding: 150px 48px 130px; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.process .ring-visual {
  position: absolute;
  right: -4%; top: 40px;
  width: 620px; height: 420px;
  opacity: 0.9;
  pointer-events: none;
}
.process h2 {
  margin-top: 26px;
  font-family: var(--font-en);
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}
.process h2 .sq { display: inline-block; width: 0.16em; height: 0.16em; background: var(--accent); margin-left: 0.06em; }
.process .sub { margin-top: 30px; font-size: 14.5px; letter-spacing: 0.24em; }
.process .steps { margin-top: 100px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }
.pstep { position: relative; padding-right: 30px; }
.pstep::before {
  content: "";
  position: absolute;
  right: 0; top: 0;
  width: 1px; height: 82%;
  background: var(--line);
  transform: rotate(14deg);
}
.pstep:last-child::before { display: none; }
.pstep .step-label { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.24em; color: var(--dim); }
.pstep .step-label strong { font-size: 17px; color: #d8d8d8; margin-left: 8px; letter-spacing: 0.1em; }
.pstep h3 { margin-top: 18px; font-family: var(--font-en); font-size: 21px; font-weight: 600; letter-spacing: 0.22em; }
.pstep p { margin-top: 20px; font-size: 12.5px; line-height: 2.1; letter-spacing: 0.12em; color: #c9c9c9; }
.pstep .diagram { margin-top: 38px; height: 96px; color: #7a7a7a; }
.pstep .diagram svg { width: 150px; height: 96px; overflow: visible; }
.pstep .diagram .ac { fill: var(--accent); }
.pstep .diagram .acs { stroke: var(--accent); }
.pstep .diagram .spin { transform-origin: 48px 48px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 190px 48px 170px; text-align: center; border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(20px, 2.9vw, 34px); font-weight: 600; letter-spacing: 0.24em; }
.cta .actions { margin-top: 60px; display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; }

/* ---------- フッター ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 48px 30px; }
.footer .top { display: flex; align-items: flex-start; gap: 50px; flex-wrap: wrap; }
.footer .logo strong { font-family: var(--font-en); font-size: 26px; font-weight: 800; letter-spacing: 0.06em; display: block; }
.footer .logo span { display: block; margin-top: 14px; font-family: var(--font-en); font-size: 11px; line-height: 1.8; letter-spacing: 0.08em; color: var(--sub); }
.footer nav { margin: 6px auto 0; display: flex; flex-wrap: wrap; align-items: center; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.2em; color: #d8d8d8; }
.footer nav a { padding: 6px 14px; }
.footer nav .sep { color: var(--faint); }
.footer .bottom {
  margin-top: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-en);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--dim);
}
.footer .pp { display: inline-flex; align-items: center; gap: 10px; }
.footer .pp::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.footer .btt { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: #d8d8d8; }
.footer .btt .up { color: var(--accent); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1080px) {
  .header { padding: 18px 24px; }
  .header .tagline, .header nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .theme-toggle { display: none; }
  .mobile-nav { display: none; }
  .side-tabs { display: none; }
  .pagecount { right: 24px; bottom: 22px; }
  .hero { padding: 160px 24px 110px; }
  .hero .scroll { left: 28px; }
  .challenges, .about, .works, .services, .process, .cta { padding-left: 24px; padding-right: 24px; }
  .challenges .grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 30px; }
  .about .ring { height: 300px; order: 2; }
  .works .grid { grid-template-columns: 1fr; }
  .services .grid { grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
  .svc { border-bottom: 1px solid var(--line); }
  .svc:last-child { border-right: none; }
  .process .ring-visual { width: 420px; right: -14%; opacity: 0.5; }
  .process .steps { grid-template-columns: repeat(2, 1fr); gap: 54px 34px; }
  .footer { padding: 44px 24px 24px; }
  .footer nav { margin: 0; }
}
@media (max-width: 640px) {
  .pagecount { display: none; }
  .hero .scroll { display: none; }
  .challenges .grid { grid-template-columns: 1fr; }
  .chal::before { display: none; }
  .services .grid { grid-template-columns: 1fr; }
  .process .steps { grid-template-columns: 1fr; }
  .pstep::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .header { opacity: 1; }
  .li { transform: none !important; }
  .hero .scroll i { animation: none; }
  .pstep .diagram .spin { animation: none; }
  .cursor, .cursor-ring { display: none; }
}


/* ---------- WORKS 横スクロール ---------- */
.works {
  --works-scroll-height: 260vh;
  min-height: var(--works-scroll-height);
  padding: 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: visible;
}
.works-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: clamp(42px, 6vh, 64px) 48px clamp(28px, 4.8vh, 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 74% 28%, rgba(255, 106, 26, 0.12), transparent 32%),
              linear-gradient(180deg, rgba(13, 13, 12, 0.72), rgba(13, 13, 12, 0.96));
}
.works-world {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  pointer-events: none;
}
.works-world canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.world-copy {
  position: absolute;
  right: 48px;
  bottom: 34px;
  font-size: clamp(42px, 8.5vw, 126px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
}
/* ---- 開幕ゲート:CREATIVE / WORKS の分割タイポが上下へ抜ける ---- */
.ws-gate { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.gt {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.25%;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  justify-content: center;
  will-change: transform;
}
.gt-top { top: 0; align-items: flex-end; border-bottom: 1px solid var(--line); }
.gt-bottom { bottom: 0; align-items: flex-start; border-top: 1px solid var(--line); }
.gt span {
  font-weight: 800;
  font-size: clamp(60px, 10vw, 148px);
  letter-spacing: -0.02em;
  line-height: 0.84;
  color: var(--text);
}
.gt-top span { transform: translateY(10%); }
.gt-bottom span { transform: translateY(-4%); color: transparent; -webkit-text-stroke: 1.5px var(--text); }

/* ---- 閉幕:マーキー素材のテキスト帯が左右から重なって閉じる ---- */
.ws-close {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.ws-close .row {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--line);
  white-space: nowrap;
  transform: translateX(-106%);
  will-change: transform;
}
.ws-close .row:first-child { border-top: none; }
.ws-close .row:nth-child(even) { transform: translateX(106%); }
.ws-close .row span {
  font-size: clamp(18px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  padding-left: 28px;
}
.ws-close .row:nth-child(odd) span { color: transparent; -webkit-text-stroke: 1px var(--faint); }

.no-fx .ws-gate, .no-fx .ws-close { display: none; }

.works-head, .works .drag-wrap, .works .drag-progress, .works > .works-sticky > .label { position: relative; z-index: 2; }
.works-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.works-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: flex-end; }
.works .hint { font-size: 11px; letter-spacing: 0.26em; color: var(--faint); font-family: var(--font-en); }
.works-all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--accent);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #f2f2f2;
}
.works-all span { color: var(--accent); }
.works .drag-wrap {
  margin-top: clamp(24px, 4vh, 42px);
  overflow-x: hidden;
  overflow-y: hidden;
  cursor: default;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.works .drag-wrap::-webkit-scrollbar { display: none; }
.no-fx .works { min-height: auto; }
.no-fx .works-sticky { position: relative; min-height: auto; }
.no-fx .works .drag-wrap { overflow-x: auto; touch-action: pan-x pan-y; }
.works .drag-track { display: flex; gap: 34px; width: max-content; will-change: transform; }
.no-fx .works .drag-track { transform: none !important; }
.works .wcard { width: clamp(288px, 26vw, 360px); flex: none; }
.works .wcard .thumb { aspect-ratio: 1 / 0.58; }
.works .wcard .info { padding: 20px 22px 20px; }
.works .wcard .desc { margin-top: 12px; line-height: 1.72; }
.works .wcard .stats { margin-top: 14px; }
.works .wcard .stat { padding: 10px 6px 10px 0; }
.works .wcard .stat + .stat { padding-left: 18px; }
.works .wcard .stat .v { margin-top: 6px; }
.works .wcard .stat .v strong { font-size: 25px; }
.works .wcard .view { padding-top: 14px; }
.works .drag-progress { margin-top: clamp(18px, 3.2vh, 34px); height: 1px; background: var(--line); position: relative; }
.works .drag-progress i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0.1); transform-origin: left; }

/* ティザーカード */
.wcard.teaser {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #3a3a3a;
  background: transparent;
  text-align: center;
}
.wcard.teaser .t-label { font-size: 11px; letter-spacing: 0.3em; color: var(--accent); }
.wcard.teaser h3 { margin-top: 24px; font-family: var(--font-ja); font-size: 20px; font-weight: 600; letter-spacing: 0.14em; }
.wcard.teaser .view { border: none; margin-top: 34px; justify-content: center; gap: 16px; }

@media (max-width: 1080px) {
  .works { min-height: auto; }
  .works-sticky { position: relative; min-height: auto; padding: 110px 24px 100px; }
  .ws-gate, .ws-close { display: none; }
  .works-head { align-items: flex-start; flex-direction: column; }
  .works-actions { justify-content: flex-start; }
  .world-copy { right: 24px; bottom: 20px; }
  .works .drag-wrap { overflow-x: auto; touch-action: pan-x pan-y; }
  .works .drag-track { transform: none !important; }
  .works .wcard { width: 76vw; }
}


/* ---------- ワークスサムネイルの3Dチルト ---------- */
.wcard .thumb { perspective: 800px; }
.wcard .thumb img { transform-style: preserve-3d; }


/* ============================================================
   下層ページ
============================================================ */
.subpage {
  min-height: 100vh;
  padding: 150px 48px 120px;
}
.sub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
  gap: 70px;
  align-items: end;
  min-height: 58vh;
  padding-bottom: 86px;
  border-bottom: 1px solid var(--line);
}
.sub-hero.compact { min-height: 42vh; }
.sub-hero.single { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.sub-hero h1 {
  margin-top: 30px;
  font-family: var(--font-en);
  font-size: clamp(52px, 9vw, 128px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.sub-hero .lead {
  margin-top: 34px;
  max-width: 680px;
  color: var(--sub);
  font-size: 14px;
  line-height: 2.25;
  letter-spacing: 0.13em;
}
.sub-hero .aside {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}
.sub-hero .aside p {
  color: var(--sub);
  font-size: 12px;
  line-height: 2.2;
  letter-spacing: 0.12em;
}
.sub-hero .meta {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
.sub-hero .meta dt {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--dim);
}
.sub-hero .meta dd {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--dim);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--accent); }
.sub-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.sub-section:last-child { border-bottom: none; padding-bottom: 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}
.section-head h2 {
  margin-top: 24px;
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.14em;
}
.section-head .note {
  max-width: 410px;
  color: var(--sub);
  font-size: 12px;
  line-height: 2.1;
  letter-spacing: 0.12em;
}
.privacy-policy { max-width: 980px; }
.privacy-policy__title {
  margin-bottom: 32px;
  font-size: clamp(23px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: 0.12em;
}
.privacy-policy__intro,
.privacy-policy__section p,
.privacy-policy__section li,
.privacy-policy__contact dd {
  color: var(--sub);
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.08em;
}
.privacy-policy__section {
  padding: 48px 0;
}
.privacy-policy__section h2 {
  margin-bottom: 20px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.privacy-policy__section p + p { margin-top: 16px; }
.privacy-policy__section ul {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-left: 1.35em;
}
.privacy-policy__section li::marker { color: var(--accent); }
.privacy-policy__contact {
  display: grid;
  gap: 24px;
}
.privacy-policy__contact > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  gap: 24px;
}
.privacy-policy__contact dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.privacy-policy__date {
  margin-top: 48px;
  color: var(--sub);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.case-grid .wcard { min-width: 0; }
.case-grid .wcard .thumb { aspect-ratio: 1 / 0.78; }
.case-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.case-filter button,
.case-filter span {
  border: 1px solid var(--line);
  padding: 9px 12px;
  background: transparent;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--sub);
  cursor: pointer;
}
.case-filter button.is-active,
.case-filter button:hover { border-color: var(--accent); color: var(--text); }
.case-grid .wcard[hidden] { display: none; }
.form-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 60px;
  align-items: start;
}
.form-panel {
  border: 1px solid var(--card-line);
  background: var(--panel);
  padding: 34px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.field { display: grid; gap: 10px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--sub);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  padding: 15px 16px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  outline: none;
  transition: border-color .3s, background .3s;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.9; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.045);
}
.form-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.form-note {
  margin-top: 22px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.1em;
}
.form-status {
  margin-bottom: 22px;
  border-left: 2px solid var(--accent);
  padding: 12px 14px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.8;
}
.form-status[hidden] { display: none; }
.field-error {
  min-height: 1.4em;
  color: #ff8f8f;
  font-size: 11px;
  line-height: 1.4;
}
.field [aria-invalid="true"] { border-color: #ff8f8f; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.8;
  cursor: pointer;
}
.consent-label input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--accent);
}
.consent-label a { color: var(--text); text-decoration: underline; }
.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-panel .btn:disabled {
  cursor: wait;
  opacity: .55;
}
.form-noscript { color: var(--text); }
.contact-strip {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}
.contact-strip a,
.contact-strip span {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--sub);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.contact-strip strong {
  color: var(--text);
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.16em;
}
.download-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}
.download-list li {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  color: var(--sub);
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.1em;
}
.download-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--accent);
}
.case-visual {
  margin-top: 74px;
  border: 1px solid var(--card-line);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--panel);
}

.case-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--case-visual-position, center);
}
.case-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
}
.case-summary h2 {
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.65;
  letter-spacing: 0.14em;
}
.case-summary p,
.case-text p {
  color: var(--sub);
  font-size: 13px;
  line-height: 2.35;
  letter-spacing: 0.12em;
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-stats .stat {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.case-stats .stat:last-child { border-right: none; }
.case-stats .k {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.case-stats .v {
  margin-top: 12px;
  font-family: var(--font-en);
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.case-stats em {
  margin-left: 6px;
  color: var(--accent);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.case-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}
.case-text {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}
.case-text h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.18em;
}
.case-text h3 small {
  font-family: var(--font-ja);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.case-text p { margin-top: 22px; }
/* WORKS detail media stream */
.case-media-stream {
  display: grid;
  gap: 88px;
}
.case-media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.case-media-item { min-width: 0; }
.case-media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-line);
  background: var(--panel);
}
.case-media-frame--half { aspect-ratio: 4 / 5; }
.case-media-frame--video { aspect-ratio: 16 / 9; }
.case-media-frame img,
.case-media-frame video,
.case-media-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}
.case-media-frame--full img {
  height: auto;
  object-fit: contain;
}
.case-media-caption {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 18px;
  color: var(--sub);
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.1em;
}
.case-media-caption > span {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.2em;
}
.case-media-caption strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.case-media-caption small {
  display: block;
  margin-top: 8px;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.9;
  letter-spacing: 0.1em;
}
.case-media-state {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--sub);
  font-size: 9px;
  letter-spacing: 0.18em;
}
.case-media-video-toggle {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-width: 76px;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 10px;
  letter-spacing: 0.18em;
  cursor: pointer;
}
.case-media-youtube-button {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.case-media-play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid var(--accent);
  background: var(--bg);
  color: var(--text);
  font-size: 10px;
  letter-spacing: 0.18em;
  transform: translate(-50%, -50%);
}
.case-media-youtube-button:focus-visible,
.case-media-video-toggle:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.mini-case {
  display: grid;
  gap: 14px;
  border: 1px solid var(--card-line);
  background: var(--panel);
  padding: 14px;
  transition: transform .45s var(--ease), border-color .35s;
}
.mini-case:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 106, 26, 0.55);
}
.mini-case img {
  aspect-ratio: 16 / 10;
  object-position: var(--work-thumbnail-position, center);
}
.mini-case span {
  font-size: 12px;
  letter-spacing: 0.16em;
}
.next-cases {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.text-page {
  max-width: 860px;
}
.text-page p {
  margin-top: 26px;
  color: var(--sub);
  font-size: 13px;
  line-height: 2.3;
  letter-spacing: 0.12em;
}

/* ---------- COMPANY ---------- */
.company-member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  margin-top: 54px;
}
.company-member {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--card-line);
  background: var(--panel);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.45);
}
.company-member__photo {
  position: relative;
  align-self: start;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.company-member__photo::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--accent);
}
.company-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.company-member__image--center { object-position: center; }
.company-member__image--top { object-position: center top; }
.company-member__image--bottom { object-position: center bottom; }
.company-member__image--left-center { object-position: left center; }
.company-member__image--right-center { object-position: right center; }
.company-member__info { min-width: 0; padding: 28px 28px 30px; }
.company-member__role {
  color: var(--dim);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.14em;
}
.company-member__name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}
.company-member__name strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.company-member__name span {
  color: var(--sub);
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: 0.14em;
}
.company-member__bio {
  margin-top: 18px;
  color: var(--sub);
  font-size: 11.5px;
  line-height: 2;
  letter-spacing: 0.06em;
}
.company-profile {
  max-width: 860px;
  margin-top: 54px;
  border-top: 1px solid var(--line);
}
.company-profile__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 6px;
  border-bottom: 1px solid var(--line);
}
.company-profile dt {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.company-profile dt::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.company-profile dd {
  color: var(--sub);
  font-size: 13px;
  line-height: 2.05;
  letter-spacing: 0.1em;
}
.company-profile__line { display: block; }
.company-profile__line.en { letter-spacing: 0.04em; }

@media (max-width: 1080px) {
  .subpage { padding: 150px 24px 90px; }
  .sub-hero,
  .form-layout,
  .case-summary { grid-template-columns: 1fr; gap: 42px; }
  .sub-hero { min-height: auto; padding-top: 48px; }
  .sub-hero .aside { padding-left: 0; border-left: none; border-top: 1px solid var(--line); padding-top: 28px; }
  .case-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .case-body { grid-template-columns: 1fr; }
  .company-member-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .subpage { padding-top: 138px; }
  .sub-hero h1 { font-size: clamp(46px, 15vw, 64px); }
  .section-head { display: block; }
  .section-head .note { margin-top: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 24px; }
  .privacy-policy__section { padding: 36px 0; }
  .privacy-policy__contact { gap: 20px; }
  .privacy-policy__contact > div { grid-template-columns: 1fr; gap: 8px; }
  .case-stats { grid-template-columns: 1fr; }
  .case-stats .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .case-stats .stat:last-child { border-bottom: none; }
  .case-media-stream { gap: 64px; }
  .case-media-pair { grid-template-columns: 1fr; gap: 54px; }
  .case-media-caption { grid-template-columns: 1fr; gap: 8px; }
  .case-media-state { top: 12px; left: 12px; }
  .case-media-play-mark { width: 68px; height: 68px; }
  .company-member { grid-template-columns: 1fr; }
  .company-member__info { padding: 24px; }
  .company-profile__row { grid-template-columns: 1fr; gap: 10px; padding: 22px 2px; }
}

/* ============================================================
   ライトテーマ(吹雪トランジションで反転)
============================================================ */
html.theme-light {
  --bg: #d8d4ca;
  --text: #161616;
  --sub: #59554d;
  --dim: #6c675d;
  --faint: #a29c8f;
  --line: #c2bcae;
  --panel: rgba(0, 0, 0, 0.03);
  --btn-line: #aaa494;
  --card-line: #c6c0b1;
  --ring: rgba(22, 22, 22, 0.45);
}
html.theme-light ::selection { background: var(--accent); color: #d8d4ca; }
html.theme-light .header {
  background: linear-gradient(to bottom, rgba(216,212,202,0.9), rgba(216,212,202,0));
}
html.theme-light .side-tabs a {
  background: rgba(226, 222, 212, 0.9);
  color: #161616;
  border-color: var(--line);
}
html.theme-light .side-tabs a:hover { background: var(--accent); color: #d8d4ca; }
html.theme-light .hero .lead { color: var(--sub); }
html.theme-light .cursor-ring.is-view .cv { color: #d8d4ca; }
html.theme-light .btn:hover span, html.theme-light .btn:hover .ico { color: #d8d4ca !important; }
html.theme-light .footer nav, html.theme-light .footer .btt { color: var(--text); }
html.theme-light .svc li, html.theme-light .wcard .desc, html.theme-light .pstep p { color: var(--sub); }
html.theme-light .svc .icon { color: var(--sub); }
html.theme-light .pstep .step-label strong { color: var(--text); }
html.theme-light .drive-safe { color: var(--text); }


/* ---------- ライトテーマのシャドウ調整 ---------- */
html.theme-light .wcard {
  box-shadow: 0 26px 50px -24px rgba(60, 52, 36, 0.32), 0 8px 18px -10px rgba(60, 52, 36, 0.2);
}
html.theme-light .btn { box-shadow: 0 14px 30px -16px rgba(60, 52, 36, 0.3); }
html.theme-light .about .ring svg { filter: drop-shadow(0 22px 30px rgba(60, 52, 36, 0.28)); }
html.theme-light .side-tabs a { box-shadow: -8px 10px 22px -14px rgba(60, 52, 36, 0.28); }
html.theme-light .company-member { box-shadow: 0 24px 44px -24px rgba(60, 52, 36, 0.28); }
html.theme-light .mobile-nav a {
  background: rgba(216, 212, 202, 0.76);
}
html.theme-light .mobile-panel,
html.theme-light .menu-toggle {
  background: rgba(216, 212, 202, 0.94);
}
html.theme-light .field input,
html.theme-light .field select,
html.theme-light .field textarea {
  background: rgba(0, 0, 0, 0.025);
}
html.theme-light .field input:focus,
html.theme-light .field select:focus,
html.theme-light .field textarea:focus {
  background: rgba(0, 0, 0, 0.045);
}

body.is-subpage .theme-toggle { bottom: 34px; }
@media (max-width: 640px) {
  body.is-subpage .theme-toggle { top: 18px; right: 24px; bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .company-member__photo img { transform: none; }
}
