/* ============================================================
   ローカルAIナビ LP — site.css (v2 全面リデザイン)
   CSP: style-src 'self' のため、全スタイルはこのファイルに集約。
   インライン style 属性・<style> ブロックは使用禁止。
   配色: 鉄紺(信頼) × セーフティオレンジ(現場・行動)
   アニメーション: motion.js(IntersectionObserver)+ CSS keyframes。
   prefers-reduced-motion で全停止。JS無効時も全要素可視(html.js 前提)。
   ============================================================ */

:root {
  --navy-950: #060f18;
  --navy-900: #0b1c2b;
  --navy-800: #16324a;
  --navy-700: #1e425f;
  --navy-600: #2a5578;
  --navy-100: #e6eef5;
  --orange-700: #a84708;
  --orange-600: #c2540f;
  --orange-500: #e8762c;
  --orange-400: #f5a623;
  --orange-50: #fdf2e8;
  --teal-600: #15805d;
  --teal-400: #2dd4a7;
  --ink: #1c2b36;
  --ink-2: #4f6171;
  --ink-3: #5a6d7e;
  --line: #dde5eb;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --mint-50: #eefaf5;
  --mint-100: #ddf4ea;
  --mint-200: #bfe9d9;
  --sky-50: #f3f8fc;
  --grad-accent: linear-gradient(92deg, var(--orange-500), var(--orange-400));
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
  --header-h: 66px;
  --shadow-card: 0 2px 6px rgba(11, 28, 43, 0.04), 0 12px 32px -12px rgba(11, 28, 43, 0.1);
  --shadow-lift: 0 4px 10px rgba(11, 28, 43, 0.06), 0 24px 48px -16px rgba(11, 28, 43, 0.18);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic UI", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "palt";
  overflow-x: hidden;
}
h1, h2, h3, h4 { line-height: 1.4; margin: 0; }
p { margin: 0; }
a { color: var(--navy-800); }
img, svg { vertical-align: middle; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

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

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--grad-accent);
  z-index: 120;
  pointer-events: none;
}

/* ---------- scroll reveal (JS有効時のみ隠す) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
html.js .reveal.is-in { opacity: 1; transform: none; }
/* グリッド子要素の時間差 */
html.js .stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
html.js .stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
html.js .stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
html.js .stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
html.js .stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-block;
  background: var(--grad-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 18px 38px;
  border-radius: 999px;
  border: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px -8px rgba(232, 118, 44, 0.55);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(232, 118, 44, 0.65); }
.btn:hover::after { left: 120%; }
.btn:active { transform: translateY(0); }
.btn--lg { font-size: 17px; padding: 20px 46px; }
.btn--sm { font-size: 14px; padding: 14px 26px; }
.btn--ghost {
  background: transparent;
  color: var(--navy-800);
  border: 2px solid var(--navy-800);
  box-shadow: none;
}
.btn--ghost::after { display: none; }
.btn--ghost:hover { background: var(--navy-100); box-shadow: none; }
.btn--ghost-light {
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy-800);
  border: 1.5px solid var(--navy-600);
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.btn--ghost-light::after { display: none; }
.btn--ghost-light:hover { background: var(--navy-100); border-color: var(--navy-800); box-shadow: none; }
/* ヒーロー主CTAのパルス */
.btn--pulse::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid rgba(245, 166, 35, 0.7);
  animation: pulse-ring 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0%   { opacity: 0.9; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.14); }
  100% { opacity: 0;   transform: scale(1.14); }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 30px;
}
.cta-note { font-size: 13px; color: var(--ink-2); margin-top: 14px; }

/* ---------- header(白ガラス: 明=安心の色設計) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px -14px rgba(11, 28, 43, 0.18);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-900);
}
.brand-logo { width: 30px; height: 30px; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: 0.02em; }
.brand-sub { font-size: 11px; color: var(--ink-3); font-weight: 600; margin-left: 2px; }
.gnav { display: flex; gap: 26px; }
.gnav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.2s;
}
.gnav a:hover { color: var(--navy-900); }
.header-inner .btn--sm { box-shadow: none; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 116px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(232, 118, 44, 0.14), transparent 60%),
    radial-gradient(700px 420px at 8% 110%, rgba(45, 212, 167, 0.08), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #fff;
}
/* 明=安心(ポジティブな仕組み・CTAはミント基調の明るい背景) */
.section--safe {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(232, 118, 44, 0.08), transparent 60%),
    linear-gradient(180deg, var(--mint-50), #fff);
}
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.sec-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 60px); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--orange-600);
  margin-bottom: 14px;
}
.sec-label::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}
.sec-head--center .sec-label::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}
.section--dark .sec-label { color: var(--orange-400); }
.sec-head h2 {
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.sec-lead { margin-top: 16px; font-size: 15.5px; color: var(--ink-2); }
.section--dark .sec-lead { color: #b9cad8; }

.scope-note {
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}
.section--dark .scope-note { color: #8fa7ba; }

/* ---------- 図版(生成イラスト) ---------- */
.figure { margin: 0 0 44px; text-align: center; }
.figure img {
  display: block;
  width: 100%;
  max-width: 880px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: var(--bg);
}
.figure figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-3);
}
/* ---------- 比較テーブル(普通のAIとの違い) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%;
  min-width: 660px;
  max-width: 960px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.compare th, .compare td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
.compare thead th { border-top: 0; }
.compare thead th {
  background: var(--bg-alt);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.compare thead th span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  margin-top: 2px;
}
.compare thead th.is-local {
  background: var(--teal-600);
  color: #fff;
  border-bottom: 3px solid var(--orange-500);
}
.compare thead th.is-local span { color: #d7f7eb; }
.compare tbody th {
  width: 24%;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--bg-alt);
}
.compare tbody td { width: 38%; color: var(--ink-2); }
.compare tbody td.is-local {
  background: var(--orange-50);
  color: var(--ink);
}
.compare tbody td.is-local strong { color: var(--orange-700); }
.table-hint {
  display: none;
  text-align: right;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 8px;
}
@media (max-width: 700px) {
  .table-hint { display: block; }
}
.compare-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   HERO(ライト: 明=安心の色設計)
   ============================================================ */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(72px, 9vw, 120px);
  background:
    radial-gradient(1100px 620px at 78% 4%, rgba(232, 118, 44, 0.1), transparent 58%),
    radial-gradient(820px 520px at 4% 92%, rgba(45, 212, 167, 0.12), transparent 60%),
    linear-gradient(168deg, #ffffff 0%, var(--sky-50) 55%, var(--mint-50) 100%);
  color: var(--ink);
  overflow: hidden;
}
/* 罫線グリッド(工場図面のメタファ) */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 50, 74, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 50, 74, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(85% 90% at 55% 30%, #000 30%, transparent 100%);
  mask-image: radial-gradient(85% 90% at 55% 30%, #000 30%, transparent 100%);
  animation: grid-drift 26s linear infinite;
  pointer-events: none;
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 56px 56px, 56px 56px; }
}
/* 浮遊パーティクル */
.fx { position: absolute; inset: 0; pointer-events: none; }
.fx span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-400);
  opacity: 0.35;
  animation: floaty 9s ease-in-out infinite;
}
.fx .p1 { top: 18%; left: 8%;  animation-delay: 0s;   transform: scale(0.7); }
.fx .p2 { top: 66%; left: 14%; animation-delay: -2s;  background: var(--teal-400); transform: scale(0.5); }
.fx .p3 { top: 30%; left: 46%; animation-delay: -4s;  transform: scale(0.45); }
.fx .p4 { top: 12%; left: 78%; animation-delay: -1s;  background: #7fb4d8; transform: scale(0.6); }
.fx .p5 { top: 78%; left: 68%; animation-delay: -5s;  transform: scale(0.85); }
.fx .p6 { top: 52%; left: 92%; animation-delay: -3s;  background: var(--teal-400); transform: scale(0.5); }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -22px; }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
  backdrop-filter: blur(4px);
}
.hero-badge .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 0 rgba(45, 212, 167, 0.6);
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45, 212, 167, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(45, 212, 167, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 167, 0); }
}
.hero-catch {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.32;
  color: var(--navy-900);
}
.hero-catch em {
  font-style: normal;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(15px, 1.9vw, 17px);
  color: var(--ink-2);
  max-width: 34em;
}
.hero .cta-note { color: var(--ink-3); }
/* 資格チップ */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 26px;
}
.trust-chips li {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
}
.hero-note { margin-top: 12px; font-size: 12px; color: var(--ink-3); text-align: right; }

/* ---------- dashboard mock ---------- */
.mock-wrap { position: relative; }
.mock {
  position: relative;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 40px 90px -30px rgba(11, 28, 43, 0.3);
  overflow: hidden;
  animation: mock-float 7s ease-in-out infinite;
}
@keyframes mock-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--navy-900);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #3d5b76; }
.mock-bar-title {
  margin-left: 8px;
  font-size: 11.5px;
  color: #b9cad8;
  font-weight: 600;
}
.mock-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--teal-400);
}
.mock-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-400);
  animation: live-pulse 2s ease-out infinite;
}
.mock-body { padding: 16px; }
.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kpi {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.kpi-label { font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.kpi-value { font-size: 22px; font-weight: 800; color: var(--navy-800); line-height: 1.3; font-variant-numeric: tabular-nums; }
.kpi-unit { font-size: 11px; font-weight: 600; color: var(--ink-2); }
.kpi-delta { font-size: 10.5px; font-weight: 700; color: var(--teal-600); }
.mock-sec-title {
  margin: 14px 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
}
.mock-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.lane { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 8px; }
.lane-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-2);
  padding: 2px 4px 6px;
}
.lane-count {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  padding: 0 7px;
  color: var(--ink-2);
}
.mcard {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy-700);
  border-radius: 8px;
  padding: 7px 9px;
  margin-bottom: 7px;
}
.mcard:last-child { margin-bottom: 0; }
.mcard--orange { border-left-color: var(--orange-500); }
.mcard--teal { border-left-color: var(--teal-600); }
.mcard-t { font-size: 11.5px; font-weight: 700; line-height: 1.4; }
.mcard-m { font-size: 10.5px; color: var(--ink-3); line-height: 1.5; }

/* ============================================================
   TICKER(活用例マーキー)
   ============================================================ */
.ticker {
  background: var(--mint-50);
  border-top: 1px solid var(--mint-200);
  border-bottom: 1px solid var(--mint-200);
  padding: 15px 0;
  overflow: hidden;
  position: relative;
}
.ticker::before, .ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--mint-50), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--mint-50), transparent); }
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-track ul { display: flex; align-items: center; gap: 0; }
.ticker-track li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  padding: 0 26px;
}
.ticker-track li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--orange-500);
  rotate: 45deg;
}
.ticker-track li.hl { color: var(--teal-600); }

/* ============================================================
   STATS(カウンター)
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.stat {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-accent);
}
.stat-num-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--navy-800);
}
.stat-num {
  font-size: clamp(44px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.stat-unit { font-size: 22px; font-weight: 800; }
.stat-title { margin-top: 10px; font-size: 15.5px; font-weight: 800; }
.stat-desc { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
/* バー */
.stat-bar {
  margin-top: 18px;
  height: 6px;
  background: var(--navy-100);
  border-radius: 999px;
  overflow: hidden;
}
.stat-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-accent);
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.stat.is-in .stat-bar i.w20 { width: 20.4%; }
.stat.is-in .stat-bar i.w35 { width: 34.9%; }
.stat.is-in .stat-bar i.w65 { width: 64.9%; }
html:not(.js) .stat-bar i.w20 { width: 20.4%; }
html:not(.js) .stat-bar i.w35 { width: 34.9%; }
html:not(.js) .stat-bar i.w65 { width: 64.9%; }

/* ============================================================
   PAIN
   ============================================================ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pain-card {
  position: relative;
  background: #fff;
  color: var(--ink); /* ダークセクションの白文字を継承させない */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
}
.pain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: #c9d6e0;
}
.pain-card h3 { font-size: 18px; font-weight: 800; margin: 16px 0 10px; }
.pain-card p { font-size: 14px; color: var(--ink-2); }
.tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  line-height: 1.6;
}
.tag--genba { background: var(--orange-50); color: var(--orange-700); }
.tag--kanri { background: var(--navy-100); color: var(--navy-800); }
.tag--keiei { background: #e2f3ec; color: var(--teal-600); }

/* ============================================================
   FIT(対象)
   ============================================================ */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.fit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow-card);
}
.fit-card--no { background: var(--bg-alt); box-shadow: none; }
.fit-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.fit-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 6px 0;
}
.fit-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.check {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--teal-600);
}
.cross {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--ink-3);
}

/* ============================================================
   VALUE(仕組み・ライト: 明=安心)
   ============================================================ */
.chain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.chain-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, background 0.3s;
}
.chain-step:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 118, 44, 0.55);
}
.chain-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -34px;
  width: 20px;
  height: 20px;
  border-top: 3px solid var(--orange-500);
  border-right: 3px solid var(--orange-500);
  transform: translateY(-50%) rotate(45deg);
  animation: arrow-nudge 1.8s ease-in-out infinite;
}
@keyframes arrow-nudge {
  0%, 100% { margin-right: 0;    opacity: 0.65; }
  50%      { margin-right: -7px; opacity: 1; }
}
.chain-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-accent);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 8px 20px -6px rgba(232, 118, 44, 0.6);
}
.chain-step p.chain-value { font-size: 20px; font-weight: 800; color: var(--navy-800); margin: 16px 0 10px; }
.chain-step p { font-size: 14px; color: var(--ink-2); }
.loop-return {
  margin-top: 40px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-2);
}
.loop-return strong { color: var(--navy-800); }
/* セキュリティ帯 */
.secure-band {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
}
.secure-band li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-600);
  background: rgba(45, 212, 167, 0.1);
  border: 1px solid rgba(45, 212, 167, 0.35);
  border-radius: 999px;
  padding: 8px 18px;
}
.secure-band .check { width: 17px; height: 17px; margin-top: 0; color: var(--teal-600); }

/* ============================================================
   FEATURES(活用例・サービス)
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: #c9d6e0;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--orange-50);
  color: var(--orange-600);
  margin-bottom: 14px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h4 { font-size: 16.5px; font-weight: 800; }
.feature-card p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* ---------- サービス(価格) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--navy-100);
  transition: background 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.service-card:hover::before { background: var(--grad-accent); }
.service-card--main { border-color: var(--orange-500); }
.service-card--main::before { background: var(--grad-accent); }
.service-step {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--orange-600);
}
.service-card h4 { font-size: 17px; font-weight: 800; margin-top: 6px; }
.service-card p { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); flex: 1; }
.service-price {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 600;
}
.service-price strong {
  display: block;
  font-size: 21px;
  font-weight: 800;
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
}
.service-price strong span { font-size: 13px; font-weight: 700; }
.service-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  background: var(--grad-accent);
  border-radius: 999px;
  padding: 3px 11px;
}

/* ============================================================
   CALC
   ============================================================ */
.calc-panel {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lift);
  padding: clamp(32px, 5vw, 52px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.calc-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--grad-accent);
}
.calc-panel h2 { font-size: clamp(23px, 3.2vw, 30px); font-weight: 800; }
.calc-lead { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.calc-rows { margin-top: 28px; display: grid; gap: 12px; text-align: left; }
.calc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14.5px;
  font-weight: 600;
}
.calc-row label { font-weight: 800; margin-right: 4px; }
.calc-row input {
  width: 84px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.calc-row input:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(232, 118, 44, 0.18);
}
.calc-row output { font-weight: 800; color: var(--navy-800); margin-left: auto; font-variant-numeric: tabular-nums; }
.calc-total { margin-top: 22px; font-size: 17px; font-weight: 800; }
.calc-total output {
  display: inline-block;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(26px, 3.4vw, 34px);
  font-variant-numeric: tabular-nums;
}
.calc-note { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }
.calc-panel .cta-row { justify-content: center; }

/* ============================================================
   WHY(選ばれる理由 + 誠実ボックス)
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.why-card .feature-icon { background: var(--navy-100); color: var(--navy-800); }
.why-card h3 { font-size: 15.5px; font-weight: 800; }
.why-card p { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
/* 誠実ボックス */
.honest-box {
  margin-top: 34px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  box-shadow: var(--shadow-lift);
}
.honest-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--orange-50);
  color: var(--orange-600);
  font-size: 25px;
  font-weight: 900;
}
.honest-box h3 { font-size: 19px; font-weight: 800; }
.honest-box p { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
.honest-box strong { color: var(--navy-800); }

/* ============================================================
   FLOW
   ============================================================ */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: flow;
}
.flow-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.flow-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.flow-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}
.flow-time {
  position: absolute;
  top: 26px;
  right: 24px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--orange-600);
  background: var(--orange-50);
  border-radius: 999px;
  padding: 4px 12px;
}
.flow-step h3 { font-size: 17.5px; font-weight: 800; margin: 18px 0 10px; }
.flow-step p { font-size: 14px; color: var(--ink-2); }

/* ============================================================
   EARLY(無料相談・アクセント)
   ============================================================ */
.section--accent {
  background:
    radial-gradient(720px 380px at 90% 0%, rgba(232, 118, 44, 0.12), transparent 60%),
    var(--orange-50);
}
.early-box { max-width: 800px; margin: 0 auto; text-align: center; }
.early-box h2 { font-size: clamp(25px, 3.4vw, 33px); font-weight: 800; }
.early-body { margin-top: 14px; font-size: 15.5px; color: var(--ink-2); }
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 30px 0 4px;
  text-align: left;
}
.benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #f0ddc8;
  border-radius: var(--radius);
  padding: 18px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}
.early-box .cta-row { justify-content: center; }
.email-alt { margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.email-alt a { font-weight: 700; color: var(--navy-800); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq:hover { border-color: #c9d6e0; }
.faq[open] { border-color: var(--orange-500); box-shadow: var(--shadow-card); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 56px 19px 24px;
  font-size: 15.5px;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  color: var(--orange-600);
  font-weight: 800;
  margin-right: 12px;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--ink-3);
  border-bottom: 2.5px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(225deg); border-color: var(--orange-600); }
.faq-a {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { text-align: center; position: relative; overflow: hidden; }
.final h2 { font-size: clamp(26px, 3.8vw, 38px); font-weight: 900; line-height: 1.4; }
.final p { margin-top: 18px; font-size: 15.5px; color: var(--ink-2); }
.final .cta-row { justify-content: center; margin-top: 34px; }
.final .cta-note { color: var(--ink-3); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-950);
  color: #8fa7ba;
  padding: 52px 0 40px;
  font-size: 13.5px;
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: #8fa7ba; text-decoration: none; transition: color 0.2s; }
.foot-links a:hover { color: #fff; }
.foot-note { margin-top: 22px; font-size: 12px; color: #647a8c; }
.foot-copy { margin-top: 14px; font-size: 12px; }

/* ============================================================
   LEGAL / 404
   ============================================================ */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; }
.legal h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.legal-date { font-size: 13px; color: var(--ink-3); margin-bottom: 36px; }
.legal h2 { font-size: 18px; font-weight: 800; margin: 36px 0 12px; }
.legal p, .legal li { font-size: 14.5px; color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--navy-800); font-weight: 600; }
.notfound { text-align: center; padding: 96px 24px 120px; }
.notfound h1 { font-size: 64px; font-weight: 800; color: var(--navy-800); line-height: 1.2; }
.notfound p { margin: 12px 0 32px; color: var(--ink-2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-note { text-align: left; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .chain { grid-template-columns: 1fr; gap: 44px; max-width: 560px; margin: 0 auto; }
  .chain-step:not(:last-child)::after {
    top: auto;
    bottom: -32px;
    right: 50%;
    transform: translateX(50%) rotate(135deg);
    animation: arrow-nudge-v 1.8s ease-in-out infinite;
  }
  .fit-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}
@keyframes arrow-nudge-v {
  0%, 100% { margin-bottom: 0;    opacity: 0.65; }
  50%      { margin-bottom: -7px; opacity: 1; }
}
@media (max-width: 820px) {
  .gnav { display: none; }
  .pain-grid, .feature-grid, .service-grid, .flow-grid, .benefits { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .honest-box { grid-template-columns: 1fr; }
  .pain-card, .flow-step { padding: 26px 24px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .btn--lg { width: 100%; text-align: center; }
  .mock-kpis, .mock-board { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .kpi-value { font-size: 16px; }
  .brand-sub { display: none; }
  .trust-chips li { font-size: 11.5px; }
}

/* ============================================================
   REDUCED MOTION(必ず最後: 全アニメーション停止)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .stat .stat-bar i.w20 { width: 20.4%; }
  .stat .stat-bar i.w35 { width: 34.9%; }
  .stat .stat-bar i.w65 { width: 64.9%; }
  .ticker-track { animation: none !important; }
}
