/* ============================================================
   SCS対応支援サイト — style.css
   ============================================================ */

/* --- 1. リセット ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }

/* --- 2. デザイントークン ------------------------------------ */
:root {
  /* Colors */
  --c-bg:         #ffffff;
  --c-surface:    #f8f9fa;
  --c-surface2:   #e9ecef;
  --c-border:     #dee2e6;
  --c-text:       #212529;
  --c-text-muted: #6c757d;
  --c-primary:    #1565c0;
  --c-primary-bg: #e3f2fd;
  --c-accent:     #ef6c00;
  --c-accent-bg:  #fff3e0;
  --c-success:    #2e7d32;
  --c-success-bg: #e8f5e9;
  --c-danger:     #c62828;
  --c-danger-bg:  #ffcdd2;
  --c-warning:    #f9a825;
  --c-warning-bg: #fff9c4;
  --c-info:       #0277bd;
  --c-info-bg:    #e1f5fe;

  /* Typography */
  --ff-body:    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", sans-serif;
  --ff-mono:    "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  --fs-base:    16px;
  --fs-sm:      0.875rem;
  --fs-xs:      0.75rem;
  --fs-lg:      1.125rem;
  --fs-xl:      1.5rem;
  --fs-2xl:     2rem;
  --fs-3xl:     2.5rem;
  --lh:         1.7;

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;

  /* Layout */
  --nav-width:    260px;
  --header-h:     60px;
  --content-max:  860px;
  --radius:       8px;
  --radius-sm:    4px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 2px 8px rgba(0,0,0,.12);
}

/* --- 3. ベーススタイル ------------------------------------- */
body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-md);
}
h1 { font-size: var(--fs-3xl); margin-top: 0; }
h2 { font-size: var(--fs-2xl); border-bottom: 2px solid var(--c-primary); padding-bottom: var(--sp-sm); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin-bottom: var(--sp-md); }

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin-bottom: var(--sp-md); padding-left: var(--sp-xl); }
li { margin-bottom: var(--sp-xs); }
li > ul, li > ol { margin-top: var(--sp-xs); margin-bottom: 0; }

strong { font-weight: 700; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sp-lg);
  font-size: var(--fs-sm);
}
th, td {
  border: 1px solid var(--c-border);
  padding: var(--sp-sm) var(--sp-md);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--c-surface);
  font-weight: 700;
  white-space: nowrap;
}

code {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  background: var(--c-surface);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}
pre {
  background: var(--c-surface);
  padding: var(--sp-md);
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: var(--sp-lg);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
pre code {
  background: none;
  padding: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-2xl) 0;
}

/* --- 4. レイアウト ------------------------------------------ */
/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 var(--sp-lg);
  box-shadow: var(--shadow-md);
}
.site-header a { color: #fff; }
.site-header a:hover { text-decoration: none; opacity: .85; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.site-title {
  font-size: var(--fs-lg);
  font-weight: 700;
}
.header-links {
  display: flex;
  gap: var(--sp-lg);
  font-size: var(--fs-sm);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--sp-xs);
}

/* Grid: nav + main */
.page-grid {
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-h));
}

/* Side navigation */
.side-nav {
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
  padding: var(--sp-lg) 0;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.side-nav > ul > li { margin-bottom: var(--sp-xs); }
.nav-section-title {
  display: block;
  padding: var(--sp-sm) var(--sp-lg);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-text-muted);
}
.side-nav a {
  display: block;
  padding: var(--sp-xs) var(--sp-lg) var(--sp-xs) var(--sp-xl);
  color: var(--c-text);
  font-size: var(--fs-sm);
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s;
}
.side-nav a:hover {
  background: var(--c-surface2);
  text-decoration: none;
}
.side-nav a[aria-current="page"] {
  background: var(--c-primary-bg);
  border-left-color: var(--c-primary);
  font-weight: 700;
  color: var(--c-primary);
}

/* Main content */
.main-content {
  padding: var(--sp-2xl) var(--sp-2xl) var(--sp-3xl);
  max-width: var(--content-max);
  min-width: 0;
}

/* Footer */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: var(--sp-xl) var(--sp-lg);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

/* --- 5. コンポーネント --------------------------------------- */

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}
.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card h3 {
  font-size: var(--fs-lg);
  margin-top: 0;
  margin-bottom: var(--sp-sm);
  color: var(--c-primary);
}
.card p { font-size: var(--fs-sm); margin-bottom: var(--sp-sm); }
.card a { font-weight: 600; }

/* Link cards */
.link-card {
  display: block;
  background: var(--c-primary-bg);
  border: 1px solid var(--c-primary);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  transition: box-shadow .2s;
  color: var(--c-text);
}
.link-card:hover {
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.link-card strong { color: var(--c-primary); display: block; margin-bottom: var(--sp-xs); font-size: var(--fs-lg); }
.link-card span { font-size: var(--fs-sm); color: var(--c-text-muted); }

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--sp-xl);
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  padding-bottom: var(--sp-xl);
  border-left: 2px solid var(--c-border);
  margin-left: 1rem;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -0.9rem;
  top: 0;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  font-size: var(--fs-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps > li h3,
.steps > li strong:first-child {
  margin-top: 0;
  font-size: var(--fs-base);
}

/* Badges */
.badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  vertical-align: middle;
}
.badge-success { background: var(--c-success-bg); color: var(--c-success); }
.badge-warning { background: var(--c-warning-bg); color: #7b6b00; }
.badge-danger  { background: var(--c-danger-bg);  color: var(--c-danger); }
.badge-info    { background: var(--c-info-bg);    color: var(--c-info); }
.badge-note    { background: var(--c-surface2);   color: var(--c-text-muted); }
.badge-caution { background: var(--c-accent-bg);  color: var(--c-accent); }

/* Tabs */
.tabs { margin-bottom: var(--sp-xl); }
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 2px solid var(--c-border);
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}
.tab-list [role="tab"] {
  padding: var(--sp-sm) var(--sp-md);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-muted);
  transition: background .15s, color .15s;
}
.tab-list [role="tab"]:hover {
  background: var(--c-surface2);
}
.tab-list [role="tab"][aria-selected="true"] {
  background: var(--c-bg);
  color: var(--c-primary);
  border-bottom: 2px solid var(--c-bg);
  margin-bottom: -2px;
}
.tab-panel {
  display: none;
  padding: var(--sp-lg) 0;
}
.tab-panel.active {
  display: block;
}

/* Callout / admonition */
.callout {
  border-radius: var(--radius);
  padding: var(--sp-md) var(--sp-lg);
  margin-bottom: var(--sp-lg);
  border-left: 4px solid;
  font-size: var(--fs-sm);
}
.callout-title {
  font-weight: 700;
  margin-bottom: var(--sp-xs);
}
.callout-tip    { background: var(--c-success-bg); border-color: var(--c-success); }
.callout-note   { background: var(--c-info-bg);    border-color: var(--c-info); }
.callout-caution{ background: var(--c-accent-bg);  border-color: var(--c-accent); }
.callout-danger { background: var(--c-danger-bg);  border-color: var(--c-danger); }

/* File tree */
.file-tree {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  line-height: 1.8;
  margin-bottom: var(--sp-lg);
  overflow-x: auto;
}
.file-tree ul { list-style: none; padding-left: 1.5em; margin: 0; }
.file-tree > ul { padding-left: 0; }
.file-tree li { position: relative; }
.file-tree li::before {
  content: "";
  position: absolute;
  left: -1em;
  top: 0;
  border-left: 1px solid var(--c-text-muted);
  height: 100%;
}
.file-tree li::after {
  content: "";
  position: absolute;
  left: -1em;
  top: .85em;
  width: .7em;
  border-bottom: 1px solid var(--c-text-muted);
}
.file-tree li:last-child::before { height: .85em; }
.file-tree .folder { font-weight: 700; }
.file-tree .desc { color: var(--c-text-muted); font-style: italic; font-family: var(--ff-body); }

/* Data cards (for statistic display) */
.data-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}
.data-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.data-card .number {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--c-danger);
  display: block;
}
.data-card .label {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-top: var(--sp-sm);
  display: block;
}
.data-card .detail {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-top: var(--sp-xs);
}

/* --- 6. インフォグラフィック --------------------------------- */

/* Horizontal flow (★1→★5, three-layer model, 5-step flow) */
.flow-horizontal {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-xl);
  overflow-x: auto;
  padding: var(--sp-md) 0;
}
.flow-node {
  flex: 1;
  min-width: 120px;
  padding: var(--sp-md);
  border-radius: var(--radius);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  border: 2px solid;
  position: relative;
}
.flow-node .node-title { font-weight: 700; margin-bottom: var(--sp-xs); }
.flow-node .node-desc { font-weight: 400; font-size: var(--fs-xs); }
.flow-arrow {
  flex: 0 0 40px;
  text-align: center;
  font-size: var(--fs-xl);
  color: var(--c-text-muted);
  line-height: 1;
}

/* Color variants for flow nodes */
.flow-node-green  { background: var(--c-success-bg); border-color: var(--c-success); color: var(--c-success); }
.flow-node-blue   { background: var(--c-primary-bg); border-color: var(--c-primary); color: var(--c-primary); }
.flow-node-blue2  { background: #bbdefb;             border-color: var(--c-primary); color: var(--c-primary); }
.flow-node-orange { background: var(--c-accent-bg);  border-color: var(--c-accent);  color: var(--c-accent); }
.flow-node-red    { background: var(--c-danger-bg);   border-color: var(--c-danger);  color: var(--c-danger); }
.flow-node-gray   { background: var(--c-surface2);   border-color: var(--c-text-muted); color: var(--c-text-muted); }

/* Chain diagram (supply chain risk) */
.chain-diagram {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  grid-template-rows: auto auto;
  gap: var(--sp-md);
  align-items: center;
  justify-items: center;
  margin-bottom: var(--sp-xl);
  padding: var(--sp-lg);
}
.chain-node {
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--radius);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  border: 2px solid;
  min-width: 120px;
}
.chain-arrow {
  font-size: var(--fs-xl);
  color: var(--c-text-muted);
}

/* Timeline (vertical) */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--sp-xl);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--c-primary);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--sp-xl);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.65rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--c-primary);
  border-radius: 50%;
  border: 2px solid var(--c-bg);
}
.timeline-item.done::before { background: var(--c-success); }
.timeline-item.active::before {
  background: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-bg);
}
.timeline-item.future::before { background: var(--c-text-muted); }
.timeline-date {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-xs);
}
.timeline-title {
  font-weight: 700;
  margin-bottom: var(--sp-xs);
}
.timeline-status {
  font-size: var(--fs-xs);
  display: inline-block;
  margin-left: var(--sp-sm);
}
.timeline-desc {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

/* Decision flow (gap assessment) */
.decision-flow {
  margin-bottom: var(--sp-xl);
  padding: var(--sp-lg);
  background: var(--c-surface);
  border-radius: var(--radius);
  overflow-x: auto;
}
.df-start {
  background: var(--c-primary-bg);
  border: 2px solid var(--c-primary);
  border-radius: var(--radius);
  padding: var(--sp-sm) var(--sp-lg);
  text-align: center;
  font-weight: 700;
  margin-bottom: var(--sp-md);
  display: inline-block;
}
.df-question {
  background: var(--c-warning-bg);
  border: 2px solid var(--c-warning);
  border-radius: var(--radius);
  padding: var(--sp-sm) var(--sp-lg);
  text-align: center;
  font-weight: 600;
  margin-bottom: var(--sp-sm);
  font-size: var(--fs-sm);
}
.df-branch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
  padding-left: var(--sp-lg);
}
.df-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-xs);
}
.df-result {
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
  font-size: var(--fs-sm);
}
.df-result-red    { background: var(--c-danger-bg);  color: var(--c-danger); }
.df-result-orange { background: var(--c-accent-bg);  color: var(--c-accent); }
.df-result-yellow { background: var(--c-warning-bg); color: #7b6b00; }
.df-result-green  { background: var(--c-success-bg); color: var(--c-success); }

/* Quiz */
.quiz-container {
  max-width: 800px;
}
.quiz-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  justify-content: center;
  margin-bottom: var(--sp-lg);
}
.quiz-category-btn {
  display: inline-block;
  padding: var(--sp-xs) var(--sp-md);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-bg);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.quiz-category-btn:hover {
  background: var(--c-surface);
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.quiz-category-btn.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.quiz-info {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-lg);
}
.quiz-question {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  background: var(--c-bg);
  box-shadow: var(--shadow-sm);
}
.quiz-question legend {
  font-weight: 700;
  font-size: var(--fs-lg);
  padding: 0;
  margin-bottom: var(--sp-md);
}
.quiz-question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-right: var(--sp-sm);
  vertical-align: middle;
}
.quiz-options {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quiz-options label {
  display: block;
  padding: var(--sp-sm) var(--sp-md);
  margin-bottom: var(--sp-xs);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s;
  font-size: var(--fs-sm);
}
.quiz-options label:hover {
  background: var(--c-surface);
}
.quiz-options input[type="radio"] {
  margin-right: var(--sp-sm);
}
.quiz-question.correct {
  border-color: var(--c-success);
  border-width: 2px;
  background: var(--c-success-bg);
}
.quiz-question.incorrect {
  border-color: var(--c-danger);
  border-width: 2px;
  background: var(--c-danger-bg);
}
.quiz-result {
  display: none;
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius-sm);
  margin-top: var(--sp-md);
  font-weight: 700;
  font-size: var(--fs-base);
}
.quiz-question.correct .quiz-result {
  display: block;
  color: var(--c-success);
}
.quiz-question.incorrect .quiz-result {
  display: block;
  color: var(--c-danger);
}
.quiz-explanation {
  display: none;
  margin-top: var(--sp-sm);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  font-style: italic;
}
.quiz-question.correct .quiz-explanation,
.quiz-question.incorrect .quiz-explanation {
  display: block;
}
.quiz-score {
  display: none;
  text-align: center;
  font-size: var(--fs-2xl);
  font-weight: 700;
  padding: var(--sp-xl);
  margin-bottom: var(--sp-lg);
  border-radius: var(--radius);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
}
.quiz-score.visible {
  display: block;
}
.quiz-actions {
  display: flex;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

/* --- 7. LP / トップページ専用 -------------------------------- */

/* LP body */
.lp-body { background: #fff; }

/* LP header — transparent, floating */
.lp-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
}
.lp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.lp-logo {
  color: rgba(255,255,255,.9);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
}
.lp-logo:hover { text-decoration: none; color: #fff; }
.btn-sm { padding: .4rem 1.1rem; font-size: var(--fs-xs); border-radius: 6px; }
.btn-lg { padding: .8rem 2.2rem; font-size: 1rem; border-radius: 8px; }

/* LP footer */
.lp-footer {
  background: #111827;
  color: rgba(255,255,255,.55);
  padding: 3rem 2rem;
  text-align: center;
  font-size: var(--fs-sm);
}
.lp-footer a { color: rgba(255,255,255,.75); transition: color .15s; }
.lp-footer a:hover { color: #fff; text-decoration: none; }
.lp-footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: var(--fs-sm);
}
.lp-footer-note {
  color: rgba(255,255,255,.35);
  font-size: var(--fs-xs);
  margin: 0;
}

/* SP breakpoint helper */
.sp-only { display: none; }

/* --- LP sections -------------------------------------------- */
.lp-section {
  padding: 5.5rem 2rem;
}
.lp-inner {
  max-width: 960px;
  margin: 0 auto;
}
.lp-section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  border: none;
  padding: 0;
  margin: 0 0 .75rem;
  letter-spacing: -.01em;
  color: var(--c-text);
}
.lp-section-sub {
  text-align: center;
  color: var(--c-text-muted);
  font-size: var(--fs-base);
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* --- Hero --------------------------------------------------- */
.lp-hero {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 40%, #1565c0 100%);
  color: #fff;
  padding: 8rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(59,130,246,.2) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(99,102,241,.15) 0%, transparent 50%);
  pointer-events: none;
}
.lp-hero > * { position: relative; }
.lp-hero-label {
  display: inline-block;
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,.2);
  padding: .35rem 1rem;
  border-radius: 999px;
}
.lp-hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.lp-hero .lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.85;
  font-weight: 400;
}
.lp-hero .lead strong { color: #fff; }
.lp-hero .hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.lp-hero .btn-white {
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.lp-hero .btn-outline {
  border-color: rgba(255,255,255,.35);
  color: rgba(255,255,255,.9);
}
.lp-hero .btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
}

/* --- Hero floating decoration ------------------------------- */
.lp-hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-float-icon {
  position: absolute;
  color: rgba(255,255,255,.08);
  animation: hero-float 6s ease-in-out infinite;
}
.hero-float-shield {
  width: 120px;
  height: 120px;
  top: 12%;
  left: 8%;
  animation-delay: 0s;
}
.hero-float-lock {
  width: 80px;
  height: 80px;
  bottom: 14%;
  right: 10%;
  animation-delay: -2s;
  animation-duration: 7s;
}
.hero-float-check {
  width: 64px;
  height: 64px;
  top: 18%;
  right: 12%;
  opacity: .6;
  animation-delay: -4s;
  animation-duration: 8s;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}

/* --- Urgency bar -------------------------------------------- */
.lp-urgency {
  background: #0f172a;
  padding: 1rem 2rem;
  text-align: center;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.7);
  font-weight: 500;
  letter-spacing: .02em;
}
.lp-urgency strong {
  color: #60a5fa;
}

/* --- Pain points -------------------------------------------- */
.lp-pain { background: #fff; }
.pain-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.pain-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: border-color .2s;
}
.pain-item:hover { border-color: #cbd5e1; }
.pain-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 800;
}
.pain-item p {
  margin: 0;
  font-size: var(--fs-base);
  color: #334155;
  line-height: 1.6;
}
.pain-item strong {
  color: #0f172a;
}

/* --- Solution / features ------------------------------------ */
.lp-solution {
  background: #f8fafc;
  text-align: center;
}
.solution-lead {
  font-size: 1.1rem;
  color: #475569;
  max-width: 600px;
  margin: -1rem auto 3.5rem;
  line-height: 1.85;
}
.lp-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.lp-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  text-align: left;
  transition: box-shadow .25s, border-color .25s;
}
.lp-card:hover {
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  border-color: #cbd5e1;
}
.lp-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.lp-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}
.lp-card p {
  font-size: var(--fs-sm);
  color: #64748b;
  margin: 0;
  line-height: 1.65;
  flex: 1;
}
.lp-card .lp-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: gap .2s;
}
.lp-card:hover .lp-card-arrow { gap: .6rem; }

/* --- Steps -------------------------------------------------- */
.lp-steps { background: #fff; }
.lp-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
}
.lp-step-grid::before {
  content: "";
  position: absolute;
  top: 1.75rem;
  left: calc(16.67% + 1.75rem);
  right: calc(16.67% + 1.75rem);
  height: 2px;
  background: #e2e8f0;
}
.lp-step {
  text-align: center;
  position: relative;
}
.lp-step-num {
  width: 3.5rem;
  height: 3.5rem;
  background: #0f172a;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px #fff;
}
.lp-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .5rem;
  color: #0f172a;
}
.lp-step p {
  font-size: var(--fs-sm);
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* --- CTA section -------------------------------------------- */
.lp-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  text-align: center;
}
.lp-cta h2 {
  color: #fff;
  border: none;
  padding: 0;
  margin: 0 0 .75rem;
  font-size: 1.5rem;
  font-weight: 800;
}
.lp-cta p {
  color: rgba(255,255,255,.7);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: var(--fs-base);
  line-height: 1.7;
}
.lp-cta .btn-white {
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

/* --- Cost compare ------------------------------------------- */
.lp-cost-compare table {
  margin-bottom: 0;
}
.lp-cost-compare table td {
  border: none;
  padding: .35rem .5rem;
  border-bottom: 1px solid #e2e8f0;
}
.lp-cost-compare table tr:last-child td {
  border-bottom: none;
  border-top: 2px solid #cbd5e1;
  padding-top: .6rem;
}

/* --- Before / After ----------------------------------------- */
.lp-before-after {
  border-top: 1px solid #e2e8f0;
}
.lp-before-after .lp-card ul li {
  color: #334155;
  line-height: 1.6;
}

/* --- Quick guide banner ------------------------------------- */
.lp-quick {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.lp-quick-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.lp-quick-text h2 {
  border: none;
  padding: 0;
  margin: 0 0 .5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}
.lp-quick-text p {
  margin: 0;
  font-size: var(--fs-sm);
  color: #64748b;
}

/* --- Disclaimer --------------------------------------------- */
.lp-disclaimer {
  background: #fff;
  padding: 2rem;
  border-top: 1px solid #e2e8f0;
}

/* Legacy hero (backward compat for non-LP pages) */
.hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, #0d47a1 100%);
  color: #fff;
  padding: var(--sp-3xl) var(--sp-xl);
  text-align: center;
  border-radius: var(--radius);
  margin-bottom: var(--sp-2xl);
}
.hero h1 { font-size: var(--fs-3xl); margin-bottom: var(--sp-md); color: #fff; }
.hero p { font-size: var(--fs-lg); opacity: .9; max-width: 600px; margin: 0 auto var(--sp-xl); }
.hero-actions { display: flex; gap: var(--sp-md); justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-xl);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: opacity .15s;
  cursor: pointer;
  border: none;
}
.btn:hover { text-decoration: none; opacity: .85; }
.btn-white { background: #fff; color: var(--c-primary); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-primary { background: var(--c-primary); color: #fff; }

/* --- 8. レスポンシブ ---------------------------------------- */
@media (max-width: 768px) {
  :root { --fs-3xl: 1.75rem; --fs-2xl: 1.375rem; }

  .header-links { display: none; }
  .hamburger { display: block; }

  .page-grid {
    grid-template-columns: 1fr;
  }
  .side-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 280px;
    height: calc(100vh - var(--header-h));
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 90;
    box-shadow: var(--shadow-md);
  }
  .side-nav.open {
    transform: translateX(0);
  }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: rgba(0,0,0,.3);
    z-index: 89;
  }
  .nav-overlay.open { display: block; }

  .main-content {
    padding: var(--sp-lg) var(--sp-md) var(--sp-2xl);
  }

  /* Flow diagrams stack vertically on mobile */
  .flow-horizontal {
    flex-direction: column;
    align-items: stretch;
  }
  .flow-arrow {
    transform: rotate(90deg);
    flex: 0 0 30px;
  }
  .flow-node { min-width: auto; }

  .chain-diagram {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .card-grid, .lp-card-grid {
    grid-template-columns: 1fr;
  }
  .data-card-grid {
    grid-template-columns: 1fr;
  }
  /* --- LP mobile ------------------------------------------- */
  .lp-header { padding: 0 1rem; height: 52px; }
  .lp-header .btn-sm { display: none; }

  .lp-hero { padding: 5.5rem 1.25rem 3rem; }
  .lp-hero-label { font-size: 10px; padding: .3rem .75rem; margin-bottom: 1rem; }
  .lp-hero h1 { font-size: 1.75rem; line-height: 1.35; }
  .lp-hero .lead { font-size: .95rem; margin-bottom: 2rem; line-height: 1.75; }
  .lp-hero .hero-actions { flex-direction: column; align-items: center; gap: .75rem; }
  .lp-hero .btn-lg { width: 100%; max-width: 280px; justify-content: center; }

  .lp-urgency { font-size: var(--fs-xs); padding: .85rem 1rem; }

  .lp-section { padding: 3rem 1.25rem; }
  .lp-section-title { font-size: 1.25rem; }
  .lp-section-sub { font-size: var(--fs-sm); margin-bottom: 2rem; }

  .pain-list { gap: .75rem; }
  .pain-item { padding: 1rem 1.15rem; gap: 1rem; }
  .pain-num { width: 2rem; height: 2rem; font-size: var(--fs-xs); border-radius: 6px; }
  .pain-item p { font-size: var(--fs-sm); }

  .solution-lead { font-size: .95rem; margin-bottom: 2rem; }
  .lp-card-grid { grid-template-columns: 1fr; gap: 1rem; }
  .lp-card { padding: 1.5rem; border-radius: 10px; }
  .lp-card-icon { width: 2.25rem; height: 2.25rem; font-size: 1.1rem; margin-bottom: 1rem; border-radius: 8px; }
  .lp-card h3 { font-size: .95rem; }

  .lp-step-grid { grid-template-columns: 1fr; gap: .5rem; }
  .lp-step-grid::before { display: none; }
  .lp-step { display: flex; align-items: flex-start; gap: 1rem; text-align: left; padding: 1rem 0; }
  .lp-step-num { flex-shrink: 0; width: 2.5rem; height: 2.5rem; font-size: 1rem; margin: 0; box-shadow: none; }
  .lp-step h3 { margin-top: .15rem; }

  .lp-cta h2 { font-size: 1.2rem; }
  .lp-cta p { font-size: var(--fs-sm); }
  .lp-cta .btn-lg { width: 100%; max-width: 280px; justify-content: center; }

  .lp-quick-inner { flex-direction: column; text-align: center; gap: 1.25rem; }
  .lp-quick-text h2 { font-size: 1.05rem; }
  .lp-quick .btn-lg { width: 100%; max-width: 280px; justify-content: center; }

  .lp-footer { padding: 2rem 1.25rem; }
  .lp-footer-nav { gap: .75rem 1.25rem; font-size: var(--fs-xs); }

  .sp-only { display: inline; }

  .lp-hero-decoration { display: none; }

  .quiz-question {
    padding: var(--sp-md);
  }
  .quiz-actions {
    flex-direction: column;
  }

  .df-branch {
    grid-template-columns: 1fr;
  }

  .tab-list {
    flex-direction: column;
    gap: 0;
  }
  .tab-list [role="tab"] {
    border-radius: 0;
    border-bottom: 1px solid var(--c-border);
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .lp-hero { padding: 7rem 2rem 4rem; }
  .lp-hero h1 { font-size: 2.5rem; }
  .lp-section { padding: 4rem 2rem; }
  .lp-card-grid { gap: 1rem; }
  .lp-card { padding: 1.5rem; }
  .lp-step-grid { gap: 1.5rem; }
  .lp-step-grid::before {
    left: calc(16.67% + 1.25rem);
    right: calc(16.67% + 1.25rem);
  }
}

/* Print */
@media print {
  .site-header, .side-nav, .site-footer, .hamburger, .nav-overlay { display: none; }
  .page-grid { display: block; }
  .main-content { max-width: 100%; padding: 0; }
}
