:root {
  --navy: #0b1324;
  --navy-soft: #1b2740;
  --voyage: #2563eb;
  --voyage-dark: #1d4ed8;
  --teal: #0f766e;
  --mist: #f7fafc;
  --fog: #e5eaf0;
  --sand: #d8a85d;
  --ink: #0b1324;
  --ink-2: #41506b;
  --ink-3: #6b7790;
  --white: #ffffff;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(11, 19, 36, 0.04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 760px; }

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

.br-pc { display: inline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 13px 24px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: transparent;
  color: #fff;
}
.btn-primary::before,
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
}
.btn-primary::before { background: var(--voyage); }
.btn-primary::after {
  background: linear-gradient(160deg, #0088ff, #35e7ff, #0088ff);
  background-size: 220% 100%;
  background-position: 0% 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0, 136, 255, 0.35); }
.btn-primary:hover::after { opacity: 1; animation: btnGradientFlow 0.7s cubic-bezier(0.05, 0.75, 0.15, 1) 1 forwards; }
@keyframes btnGradientFlow {
  0% { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover::after { animation: none; }
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--fog); }
.btn-ghost:hover {
  border-color: transparent;
  color: var(--voyage);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #0088ff, #35e7ff) border-box;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--fog);
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.brand-logo { height: 24px; width: auto; display: block; }
.brand-logo-light { filter: brightness(0) invert(1); }
.brand-divider { width: 1px; height: 18px; background: var(--fog); display: inline-block; }
.brand-divider-light { background: rgba(255, 255, 255, 0.25); }
.brand-sub {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.site-footer .brand-sub { color: rgba(255, 255, 255, 0.6); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav .btn-primary,
.nav .btn-primary:hover { color: #fff; }

/* Chart grid background */
.chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--fog) 1px, transparent 1px),
    linear-gradient(90deg, var(--fog) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 80% 10%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 90% at 80% 10%, #000 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}
.chart-grid-dark {
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(120% 100% at 20% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(120% 100% at 20% 0%, #000 0%, transparent 75%);
  opacity: 1;
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--fog); }
.hero-canvas {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  transform: perspective(1300px) rotateY(-19deg) rotateX(7deg) scale(1.03);
  transform-origin: 72% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 104px 24px 96px;
}
.hero-inner > * { max-width: 660px; }
.eyebrow {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.hero-title {
  font-size: 42px;
  line-height: 1.36;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 24px;
  color: var(--navy);
  max-width: none;
}
.hero-lead { font-size: 17px; color: var(--ink-2); margin: 0 0 14px; max-width: 600px; }
.hero-sub { font-size: 15px; color: var(--ink-3); margin: 0 0 32px; max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Diagrams (V-model / DevOps loop) */
.diagram { margin: 44px 0 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram-loop svg { max-width: 840px; margin: 0 auto; }
.diagram-cap {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
  margin: 16px auto 0;
  max-width: 640px;
  text-align: center;
}
.dg-arm { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dg-link { stroke: #c7d0db; stroke-width: 1.4; stroke-dasharray: 4 5; }
.dg-ring { fill: none; stroke: var(--ink-3); stroke-width: 2; }
.dg-arrowhead { fill: var(--voyage); }
.dg-nodes circle { fill: #fff; stroke: var(--voyage); stroke-width: 2; }
.dg-nodes .dg-vertex { fill: var(--voyage); }
.dg-label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 600;
  fill: var(--navy);
}
.dg-vertex-label { fill: var(--voyage); }
.dg-axis {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  fill: var(--ink-3);
}
.dg-llm rect { fill: rgba(37, 99, 235, 0.08); stroke: var(--voyage); stroke-width: 1.2; }
.dg-llm text {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  fill: var(--voyage);
}
.dg-llm-arrow { fill: none; stroke: var(--voyage); stroke-width: 1.4; stroke-dasharray: 3 4; opacity: 0.8; }
.dg-center { font-family: "Inter", sans-serif; font-size: 32px; font-weight: 700; letter-spacing: 0.06em; fill: var(--voyage); }
.dg-center-sub { font-family: "Noto Sans JP", sans-serif; font-size: 10.5px; font-weight: 600; fill: var(--ink-2); }

/* DevOps loop (rich SVG) */
.dg-ring2 { fill: none; stroke: var(--navy); stroke-width: 2; }
.dg-core { fill: rgba(37, 99, 235, 0.06); stroke: rgba(37, 99, 235, 0.28); stroke-width: 1.2; }
.dg-spark { fill: var(--voyage); opacity: 0.9; }
.dg-spokes line { stroke: var(--voyage); stroke-width: 1.4; stroke-dasharray: 3 4; opacity: 0.7; }
.dg-node-circle { fill: #fff; stroke: var(--navy); stroke-width: 1.8; }
.dg-icon { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dg-desc { font-family: "Noto Sans JP", sans-serif; font-size: 11.5px; fill: var(--ink-3); }

/* Sections */
.section { padding: 96px 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: #fff; }
.section-title {
  font-size: 30px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 22px;
  color: var(--navy);
}
.section-title.light { color: #fff; }
.section-lead { font-size: 16px; color: var(--ink-2); max-width: 720px; margin: 0 0 40px; }
.kicker {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.kicker-light { color: rgba(255, 255, 255, 0.66); }

/* Proof */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proof {
  padding: 28px 24px;
  border: 1px solid var(--fog);
  border-radius: var(--radius);
  background: var(--white);
}
.proof-no {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.proof h3 { font-size: 17px; margin: 10px 0 8px; color: var(--navy); }
.proof p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* Evolution */
.evolution {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.evo-item {
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.evo-accent { border-color: rgba(37, 99, 235, 0.4); color: var(--voyage); }
.evo-op { color: var(--ink-3); font-weight: 700; }

/* Quality */
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.q-card {
  padding: 30px 26px;
  border: 1px solid var(--fog);
  border-radius: var(--radius);
  background: var(--white);
  position: relative;
}
.q-card::before {
  content: "";
  position: absolute;
  left: 0; top: 26px; bottom: 26px;
  width: 3px;
  border-radius: 3px;
  background: var(--navy);
}
.q-tag {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.q-card h3 { font-size: 19px; margin: 8px 0 10px; color: var(--navy); }
.q-card p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.timeline li {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.timeline li:last-child { border-bottom: none; }
.t-no {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(127, 212, 204, 0.5);
  color: #7fd4cc;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 15px;
}
.timeline h3 { font-size: 17px; margin: 4px 0 6px; color: #fff; }
.timeline p { font-size: 14px; color: rgba(255, 255, 255, 0.62); margin: 0; }

/* Offers */
.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.offer {
  padding: 30px 28px;
  border: 1px solid var(--fog);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.offer:hover { border-color: var(--voyage); transform: translateY(-2px); }
.offer-ai { border-color: rgba(37, 99, 235, 0.35); background: rgba(37, 99, 235, 0.04); }
.offer-tag-ai { color: #fff; background: var(--voyage); border: none; }
.offer-tag {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.offer h3 { font-size: 20px; margin: 0 0 10px; color: var(--navy); }
.offer > p { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; }
.offer-ex { font-size: 13px; color: var(--ink-3); }
.offer-llm {
  font-size: 13px;
  line-height: 1.7;
  color: var(--voyage);
  margin: 12px 0 0;
}
.llm-tag {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--voyage);
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 5px;
  padding: 1px 7px;
  margin-right: 8px;
  vertical-align: 1px;
}
.offer-result {
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 600;
  margin: 10px 0 0;
  padding-left: 16px;
  position: relative;
}
.offer-result::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--voyage);
}
.cases-note { font-size: 12px; color: var(--ink-3); margin: 18px 0 0; }
.offer-meta {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--fog);
}
.offer-meta span {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--mist);
  border-radius: 8px;
  padding: 6px 12px;
}

/* Domains */
.domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.domain {
  padding: 26px 24px;
  border: 1px solid var(--fog);
  border-radius: var(--radius);
  background: var(--white);
}
.domain h3 { font-size: 17px; margin: 0 0 8px; color: var(--navy); }
.domain p { font-size: 14px; color: var(--ink-2); margin: 0; }
.domain-ai {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.04);
}
.domain-tag {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--voyage);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 10px;
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chips span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: 999px;
  padding: 8px 16px;
}

/* Comparison */
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.compare {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--mist);
  border: 1px solid var(--fog);
}
.compare h3 { font-size: 16px; margin: 0 0 10px; color: var(--navy); }
.compare h3::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--voyage);
  margin-right: 8px;
  vertical-align: 1px;
}
.compare p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--radius);
  padding: 6px 22px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--voyage);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  margin-left: 16px;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { font-size: 14px; color: var(--ink-2); margin: 0 0 18px; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.cta-inner { position: relative; text-align: center; padding: 92px 24px; }
.cta-inner h2 { font-size: 28px; line-height: 1.5; font-weight: 700; margin: 0 0 14px; }
.cta-inner p { font-size: 16px; color: rgba(255, 255, 255, 0.66); margin: 0 0 32px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner { padding: 40px 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { color: #7fd4cc; }
.footer-note { font-size: 14px; margin: 4px 0 0; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.4); margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { padding: 72px 24px 56px; }
  .hero-inner > * { max-width: 100%; }
  .hero-title { font-size: 32px; }
  .hero-canvas {
    width: 100%;
    opacity: 0.5;
    transform: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 55%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 55%, #000 100%);
  }
  .proof-grid, .quality-grid, .compare-grid { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .section { padding: 64px 0; }
  .section-title { font-size: 24px; }
  .br-pc { display: none; }
  .cta-inner h2 { font-size: 22px; }
}
