/* =====================================================================
   MAAC LP — Crescendo Lab Brand-Compliant
   Tokens & rules follow: Crescendo Lab Landing Page Design Rulebook v1.1
   Blue-only palette / Noto Sans JP / 96px section padding / 1200px max-w
   ===================================================================== */

:root {
  /* ── Brand colors (per rulebook §2) ───────────────────────────── */
  --blue-600: #3B82F6;   /* Primary: CTA, links, icon highlights */
  --blue-500: #5B9BF6;   /* Hover state */
  --blue-100: #DBEAFE;   /* Tags, badges, subtle highlights */
  --blue-50:  #EFF6FF;   /* Alternating section background */

  --gray-900: #111827;   /* Headings, hero text */
  --gray-700: #374151;   /* Body text */
  --gray-500: #6B7280;   /* Subtitles, descriptions */
  --gray-400: #9CA3AF;   /* Lighter auxiliary text */
  --gray-200: #E5E7EB;   /* Borders */
  --gray-100: #F3F4F6;   /* Light gray bg */
  --gray-50:  #F9FAFB;   /* Very light gray bg */

  --white: #FFFFFF;
  --black: #000000;

  /* ── Typography ──────────────────────────────────────────────── */
  --font-sans: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont,
               'Segoe UI', 'Hiragino Sans', sans-serif;

  /* ── Border radius ───────────────────────────────────────────── */
  --r-sm:   8px;     /* Inputs */
  --r-md:   12px;    /* Cards */
  --r-lg:   16px;    /* Large cards, images */
  --r-full: 9999px;  /* Buttons, tags */

  /* ── Shadows ─────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);

  /* ── Gradients ───────────────────────────────────────────────── */
  --gradient-btn: linear-gradient(to right, #3B82F6, #60A5FA);
  --gradient-text: linear-gradient(120deg, #3B82F6 0%, #60A5FA 100%);

  /* ── Spacing rhythm ──────────────────────────────────────────── */
  --section-py:    72px;
  --content-max-w: 1200px;
  --card-gap:      24px;
}

/* === Base ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--gray-700);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--blue-500); }

h1, h2, h3, h4 {
  color: var(--gray-900);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

p { margin: 0 0 1rem; line-height: 1.75; }

ul { list-style: none; padding: 0; margin: 0; }

.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.br-md { display: none; }
@media (min-width: 768px) { .br-md { display: inline; } }

/* === Overline label (blue eyebrow per rulebook §3) ==================== */
.overline {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue-600);
  text-transform: uppercase;
}
.overline-center {
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}
.overline-sm { font-size: 11px; }

/* === Section helpers ================================================== */
.section {
  padding: 48px 0;
}
@media (min-width: 768px) {
  .section { padding: var(--section-py) 0; }
}
.section-white { background: var(--white); }
.section-tint  { background: var(--blue-50); }

.section h2,
.section .split-title {
  text-align: center;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 auto 1rem;
  max-width: 22em;
  line-height: 1.45;
}
.split-title { text-align: left; max-width: none; }
.section-lead {
  text-align: center;
  color: var(--gray-500);
  max-width: 36em;
  margin: 0 auto 32px;
  font-size: 16px;
  line-height: 1.85;
}
.section-lead strong { color: var(--gray-900); }

.grad-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.brand-maac {
  color: #000;
  font-weight: 700;
}
.brand-maac-yomi {
  display: inline-block;
  font-size: 0.4em;
  font-weight: 500;
  color: var(--gray-500);
  margin-left: 0.3em;
  vertical-align: baseline;
  position: relative;
  bottom: 0.15em;
  line-height: 1.2;
}

/* === Buttons ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--r-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s,
              transform 0.12s, box-shadow 0.22s, filter 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

.btn-primary {
  background-image: var(--gradient-btn);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.30);
}
.btn-primary:hover {
  filter: brightness(0.92);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.36);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.btn-secondary:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

.btn-arrow { transition: transform 0.18s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* === Header / Nav ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand img {
  height: 36px;
  width: auto;
  display: block;
}
.site-nav { display: none; gap: 1.8rem; }
.site-nav a {
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--blue-600); }
@media (min-width: 880px) {
  .site-nav { display: inline-flex; }
}

/* === Hero ============================================================= */
.hero {
  background:
    radial-gradient(900px 480px at 0% 0%, rgba(59, 130, 246, 0.05), transparent 60%),
    var(--white);
  padding: 24px 0 40px;
  overflow: hidden;
}
@media (min-width: 980px) {
  .hero { padding: 48px 0 56px; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 40px; }
}
.hero h1 {
  font-size: clamp(28px, 4.8vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--gray-900);
}
.hero-h1-tag {
  display: block;
  font-size: clamp(20px, 3.2vw, 34px);
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin-bottom: 8px;
}
.hero-sub {
  font-size: 16px;
  color: var(--gray-500);
  margin: 0 0 20px;
  line-height: 1.75;
  max-width: 36em;
}
.hero-sub strong { color: var(--gray-900); font-weight: 600; }
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 6px 16px 6px 6px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-full);
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.4;
}
.partner-badge-img {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .partner-badge-img { width: 52px; height: 52px; }
}

/* === Certification block (3-country LINE Partner badges) ============== */
.cert-block {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 20px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-md);
}
.cert-block-cta {
  align-items: center;
  background: var(--white);
  border-color: var(--gray-200);
  margin-top: 24px;
}
.cert-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cert-badge {
  width: auto;
  height: 48px;
  display: block;
  border-radius: var(--r-sm);
}
.cert-badge-wide,
.cert-badge-extra-wide {
  width: auto;
  height: 48px;
}
@media (min-width: 768px) {
  .cert-badge,
  .cert-badge-wide,
  .cert-badge-extra-wide { height: 56px; }
}
.cert-text {
  margin: 0;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
}
.cert-text strong { color: var(--blue-600); font-weight: 700; }
.cert-block-cta .cert-text { text-align: center; }
.hero-badge strong { color: var(--blue-600); font-weight: 700; }
.hero-badge-icon {
  width: 16px;
  height: 16px;
  color: var(--blue-600);
  flex-shrink: 0;
}

/* Hero visual (product dashboard screenshot) */
.hero-visual { display: block; }
.hero-visual-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 980px) {
  /* Bleed the image to the right viewport edge so it looks larger without shrinking text */
  .hero-visual {
    margin-right: -24px;
  }
  .hero-visual-img {
    width: 112%;
    max-width: none;
  }
}
.screen {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.screen-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.screen-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
}
.screen-dot-r { background: #F87171; }
.screen-dot-y { background: #FBBF24; }
.screen-dot-g { background: #34D399; }
.screen-title {
  margin-left: 8px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  color: var(--gray-500);
  font-weight: 500;
}
.screen-body {
  padding: 20px;
  display: grid;
  gap: 16px;
}
.screen-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.screen-pill {
  background: var(--blue-50);
  color: var(--blue-600);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--r-full);
  border: 1px solid var(--blue-100);
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kpi {
  background: var(--gray-50);
  border-radius: var(--r-md);
  padding: 12px;
}
.kpi-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
}
.kpi-num {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--blue-600);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-top: 4px;
}
.kpi-num small { font-size: 14px; }
.pred-list {
  background: var(--gray-50);
  border-radius: var(--r-md);
  padding: 14px;
}
.pred-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
}
.pred-row {
  display: grid;
  grid-template-columns: 80px 1fr 36px;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
}
.pred-row:last-child { margin-bottom: 0; }
.pred-row span { color: var(--gray-700); font-weight: 500; }
.pred-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: var(--r-full);
  overflow: hidden;
}
.pred-bar span {
  display: block;
  height: 100%;
  background: var(--gradient-btn);
  border-radius: var(--r-full);
}
.pred-row b {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-600);
  text-align: right;
}
.channels-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ch-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-weight: 500;
}
.ch-on {
  background: var(--blue-50);
  color: var(--blue-600);
  border-color: var(--blue-100);
}

/* === Logo wall ======================================================== */
.logo-wall {
  padding: 32px 0;
  background: var(--white);
}
.logo-wall-title {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  margin: 0 0 24px;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  align-items: center;
  justify-items: center;
}
@media (min-width: 600px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .logo-grid { grid-template-columns: repeat(8, 1fr); } }
.logo-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 100%;
}
.logo-grid img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s;
}
.logo-grid li:hover img {
  transform: scale(1.05);
}
@media (min-width: 768px) {
  .logo-grid li { height: 56px; }
}

/* === Stats block ====================================================== */
.stats {
  background: var(--blue-50);
  padding: 48px 0;
}
@media (min-width: 768px) { .stats { padding: 64px 0; } }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stats-grid li {
  text-align: center;
}
.stat-num {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  color: var(--blue-600);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-unit {
  font-size: 0.55em;
  margin-left: 2px;
  font-weight: 600;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

/* === 3-Column Feature Cards =========================================== */
.cards-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--card-gap);
}
@media (min-width: 768px) { .cards-3col { grid-template-columns: repeat(3, 1fr); } }

.feat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 32px 24px;
  transition: box-shadow 0.22s, transform 0.18s, border-color 0.18s;
}
.feat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
  transform: translateY(-3px);
}
.icon-wrap {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  margin-bottom: 18px;
}
.icon-wrap svg {
  width: 24px;
  height: 24px;
}
.feat-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--gray-900);
}
.feat-card p {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.8;
}

/* === Split section (text + visual) ==================================== */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 920px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split-reverse .split-text   { order: 2; }
  .split-reverse .split-visual { order: 1; }
}
.split-text h2,
.split-text .split-title {
  font-size: clamp(24px, 3.2vw, 32px);
  margin: 0.4rem 0 1rem;
  text-align: left;
  max-width: none;
}
.split-text p {
  color: var(--gray-500);
  font-size: 16px;
  margin-bottom: 18px;
  line-height: 1.85;
}
.split-text p strong { color: var(--gray-900); font-weight: 600; }

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 20px; height: 20px;
  background: var(--blue-50);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B82F6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
}

.split-visual {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.section-tint .split-visual { background: var(--white); }
.section-white .split-visual { background: var(--gray-50); }

/* Hub (data integration) mock */
.hub-mock { display: grid; gap: 14px; }
.hub-sources, .hub-target {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.hub-chip {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
}
.hub-chip img {
  max-height: 20px;
  max-width: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.hub-arrow {
  display: grid;
  place-items: center;
  color: var(--blue-600);
}
.hub-arrow svg {
  width: 24px; height: 24px;
  transform: rotate(90deg);
}
.hub-center {
  text-align: center;
  background: var(--gradient-btn);
  color: var(--white);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  align-self: center;
  justify-self: center;
}
.hub-center strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hub-center small {
  display: block;
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
  font-weight: 500;
}
.hub-line { background: var(--blue-50); color: var(--blue-600); border-color: var(--blue-100); }
.hub-events {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--gray-200);
  justify-content: center;
}
.hub-events code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  padding: 3px 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  color: var(--gray-700);
}

/* AI prediction mock */
.pred-mock { display: grid; gap: 12px; }
.pred-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}
.pred-mock-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--blue-600);
  color: var(--white);
}
.pred-mock-meta {
  font-size: 12px;
  color: var(--gray-500);
}
.pred-rows { display: grid; gap: 8px; }
.pred-rows .pred-row {
  grid-template-columns: 88px 1fr 44px;
}
.pred-rows .pred-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
}
.pred-rows b {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-600);
  text-align: right;
}
.pred-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--blue-50);
  border-radius: var(--r-md);
  margin-top: 4px;
}
.pred-footer span {
  font-size: 12px;
  color: var(--blue-600);
  font-weight: 600;
}
.pred-footer strong {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--gray-900);
  font-weight: 700;
}

/* Channel list mock */
.channel-list { display: grid; gap: 8px; }
.channel-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  transition: border-color 0.18s, background 0.18s;
}
.channel-row.channel-on {
  border-color: var(--blue-600);
  background: var(--blue-50);
}
.channel-tag {
  width: 48px; height: 32px;
  display: grid;
  place-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--r-sm);
  background: var(--gray-100);
  color: var(--gray-700);
  letter-spacing: 0.04em;
}
.channel-on .channel-tag {
  background: var(--blue-600);
  color: var(--white);
}
.channel-icon {
  width: 48px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--white);
  overflow: hidden;
}
.channel-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.channel-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}
.channel-text small {
  font-size: 12px;
  color: var(--gray-500);
}
.channel-pick {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--blue-600);
  color: var(--white);
  letter-spacing: 0.04em;
}

/* === Tab switcher ===================================================== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
}
.tab-trigger {
  background: transparent;
  border: none;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tab-trigger:hover { color: var(--blue-600); }
.tab-trigger.is-active {
  color: var(--blue-600);
  border-bottom-color: var(--blue-600);
}
.tab-trigger:focus { outline: 2px solid var(--blue-600); outline-offset: 2px; border-radius: 4px; }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* === Case cards ======================================================= */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--card-gap);
}
@media (min-width: 820px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }
.case-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.18s, border-color 0.18s;
}
.case-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
  transform: translateY(-3px);
}
.case-metric {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 16px;
}
.case-metric-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.case-metric-value {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.case-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--gray-900);
}
.case-card p {
  flex-grow: 1;
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.85;
  margin: 0 0 16px;
}
.case-card p strong { color: var(--gray-900); font-weight: 600; }
.case-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}
.case-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.case-logo {
  width: 64px;
  max-height: 36px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}
.case-meta strong {
  display: block;
  font-size: 14px;
  color: var(--gray-900);
  font-weight: 600;
}
.case-meta small {
  font-size: 12px;
  color: var(--gray-500);
}

/* === Ecosystem cards ================================================== */
.eco-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.18s, border-color 0.18s;
}
.eco-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.eco-card-active {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-md);
}
.eco-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: var(--r-full);
  margin-bottom: 12px;
  align-self: flex-start;
}
.eco-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
  color: var(--gray-900);
}
.eco-jp {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  margin-left: 6px;
}
.eco-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.8;
  margin: 0 0 16px;
}
.eco-points {
  margin: 0 0 20px;
  flex-grow: 1;
}
.eco-points li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.eco-points li:last-child { border-bottom: none; }
.eco-points li::before {
  content: "・";
  color: var(--blue-600);
  font-weight: 700;
  margin-right: 4px;
}
.eco-current {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-600);
  padding-top: 8px;
}
.eco-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.eco-link:hover { color: var(--blue-500); }
.eco-link .btn-arrow { transition: transform 0.18s; }
.eco-link:hover .btn-arrow { transform: translateX(4px); }

/* === Comparison table ================================================= */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 15px;
}
.compare-table thead th {
  padding: 18px 22px;
  text-align: left;
  background: var(--gray-50);
  color: var(--gray-900);
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--gray-200);
}
.compare-table thead th small {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}
.compare-table thead .th-accent {
  background: var(--gradient-btn);
  color: var(--white);
}
.compare-table thead .th-accent small { color: rgba(255,255,255,0.85); }
.compare-table tbody th {
  text-align: left;
  padding: 16px 22px;
  font-weight: 600;
  color: var(--gray-900);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
  font-size: 14px;
}
.compare-table tbody td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
  color: var(--gray-700);
  font-size: 14px;
}
.compare-table tbody .td-accent {
  background: var(--blue-50);
  color: var(--gray-900);
  font-weight: 500;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

.mark {
  display: inline-block;
  width: 1.3em;
  margin-right: 6px;
  font-weight: 700;
}
.mark-good { color: var(--blue-600); }
.mark-bad  { color: var(--gray-400); }

/* === Bottom CTA ======================================================= */
.section-cta {
  background: var(--blue-50);
  padding: 56px 0;
}
@media (min-width: 768px) { .section-cta { padding: 72px 0; } }
.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.section-cta h2 {
  font-size: clamp(24px, 3.6vw, 32px);
}

/* HubSpot Form override — match LP brand */
.hubspot-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  margin: 24px auto 0;
  max-width: 640px;
}
.hubspot-form-wrap .hs-form-field {
  margin-bottom: 16px;
}
.hubspot-form-wrap .hs-form-field > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.hubspot-form-wrap .hs-form-required {
  color: var(--blue-600);
  margin-left: 2px;
}
.hubspot-form-wrap .hs-input {
  width: 100% !important;
  box-sizing: border-box;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-900);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.hubspot-form-wrap textarea.hs-input {
  resize: vertical;
  line-height: 1.6;
  min-height: 96px;
}
.hubspot-form-wrap .hs-input::placeholder { color: var(--gray-400); }
.hubspot-form-wrap .hs-input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.hubspot-form-wrap .hs-error-msgs {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.hubspot-form-wrap .hs-error-msg,
.hubspot-form-wrap .hs-error-msgs label {
  color: #DC2626;
  font-size: 12px;
}
.hubspot-form-wrap .hs-button,
.hubspot-form-wrap input[type="submit"] {
  display: inline-block;
  width: 100%;
  max-width: 380px;
  margin: 8px auto 0;
  padding: 14px 32px;
  background: var(--blue-600);
  color: var(--white);
  border: none;
  border-radius: var(--r-full);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s, transform 0.06s;
}
.hubspot-form-wrap .hs-button:hover,
.hubspot-form-wrap input[type="submit"]:hover {
  background: #2563EB;
}
.hubspot-form-wrap .hs-button:active { transform: translateY(1px); }
.hubspot-form-wrap .hs_submit { text-align: center; }
.hubspot-form-wrap .submitted-message {
  font-size: 15px;
  color: var(--blue-600);
  font-weight: 600;
  text-align: center;
  padding: 16px;
}
.hubspot-form-wrap .legal-consent-container {
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray-500);
}
.hubspot-form-wrap .hs-richtext { font-size: 13px; color: var(--gray-500); }
.cta-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--gray-500);
}

.partner-badge {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-full);
  line-height: 1.4;
  font-size: 13px;
  color: var(--gray-700);
}
.partner-badge strong { color: var(--blue-600); font-weight: 700; }

/* === Footer =========================================================== */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
.footer-logo {
  height: 64px;
  width: auto;
}
.footer-tag {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.7;
}
.footer-h {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 12px;
  text-transform: none;
}
.site-footer nav ul { margin: 0; }
.site-footer nav li { margin-bottom: 8px; }
.site-footer nav a {
  color: var(--gray-500);
  font-size: 13px;
  transition: color 0.15s;
}
.site-footer nav a:hover { color: var(--blue-600); }
.copyright {
  display: block;
  text-align: center;
  color: var(--gray-400);
  font-size: 12px;
}

/* === Section dividers (wave / diagonal) =============================== */
:root {
  --navy-900: #0F172A;
  --navy-800: #1E293B;
}
.divider {
  display: block;
  width: 100%;
  line-height: 0;
  position: relative;
  margin: -1px 0;
  pointer-events: none;
  z-index: 1;
  font-size: 0;
  overflow: hidden;
}
.divider svg {
  display: block;
  width: 101%;
  height: calc(100% + 2px);
  margin: -1px -0.5%;
  vertical-align: bottom;
  shape-rendering: geometricPrecision;
}
.divider-wave { height: 48px; }
.divider-diagonal { height: 64px; }
@media (min-width: 768px) {
  .divider-wave { height: 64px; }
  .divider-diagonal { height: 88px; }
}
/* Background = OUTGOING section color; SVG fill = INCOMING section color */
.div-white-tint   { background: var(--white); }
.div-tint-white   { background: var(--blue-50); }
.div-white-dark   { background: var(--white); }
.div-dark-white   { background: var(--navy-900); }
.div-tint-dark    { background: var(--blue-50); }
.div-dark-tint    { background: var(--navy-900); }
.div-white-cta    { background: var(--white); }

/* === Dark section ===================================================== */
.section-dark {
  background:
    radial-gradient(900px 480px at 80% 0%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(59, 130, 246, 0.12), transparent 60%),
    var(--navy-900);
  color: var(--white);
  position: relative;
}
.section-dark h2,
.section-dark .split-title,
.section-dark h3 {
  color: var(--white);
}
.section-dark .section-lead,
.section-dark p {
  color: rgba(255, 255, 255, 0.78);
}
.section-dark .section-lead strong,
.section-dark strong {
  color: var(--white);
}
.section-dark .overline {
  color: #93C5FD;
}
.section-dark .feat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}
.section-dark .feat-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(147, 197, 253, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.section-dark .feat-card h3 { color: var(--white); }
.section-dark .feat-card p { color: rgba(255, 255, 255, 0.72); }
.section-dark .icon-wrap {
  background: rgba(147, 197, 253, 0.16);
  color: #BFDBFE;
}

/* === Reduced motion =================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
}
