/*
  kanae LP — 068。

  外部 CDN・外部フォント・トラッカーに依存しない（オフラインでも崩れないこと）。
  アプリ本体がダークテーマ固定（naive-ui の darkTheme）なので、LP もダーク 1 本で作る。
  色はアイコン（build/icon.svg）の青→マゼンタ→橙のグラデーションと、
  NSIS / MSIX タイルの下地色 #12263a に合わせてある。
*/

:root {
  --bg: #0b1622;
  --surface: #12263a;
  --surface-2: #16304a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);

  --text: #e8eef6;
  --text-muted: #9db0c6;
  --text-dim: #6f849b;

  --brand-blue: #2f47b8;
  --brand-magenta: #c62a8a;
  --brand-orange: #f5a623;
  --brand: linear-gradient(112deg, var(--brand-blue) 0%, var(--brand-magenta) 55%, var(--brand-orange) 100%);

  /* 「エージェントが待っている」ハイライトの色（042 と同じ意味づけ） */
  --waiting: #f5a623;
  --ok: #63e2b7;

  --radius: 14px;
  --radius-sm: 8px;
  --shell: 1100px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas,
    "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

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

/* ---------- ヘッダ ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 22, 34, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
}

/* ---------- CTA ---------- */

.cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(198, 42, 138, 0.28);
}

a.cta:hover {
  filter: brightness(1.1);
}

.cta small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.02em;
}

/* ストア URL が未確定のあいだ。押せない見た目にして、リンクにしない */
.cta.is-pending {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  cursor: default;
}

.cta-note {
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---------- セクション ---------- */

section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

section:first-of-type {
  border-top: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(24px, 4.2vw, 34px);
  margin-bottom: 20px;
}

.lede {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 62ch;
}

.lede + .lede {
  margin-top: 16px;
}

.lede strong {
  color: var(--text);
}

/* ---------- ヒーロー ---------- */

.hero {
  padding: 76px 0 92px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 30% auto -20%;
  height: 620px;
  background: radial-gradient(closest-side, rgba(47, 71, 184, 0.35), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -10% -25% auto auto;
  width: 700px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(198, 42, 138, 0.22), transparent 70%);
  pointer-events: none;
}

.hero .shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.32;
  margin-bottom: 24px;
}

.hero h1 .accent {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* ---------- 転記の往復 ---------- */

.loop {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.loop span {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.loop .arrow {
  color: var(--text-dim);
  border: 0;
  background: none;
  padding: 0 2px;
}

.loop .back {
  color: var(--waiting);
  border-color: rgba(245, 166, 35, 0.4);
  /* 長い一文なので、狭い画面では折り返させる（375px で横スクロールを出さない） */
  white-space: normal;
}

/* ---------- 柱のレイアウト ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.split.reverse .split-visual {
  order: -1;
}

.claim {
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 3px solid transparent;
  border-image: var(--brand) 1;
  background: rgba(255, 255, 255, 0.03);
  font-size: 17px;
  font-weight: 700;
}

/* ---------- 裏の柱 ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- モックアップ共通 ---------- */
/*
  ここは実物のスクリーンショットではなく、UI の模式図。
  実データが写らないようダミーの要望名だけを置いてある（068 の完了条件）。
*/

.window {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--line);
}

.window-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-bar .title {
  margin-left: 6px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.app-body {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 292px;
}

.app-nav {
  border-right: 1px solid var(--line);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-nav div {
  font-size: 12px;
  color: var(--text-muted);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.app-nav div.on {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
}

.app-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  min-width: 0;
}

.row .no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.row .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
}

.row.sel {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.row.sel .name {
  color: var(--text);
}

.pill {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  white-space: nowrap;
}

.pill.open {
  color: var(--brand-orange);
  border-color: rgba(245, 166, 35, 0.4);
}

.pill.wip {
  color: #7aa2ff;
  border-color: rgba(122, 162, 255, 0.4);
}

.pill.closed {
  color: var(--ok);
  border-color: rgba(99, 226, 183, 0.35);
}

/* ---------- コード（フロントマター） ---------- */

.code {
  margin: 0;
  padding: 20px 22px;
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-muted);
  overflow-x: auto;
}

.code .k {
  color: #7aa2ff;
}

.code .v {
  color: var(--ok);
}

.code .c {
  color: var(--text-dim);
}

.code .h {
  color: var(--text);
  font-weight: 700;
}

/* ---------- ターミナル ---------- */

.term-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 10px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  overflow-x: auto;
}

.term-tabs .tab {
  font-size: 12px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.term-tabs .tab.on {
  color: var(--text);
  background: var(--surface);
}

.term-tabs .tab.waiting {
  color: #1b1205;
  background: var(--waiting);
  border-color: var(--waiting);
  font-weight: 700;
}

.term-body {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-muted);
  min-height: 218px;
}

.term-body .p {
  color: var(--ok);
}

.term-body .q {
  color: var(--waiting);
}

.term-body .cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  vertical-align: -2px;
  background: var(--text-muted);
}

/* ---------- ビューのタイル ---------- */

.views {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 44px 0 36px;
}

.view {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.view h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.view p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.7;
}

.view .glyph {
  display: block;
  margin-bottom: 14px;
  color: var(--text-muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 15px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
}

.feature-list strong {
  color: var(--text);
}

/* ---------- 始め方 ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.steps h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.steps p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.75;
}

/* ---------- フッタ CTA ---------- */

.closing {
  text-align: center;
  background:
    radial-gradient(closest-side at 50% 0%, rgba(198, 42, 138, 0.18), transparent 75%),
    transparent;
}

.closing .section-title {
  margin-bottom: 28px;
}

.closing .cta-note {
  margin-top: 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--text-dim);
  font-size: 13px;
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
}

/* ---------- リリースノート（release-notes.html / 073） ---------- */

/* ヘッダ右の導線。LP ⇄ リリースノートの行き来はこことフッタだけで、
   Store の CTA はヒーローとフッタの 2 箇所のまま（068 の決めごと）。 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav a:hover {
  color: var(--text);
}

/* リリースノート側では、ブランドが LP へ戻るリンクになる */
a.brand {
  text-decoration: none;
}

.notes {
  padding-top: 64px;
}

.release {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.release-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 22px;
}

.release-version {
  font-size: clamp(22px, 3.4vw, 28px);
}

.release-date {
  color: var(--text-dim);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.release-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* 読み物なので 1 列で読ませる（.feature-list の 2 列グリッドを上書きする） */
.release-items {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 72ch;
}

.release-items li {
  line-height: 1.9;
}

.release-summary + .release-summary {
  margin-top: 14px;
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text-muted);
}

/* ---------- 狭い画面 ---------- */

@media (max-width: 860px) {
  section {
    padding: 64px 0;
  }

  .hero {
    padding: 52px 0 64px;
  }

  .hero .shell,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .split.reverse .split-visual {
    order: 0;
  }

  .hero-actions {
    align-items: stretch;
  }

  .app-body {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media (max-width: 460px) {
  .shell {
    padding: 0 18px;
  }

  /* ブランドとリンクだけ残す（3 つ並ぶとヘッダが折り返す） */
  .site-header .cta-note {
    display: none;
  }

  .loop {
    padding: 16px;
  }

  .code {
    font-size: 12.5px;
    padding: 16px;
  }
}
