/* ============================================================
   SNAFTY — AI AGENT COMPANY  |  Design System
   Futuristic × Solid (かっちり) × Dimensional motion
   ============================================================ */

:root {
  /* Palette */
  --bg: #f2f3f6;
  --bg-2: #e9edf3;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --line: rgba(13, 20, 36, 0.10);
  --line-strong: rgba(13, 20, 36, 0.18);
  --text: #0d1424;
  --text-2: #16223f;
  --text-3: #2a3550;
  --ink: #0d1424;
  --coral: #f0566e;
  --orange: #f5a45c;
  --cyan: #33557f; /* V9: ライト地の可読性のためダークスチールへ（inline var(--cyan) を一括救済） */
  --blue: #33557f;
  --grad-brand: linear-gradient(90deg, #e34b60, #df8a35);
  --grad-cool: linear-gradient(90deg, #1a2540, #44557f);
  --grad-mix: linear-gradient(90deg, #e34b60, #df8a35);
  --shadow-lg: 0 24px 60px rgba(20, 30, 60, 0.14);

  /* Type */
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Space Grotesk", "Noto Sans JP", sans-serif;

  --header-h: 72px;
  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: rgba(240, 86, 110, 0.5); }

/* subtle global grid backdrop */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    linear-gradient(rgba(13,20,36,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,20,36,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
}

/* ---------- ambient gradient orbs ---------- */
.orbs { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.07;
  animation: orbFloat 18s ease-in-out infinite alternate;
}
.orb-a { width: 520px; height: 520px; background: #f0566e; top: -10%; left: -8%; }
.orb-b { width: 420px; height: 420px; background: var(--orange); top: 30%; right: -10%; animation-delay: -6s; }
.orb-c { width: 380px; height: 380px; background: #f5a45c; bottom: -12%; left: 30%; animation-delay: -12s; opacity: 0.05; }
@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, -50px, 0) scale(1.15); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 28px;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.header-inner {
  width: 100%; max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand .brand-tag {
  font-family: var(--font-en); font-size: 10px; letter-spacing: 0.22em;
  color: var(--text-3); text-transform: uppercase; border-left: 1px solid var(--line-strong);
  padding-left: 10px; line-height: 1.5;
}
.global-nav { display: flex; align-items: center; gap: 4px; }
.global-nav > li { position: relative; }
.global-nav > li > a {
  display: block; padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color 0.25s; position: relative; white-space: nowrap;
}
.global-nav > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.global-nav > li > a:hover, .global-nav > li > a.active { color: var(--text); }
.global-nav > li > a:hover::after, .global-nav > li > a.active::after { transform: scaleX(1); }

/* dropdown */
.has-drop > a::before { content: "▾"; font-size: 9px; margin-right: 6px; color: var(--text-3); }
.drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px) perspective(600px) rotateX(-8deg);
  transform-origin: top center;
  min-width: 280px; padding: 10px;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.has-drop:hover .drop, .has-drop:focus-within .drop {
  opacity: 1; visibility: visible; transform: translate(-50%, 0) perspective(600px) rotateX(0);
}
.drop a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--text-2); transition: background 0.2s, color 0.2s, transform 0.2s;
}
.drop a:hover { background: var(--surface-2); color: var(--text); transform: translateX(4px); }
.drop a small { display: block; font-size: 11px; color: var(--text-3); }
.drop .drop-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad-brand); flex: none; }

.header-cta { display: flex; align-items: center; gap: 14px; }

/* mobile */
.menu-btn { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 110; }
.menu-btn span { width: 26px; height: 2px; background: var(--text); transition: all 0.3s; }
.menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-btn { display: flex; }
  .header-cta .btn { display: none; }
  .global-nav {
    position: fixed; inset: 0; z-index: 105;
    flex-direction: column; justify-content: center; gap: 8px;
    background: rgba(242, 243, 246, 0.97); backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden; transition: opacity 0.35s;
  }
  .global-nav.open { opacity: 1; visibility: visible; }
  .global-nav > li > a { font-size: 20px; text-align: center; padding: 14px; }
  .drop { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0;
    background: none; border: 0; box-shadow: none; display: none; }
  .has-drop.open-sub .drop { display: block; }
  .drop a { justify-content: center; font-size: 15px; }
  .brand { position: relative; z-index: 110; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; cursor: pointer; border: 0; position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  font-family: var(--font-jp);
}
.btn .arrow { transition: transform 0.25s; font-family: var(--font-en); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 30px rgba(240, 86, 110, 0.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(240, 86, 110, 0.5); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left 0.5s;
}
.btn-primary:hover::after { left: 120%; }
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--line-strong);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--coral); box-shadow: 0 10px 30px rgba(240, 86, 110, 0.18); }
.btn-sm { padding: 10px 22px; font-size: 13px; }
.btn-lg { padding: 18px 44px; font-size: 16px; }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 40px) 28px 80px;
  overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero::after { /* bottom fade */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: 1;
  background: linear-gradient(transparent, var(--bg)); pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 12px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--coral); border: 1px solid rgba(240, 86, 110, 0.35); border-radius: 999px;
  padding: 8px 18px; margin-bottom: 28px; background: rgba(240, 86, 110, 0.06);
}
.hero-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral);
  box-shadow: 0 0 12px var(--coral); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 {
  font-size: clamp(38px, 6.2vw, 84px); font-weight: 900; line-height: 1.22; letter-spacing: 0.01em;
}
.hero h1 .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .hero-sub { margin-top: 26px; font-size: clamp(15px, 1.6vw, 18px); color: var(--text-2); max-width: 640px; }
.hero .hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

/* KPI ticker strip */
.hero-kpis {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 64px auto 0; width: 100%;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.hero-kpis > div { padding: 22px 20px; border-left: 1px solid var(--line); }
.hero-kpis > div:first-child { border-left: 0; }
.hero-kpis .k-num { font-family: var(--font-en); font-size: clamp(20px, 2.4vw, 30px); font-weight: 700;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.3; }
.hero-kpis .k-label { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
@media (max-width: 800px) {
  .hero-kpis { grid-template-columns: 1fr 1fr; }
  .hero-kpis > div:nth-child(odd) { border-left: 0; }
  .hero-kpis > div { border-top: 1px solid var(--line); }
  .hero-kpis > div:nth-child(-n+2) { border-top: 0; }
}

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--font-en); font-size: 10px; letter-spacing: 0.3em; color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-transform: uppercase;
}
.scroll-hint::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--coral), transparent);
  animation: scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   SUB-PAGE HERO
   ============================================================ */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 90px) 28px 90px; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .ph-bg {
  position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center;
  opacity: 0.55;
  mask-image: linear-gradient(#000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(#000 30%, transparent 100%);
  transform: scale(1.08);
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(242,243,246,0.92) 30%, rgba(242,243,246,0.4) 100%); }
.page-hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }
.breadcrumb { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-2); margin-bottom: 26px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--text-3); }
.page-hero .hero-label { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 58px); font-weight: 900; line-height: 1.3; }
.page-hero h1 .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { margin-top: 20px; color: var(--text-2); max-width: 720px; font-size: 15.5px; }
.page-hero .solution-logo-plate {
  display: inline-flex; background: #fff; border-radius: var(--radius); padding: 18px 30px; margin-bottom: 30px;
  box-shadow: 0 12px 30px rgba(20,30,60,0.12), 0 0 0 1px var(--line);
}
.page-hero .solution-logo-plate img { height: 72px; width: auto; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 110px 28px; position: relative; }
.section-tight { padding: 70px 28px; }
.container { max-width: var(--maxw); margin: 0 auto; }
.container-wide { max-width: 1360px; margin: 0 auto; }

.section-label {
  font-family: var(--font-en); font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 14px;
}
.section-label::before { content: ""; width: 34px; height: 1px; background: var(--grad-brand); }
.section-title { font-size: clamp(26px, 3.6vw, 44px); font-weight: 900; line-height: 1.4; letter-spacing: 0.01em; }
.section-title .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-title .grad-cool { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-lead { margin-top: 20px; color: var(--text-2); max-width: 760px; font-size: 15.5px; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-label { justify-content: center; }
.section-head.center .section-label::before { display: none; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* alternated surface band */
.band { background: linear-gradient(180deg, rgba(13,20,36,0.025), rgba(13,20,36,0.01)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ============================================================
   GRIDS & CARDS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: #ffffff; padding: 34px 30px;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.35s, box-shadow 0.35s, background 0.35s;
  transform-style: preserve-3d; will-change: transform;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 86, 110, 0.45);
  background: var(--surface-2);
  box-shadow: 0 20px 50px rgba(20, 30, 60, 0.12), 0 0 0 1px rgba(240, 86, 110, 0.15);
}
.card .card-num {
  font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; line-height: 1.5; }
.card p { font-size: 14.5px; color: var(--text-2); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(240,86,110,0.15), rgba(245,164,92,0.1));
  border: 1px solid rgba(240, 86, 110, 0.3); font-size: 24px; margin-bottom: 20px;
}
.card.icon-cool .icon { background: linear-gradient(135deg, rgba(13,20,36,0.08), rgba(13,20,36,0.04)); border-color: var(--line-strong); }

/* corner accent */
.card-corner::before, .card-corner::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-color: rgba(240, 86, 110, 0.6);
  border-style: solid; opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.card-corner::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: var(--radius) 0 0 0; }
.card-corner::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 var(--radius) 0; }
.card-corner:hover::before, .card-corner:hover::after { opacity: 1; }

/* solution card (logo on white plate) */
.solution-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.solution-card .logo-plate {
  background: #ffffff; display: flex; align-items: center; justify-content: center;
  height: 190px; padding: 26px; border-bottom: 1px solid var(--line);
}
.solution-card .logo-plate img { max-height: 100%; max-width: 82%; width: auto; object-fit: contain; }
.solution-card .sol-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.solution-card .sol-tag { font-family: var(--font-en); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral); }
.solution-card h3 { font-size: 18px; }
.solution-card p { flex: 1; }
.solution-card .sol-link {
  font-size: 13px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.solution-card .sol-link .arrow { color: var(--coral); }

/* ============================================================
   STATS / COUNTERS
   ============================================================ */
.stat { text-align: center; padding: 36px 20px; }
.stat .s-value {
  font-family: var(--font-en); font-size: clamp(36px, 5vw, 58px); font-weight: 700; line-height: 1.15;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .s-value .unit { font-size: 0.5em; }
.stat .s-label { font-size: 13px; color: var(--text-2); margin-top: 10px; }

/* before → after 転換表示 */
.delta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.delta .from { font-size: 15px; color: var(--text-3); text-decoration: line-through; }
.delta .to {
  font-family: var(--font-en); font-size: clamp(26px, 3vw, 40px); font-weight: 700;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.delta .arrow { color: var(--coral); font-size: 18px; }

/* badge */
.badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: rgba(240, 86, 110, 0.12); color: #c62f48; border: 1px solid rgba(240, 86, 110, 0.35);
  letter-spacing: 0.04em;
}
.badge-cool { background: rgba(13, 20, 36, 0.06); color: #16223f; border-color: var(--line-strong); }
.chip {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 12.5px;
  border: 1px solid var(--line-strong); color: var(--text-2); background: var(--surface);
}

/* ============================================================
   FLOW / STEPS
   ============================================================ */
.flow { display: grid; gap: 18px; counter-reset: flow; }
.flow-h { grid-auto-flow: column; grid-auto-columns: 1fr; }
@media (max-width: 900px) { .flow-h { grid-auto-flow: row; } }
.flow .step {
  counter-increment: flow; position: relative;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 28px 24px 26px;
  transition: transform 0.3s, border-color 0.3s;
}
.flow .step:hover { transform: translateY(-4px); border-color: rgba(240, 86, 110, 0.4); }
.flow .step::before {
  content: "0" counter(flow); font-family: var(--font-en); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; display: inline-flex; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  background: var(--grad-brand); color: #fff;
}
.flow .step h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.flow .step p { font-size: 14px; color: var(--text-2); }
.flow-h .step:not(:last-child)::after {
  content: "→"; position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
  color: var(--coral); font-size: 15px; z-index: 2;
}
@media (max-width: 900px) { .flow-h .step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -19px; transform: translateX(-50%); } }

/* vertical timeline */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(var(--coral), var(--orange), transparent); }
.timeline .t-item { position: relative; padding-bottom: 34px; }
.timeline .t-item:last-child { padding-bottom: 0; }
.timeline .t-item::before {
  content: ""; position: absolute; left: -31px; top: 8px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--coral); box-shadow: 0 0 12px rgba(240, 86, 110, 0.6);
}
.timeline h4 { font-size: 17px; font-weight: 700; }
.timeline h4 .t-num { font-family: var(--font-en); color: var(--coral); margin-right: 10px; font-size: 14px; }
.timeline p { font-size: 14px; color: var(--text-2); margin-top: 6px; }

/* ============================================================
   COMPARE (課題 vs 解決)
   ============================================================ */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }
.compare .pane { border-radius: var(--radius); padding: 34px 30px; border: 1px solid var(--line); }
.compare .pane-bad { background: rgba(13, 20, 36, 0.03); }
.compare .pane-bad h3 { color: var(--text-2); }
.compare .pane-good {
  background: linear-gradient(160deg, rgba(240, 86, 110, 0.08), rgba(245, 164, 92, 0.04));
  border-color: rgba(240, 86, 110, 0.4);
  box-shadow: 0 0 60px rgba(240, 86, 110, 0.08) inset;
}
.compare h3 { font-size: 18px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.compare ul { display: grid; gap: 12px; }
.compare li { font-size: 14px; color: var(--text-2); padding-left: 26px; position: relative; }
.pane-bad li::before { content: "×"; position: absolute; left: 0; color: var(--text-3); font-weight: 700; }
.pane-good li::before { content: "✓"; position: absolute; left: 0; background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* ============================================================
   TABLES (会社概要など)
   ============================================================ */
.def-table { width: 100%; border-collapse: collapse; }
.def-table th, .def-table td { padding: 20px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14.5px; vertical-align: top; }
.def-table th { width: 200px; color: var(--text-3); font-weight: 500; white-space: nowrap;
  font-family: var(--font-en); letter-spacing: 0.06em; }
.def-table th .jp { display: block; font-family: var(--font-jp); color: var(--text-2); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }
@media (max-width: 640px) { .def-table th { width: 110px; } }

/* ============================================================
   MEMBERS
   ============================================================ */
.member-card { text-align: left; padding: 30px 26px; }
.member-card .avatar {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden; margin-bottom: 18px;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad-brand) border-box;
}
.member-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card .role { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 6px; }
.member-card h3 { font-size: 19px; margin-bottom: 10px; }
.member-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.85; }

/* ============================================================
   LOGO WALL (取引先)
   ============================================================ */
.logo-wall { display: flex; flex-wrap: wrap; gap: 12px; }
.logo-wall .chip { font-size: 13px; padding: 10px 20px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative; padding: 120px 28px; text-align: center; overflow: hidden;
  --bg: #0d1424; --bg-2: #131c33; --text: #fff; --text-2: #fff; --text-3: #dde4ef;
  --line: rgba(255,255,255,0.12); --line-strong: rgba(255,255,255,0.2);
  --surface: rgba(255,255,255,0.04); --surface-2: rgba(255,255,255,0.07);
  background: #0d1424;
  color: var(--text);
  border-top: 1px solid rgba(255,255,255,0.09);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(240, 86, 110, 0.22), transparent 65%),
    radial-gradient(ellipse 40% 60% at 20% 0%, rgba(245, 164, 92, 0.1), transparent 60%);
}
.cta-band .container { position: relative; }
.cta-band h2 { font-size: clamp(28px, 4.4vw, 52px); font-weight: 900; line-height: 1.4; }
.cta-band h2 .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 18px; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-band .hero-actions { justify-content: center; margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line); padding: 70px 28px 36px;
  --bg: #0d1424; --bg-2: #131c33; --text: #fff; --text-2: #fff; --text-3: #dde4ef;
  --line: rgba(255,255,255,0.12); --line-strong: rgba(255,255,255,0.2);
  --surface: rgba(255,255,255,0.04); --surface-2: rgba(255,255,255,0.07);
  background: #0d1424;
  color: var(--text);
}
.footer-nl {
  max-width: 1360px; margin: 0 auto 38px; padding: 22px 26px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 14px;
  display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; justify-content: space-between;
}
.footer-nl .nl-title { font-weight: 700; font-size: 14px; }
.footer-nl .nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-nl .nl-form input[type="email"] {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.22); border-radius: 999px;
  padding: 10px 18px; color: #fff; min-width: 250px; font-size: 13.5px; font-family: inherit;
}
.footer-nl .nl-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.footer-nl .nl-note { flex-basis: 100%; font-size: 11.5px; color: rgba(255,255,255,0.55); }
.footer-nl .nl-note a { color: rgba(255,255,255,0.8); text-decoration: underline; }
.lead-thanks { padding: 18px 0; }
.footer-grid { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand img { height: 30px; }
.site-footer .f-desc { font-size: 13px; color: rgba(255,255,255,0.72); margin-top: 16px; max-width: 320px; }
.site-footer h4 { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer ul a { font-size: 13.5px; color: #fff; transition: color 0.2s; }
.site-footer ul a:hover { color: var(--coral); }
.footer-bottom { max-width: 1360px; margin: 50px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.09);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,0.65); font-family: var(--font-en); letter-spacing: 0.06em; }

/* ============================================================
   FORMS (contact)
   ============================================================ */
.form-grid { display: grid; gap: 22px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 10px; }
.form-field label .req { color: var(--coral); font-size: 11px; margin-left: 8px; border: 1px solid rgba(240,86,110,0.5);
  border-radius: 4px; padding: 1px 7px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font-jp); font-size: 15px; padding: 14px 16px; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #0d1424; opacity: 0.45; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--coral); box-shadow: 0 0 0 3px rgba(240, 86, 110, 0.15);
}
.form-field textarea { min-height: 160px; resize: vertical; }

/* ============================================================
   SCROLL REVEAL & MOTION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-36px); transition: opacity 0.6s, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal-r { opacity: 0; transform: translateX(36px); transition: opacity 0.6s, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal-l.in, .reveal-r.in { opacity: 1; transform: none; }
.reveal-3d { opacity: 0; transform: perspective(900px) rotateX(9deg) translateY(38px); transform-origin: center bottom;
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal-3d.in { opacity: 1; transform: perspective(900px) rotateX(0) translateY(0); }
/* stagger children */
[data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity 0.55s cubic-bezier(0.2,0.7,0.3,1), transform 0.55s cubic-bezier(0.2,0.7,0.3,1); }
[data-stagger].in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-l, .reveal-r, .reveal-3d, [data-stagger] > * { opacity: 1; transform: none; }
}

/* util */
.tc { text-align: center; }
.mt-0 { margin-top: 0; } .mt-20 { margin-top: 20px; } .mt-40 { margin-top: 40px; } .mt-60 { margin-top: 60px; } .mt-80 { margin-top: 80px; }
.mb-20 { margin-bottom: 20px; } .mb-40 { margin-bottom: 40px; }
.en { font-family: var(--font-en); }
.small { font-size: 13px; color: var(--text-3); }
