/* Elontir
   Design read: 発見エンジンのランディングを、業界関係者と将来の利用者に向けて。
   観測機器の言語（Palantir系）で組む。巨大で抑制されたタイポグラフィ、
   機能的に使う細罫線、実データの計器表示、色数は絞る。
   Theme lock: dark 固定。アクセントは signal orange 1色。
   角丸は 3段のみ（2px / 6px / pill）。数値は必ず mono。 */

:root {
  --bg: #0a0a0b;
  --bg-alt: #0e0e10;
  --surface: #131316;
  --line: #222226;
  --line-strong: #313137;
  --text: #f2f2f4;
  --text-dim: #9a9aa4;
  --text-faint: #5f5f69;
  --accent: #f97316;
  --accent-dim: #7c3a10;
  --accent-ink: #0a0a0b;

  --r-sm: 2px;
  --r-md: 6px;
  --r-pill: 100px;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, monospace;
  --sans: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.2; }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 58px;
  padding: 0 28px;
  background: rgba(10, 10, 11, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text);
  flex: 0 0 auto;
}

.nav-brand svg { color: var(--accent); flex: 0 0 auto; }

.nav-link {
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color .15s ease;
}

.nav-link[aria-current="page"] { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-graph {
  position: absolute;
  inset: 0;
  opacity: .38;
  mask-image: radial-gradient(ellipse 76% 82% at 78% 32%, #000 12%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse 76% 82% at 78% 32%, #000 12%, transparent 68%);
  pointer-events: none;
}

.hero-graph img { width: 100%; height: 100%; object-fit: cover; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 108px 28px 0;
}

.hero h1 {
  margin: 0 0 26px;
  font-size: clamp(2.4rem, 5.4vw, 4.125rem);
  letter-spacing: -.042em;
  line-height: 1.08;
  max-width: 15ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-body {
  margin: 0 0 34px;
  max-width: 50ch;
  color: var(--text-dim);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity .16s ease, border-color .16s ease;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { opacity: .88; color: var(--accent-ink); }

.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-dim); color: var(--text); }

/* ---------- observation strip ---------- */

.obs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 72px;
  border-top: 1px solid var(--line);
}

.obs-cell {
  padding: 20px 24px 22px 0;
  border-right: 1px solid var(--line);
}

.obs-cell:last-child { border-right: 0; }

.obs-cell:not(:first-child) { padding-left: 24px; }

.obs-key {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.obs-val {
  font-family: var(--mono);
  font-size: 1.375rem;
  color: var(--text);
  letter-spacing: -.02em;
}

.obs-val small {
  font-size: .6em;
  color: var(--text-faint);
  margin-left: 3px;
}

/* ---------- instrument panel ---------- */

.panel {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px 40px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 12px;
  font-size: 12.5px;
  color: var(--text-faint);
}

.panel-head b {
  font-weight: 500;
  color: var(--text-dim);
}

.panel-time { font-family: var(--mono); font-size: 12px; }

.detect {
  border-top: 1px solid var(--line-strong);
}

.detect-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: background .16s ease;
}

.detect-row:hover { background: rgba(255, 255, 255, .015); }

.detect-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--surface);
}

.detect-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detect-body { min-width: 0; }

.detect-handle {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detect-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detect-stats {
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
}

.detect-stats i {
  font-style: normal;
  color: var(--text-faint);
  margin-left: 4px;
  font-size: 11.5px;
}

/* 保存速度を主役にする。数値を大きく、単位は小さく。 */
.detect-stats .primary {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  color: var(--accent);
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.detect-stats .primary i {
  font-size: 10.5px;
  margin: 0;
  color: var(--text-faint);
  letter-spacing: 0;
}

/* 検出理由。枠線を外し、面で見せる。 */
.detect-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.detect-reasons em {
  font-style: normal;
  font-size: 11px;
  padding: 2px 7px;
  color: var(--accent);
  background: rgba(249, 115, 22, .11);
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.detect-reasons em:first-child {
  background: rgba(249, 115, 22, .18);
}

.panel-foot {
  padding: 14px 0 0;
  font-size: 13px;
  color: var(--text-faint);
}

.panel-foot a { color: var(--text-dim); border-bottom: 1px solid var(--line-strong); }
.panel-foot a:hover { color: var(--accent); border-color: var(--accent-dim); }

/* ---------- sections ---------- */

.section { padding: 104px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }

.section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 2.9vw, 2.125rem);
  letter-spacing: -.028em;
  line-height: 1.25;
  max-width: 22ch;
}

.lead {
  margin: 0 0 54px;
  max-width: 60ch;
  color: var(--text-dim);
  font-size: 1rem;
}

/* ---------- compare ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.split p { margin: 0 0 20px; color: var(--text-dim); max-width: 44ch; }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.compare-col { padding: 24px 22px; background: var(--bg); }

.compare-col.is-accent { background: var(--surface); }

.compare-col h3 {
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--text-faint);
  font-weight: 400;
}

.compare-col.is-accent h3 { color: var(--accent); }

.compare-col ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: c;
}

.compare-col li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--text-dim);
  counter-increment: c;
}

.compare-col li::before {
  content: counter(c, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  min-width: 18px;
}

.compare-col .num {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  min-width: 54px;
  letter-spacing: -.01em;
}

.compare-col.is-accent .num { color: var(--accent); }

.compare-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.6;
}

/* ---------- method ---------- */

.method {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.method li { padding: 34px 30px; background: var(--bg); }

.method-step {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: .04em;
}

.method h3 { margin-bottom: 10px; font-size: 1.0625rem; letter-spacing: -.015em; }

.method p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
  max-width: 44ch;
  line-height: 1.7;
}

/* ---------- metrics ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 68px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 24px;
  background: var(--bg-alt);
}

.metric-value {
  font-family: var(--mono);
  font-size: 1.875rem;
  color: var(--accent);
  letter-spacing: -.03em;
  line-height: 1;
}

.metric-label {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ---------- findings ---------- */

.findings { margin-bottom: 60px; }
.findings:last-child { margin-bottom: 0; }

.findings h3 {
  margin-bottom: 10px;
  font-size: 1.0625rem;
  letter-spacing: -.015em;
}

.findings-lead {
  margin: 0 0 26px;
  font-size: 13.5px;
  color: var(--text-dim);
  max-width: 58ch;
}

.findings dl { margin: 0; border-top: 1px solid var(--line); }

.findings dt {
  padding-top: 20px;
  font-size: 15px;
  font-weight: 500;
}

.findings dd {
  margin: 8px 0 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-dim);
  max-width: 66ch;
  line-height: 1.75;
}

.findings dt:first-of-type + dd { padding-bottom: 24px; }

/* ---------- figure ---------- */

.figure { margin: 0; }

.figure-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #0c0c0e;
  overflow: hidden;
}

.figure-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 88px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 88px 100%;
  opacity: .34;
  pointer-events: none;
}

.figure-frame img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
}

.figure-cap {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- record ---------- */

.record {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 72px;
  align-items: start;
}

.record-body p { margin: 0 0 20px; color: var(--text-dim); max-width: 54ch; }

.record-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.record-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-dim);
}

.record-side {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.record-side h3 {
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--text-faint);
  font-weight: 400;
}

.record-side p {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.7;
}

.record-contact {
  margin: 0;
  font-size: 12.5px;
  font-family: var(--mono);
}

.record-contact a { color: var(--accent); }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 34px;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}

.footer-note { margin: 0; font-size: 12.5px; max-width: 46ch; line-height: 1.7; }

.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13px; }

.footer-copy {
  margin: 44px auto 0;
  padding: 0 28px;
  max-width: 1320px;
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--text-faint);
}

/* ---------- sub pages ---------- */

.page { padding: 88px 0; }
.page h1 { font-size: clamp(1.75rem, 3.6vw, 2.375rem); margin-bottom: 26px; letter-spacing: -.03em; }
.page h2 { margin: 52px 0 12px; font-size: 1.0625rem; letter-spacing: -.015em; }
.page p, .page li { color: var(--text-dim); max-width: 66ch; }
.page ul { padding-left: 20px; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .split, .record { grid-template-columns: 1fr; gap: 44px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .method { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero-inner { padding: 72px 22px 0; }
  .obs { grid-template-columns: repeat(2, 1fr); }
  .obs-cell:nth-child(2) { border-right: 0; }
  .obs-cell:nth-child(n + 3) { padding-left: 0; border-top: 1px solid var(--line); }
  .detect-row { grid-template-columns: 76px 1fr; gap: 16px; }
  .detect-stats { grid-column: 2; gap: 18px; }
}

@media (max-width: 640px) {
  .nav { padding: 0 20px; gap: 14px; }
  .nav-links { gap: 16px; }
  .nav-links .nav-link:nth-child(n + 3) { display: none; }
  .wrap, .panel, .hero-inner { padding-left: 20px; padding-right: 20px; }
  .compare { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .obs { margin-top: 52px; }
  .detect-row { grid-template-columns: 64px 1fr; gap: 14px; padding: 12px 0; }
  .detect-stats { gap: 14px; font-size: 12px; }
  .detect-stats span:nth-child(3) { display: none; }
  .section { padding: 60px 0; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
