/* 紹介ページ（index）のスタイル。配色トークンは実物のダッシュボードと同系。
   画面の実物提示は iframe 埋め込み（/demo ほか）で行い、ここには
   ランディングのレイアウトとタイポグラフィだけを持つ。 */

:root {
  color-scheme: light dark;
  --bg: #f6f7fa;
  --surface: #ffffff;
  --surface-2: #eef0f5;
  --ink: #1c2333;
  --muted: #5a6478;
  --faint: #8b93a7;
  --line: #dfe3ec;
  --accent: #3a56b4;
  --accent-soft: #e7ebf8;
  --ok: #257d55;
  --ok-soft: #e2f2ea;
  --review: #22707e;
  --gauge-track: #b0b8cc;
  --shadow: 0 1px 2px rgba(28, 35, 51, 0.05), 0 12px 40px rgba(28, 35, 51, 0.10);
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151d;
    --surface: #1a1f2b;
    --surface-2: #222837;
    --ink: #e8ebf2;
    --muted: #a3acc1;
    --faint: #6f788d;
    --line: #2b3244;
    --accent: #90a5ee;
    --accent-soft: #232c47;
    --ok: #57c28f;
    --ok-soft: #1b3229;
    --review: #62b9c6;
    --gauge-track: #4a536b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 44px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body.site {
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 15.5px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.icon { display: inline-block; vertical-align: -2px; }

/* ---- ヘッダー ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 26px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; background: var(--surface-2); }
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.site-nav a:hover { color: var(--ink); }
.head-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border-radius: 8px;
  padding: 6px 16px;
  text-decoration: none;
  transition: filter 0.15s;
}
.head-cta:hover { filter: brightness(1.08); }

/* ---- ヒーロー ---- */
.hero { position: relative; padding: 84px 0 30px; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 16px; }
.hero h1 { margin: 0 0 20px; font-size: clamp(34px, 5.6vw, 58px); line-height: 1.28; letter-spacing: 0.01em; font-weight: 800; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--review));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { max-width: 640px; font-size: 16px; color: var(--muted); margin: 0 0 28px; }
.lead b, .sec-lead b { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }
.btn-big {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 10px;
  padding: 11px 26px;
  text-decoration: none;
  transition: filter 0.15s, border-color 0.15s, color 0.15s;
}
.btn-big.solid { background: var(--accent); color: var(--bg); }
.btn-big.solid:hover { filter: brightness(1.08); }
.btn-big.line { border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.btn-big.line:hover { border-color: var(--accent); color: var(--accent); }
.hero-caption { text-align: center; font-size: 12px; color: var(--faint); margin-top: 12px; }

/* ---- ブラウザ風フレームと実画面の埋め込み ---- */
.frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.fdots { display: flex; gap: 6px; }
.fdot { width: 10px; height: 10px; border-radius: 50%; background: var(--gauge-track); opacity: 0.55; }
.frame-url {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
  font-size: 11.5px;
  color: var(--faint);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 12px;
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 実物デモの iframe。等倍で描いてコンテナ幅に合わせて縮める（JS が scale を設定） */
.frame-embed { position: relative; overflow: hidden; background: var(--bg); }
.frame-embed iframe {
  display: block;
  border: 0;
  width: 1360px;
  height: 840px;
  transform-origin: 0 0;
  pointer-events: none;
}
.frame-cover { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 14px; text-decoration: none; }
.frame-cover span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bg);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  border-radius: 999px;
  padding: 5px 16px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.frame-cover:hover span, .frame-cover:focus-visible span { opacity: 1; transform: none; }

/* ---- セクション共通 ---- */
.sec { padding: 92px 0 0; }
.sec:last-of-type { padding-bottom: 40px; }
.sec h2 { margin: 0 0 14px; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.4; font-weight: 800; letter-spacing: 0.01em; }
.sec-lead { max-width: 660px; font-size: 15px; color: var(--muted); margin: 0 0 34px; }

/* ---- 対比 ---- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.duo-card.hi { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.duo-card h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 9px; }
.duo-card h3 img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.duo-card ul { margin: 0; padding: 0; list-style: none; }
.duo-card li { position: relative; padding: 5px 0 5px 22px; font-size: 13.5px; color: var(--muted); }
.duo-card li::before { position: absolute; left: 2px; top: 5px; }
.duo-card.lo li::before { content: "—"; color: var(--faint); }
.duo-card.hi li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.duo-card.hi li { color: var(--ink); }

/* ---- コアループ図 ---- */
.loop { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.loop-step { flex: 1 1 150px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; min-width: 150px; }
.loop-step.human { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: var(--accent-soft); }
.loop-step .no { font-family: var(--mono); font-size: 11px; color: var(--faint); display: block; margin-bottom: 4px; }
.loop-step.human .no { color: var(--accent); }
.loop-step .t { font-weight: 700; font-size: 13.5px; display: block; }
.loop-step .d { font-size: 12px; color: var(--muted); margin-top: 3px; display: block; }
.loop-arrow { align-self: center; color: var(--faint); font-size: 15px; flex: none; }
.loop-note { font-size: 13px; color: var(--muted); }
.loop-note b { color: var(--ink); }

/* ---- 機能リスト ---- */
.featrows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; margin: 26px 0 34px; }
.featrow { display: flex; gap: 13px; padding: 11px 0; }
.featrow .fic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.featrow .fic .icon, .acard .fic .icon { width: 17px; height: 17px; }
.featrow .ft { font-weight: 700; font-size: 14px; }
.featrow .fd { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---- 自律性グリッド ---- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.acard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.acard .fic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.acard h3 { margin: 0 0 6px; font-size: 14.5px; }
.acard p { margin: 0; font-size: 13px; color: var(--muted); }
.punch { margin: 36px 0 0; font-size: 15px; color: var(--muted); max-width: 660px; line-height: 1.9; }
.punch b { color: var(--ink); font-weight: 600; }

/* ---- スクリーン紹介の左右組 ---- */
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: center; }
.showcase.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.showcase .txt h2 { font-size: clamp(22px, 3vw, 30px); }
.showcase .frame { width: 100%; }
.mini-note { font-size: 12px; color: var(--faint); margin-top: 10px; }
.mini-note a { color: var(--accent); text-decoration: none; }
.mini-note a:hover { text-decoration: underline; }

/* ---- 締め ---- */
.cta-panel {
  margin-top: 92px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 52px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: -60% -20% auto;
  height: 130%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 12%, transparent), transparent);
  pointer-events: none;
}
.cta-panel h2 { position: relative; }
.cta-panel .sec-lead { position: relative; margin-left: auto; margin-right: auto; }
.cta-panel .hero-actions { position: relative; justify-content: center; margin-bottom: 0; }

/* ---- フッター ---- */
.foot { margin-top: 60px; border-top: 1px solid var(--line); padding: 26px 0 34px; font-size: 12px; color: var(--faint); }
.foot .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot .sp { flex: 1; }

/* ---- 出現アニメーション ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- 狭い画面 ---- */
@media (max-width: 920px) {
  .showcase, .showcase.flip { grid-template-columns: 1fr; gap: 22px; }
  .showcase.flip .txt { order: -1; }
  .grid3 { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .featrows { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .hero { padding-top: 56px; }
}
