:root {
  --ink: #111827;
  --muted: #5b6475;
  --line: #d9dee8;
  --paper: #f7f8fb;
  --white: #ffffff;
  --blue: #2563eb;
  --cyan: #0891b2;
  --green: #059669;
  --amber: #d97706;
  --rose: #e11d48;
  --navy: #172033;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.16);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,248,252,0.98) 54%, rgba(238,242,248,0.98) 100%),
    linear-gradient(90deg, rgba(15,23,42,0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15,23,42,0.025) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(217, 222, 232, 0.72);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(112, 57, 184, 0.20);
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.nav-links a:not(.nav-cta) {
  color: inherit;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 7px;
}

.nav-links a:not(.nav-cta):hover { background: #eef2f7; color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 184px;
  padding: 0 26px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #0b5ff0 0%, #0447c7 100%);
  box-shadow: 0 16px 34px rgba(37,99,235,0.30);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #064fd0 0%, #033b9f 100%);
  color: #fff;
  transform: translateY(-1px);
}

.floating-consult {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(560px, calc(100vw - 36px));
  min-height: 66px;
  padding: 10px 12px 10px 24px;
  border: 1px solid rgba(37,99,235,0.28);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 24px 60px rgba(15,23,42,0.20), 0 8px 24px rgba(37,99,235,0.16);
  backdrop-filter: blur(18px);
  text-decoration: none;
  transform: translateX(-50%);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.floating-consult:hover {
  border-color: rgba(37,99,235,0.52);
  box-shadow: 0 28px 70px rgba(15,23,42,0.24), 0 10px 28px rgba(37,99,235,0.24);
  transform: translateX(-50%) translateY(-2px);
}

.floating-consult-copy {
  display: grid;
  gap: 1px;
  flex: 1 1 auto;
  min-width: 0;
}

.floating-consult-copy small {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.floating-consult-copy strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
}

.floating-consult-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #0b5ff0 0%, #0447c7 100%);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 0.92fr) minmax(560px, 1.08fr);
  gap: clamp(28px, 3.8vw, 60px);
  align-items: center;
  min-height: calc(100vh - 67px);
  padding: clamp(56px, 6vw, 92px) clamp(28px, 5vw, 64px) clamp(64px, 7vw, 104px);
  max-width: none;
  margin: 0 auto;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 84% 42%, rgba(37,99,235,0.22), transparent 0 28%, transparent 44%),
    radial-gradient(circle at 100% 78%, rgba(20,184,166,0.28), transparent 0 24%, transparent 42%),
    linear-gradient(105deg, #ffffff 0%, #ffffff 34%, rgba(239,246,255,0.96) 56%, rgba(219,234,254,0.92) 78%, rgba(204,251,241,0.84) 100%);
  box-shadow: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow::before {
  content: none;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(48px, 5.5vw, 78px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h1 .accent {
  display: inline;
  color: #2563eb;
}

.lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: #0f172a;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 800;
}

.hero-finder {
  max-width: 760px;
  margin-top: 28px;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 22px 52px rgba(37, 99, 235, 0.16);
  overflow: hidden;
}

.hero-finder-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid rgba(37,99,235,0.12);
}

.hero-finder-input {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  color: #64748b;
  font-size: 16px;
  min-width: 0;
}

.hero-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
}

.hero-search-input::placeholder {
  color: #64748b;
  font-weight: 700;
}

.hero-finder-input span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-finder-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #2563eb;
  font-size: 25px;
  line-height: 1;
}

.hero-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #0b5ff0;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(37,99,235,0.24);
}

.hero-selects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px 14px;
}

.hero-select {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, #2563eb 50%) right 16px center / 6px 6px no-repeat,
    linear-gradient(135deg, #2563eb 50%, transparent 50%) right 10px center / 6px 6px no-repeat,
    #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  outline: 0;
  appearance: none;
}

.hero-select:focus,
.hero-search-input:focus {
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.hero-paths {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 660px;
  margin-top: 20px;
}

.hero-path {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.hero-path span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.hero-path strong {
  display: block;
  margin-top: 2px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 26px;
  border: 1px solid rgba(37,99,235,0.28);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.btn.primary {
  min-height: 58px;
  min-width: 210px;
  border-color: #0b5ff0;
  background: #0b5ff0;
  color: #fff;
  box-shadow: 0 18px 34px rgba(37,99,235,0.28);
}

.hero-panel {
  min-width: 0;
  min-height: 560px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 48% 48%, rgba(37, 99, 235, 0.22), transparent 0 26%, transparent 42%),
    radial-gradient(circle at 80% 72%, rgba(20, 184, 166, 0.22), transparent 0 22%, transparent 42%);
  box-shadow: none;
  perspective: 980px;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(37,99,235,0.16) 50%, transparent 51%),
    linear-gradient(0deg, transparent 0 49%, rgba(20,184,166,0.12) 50%, transparent 51%);
  background-size: 86px 86px;
  transform: rotate(-14deg) translateZ(-120px);
  opacity: 0.32;
  animation: gridDrift 18s linear infinite;
}

.hero-visual::after {
  inset: 0;
  background:
    radial-gradient(circle, rgba(37,99,235,0.45) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(20,184,166,0.35) 0 1px, transparent 2px);
  background-size: 72px 72px, 46px 46px;
  opacity: 0.30;
  animation-duration: 26s;
  transform: none;
}

.stream-card {
  position: absolute;
  z-index: 1;
  display: block;
  width: clamp(170px, 18vw, 260px);
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
  transform-style: preserve-3d;
  animation: cardFloat 11s ease-in-out infinite;
  transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}

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

.stream-card:hover {
  z-index: 4;
  opacity: 1;
  filter: none;
  transform: translate3d(var(--x), var(--y), 120px) rotate(var(--r)) scale(1.10);
  box-shadow: 0 34px 78px rgba(15, 23, 42, 0.28);
}

.stream-card.is-far {
  opacity: 0.48;
  filter: blur(0.7px);
  transform: translate3d(var(--x), var(--y), -180px) rotate(var(--r)) scale(0.78);
}

.stream-card.is-mid {
  opacity: 0.72;
  transform: translate3d(var(--x), var(--y), -50px) rotate(var(--r)) scale(0.90);
}

.stream-card.pos-a { --x: 5%; --y: 6%; --r: -8deg; left: 2%; top: 6%; animation-delay: -1.2s; }
.stream-card.pos-b { --x: 0%; --y: 0%; --r: 5deg; left: 40%; top: 2%; animation-delay: -3.5s; }
.stream-card.pos-c { --x: -6%; --y: 4%; --r: 7deg; right: 2%; top: 17%; animation-delay: -6.1s; }
.stream-card.pos-d { --x: 2%; --y: -2%; --r: -3deg; left: 24%; top: 31%; animation-delay: -2.2s; }
.stream-card.pos-e { --x: -2%; --y: 3%; --r: 4deg; right: 18%; top: 42%; animation-delay: -8.4s; }
.stream-card.pos-f { --x: 5%; --y: -5%; --r: -6deg; left: 9%; bottom: 9%; animation-delay: -4.6s; }
.stream-card.pos-g { --x: -4%; --y: -3%; --r: 6deg; left: 43%; bottom: 5%; animation-delay: -7.4s; }
.stream-card.pos-h { --x: 4%; --y: 5%; --r: -5deg; right: 1%; bottom: 14%; animation-delay: -9.1s; }
.stream-card.pos-i { --x: 3%; --y: -6%; --r: -8deg; left: 32%; top: 19%; animation-delay: -11.2s; }
.stream-card.pos-j { --x: -4%; --y: 2%; --r: 8deg; right: 28%; top: 64%; animation-delay: -12.5s; }

.stream-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37,99,235,0.18), rgba(20,184,166,0.10) 48%, transparent 70%);
  box-shadow: 0 0 80px rgba(37,99,235,0.26);
  animation: pulseCenter 4.8s ease-in-out infinite;
}

.hero-note {
  position: absolute;
  left: 24px;
  top: 22px;
  z-index: 5;
  max-width: 252px;
  padding: 10px 12px 11px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(16px);
}

.hero-note span {
  display: block;
  margin-bottom: 2px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
}

.hero-note strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
}

.hero-note small {
  display: none;
}

@keyframes cardFloat {
  0%, 100% { translate: 0 0; }
  35% { translate: 10px -12px; }
  70% { translate: -8px 10px; }
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 172px 86px; }
}

@keyframes pulseCenter {
  0%, 100% { opacity: 0.58; scale: 0.96; }
  50% { opacity: 0.92; scale: 1.08; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual::before,
  .hero-visual::after,
  .stream-card,
  .stream-center {
    animation: none;
  }
}

.showcase-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17,24,39,0.18);
  border-radius: var(--radius);
  background: #0f172a;
  box-shadow: var(--shadow);
}

.frame-top {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: #172033;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; }
.dot:nth-child(2) { background: #f59e0b; }
.dot:nth-child(3) { background: #10b981; }
.url {
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
  color: #cbd5e1;
  font-size: 11px;
}

.hero-demo {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 410px;
  background: #f8fafc;
}

.demo-side {
  padding: 18px 14px;
  color: #d7dee9;
  background: #121a2b;
}

.side-logo {
  width: 88px;
  height: 16px;
  margin-bottom: 22px;
  border-radius: 4px;
  background: #f8fafc;
}

.side-nav {
  display: grid;
  gap: 7px;
}

.side-nav span {
  display: block;
  height: 30px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
}

.side-nav span:nth-child(2) { background: rgba(37,99,235,0.55); }

.demo-main {
  padding: 22px;
  min-width: 0;
}

.demo-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.demo-title {
  width: 52%;
  height: 22px;
  border-radius: 4px;
  background: #111827;
}

.demo-filter {
  width: 116px;
  height: 28px;
  border-radius: 6px;
  background: #e5e7eb;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.demo-kpi {
  min-height: 84px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.demo-kpi span {
  display: block;
  width: 45%;
  height: 9px;
  margin-bottom: 16px;
  border-radius: 4px;
  background: #cbd5e1;
}

.demo-kpi strong {
  display: block;
  width: 64%;
  height: 20px;
  border-radius: 4px;
  background: #111827;
}

.chart-board {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
}

.chart-card, .insight-card {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  min-height: 172px;
}

.bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 124px;
  padding-top: 20px;
}

.bars i {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: var(--blue);
}

.bars i:nth-child(2) { height: 78%; background: var(--cyan); }
.bars i:nth-child(3) { height: 46%; background: var(--green); }
.bars i:nth-child(4) { height: 91%; background: var(--amber); }
.bars i:nth-child(5) { height: 62%; background: var(--rose); }

.line {
  height: 9px;
  margin: 10px 0;
  border-radius: 4px;
  background: #e2e8f0;
}

.line.dark { width: 75%; background: #64748b; }
.line.short { width: 52%; }
