/* chronicle-app.dev の LP（Figma: LandingPage）。macOS ネイティブ寄り */
:root {
  --ink: #111114;
  --dim: #6e6e73;
  --rec: #ff3b30;
  --line: #e5e5ea;
  --soft: #f5f5f7;
  --tint: #fafafb;
  --accent: #2d6be8;
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.sp {
  display: none;
}

/* ナビ */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 40px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin-right: auto;
}
.brand.small {
  font-size: 14px;
  gap: 8px;
}
.logo {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}
.brand.small .logo {
  width: 18px;
  height: 18px;
}
.logo circle {
  fill: var(--rec);
  stroke: none;
}
.links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--dim);
}
.links a:hover {
  color: var(--ink);
}

/* ヒーロー */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 72px 24px 40px;
  text-align: center;
}
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--rec);
}
.hero h1 {
  font-size: 64px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--dim);
}
.ctas {
  display: flex;
  gap: 12px;
  padding-top: 10px;
}
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}
.button.secondary {
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.button.secondary:hover {
  background: var(--soft);
}
.note {
  font-size: 12px;
  color: var(--dim);
}

/* ヒーローの画面（履歴ウィンドウとメニュー） */
.stage {
  position: relative;
  max-width: 1100px;
  height: 560px;
  margin: 0 auto 96px;
  border-radius: 28px;
  background: linear-gradient(160deg, #eef1f6, #dce3ee);
  overflow: hidden;
}
.window {
  position: absolute;
  left: 60px;
  top: 70px;
  display: flex;
  width: 820px;
  height: 440px;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.15),
    0 18px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  font-size: 13px;
  text-align: left;
}
.w-side {
  width: 220px;
  flex: none;
  padding: 14px 10px;
  background: #ececef;
}
.lights {
  display: flex;
  gap: 8px;
  padding: 0 6px 18px;
}
.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}
.lights i:nth-child(2) {
  background: #febc2e;
}
.lights i:nth-child(3) {
  background: #28c840;
}
.w-group {
  padding: 10px 8px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #86868b;
}
.w-session {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
}
.w-session span,
.w-page span {
  flex: 1;
  min-width: 0;
}
small {
  display: block;
  font-size: 11px;
  color: #86868b;
}
.w-session.selected,
.w-page.selected {
  background: var(--accent);
  color: #fff;
}
.selected small {
  color: #dce6fb;
}
.rec {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rec);
}
.w-main {
  flex: 1;
  min-width: 0;
}
.w-head {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.w-head strong {
  font-size: 15px;
}
.w-page {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 10px;
  padding: 8px 12px 8px 10px;
  border-radius: 8px;
  font-weight: 700;
}
.w-page span,
.w-page small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-page small {
  font-weight: 400;
}
.w-page i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 7px;
  font-style: normal;
  font-weight: 600;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
}
.w-page.selected i {
  background: rgba(255, 255, 255, 0.22);
}
.menu {
  position: absolute;
  right: 40px;
  top: 30px;
  width: 270px;
  padding: 5px;
  border-radius: 10px;
  background: rgba(246, 246, 248, 0.96);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  text-align: left;
}
.menu p {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 5px;
}
.menu .m-status {
  color: #a1a1a6;
}
.menu .hl {
  background: var(--accent);
  color: #fff;
}
.menu kbd {
  margin-left: auto;
  font-family: inherit;
  color: #86868b;
}
.menu hr {
  margin: 4px 10px;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* セクション */
.section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 88px max(24px, calc((100% - 1200px) / 2));
}
.section.tint {
  background: var(--tint);
}
.section h2 {
  font-size: 40px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.cards,
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  padding: 32px;
  border-radius: 20px;
  background: var(--soft);
}
.card h3,
.steps h3 {
  font-size: 21px;
  margin-bottom: 12px;
}
.card p,
.steps p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--dim);
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.tree {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px 32px;
  margin-top: 16px;
  padding: 24px 28px;
  border-radius: 16px;
  background: #16161a;
  color: #e5e5ea;
  font-size: 14px;
  line-height: 1.8;
  overflow-x: auto;
}
.tree code {
  padding-left: 1.2em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.tree code.root {
  grid-column: 1 / -1;
  padding-left: 0;
}
.tree span {
  color: #8e8e93;
}
.points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
}
.points li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.points li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rec);
  transform: translateY(-2px);
}

/* フッター */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}
.footer .brand {
  color: var(--ink);
}

/* スマートフォン幅 */
@media (max-width: 900px) {
  .stage {
    height: 420px;
    margin: 0 16px 64px;
  }
  .window {
    left: 16px;
    top: 120px;
    width: 680px;
  }
  .menu {
    right: auto;
    left: 50%;
    top: 16px;
    transform: translateX(-50%);
  }
  .cards,
  .steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .sp {
    display: inline;
  }
  .pc {
    display: none;
  }
  .nav {
    padding: 16px 20px;
  }
  .links {
    display: none;
  }
  .hero {
    padding: 48px 20px 32px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .lead {
    font-size: 16px;
  }
  .section {
    padding: 64px 20px;
  }
  .section h2 {
    font-size: 28px;
  }
  .card {
    padding: 24px;
  }
  .tree {
    grid-template-columns: 1fr;
    gap: 0;
    font-size: 12px;
    padding: 18px;
  }
  .tree span {
    padding: 0 0 6px 1.2em;
  }
  .points {
    font-size: 15px;
  }
  .footer {
    padding: 24px 20px 32px;
  }
}
