/* ============================================================
   製造ナビ LP — site.css
   CSP: style-src 'self' のため、全スタイルはこのファイルに集約。
   インライン style 属性・<style> ブロックは使用禁止。
   配色: 鉄紺(信頼) × セーフティオレンジ(現場・行動)
   ============================================================ */

:root {
  --navy-900: #0d1f2e;
  --navy-800: #16324a;
  --navy-700: #1e425f;
  --navy-100: #e6eef5;
  --orange-700: #a84708;
  --orange-600: #c2540f;
  --orange-500: #e8762c;
  --orange-50: #fdf2e8;
  --teal-600: #15805d;
  --ink: #1c2b36;
  --ink-2: #4f6171;
  --ink-3: #5a6d7e;
  --line: #d9e2e8;
  --bg: #ffffff;
  --bg-alt: #f4f7f9;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1080px;
  --header-h: 64px;
}

/* ---------- 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.9;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "palt";
}
h1, h2, h3, h4 { line-height: 1.45; 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;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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

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

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--orange-600);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 17px 36px;
  border-radius: 999px;
  border: 2px solid var(--orange-600);
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.btn:hover { background: var(--orange-700); border-color: var(--orange-700); }
.btn:active { transform: translateY(1px); }
.btn--lg { font-size: 17px; padding: 19px 44px; }
.btn--sm { font-size: 14px; padding: 14px 24px; }
.btn--ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn--ghost:hover { background: var(--navy-100); border-color: var(--navy-800); }

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.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(--ink);
}
.brand-logo { width: 30px; height: 30px; }
.brand-name { font-size: 19px; 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: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.gnav a:hover { color: var(--navy-800); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy-800); color: #fff; }
.section--accent { background: var(--orange-50); }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange-700);
  margin-bottom: 12px;
}
.section--dark .sec-label { color: #f3a06a; }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
.sec-lead { margin-top: 16px; font-size: 15.5px; color: var(--ink-2); }
.section--dark .sec-lead { color: #c3d2de; }

/* ---------- hero ---------- */
.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--navy-100);
  color: var(--navy-800);
  border: 1px solid #c6d6e4;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-catch {
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.hero-catch em { font-style: normal; color: var(--orange-600); }
.hero-sub {
  margin-top: 20px;
  font-size: clamp(15px, 2vw, 17px);
  color: var(--ink-2);
}
.hero-note { margin-top: 10px; font-size: 12px; color: var(--ink-3); text-align: right; }

/* ---------- dashboard mock ---------- */
.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(13, 31, 46, 0.25);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--navy-800);
}
.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-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: 21px; font-weight: 800; color: var(--navy-800); line-height: 1.3; }
.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); }
.kpi-delta--warn { color: var(--orange-700); }
.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; }

/* ---------- persona tags ---------- */
.tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  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); }

/* ---------- pain ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pain-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.pain-card h3 { font-size: 17px; font-weight: 800; margin: 14px 0 10px; }
.pain-card p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- value chain ---------- */
.chain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}
.chain-step {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.chain-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -32px;
  width: 20px;
  height: 20px;
  border-top: 3px solid var(--orange-500);
  border-right: 3px solid var(--orange-500);
  transform: translateY(-50%) rotate(45deg);
}
.chain-actor { font-size: 13px; font-weight: 700; color: #f3a06a; }
.chain-value { font-size: 20px; font-weight: 800; color: #fff; margin: 10px 0 12px; }
.chain-step p { font-size: 14.5px; color: #c3d2de; }

/* ---------- features ---------- */
.feature-group { margin-top: clamp(44px, 6vw, 64px); }
.feature-group:first-of-type { margin-top: 0; }
.fg-head { margin-bottom: 22px; }
.fg-head h3 {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  margin-left: 12px;
  vertical-align: middle;
}
.fg-intro { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.section--alt .feature-card { background: #fff; }
.feature-card h4 {
  font-size: 16px;
  font-weight: 800;
  padding-left: 18px;
  position: relative;
}
.feature-card h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--orange-500);
}
.feature-card p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* ---------- flow ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.flow-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.flow-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.flow-step h3 { font-size: 17px; font-weight: 800; margin: 16px 0 10px; }
.flow-step p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.story-body { font-size: 15.5px; color: var(--ink-2); margin-top: 18px; }
.story-points { display: grid; gap: 14px; }
.story-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14.5px;
  font-weight: 600;
}
.check {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--teal-600);
}

/* ---------- early access ---------- */
.early-box { max-width: 760px; margin: 0 auto; text-align: center; }
.early-body { margin-top: 16px; font-size: 15.5px; color: var(--ink-2); }
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 8px;
  text-align: left;
}
.benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #f0ddc8;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 600;
}
.early-box .cta-row { justify-content: center; }
.email-alt { margin-top: 18px; font-size: 13.5px; color: var(--ink-2); }
.email-alt a { font-weight: 700; color: var(--navy-800); }

/* ---------- faq ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  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: 10px;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  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.2s;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-a {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ---------- final cta ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
.final p { margin-top: 16px; font-size: 15.5px; color: #c3d2de; }
.final .cta-row { justify-content: center; margin-top: 32px; }
.final .cta-note { color: #9fb3c2; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #9fb3c2;
  padding: 48px 0 36px;
  font-size: 13.5px;
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid #243d52;
}
.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: #9fb3c2; text-decoration: none; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-note { margin-top: 22px; font-size: 12px; color: #768899; }
.foot-copy { margin-top: 14px; font-size: 12px; }

/* ---------- fit (対象宣言) ---------- */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
}
.fit-card--no { background: var(--bg-alt); }
.fit-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 12px; }
.fit-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 5px 0;
}
.fit-card--no p { font-size: 14.5px; color: var(--ink-2); }
.dash { flex: none; color: var(--ink-3); font-weight: 700; }

/* ---------- loop (価値の循環) ---------- */
.loop {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}
.loop-step {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.loop-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -23px;
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--orange-500);
  border-right: 3px solid var(--orange-500);
  transform: translateY(-50%) rotate(45deg);
}
.loop-num { font-size: 12px; font-weight: 700; color: #f3a06a; }
.loop-step h3 { font-size: 15px; font-weight: 700; color: #fff; margin: 8px 0; }
.loop-step p { font-size: 13px; color: #c3d2de; }
.loop-return { margin-top: 28px; text-align: center; font-size: 15px; color: #c3d2de; }
.loop-return strong { color: #fff; }

/* ---------- scope (やらないこと宣言) ---------- */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.scope-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.scope-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.scope-card p { font-size: 14px; color: var(--ink-2); }
.scope-note {
  margin-top: 28px;
  text-align: center;
  font-size: 15.5px;
  font-weight: 700;
}

/* ---------- compare (現状との比較) ---------- */
.compare-box { max-width: 760px; margin: 0 auto; }
.compare-list { display: grid; gap: 12px; margin-top: 24px; }
.compare-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14.5px;
}
.cross { flex: none; width: 20px; color: var(--coral, #993c1d); font-weight: 800; }
.compare-note { margin-top: 22px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- calc (見えない出金計算機) ---------- */
.calc-box { max-width: 760px; margin: 0 auto; text-align: center; }
.calc-rows { margin-top: 26px; display: grid; gap: 12px; text-align: left; }
.calc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14.5px;
  font-weight: 600;
}
.calc-row label { font-weight: 700; 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: var(--bg-alt);
}
.calc-row input:focus { outline: 3px solid var(--orange-500); outline-offset: 1px; }
.calc-row output { font-weight: 800; color: var(--navy-800); margin-left: auto; }
.calc-total { margin-top: 18px; font-size: 17px; font-weight: 800; }
.calc-total output { color: var(--orange-700); font-size: 22px; }
.calc-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- owner note (経営者ブロック) ---------- */
.owner-note {
  margin-top: clamp(44px, 6vw, 64px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.owner-note p { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- legal pages (privacy / 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: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-note { text-align: left; }
  .chain { grid-template-columns: 1fr; gap: 40px; max-width: 560px; margin: 0 auto; }
  .chain-step:not(:last-child)::after {
    top: auto;
    bottom: -30px;
    right: 50%;
    transform: translateX(50%) rotate(135deg);
  }
  .loop { grid-template-columns: 1fr; gap: 36px; max-width: 560px; margin: 0 auto; }
  .loop-step:not(:last-child)::after {
    top: auto;
    bottom: -28px;
    right: 50%;
    transform: translateX(50%) rotate(135deg);
  }
  .story-grid { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .scope-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .gnav { display: none; }
  .pain-grid, .feature-grid, .flow-grid, .benefits { grid-template-columns: 1fr; }
  .pain-card, .flow-step { padding: 24px 22px; }
}
@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; }
}
