/* ============================================================
   denof Inc. — corporate site design system v2
   tone: dark tech / startup-grade — aurora glow, glass, precision grid
   Zen Kaku Gothic (JP display) + Chakra Petch (Latin) + IBM Plex Mono
   ============================================================ */

:root {
  --bg: #12100f;
  --bg-2: #191514;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #f0eeea;
  --text-soft: #b5b0a8;
  --text-mute: #8b857c;

  --coral: #ff5a36;
  --amber: #ffb26b;
  --sky: #6fb8ff;
  --grad-brand: linear-gradient(96deg, var(--coral) 8%, var(--amber) 90%);
  --grad-cool: linear-gradient(96deg, #6fb8ff, #9d8cff);

  /* LINE Seed JP — SIL OFL 1.1 (https://seed.line.me) 商用利用可 */
  --font-jp: "LINE Seed JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-latin: "LINE Seed JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-mono: "IBM Plex Mono", "Menlo", monospace;

  --w-max: 1160px;
  --pad: clamp(20px, 4vw, 48px);
  --r: 8px;
  --r-lg: 10px;
  --dur: 0.8s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

/* 精密グリッド + ノイズ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.wrap {
  max-width: var(--w-max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  position: relative;
  z-index: 1;
}

/* ---------- aurora glow ---------- */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.glow.g-coral { background: radial-gradient(circle, rgba(255,90,54,0.34), transparent 65%); }
.glow.g-blue { background: radial-gradient(circle, rgba(78,120,255,0.26), transparent 65%); }
.glow.g-amber { background: radial-gradient(circle, rgba(255,178,107,0.2), transparent 65%); }
@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.08); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-26px, 20px) scale(0.94); }
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(18, 16, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; }
.brand img { width: 92px; height: auto; display: block; }
.nav { display: flex; gap: clamp(14px, 2.6vw, 34px); align-items: center; }
.nav a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 9px 18px;
  color: var(--text);
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.menu-btn { display: none; }

/* ---------- buttons: 矩形 + ↗ボックス ---------- */
.btn {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 0;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  transition: border-color 0.3s;
}
.btn .lbl { padding: 14px 22px; display: inline-flex; align-items: center; position: relative; z-index: 1; transition: color 0.35s var(--ease); }
.btn .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  position: relative;
  z-index: 1;
  transition: color 0.35s var(--ease), border-color 0.3s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.38s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { border-color: var(--text); }
.btn:hover .lbl, .btn:hover .arrow { color: var(--bg); }
.btn.btn-primary { border-color: var(--coral); }
.btn.btn-primary .lbl { color: var(--coral); }
.btn.btn-primary .arrow { border-left-color: rgba(255, 90, 54, 0.4); color: var(--coral); }
.btn.btn-primary::before { background: var(--coral); }
.btn.btn-primary:hover .lbl, .btn.btn-primary:hover .arrow { color: #14181d; }

/* ---------- 共通 ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
}
.sec-title {
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.42;
  letter-spacing: 0.03em;
}
.sec-title .grad { color: var(--coral); }
.sec-lead {
  margin-top: 20px;
  max-width: 660px;
  color: var(--text-soft);
  font-size: 15.5px;
}
.section { padding-top: clamp(88px, 12vw, 150px); position: relative; z-index: 1; }
.sec-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .glow { animation: none !important; }
}

/* ---------- hero canvas ---------- */
#den-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 文字ばらしリビール */
[data-split] .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(4deg) scale(0.94);
  filter: blur(6px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease;
  transition-delay: calc(var(--ci) * 55ms + 0.15s);
  will-change: transform, filter;
}
[data-split].split-in .ch {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
/* グラデ見出しは背景クリップが transform 子要素で壊れるため文字単位で適用 */
[data-split] .grad { background: none; color: inherit; }
[data-split] .grad .ch {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ストアリンク */
.store-links { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  padding: 11px 20px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s;
}
.store-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.store-btn:hover span { color: var(--bg); }
.store-btn span { color: var(--coral); transition: color 0.3s; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
  padding-bottom: 40px;
  position: relative;
  overflow: clip;
  z-index: 1;
}
.hero .glow.g-coral { width: 560px; height: 560px; top: -140px; right: -80px; animation: float-a 11s ease-in-out infinite; }
.hero .glow.g-blue { width: 640px; height: 640px; bottom: -220px; left: -180px; animation: float-b 13s ease-in-out infinite; }
.hero .glow.g-amber { width: 380px; height: 380px; top: 30%; left: 42%; opacity: 0.7; animation: float-a 15s ease-in-out infinite; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--text-soft);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(8px);
  border-radius: 3px;
  padding: 8px 16px;
  margin-bottom: 34px;
}
.hero-badge .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 90, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0); }
}

.hero-title {
  font-weight: 800;
  font-size: clamp(40px, 7.6vw, 92px);
  line-height: 1.24;
  letter-spacing: 0.02em;
}
.hero-title .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 90, 54, 0.3));
}
.hero-sub {
  margin-top: 30px;
  max-width: 620px;
  color: var(--text-soft);
  font-size: clamp(15px, 1.7vw, 16.5px);
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-top: 18px;
}
.hero-kicker .den-word { color: var(--amber); }
.hero-foot {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* hero 内 NEWS（ガラス） */
.hero-news {
  margin-top: clamp(48px, 7vw, 84px);
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r);
  overflow: hidden;
}
.hero-news .news-head {
  display: flex;
  align-items: center;
  padding: 0 clamp(18px, 2.6vw, 34px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--coral);
  border-right: 1px solid var(--line-soft);
  white-space: nowrap;
}
.hero-news ul { flex: 1; }
.hero-news li {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  padding: 15px clamp(16px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.hero-news li:last-child { border-bottom: none; }
.hero-news .date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  white-space: nowrap;
}
.hero-news .cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text-soft);
  white-space: nowrap;
}
.hero-news .title {
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-stats {
  margin-top: clamp(48px, 7vw, 84px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); }
.stat-card { display: block; }
.stat-card .no {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--coral);
}
.stat-card .name {
  margin-top: 10px;
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
.stat-card .label {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  transition: color 0.3s;
}
.stat-card:hover .label { color: var(--amber); }

/* ---------- 事業カード ---------- */
.biz-grid {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.biz-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 42px);
  position: relative;
  overflow: hidden;
  display: block;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.biz-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.22);
}
.biz-card .no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.16em;
}
.biz-card .icon {
  position: absolute;
  top: clamp(24px, 3vw, 38px);
  right: clamp(24px, 3vw, 38px);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.biz-card .icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.biz-card:hover .icon { color: var(--coral); border-color: rgba(255, 90, 54, 0.45); transform: rotate(-8deg); }
.biz-card h3 {
  margin-top: 20px;
  font-size: clamp(20px, 2.3vw, 25px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.55;
}
.biz-card h3 .en {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  margin-top: 8px;
  color: var(--text-mute);
}
.biz-card p { margin-top: 16px; font-size: 14.5px; color: var(--text-soft); position: relative; }
.biz-card .more {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s, gap 0.25s var(--ease);
}
.biz-card:hover .more { color: var(--coral); gap: 14px; }

/* ---------- products ---------- */
.prod-grid {
  margin-top: clamp(40px, 6vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.prod-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  display: block;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.prod-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.22); }
.prod-card .shot {
  aspect-ratio: 16 / 9.4;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-card .shot .glow { width: 320px; height: 320px; }
.prod-card.rm .shot { background: radial-gradient(120% 130% at 20% 0%, rgba(52, 148, 74, 0.35), rgba(18,16,15, 0.4) 60%), var(--bg-2); }
.prod-card.yz .shot { background: radial-gradient(120% 130% at 80% 0%, rgba(0, 140, 160, 0.35), rgba(18,16,15, 0.4) 60%), var(--bg-2); }
.prod-card .shot img.logo-main { position: relative; z-index: 1; }
.prod-card.rm .shot img.logo-main { width: clamp(76px, 9vw, 104px); border-radius: 22%; box-shadow: 0 18px 48px rgba(0,0,0,0.5); }
.prod-card.yz .shot img.logo-main { width: clamp(190px, 22vw, 260px); }
.prod-card .body { padding: clamp(24px, 3vw, 34px); }
.prod-card .row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.prod-card h3 {
  font-family: var(--font-latin);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.prod-card h3 small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-top: 4px;
}
.pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  padding: 5px 12px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-soft);
  white-space: nowrap;
}
.pill.live { border-color: rgba(111, 231, 149, 0.4); color: #8ee6a8; }
.pill.beta { border-color: rgba(255, 178, 107, 0.4); color: var(--amber); }
.prod-card p.desc { margin-top: 14px; font-size: 14px; color: var(--text-soft); }
.prod-card .more {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  display: inline-flex;
  gap: 8px;
  transition: color 0.25s, gap 0.25s var(--ease);
}
.prod-card:hover .more { color: var(--coral); gap: 14px; }

/* ---------- works ---------- */
.works-grid {
  margin-top: clamp(40px, 6vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.work-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  display: block;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.work-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.22); }
.work-card .frame {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.02);
}
.work-card .fdot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.13); }
.work-card .fdot:first-child { background: rgba(255, 90, 54, 0.5); }
.work-card .furl {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}
.work-card .thumb {
  aspect-ratio: 16 / 9.6;
  overflow: hidden;
  position: relative;
}
.work-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: saturate(0.92);
  transition: transform 0.6s var(--ease);
}
.work-card:hover .thumb img { transform: scale(1.03); }
.work-card .body { padding: 18px 22px 20px; }
.work-card .row1 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-card h3 { font-size: 17.5px; font-weight: 700; letter-spacing: 0.04em; }
.work-card p { margin-top: 8px; font-size: 13.5px; color: var(--text-soft); line-height: 1.8; }
.works-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-mute);
}
.works-foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.works-foot .works-note { margin-top: 26px; max-width: 620px; }

/* ---------- works archive ---------- */
.arch-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.arch-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
}
.arch-year {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(26px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.arch-year:last-of-type { border-bottom: none; }
.year-label {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--coral);
  letter-spacing: 0.08em;
  line-height: 1;
  padding-top: 4px;
}
.arch-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.arch-row:last-child { border-bottom: none; }
.arch-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.arch-title { font-size: 14.5px; color: var(--text); font-weight: 500; }
.arch-desc { font-size: 12.5px; color: var(--text-mute); line-height: 1.7; }
.arch-tags { display: flex; gap: 6px; flex-shrink: 0; }
.arch-tags i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  color: var(--text-mute);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .arch-year { grid-template-columns: 1fr; gap: 10px; }
  .arch-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- 実プロダクト画面 ---------- */
.prod-card .shot .shot-app {
  position: relative;
  z-index: 1;
  height: 88%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  transition: transform 0.5s var(--ease);
}
.prod-card .shot .shot-dash {
  position: relative;
  z-index: 1;
  width: 78%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(12%);
  transition: transform 0.5s var(--ease);
}
.prod-card:hover .shot .shot-app { transform: scale(1.035); }
.prod-card:hover .shot .shot-dash { transform: translateY(9%); }

.prod-feature .visual .vis-app {
  width: 74% !important;
  height: auto;
  object-fit: contain;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.5));
}
.prod-feature .visual .vis-dash {
  width: 84% !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55) !important;
}

/* ---------- コード/ターミナルパネル ---------- */
.code-panel {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #171211;
  overflow: hidden;
}
.panel-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}
.panel-bar .tl { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.panel-bar .tl:first-child { background: rgba(255, 90, 54, 0.55); }
.panel-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}
.panel-body {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  min-height: 246px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #c7cede;
}
.panel-body .ln { display: block; }
.panel-body .kw { color: #ff8a68; }
.panel-body .fn { color: #7ab8ff; }
.panel-body .ty { color: #6fe0c8; }
.panel-body .str { color: #ffd98a; }
.panel-body .num { color: #ffd98a; }
.panel-body .cm { color: #5b667a; }
.panel-body .pl { color: #c7cede; }
.panel-body .cursor {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--coral);
  vertical-align: -2px;
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.code-panel.term .panel-body { min-height: 218px; }
.panel-body .ln.cmd { color: #eceff5; }
.panel-body .ln.cmd b { color: var(--amber); font-weight: 600; }
.panel-body .ln.ok { color: #8ee6a8; }
.panel-body .ln.run { color: #c7cede; }
.panel-body .ln.info { color: #7ab8ff; }
.panel-body .spin {
  display: inline-block;
  width: 10px; height: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--amber);
  border-radius: 50%;
  vertical-align: -1px;
  animation: rot 0.7s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- about band ---------- */
.about-band { position: relative; overflow: clip; }
.about-band .glow.g-blue { width: 520px; height: 520px; right: -160px; top: 0; }
.about-band .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.about-band .statement {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.05em;
}
.about-band .statement .grad { color: var(--coral); }
.about-band .body p { margin-bottom: 18px; font-size: 14px; color: var(--text-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  margin-top: clamp(90px, 13vw, 160px);
  position: relative;
  overflow: clip;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.cta-band .inner {
  padding-top: clamp(80px, 11vw, 140px);
  padding-bottom: clamp(80px, 11vw, 140px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.cta-band h2 {
  font-size: clamp(30px, 5.2vw, 56px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.cta-band h2 .grad { color: var(--coral); }
.cta-band .note { font-size: 14px; color: var(--text-mute); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #0c0a09;
  position: relative;
  z-index: 1;
}
.site-footer .inner { padding-top: clamp(52px, 8vw, 90px); padding-bottom: 32px; }
.footer-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand img { width: 140px; height: auto; display: block; }
.footer-col h4, .footer-col .footer-h {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--text-mute);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; }
.footer-loc { color: var(--text-mute); font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.08em; }
.footer-col a { font-size: 14px; color: var(--text-soft); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- page hero ---------- */
.page-hero {
  padding-top: clamp(140px, 19vw, 200px);
  position: relative;
  overflow: clip;
  z-index: 1;
}
.page-hero .glow.g-coral { width: 460px; height: 460px; top: -120px; right: -60px; opacity: 0.8; }
.page-hero .en {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
}
.page-hero .en::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
}
.page-hero h1 {
  font-size: clamp(34px, 5.8vw, 62px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.36;
}
.page-hero .lead { margin-top: 26px; max-width: 680px; color: var(--text-soft); font-size: 15.5px; }
.breadcrumb {
  margin-top: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  display: flex;
  gap: 10px;
}
.breadcrumb .sep { opacity: 0.4; }

/* ---------- service rows ---------- */
.svc-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(44px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.svc-row .side {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc-row .side .no { color: var(--coral); }
.svc-row h2 {
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.55;
}
.svc-row h2 small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  margin-top: 8px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.svc-row .desc { margin-top: 18px; color: var(--text-soft); font-size: 15px; max-width: 660px; }
.svc-points {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.svc-points.cols-2 { grid-template-columns: repeat(2, 1fr); }
.svc-points li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-soft);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.svc-points li:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-3px); }
.svc-points li b {
  display: block;
  font-size: 15.5px;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  font-weight: 700;
}
.svc-note { margin-top: 20px; font-size: 13px; color: var(--text-mute); }

/* ---------- product feature ---------- */
.prod-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "head visual" "body visual";
  column-gap: clamp(30px, 5vw, 72px);
  padding: clamp(52px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.prod-feature .pf-head { grid-area: head; align-self: end; }
.prod-feature .pf-body { grid-area: body; align-self: start; }
.prod-feature .visual { grid-area: visual; }
.prod-feature.rev { grid-template-areas: "visual head" "visual body"; }
.prod-feature .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--coral);
}
.prod-feature h2 {
  margin-top: 14px;
  font-family: var(--font-latin);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.prod-feature h2 small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-top: 8px;
}
.prod-feature .desc { margin-top: 20px; color: var(--text-soft); font-size: 15px; }
.prod-feature .meta { margin-top: 26px; border-top: 1px solid var(--line-soft); }
.prod-feature .meta div {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.prod-feature .meta dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  padding-top: 2px;
}
.prod-feature .meta a { border-bottom: 1px solid var(--line); transition: border-color 0.2s, color 0.2s; }
.prod-feature .meta a:hover { color: var(--amber); border-color: var(--amber); }
.prod-feature .visual {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-feature .visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}
.prod-feature .visual.rm { background: radial-gradient(130% 140% at 15% 0%, rgba(52, 148, 74, 0.38), rgba(18,16,15,0.3) 62%), var(--bg-2); }
.prod-feature .visual.yz { background: radial-gradient(130% 140% at 85% 0%, rgba(0, 140, 160, 0.38), rgba(18,16,15,0.3) 62%), var(--bg-2); }
.prod-feature .visual img { position: relative; z-index: 1; }
.prod-feature .visual.rm img { width: clamp(96px, 12vw, 140px); border-radius: 22%; box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
.prod-feature .visual.yz img { width: clamp(220px, 26vw, 320px); }

/* ---------- company ---------- */
.msg-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}
.msg-block .headline {
  font-size: clamp(25px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.05em;
  position: sticky;
  top: 110px;
}
.msg-block .headline .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 90, 54, 0.25));
}
.msg-body p { margin-bottom: 20px; font-size: 15px; color: var(--text-soft); }
.msg-body p.strong {
  font-size: 17.5px;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 2.05;
  font-weight: 500;
}
.msg-sign {
  margin-top: 36px;
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.msg-sign .role { font-size: 11.5px; color: var(--text-mute); }
.msg-sign .name { font-size: 22px; font-weight: 700; letter-spacing: 0.1em; }

.co-panel {
  margin-top: clamp(30px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  backdrop-filter: blur(8px);
  padding: clamp(10px, 2vw, 20px) clamp(22px, 3vw, 40px);
}
.co-table div {
  display: grid;
  grid-template-columns: 190px 1fr;
  border-bottom: 1px solid var(--line-soft);
}
.co-table div:last-child { border-bottom: none; }
.co-table dt {
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  display: flex;
  align-items: center;
}
.co-table dd { padding: 20px 0; font-size: 15px; }
.co-table dd small { display: block; color: var(--text-mute); font-size: 13px; margin-top: 4px; }

.history {
  margin-top: clamp(30px, 5vw, 48px);
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 4vw, 48px);
}
.history li { position: relative; padding-bottom: 36px; }
.history li::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(24px, 4vw, 48px) - 4.5px);
  top: 9px;
  width: 9px; height: 9px;
  background: var(--bg);
  border: 1.5px solid var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 90, 54, 0.5);
}
.history .year {
  font-family: var(--font-latin);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.history .what { margin-top: 6px; font-size: 14px; }
.history .what small { display: block; color: var(--text-mute); font-size: 12px; margin-top: 2px; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.contact-side p { font-size: 15px; color: var(--text-soft); margin-bottom: 16px; }
.contact-side .mail-direct {
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}
.contact-side .mail-direct .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--text-mute);
}
.contact-side .mail-direct a {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--text);
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: color 0.2s, border-color 0.2s;
}
.contact-side .mail-direct a:hover { color: var(--amber); border-color: var(--amber); }

.form {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  backdrop-filter: blur(8px);
  padding: clamp(24px, 3.4vw, 40px);
}
.form .field { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.form .field:first-child { padding-top: 0; }
.form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.form label .req { color: var(--coral); margin-left: 6px; }
.form input, .form textarea, .form select {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-jp);
  font-size: 16px;
  color: var(--text);
  outline: none;
  line-height: 1.7;
}
.form select { color-scheme: dark; }
.form option { background: var(--bg-2); }
.form ::placeholder { color: var(--text-mute); opacity: 0.7; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { box-shadow: inset 0 -1px 0 var(--coral); }
.form .submit-row { padding-top: 30px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form .status { font-size: 12.5px; color: var(--text-mute); }
.form .status.ok { color: #8ee6a8; }
.form .status.err { color: var(--coral); }

.contact-single { max-width: 760px; margin: 0 auto; }
.contact-intro { font-size: 15px; color: var(--text-soft); margin-bottom: 30px; }
.mail-note { margin-top: 22px; font-size: 13px; color: var(--text-mute); }

/* ---------- 実務風景フォト ---------- */
.photo-strip-sec { padding-top: clamp(56px, 8vw, 96px); position: relative; z-index: 1; }
.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.photo-strip figure, .photo-wide {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
}
.photo-strip img {
  width: 100%;
  height: clamp(180px, 24vw, 300px);
  object-fit: cover;
  display: block;
}
.photo-wide img {
  width: 100%;
  height: clamp(220px, 30vw, 400px);
  object-fit: cover;
  object-position: center 62%;
  display: block;
}
/* トーン統一のスクリム */
.photo-strip figure::after, .photo-wide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 16, 15, 0.16), rgba(18, 16, 15, 0.3));
  pointer-events: none;
}
@media (max-width: 640px) {
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip figure:nth-child(3) { display: none; }
  .photo-strip img { height: 190px; }
}

/* ---------- 404 ---------- */
.nf {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  position: relative;
  z-index: 1;
}
.nf .code {
  font-family: var(--font-latin);
  font-size: clamp(90px, 17vw, 190px);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(255, 90, 54, 0.25));
}
.nf p { margin: 24px 0 34px; color: var(--text-soft); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  /* backdrop-filter が fixed の containing block を作り nav overlay が壊れるため無効化 */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(18, 16, 15, 0.95); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-news { flex-direction: column; }
  .hero-news .news-head { padding: 12px 18px; border-right: none; border-bottom: 1px solid var(--line-soft); }
  .hero-news li { flex-wrap: wrap; gap: 8px 12px; padding: 13px 18px; }
  .hero-news .title { white-space: normal; width: 100%; }
  .biz-grid, .prod-grid, .works-grid { grid-template-columns: 1fr; }
  .about-band .inner, .msg-block, .contact-grid { grid-template-columns: 1fr; }
  .prod-feature, .prod-feature.rev {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "visual" "body";
    row-gap: 22px;
  }
  .msg-block .headline { position: static; }
  .svc-row { grid-template-columns: 1fr; gap: 18px; }
  .svc-points.cols-2 { grid-template-columns: 1fr; }
  .site-footer .inner { padding-top: 48px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 28px;
  }
  .footer-grid > div:first-child { padding-bottom: 26px; border-bottom: 1px solid var(--line-soft); }
  .footer-brand img { width: 108px; }
  .footer-col { padding: 26px 0 0; }
  .footer-col h4, .footer-col .footer-h { margin-bottom: 12px; font-size: 10px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .footer-links li { margin-bottom: 0; }
  .footer-links a { display: block; padding: 9px 0; font-size: 13.5px; }
  .footer-contact { padding-top: 22px; }
  .footer-contact li { margin-bottom: 2px; }
  .footer-contact a { display: block; padding: 6px 0; }
  .footer-foot { padding-top: 20px; font-size: 10px; }
  .co-table div { grid-template-columns: 128px 1fr; }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(18, 16, 15, 0.97);
    backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateY(-102%);
    transition: transform 0.45s var(--ease);
    z-index: 60;
  }
  .nav { visibility: hidden; transition: transform 0.45s var(--ease), visibility 0s 0.45s; }
  .nav.open { transform: none; visibility: visible; transition: transform 0.45s var(--ease); }
  .nav a { font-size: 15px; }
  .menu-btn {
    display: block;
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--text);
    cursor: pointer;
    z-index: 70;
    position: relative;
    padding: 8px;
  }
}
