/* オフボードガード — 共通スタイル
   配色は ref-design-dna.json の color_system に厳密準拠。色は「状態の言語」。 */

:root {
  /* Brand */
  --indigo: #1F3A8A;
  --indigo-700: #1A337A;
  --indigo-500: #2F4FB5;
  --indigo-100: #E5EAF7;
  --indigo-50: #F2F5FC;
  --indigo-on: #FFFFFF;
  --teal: #0E7C86;

  /* Surfaces */
  --bg-app: #F6F7F9;
  --surface: #FFFFFF;
  --surface-sunken: #EEF0F3;
  --surface-inverse: #0F172A;
  --border: #D8DCE2;
  --border-strong: #B6BCC6;

  /* Text */
  --text-primary: #10151F;
  --text-secondary: #4A5462;
  --text-muted: #7A8494;
  --focus-ring: #2F4FB5;

  /* Semantic state colors */
  --sealed: #15803D;        --sealed-bg: #E8F5EC;        --sealed-border: #A7D7B5;
  --inprog: #0E7C86;        --inprog-bg: #E2F1F2;        --inprog-border: #A8D4D8;
  --pending: #7A8494;       --pending-bg: #EEF0F3;       --pending-border: #D8DCE2;
  --warning: #B45309;       --warning-bg: #FBF0E0;       --warning-border: #EBCB9A;
  --overdue: #B91C1C;       --overdue-bg: #FBE9E9;       --overdue-border: #E7B1B1;
  --critical: #7C2D92;      --critical-bg: #F3E8F6;      --critical-border: #D9B6E2;
  --info: #1F3A8A;          --info-bg: #E5EAF7;          --info-border: #BFCBEC;

  --font-ui: "Inter", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", ui-monospace, monospace;

  --r-ctrl: 4px;
  --r-card: 8px;
  --shadow-drawer: 0 8px 28px rgba(15, 23, 42, 0.18);
  --shadow-pop: 0 4px 14px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 21px;
  color: var(--text-primary);
  background: var(--bg-app);
}

h1, h2, h3, h4, p { margin: 0; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 3px;
}

.mono { font-family: var(--font-mono); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.secondary-text { color: var(--text-secondary); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-radius: var(--r-ctrl);
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  background: var(--surface); color: var(--text-primary);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--indigo); color: var(--indigo-on); border-color: var(--indigo); }
.btn-primary:hover { background: var(--indigo-700); border-color: var(--indigo-700); }
.btn-secondary { background: var(--surface); color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-sunken); }
.btn-tertiary { background: transparent; color: var(--teal); border-color: transparent; padding: 0 8px; }
.btn-tertiary:hover { background: var(--inprog-bg); }
.btn-destructive { background: var(--surface); color: var(--overdue); border-color: var(--overdue-border); }
.btn-destructive:hover { background: var(--overdue-bg); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Status badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: var(--r-ctrl);
  font-size: 12px; font-weight: 600; line-height: 1; border: 1px solid transparent;
}
.badge svg { width: 12px; height: 12px; }
.badge-pending  { background: var(--pending-bg);  color: var(--pending);  border-color: var(--pending-border); }
.badge-inprog   { background: var(--inprog-bg);   color: var(--inprog);   border-color: var(--inprog-border); }
.badge-sealed   { background: var(--sealed-bg);   color: var(--sealed);   border-color: var(--sealed-border); }
.badge-warning  { background: var(--warning-bg);  color: var(--warning);  border-color: var(--warning-border); }
.badge-overdue  { background: var(--overdue-bg);  color: var(--overdue);  border-color: var(--overdue-border); font-weight: 700; }
.badge-excluded { background: var(--surface-sunken); color: var(--text-muted); border-color: var(--border); }
.badge-critical { background: var(--critical-bg); color: var(--critical); border-color: var(--critical-border); }
.badge-info     { background: var(--info-bg);     color: var(--info);     border-color: var(--info-border); }

.tag-sample {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: var(--r-ctrl);
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  background: var(--warning-bg); color: var(--warning); border: 1px dashed var(--warning-border);
}
.tag-sample svg { width: 12px; height: 12px; }

.label-caps {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px; flex-shrink: 0; background: var(--surface-inverse);
  color: #C7CEDB; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 9px;
  padding: 18px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.09);
}
.sidebar-brand .mark { width: 26px; height: 26px; color: #93A4E8; }
.sidebar-brand .name { color: #FFF; font-weight: 600; font-size: 15px; }
.sidebar-brand .sub { display:block; font-size: 10.5px; letter-spacing: .05em; color: #8893A8; text-transform: uppercase; }
.nav { padding: 10px 8px; flex: 1; overflow-y: auto; }
.nav-section { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #6C7587; padding: 12px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--r-ctrl);
  color: #C7CEDB; font-size: 13.5px; font-weight: 500; margin-bottom: 2px;
}
.nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #FFF; }
.nav a.active { background: var(--indigo); color: #FFF; }
.nav a svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav a .pill { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.nav a .pill.alert { background: var(--overdue); color: #FFF; }
.sidebar-foot { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.09); font-size: 11px; color: #7C879A; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 24px; background: var(--surface);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20;
}
.topbar .org { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.topbar .org svg { width: 18px; height: 18px; color: var(--text-secondary); }
.topbar .search { flex: 1; max-width: 380px; position: relative; }
.topbar .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); }
.topbar .search input {
  width: 100%; height: 34px; padding: 0 10px 0 32px;
  border: 1px solid var(--border); border-radius: var(--r-ctrl);
  font-family: var(--font-ui); font-size: 13px; background: var(--bg-app);
}
.topbar .spacer { flex: 1; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-ctrl);
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; position: relative; color: var(--text-secondary);
}
.icon-btn:hover { background: var(--surface-sunken); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: 5px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--overdue); border: 1.5px solid var(--surface); }

.content { padding: 24px; max-width: 1440px; width: 100%; margin: 0 auto; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .title { font-size: 22px; line-height: 30px; font-weight: 600; }
.page-head .desc { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb svg { width: 13px; height: 13px; }

/* ---------- KPI strip ---------- */
.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px;
}
.kpi.is-overdue { border-color: var(--overdue-border); background: var(--overdue-bg); }
.kpi .kpi-head { display: flex; align-items: center; gap: 8px; }
.kpi .kpi-head svg { width: 16px; height: 16px; color: var(--text-secondary); }
.kpi.is-overdue .kpi-head svg { color: var(--overdue); }
.kpi .kpi-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.kpi.is-overdue .kpi-label { color: var(--overdue); }
.kpi .kpi-val { font-family: var(--font-mono); font-size: 30px; line-height: 1; font-weight: 600; }
.kpi.is-overdue .kpi-val { color: var(--overdue); }
.kpi .kpi-sub { font-size: 11.5px; color: var(--text-muted); }

/* ---------- Card / panel ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.panel-head h3 { font-size: 15px; font-weight: 600; }
.panel-head .panel-tools { display: flex; align-items: center; gap: 8px; }
.panel-body { padding: 16px; }
.panel-body.flush { padding: 0; }

.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data thead th {
  position: sticky; top: 0; background: var(--surface-sunken); z-index: 1;
  text-align: left; padding: 9px 12px; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data thead th.sortable { cursor: pointer; user-select: none; }
table.data thead th.sortable:hover { color: var(--text-primary); }
table.data thead th .sort-ind { font-size: 10px; margin-left: 3px; color: var(--indigo); }
table.data thead th.right, table.data td.right { text-align: right; }
table.data tbody td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; height: 42px; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--indigo-50); }
table.data tbody tr.row-overdue { background: var(--overdue-bg); }
table.data tbody tr.row-overdue:hover { background: #F7DCDC; }
table.data tbody tr.row-sealed td { color: var(--text-secondary); }
table.data td .row-actions { display: flex; gap: 4px; justify-content: flex-end; opacity: 0; transition: opacity .1s; }
table.data tr:hover .row-actions, table.data tr:focus-within .row-actions { opacity: 1; }
.cell-name { display: flex; align-items: center; gap: 8px; }
.cell-name .sub { font-size: 11.5px; color: var(--text-muted); }
.linklike { background: none; border: 0; padding: 0; color: var(--indigo); font: inherit; font-weight: 600; cursor: pointer; }
.linklike:hover { text-decoration: underline; }

/* progress */
.progress { display: flex; align-items: center; gap: 8px; }
.progress .bar { width: 90px; height: 7px; border-radius: 4px; background: var(--surface-sunken); overflow: hidden; }
.progress .bar > i { display: block; height: 100%; background: var(--sealed); }
.progress .pct { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }

/* ---------- Feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.feed li:last-child { border-bottom: 0; }
.feed .fi { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feed .fi svg { width: 16px; height: 16px; }
.feed .fi.overdue { background: var(--overdue-bg); color: var(--overdue); }
.feed .fi.warning { background: var(--warning-bg); color: var(--warning); }
.feed .fi.sealed { background: var(--sealed-bg); color: var(--sealed); }
.feed .fi.info { background: var(--info-bg); color: var(--info); }
.feed .ft { flex: 1; min-width: 0; }
.feed .ft .msg { font-size: 13px; }
.feed .ft .meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.feed .ft .meta .num { font-size: 11.5px; }

/* ---------- Filter bar ---------- */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.filterbar .seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-ctrl); overflow: hidden; }
.filterbar .seg button { border: 0; background: var(--surface); padding: 6px 11px; font: inherit; font-size: 13px; cursor: pointer; color: var(--text-secondary); border-right: 1px solid var(--border); }
.filterbar .seg button:last-child { border-right: 0; }
.filterbar .seg button.on { background: var(--indigo); color: #FFF; font-weight: 600; }
.filterbar input.search-inline { height: 32px; min-width: 200px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-ctrl); font: inherit; font-size: 13px; }
.filterbar select { height: 32px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--r-ctrl); font: inherit; font-size: 13px; background: var(--surface); }
.filterbar .spacer { flex: 1; }
.filter-applied { color: var(--teal); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.filter-applied svg { width: 13px; height: 13px; }

/* ---------- Empty / loading / error ---------- */
.state-box { text-align: center; padding: 48px 24px; color: var(--text-secondary); }
.state-box .ico { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--text-muted); }
.state-box .ico svg { width: 44px; height: 44px; }
.state-box h4 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.state-box p { font-size: 13px; margin-bottom: 16px; }
.state-box.error { color: var(--overdue); }
.state-box.error .ico { color: var(--overdue); }

.skeleton-row { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.skeleton-row span { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-sunken) 25%, #E5E8EC 37%, var(--surface-sunken) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15,23,42,.42); opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 40; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 480px; max-width: 92vw;
  background: var(--surface); box-shadow: var(--shadow-drawer);
  transform: translateX(100%); transition: transform .2s ease; z-index: 50;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 17px; font-weight: 600; }
.drawer-head .sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.drawer-body { padding: 18px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.field { display: block; margin-bottom: 14px; }
.field > label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }
.field .req { color: var(--overdue); margin-left: 2px; }
.field input[type=text], .field input[type=date], .field input[type=email], .field select, .field textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-ctrl);
  font-family: var(--font-ui); font-size: 14px; background: var(--surface); color: var(--text-primary);
}
.field textarea { min-height: 76px; resize: vertical; line-height: 20px; }
.field .hint { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.field .err { font-size: 12px; color: var(--overdue); margin-top: 4px; display: none; }
.field.has-error input, .field.has-error select { border-color: var(--overdue); }
.field.has-error .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }

.def-list { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 13px; }
.def-list dt { color: var(--text-muted); font-size: 12px; }
.def-list dd { margin: 0; }

.procedure { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--r-ctrl); padding: 12px; font-size: 13px; line-height: 20px; white-space: pre-wrap; }

.evidence-drop { border: 1.5px dashed var(--border-strong); border-radius: var(--r-ctrl); padding: 18px; text-align: center; color: var(--text-secondary); font-size: 13px; }
.evidence-drop svg { width: 22px; height: 22px; color: var(--text-muted); display: block; margin: 0 auto 6px; }
.evidence-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--r-ctrl); margin-top: 8px; font-size: 13px; }
.evidence-item svg { width: 18px; height: 18px; color: var(--text-secondary); flex-shrink: 0; }
.evidence-item .hash { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }

.callout { display: flex; gap: 10px; padding: 12px; border-radius: var(--r-ctrl); font-size: 13px; line-height: 19px; margin-bottom: 14px; }
.callout svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.callout.danger { background: var(--overdue-bg); border: 1px solid var(--overdue-border); color: #7F1818; }
.callout.danger svg { color: var(--overdue); }
.callout.info { background: var(--info-bg); border: 1px solid var(--info-border); color: #1B2C66; }
.callout.info svg { color: var(--info); }
.callout.sealed { background: var(--sealed-bg); border: 1px solid var(--sealed-border); color: #155427; }
.callout.sealed svg { color: var(--sealed); }

/* ---------- Modal ---------- */
.modal-scrim { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: none; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.modal-scrim.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--r-card); width: 460px; max-width: 100%; box-shadow: var(--shadow-drawer); overflow: hidden; }
.modal-head { padding: 16px 18px 0; }
.modal-head h3 { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.modal-head h3 svg { width: 20px; height: 20px; color: var(--overdue); }
.modal-body { padding: 14px 18px; font-size: 13.5px; line-height: 20px; color: var(--text-secondary); }
.modal-body .confirm-field { margin-top: 12px; }
.modal-body .confirm-field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }
.modal-body .confirm-field input { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-ctrl); font: inherit; font-size: 14px; }
.modal-foot { padding: 12px 18px 16px; display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: flex-start; gap: 10px; background: var(--surface-inverse); color: #FFF; padding: 11px 14px; border-radius: var(--r-ctrl); box-shadow: var(--shadow-pop); font-size: 13px; max-width: 360px; animation: rise .18s ease; }
.toast svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.toast.sealed svg { color: #6EE7A0; }
.toast.info svg { color: #93A4E8; }
.toast .t-hash { font-family: var(--font-mono); font-size: 11.5px; color: #A8B2C4; margin-top: 2px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Marketing (LP / pricing) ---------- */
.site-header { display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 28px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.site-header .brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; color: var(--text-primary); }
.site-header .brand svg { width: 24px; height: 24px; color: var(--indigo); }
.site-header nav { display: flex; gap: 18px; margin-left: 14px; }
.site-header nav a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.site-header nav a:hover { color: var(--text-primary); text-decoration: none; }
.site-header .spacer { flex: 1; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.hero { padding: 64px 0 40px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--indigo); background: var(--indigo-100); padding: 5px 11px; border-radius: 20px; }
.hero .eyebrow svg { width: 14px; height: 14px; }
.hero h1 { font-size: 38px; line-height: 48px; font-weight: 700; margin: 18px 0 14px; max-width: 720px; letter-spacing: -.01em; }
.hero p.lead { font-size: 17px; line-height: 27px; color: var(--text-secondary); max-width: 620px; }
.hero .cta-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 12.5px; color: var(--text-muted); }

.section { padding: 44px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: 26px; line-height: 34px; font-weight: 600; }
.section .sec-intro { color: var(--text-secondary); margin-top: 8px; max-width: 620px; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.benefit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px; }
.section.alt .benefit { background: var(--bg-app); }
.benefit .b-ico { width: 38px; height: 38px; border-radius: var(--r-ctrl); background: var(--indigo-100); color: var(--indigo); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.benefit .b-ico svg { width: 20px; height: 20px; }
.benefit h3 { font-size: 16px; font-weight: 600; margin-bottom: 7px; }
.benefit p { font-size: 13.5px; line-height: 21px; color: var(--text-secondary); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; }
.price-card.feature { border-color: var(--indigo); border-width: 2px; position: relative; }
.price-card .rec { position: absolute; top: -11px; left: 24px; background: var(--indigo); color: #FFF; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 10px; }
.price-card .plan { font-size: 16px; font-weight: 600; }
.price-card .amt { margin: 12px 0 2px; }
.price-card .amt .num { font-family: var(--font-mono); font-size: 32px; font-weight: 600; }
.price-card .amt .per { font-size: 13px; color: var(--text-muted); }
.price-card .est { font-size: 11.5px; color: var(--text-muted); margin-bottom: 16px; }
.price-card ul { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.price-card ul li { display: flex; gap: 8px; font-size: 13.5px; padding: 6px 0; color: var(--text-secondary); border-bottom: 1px solid var(--surface-sunken); }
.price-card ul li svg { width: 16px; height: 16px; color: var(--sealed); flex-shrink: 0; margin-top: 1px; }

.hero h1 .hero-est { font-size: 18px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }

/* Pain list (Before / 手作業) */
.painlist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.painlist li { display: flex; align-items: flex-start; gap: 12px; background: var(--bg-app); border: 1px solid var(--border); border-radius: var(--r-card); padding: 14px 16px; font-size: 14px; line-height: 21px; color: var(--text-primary); }
.section.alt .painlist li { background: var(--bg-app); }
.painlist .p-ico { width: 32px; height: 32px; border-radius: var(--r-ctrl); flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--overdue-bg); color: var(--overdue); }
.painlist .p-ico svg { width: 17px; height: 17px; }
.pain-empath { margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--text-primary); border-left: 3px solid var(--indigo); padding-left: 12px; }

/* Job 4-step */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px 18px; position: relative; }
.section.alt .step { background: var(--bg-app); }
.step .s-num { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--indigo); margin-bottom: 12px; }
.step .s-ico { width: 38px; height: 38px; border-radius: var(--r-ctrl); background: var(--indigo-100); color: var(--indigo); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step .s-ico svg { width: 20px; height: 20px; }
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13px; line-height: 20px; color: var(--text-secondary); }

/* Standards mapping */
.mapping { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.map-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px; border-top: 3px solid var(--indigo); }
.section.alt .map-card { background: var(--bg-app); }
.map-card .map-label { margin-bottom: 8px; display: block; }
.map-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.map-card p { font-size: 13px; line-height: 20px; color: var(--text-secondary); }

/* Friction-zero */
.friction { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.fr-item { display: flex; align-items: flex-start; gap: 14px; background: var(--bg-app); border: 1px solid var(--border); border-radius: var(--r-card); padding: 18px 20px; }
.fr-item .fr-ico { width: 36px; height: 36px; border-radius: var(--r-ctrl); flex-shrink: 0; background: var(--sealed-bg); color: var(--sealed); display: flex; align-items: center; justify-content: center; }
.fr-item .fr-ico svg { width: 19px; height: 19px; }
.fr-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.fr-item p { font-size: 13px; line-height: 20px; color: var(--text-secondary); }

.disclaimer { background: var(--warning-bg); border: 1px solid var(--warning-border); border-radius: var(--r-card); padding: 14px 16px; font-size: 13px; color: #7A3D08; display: flex; gap: 10px; margin-top: 28px; }
.disclaimer svg { width: 18px; height: 18px; color: var(--warning); flex-shrink: 0; margin-top: 1px; }

.site-foot { background: var(--surface-inverse); color: #8893A8; font-size: 12.5px; padding: 28px 0; margin-top: 40px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: #C7CEDB; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-2 { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .benefits, .price-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .mapping { grid-template-columns: 1fr; }
  .friction { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; z-index: 70; }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: inline-flex !important; }
  .content { padding: 16px; }
}
.menu-toggle { display: none; }
@media (max-width: 640px) {
  .kpi-strip { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; line-height: 39px; }
  .topbar .search { display: none; }
  .def-list { grid-template-columns: 1fr; }
}
