:root {
  --ink: #09090B;
  --ink-2: #121214;
  --ink-3: #1A1A1E;
  --chalk: #FAFAFA;
  --muted: #9B9BA7;
  --accent: #F4F1EA;
  --accent-text: #0A0A0A;
  --gold: #D6C4A0;
  --gold-soft: rgba(214, 196, 160, 0.12);
  --signal: #7EB6FF;
  --signal-soft: rgba(126, 182, 255, 0.12);
  --line: rgba(250, 250, 250, 0.08);
  --line-strong: rgba(250, 250, 250, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--ink);
  background-image:
    radial-gradient(800px 420px at 8% -8%, rgba(214, 196, 160, 0.07), transparent 55%),
    radial-gradient(640px 380px at 100% 0%, rgba(126, 182, 255, 0.05), transparent 50%);
  background-attachment: fixed;
  color: var(--chalk);
  font-family: 'Manrope', 'Inter', system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.mono {
  font-family: 'IBM Plex Mono', 'Space Mono', monospace;
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- NAV ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(1.1);
  background: rgba(9, 9, 11, 0.84);
  border-bottom: 1px solid var(--line);
}
nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 20px; letter-spacing: -0.03em;
}
.brand-mark {
  width: 22px; height: 22px; position: relative; flex: none;
  border: 1.5px solid var(--gold); border-radius: 3px;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 4px 4px auto 4px; height: 1.5px;
  background: var(--gold); border-radius: 2px;
}
.brand-mark::after {
  content: ""; position: absolute; left: 50%; top: 6px; bottom: 4px;
  width: 1.5px; margin-left: -0.75px; background: var(--signal); border-radius: 2px;
}
.nav-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  letter-spacing: 0.01em; transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--chalk); }
.nav-cta {
  border: 1px solid var(--accent);
  background: var(--accent);
  border-radius: 8px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 600;
  color: var(--accent-text) !important;
  transition: transform .12s, box-shadow .2s, opacity .2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -16px rgba(244, 241, 234, 0.55);
}
.lang-switch {
  display: inline-flex; border: 1px solid var(--line-strong); border-radius: 7px;
  overflow: hidden; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
}
.lang-switch button {
  background: none; border: none; color: var(--muted); padding: 7px 10px;
  cursor: pointer; transition: color .2s, background .2s;
}
.lang-switch button:hover:not(.active) { color: var(--chalk); }
.lang-switch button.active { background: var(--ink-3); color: var(--chalk); }
@media (max-width: 860px) {
  .nav-links a:not(.nav-cta):not(.nav-keep) { display: none; }
}

html[lang="ja"] body { font-feature-settings: "palt"; }
html[lang="ja"] .eyebrow,
html[lang="ja"] .field-label,
html[lang="ja"] .pill,
html[lang="ja"] .slot-label,
html[lang="ja"] .logo-band-label,
html[lang="ja"] .stat .lbl { text-transform: none; letter-spacing: 0.08em; }
html[lang="ja"] h1 { max-width: 16ch; letter-spacing: -0.02em; }
html[lang="ja"] .head h2 { max-width: 22ch; }

/* ---------- HERO ---------- */
.hero { padding: 112px 0 56px; position: relative; }
.hero-tag { margin-bottom: 22px; }
h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 7vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 13ch;
}
h1 .swap { color: var(--gold); }
h1 .pull { color: var(--signal); }
.hero-sub {
  margin-top: 24px; max-width: 50ch;
  font-size: clamp(16px, 1.9vw, 18px);
  color: var(--muted); font-weight: 400;
}
.hero-sub b { color: var(--chalk); font-weight: 600; }
.hero-actions {
  margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}

.btn {
  display: inline-block; border: none; cursor: pointer;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600;
  font-size: 15px; padding: 14px 24px; border-radius: 9px;
  transition: transform .12s, box-shadow .2s, border-color .2s, background .2s;
}
.btn-amber,
.btn-primary {
  background: var(--accent); color: var(--accent-text);
}
.btn-amber:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -16px rgba(244, 241, 234, 0.5);
}
.btn-ghost {
  background: transparent; color: var(--chalk);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: rgba(214, 196, 160, 0.45);
  background: var(--gold-soft);
}

.strip {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 36px 48px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.stat .num {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 30px; line-height: 1; letter-spacing: -0.03em;
}
.stat .lbl {
  margin-top: 8px; font-size: 11px; color: var(--muted);
  font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- LOGO BAND ---------- */
.logo-band {
  padding: 30px 0 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 18, 20, 0.7);
}
.logo-band-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
  text-align: center;
}
.logo-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 18px 40px;
}
.logo-item {
  display: inline-flex; align-items: center; gap: 9px;
  color: rgba(250, 250, 250, 0.38);
  transition: color .25s;
  user-select: none;
}
.logo-item:hover { color: rgba(250, 250, 250, 0.82); }
.logo-item svg { width: 20px; height: 20px; flex: none; }
.logo-item span {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em;
}

/* ---------- SECTIONS ---------- */
section.block { padding: 96px 0; }
.head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.head h2 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: clamp(28px, 4.5vw, 40px); line-height: 1.06; letter-spacing: -0.035em;
  max-width: 18ch;
}
.head p { color: var(--muted); max-width: 40ch; font-size: 15.5px; }

.page-intro { padding: 84px 0 28px; }
.page-intro h1 { max-width: 15ch; }

/* ---------- TRAY / CELLS ---------- */
.tray {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 28px 70px -48px rgba(0,0,0,0.9);
}
.tray::before, .tray::after { display: none; }

.compartments {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 860px) { .compartments { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .compartments { grid-template-columns: 1fr; } }

.cell {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px 18px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 168px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative; overflow: hidden;
  color: inherit; text-decoration: none;
}
a.cell { cursor: pointer; }
.cell:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 196, 160, 0.4);
  box-shadow: 0 18px 36px -24px rgba(0,0,0,0.85);
}
.cell-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cell h3 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600;
  font-size: 19px; letter-spacing: -0.02em;
}
.cell .cell-kicker,
.cell-kicker {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.pill {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 6px; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }
.pill.live { color: var(--signal); background: var(--signal-soft); }
.pill.live::before { background: var(--signal); }
.pill.brew { color: var(--gold); background: var(--gold-soft); }
.pill.brew::before { background: var(--gold); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.cell p { font-size: 13.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.cell-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cell-addr { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #6B6B76; }
.cell-cat {
  font-size: 10.5px; color: var(--muted); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 5px;
}
.cell.fresh { animation: settle .5s cubic-bezier(.2,.8,.2,1); border-color: rgba(214,196,160,0.5); }
@keyframes settle {
  from { opacity: 0; transform: translateY(-14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 196, 160, 0.35);
  box-shadow: 0 20px 40px -28px rgba(0,0,0,0.85);
}
.service-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600;
  font-size: 22px; letter-spacing: -0.02em;
}
.service-card p { color: var(--muted); font-size: 14.5px; }
.service-card ul {
  list-style: none; display: flex; flex-direction: column; gap: 9px;
  margin-top: 6px;
}
.service-card li {
  font-size: 14px; color: var(--chalk);
  padding-left: 14px; position: relative;
}
.service-card li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.step .n {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--gold);
  letter-spacing: 0.14em;
}
.step h3 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600;
  font-size: 21px; margin: 14px 0 10px; letter-spacing: -0.02em;
}
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- IDEA SLOT ---------- */
.slot {
  margin-top: 40px; max-width: 680px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 10px 10px 10px 20px;
  display: flex; align-items: stretch; gap: 12px;
  box-shadow: 0 24px 60px -34px rgba(0,0,0,0.85);
  position: relative;
}
.slot-label {
  position: absolute; top: -10px; left: 18px;
  background: var(--ink); padding: 0 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.slot-fields { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.slot-row {
  position: relative; display: flex; flex-direction: column;
  padding: 4px 0;
}
.slot-row + .slot-row { border-top: 1px solid var(--line); }
.field-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2px;
}
.slot input, .slot textarea {
  width: 100%; background: none; border: none; outline: none;
  color: var(--chalk); font-family: 'Manrope', system-ui, sans-serif; font-size: 15.5px;
  padding: 10px 0; resize: vertical;
}
.slot input::placeholder, .slot textarea::placeholder { color: #5C5C68; }
.drop-btn {
  align-self: center; flex: none; border: none; cursor: pointer;
  background: var(--accent); color: var(--accent-text);
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600;
  font-size: 15px; padding: 13px 20px; border-radius: 9px;
  transition: transform .12s, box-shadow .2s, opacity .2s;
  white-space: nowrap;
}
.drop-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -14px rgba(244, 241, 234, 0.5);
}
.drop-btn:disabled { opacity: 0.42; cursor: not-allowed; }
.slot-hint { margin-top: 12px; font-size: 13px; color: #6B6B76; }
.slot-msg { margin-top: 10px; font-size: 13px; font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.02em; }
.slot-msg.ok { color: var(--signal); }
.slot-msg.err { color: var(--gold); }
@media (max-width: 520px) {
  .slot { flex-direction: column; align-items: stretch; padding: 16px; gap: 10px; }
  .drop-btn { width: 100%; align-self: stretch; }
}

/* ---------- CTA ---------- */
.cta-band {
  text-align: center; background: var(--ink-2);
  border: 1px solid var(--line-strong); border-radius: 16px;
  padding: 68px 28px;
  background-image: radial-gradient(520px 180px at 50% 0%, var(--gold-soft), transparent 70%);
}
.cta-band h2 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: clamp(28px, 4.8vw, 44px); letter-spacing: -0.035em; line-height: 1.05;
}
.cta-band p { color: var(--muted); margin: 18px auto 28px; max-width: 44ch; }
.cta-btn {
  display: inline-block; background: var(--accent); color: var(--accent-text);
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 16px;
  padding: 15px 28px; border-radius: 10px;
  transition: transform .12s, box-shadow .2s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -16px rgba(244, 241, 234, 0.5);
}

.proof-note {
  margin-top: 18px; font-size: 14px; color: var(--muted);
}
.proof-note a { color: var(--gold); border-bottom: 1px solid transparent; }
.proof-note a:hover { border-bottom-color: var(--gold); }

/* ---------- CAPABILITY GRID ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cap-card {
  grid-column: span 2;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.cap-card:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 196, 160, 0.35);
  box-shadow: 0 20px 40px -28px rgba(0,0,0,0.85);
}
.cap-card:nth-child(4),
.cap-card:nth-child(5) {
  grid-column: span 3;
}
.cap-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-3);
}
.cap-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.cap-card:hover .cap-media img { transform: scale(1.04); }
.cap-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.cap-body h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600; font-size: 18px; letter-spacing: -0.02em;
}
.cap-body p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.cap-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}
.cap-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
}
@media (max-width: 900px) {
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .cap-card,
  .cap-card:nth-child(4),
  .cap-card:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 560px) {
  .cap-grid { grid-template-columns: 1fr; }
}

.stack-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px; justify-content: center;
}
.stack-chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--chalk);
  background: var(--ink-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 12px;
}

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .muted { color: var(--muted); font-size: 13px; }
footer .flinks { display: flex; gap: 22px; font-size: 13px; flex-wrap: wrap; }
footer .flinks a { color: var(--muted); transition: color .2s; }
footer .flinks a:hover { color: var(--chalk); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
