/* Rootlore の LP。アプリと同じ色（白に近い背景、薄い境界線、紫のアクセント）で揃える。
   アプリの見た目は silverbullet/client/styles/_vault_web_theme.scss が正。 */

:root {
  --canvas: #ffffff;
  --canvas-soft: #f6f6f7;
  --ink: #18181b;
  --ink-soft: #5c5c5c;
  --line: #e3e3e3;
  --accent: #7f6df2;
  --accent-ink: #6a55e0;
  --accent-soft: rgba(127, 109, 242, 0.08);
  --radius: 12px;
  --width: 1080px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--canvas-soft);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.9em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--width);
  margin: 0 auto;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex: 1;
  gap: 22px;
  font-size: 14px;
}

.site-header nav a {
  color: var(--ink-soft);
}

.site-header nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* --- ボタン --- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: filter 0.15s, background-color 0.15s;
}

.button:hover {
  filter: brightness(0.94);
  text-decoration: none;
}

.button-small {
  padding: 7px 14px;
  font-size: 14px;
}

.button-large {
  padding: 14px 30px;
  font-size: 16px;
}

.button-quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  background: var(--canvas-soft);
}

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

.hero {
  max-width: var(--width);
  margin: 0 auto;
  padding: 72px 24px 40px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 640px;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

/* 画面の見本。中身は飾り（読み上げない） */
.hero-shot {
  margin: 48px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas);
  box-shadow: 0 24px 60px -32px rgba(24, 24, 27, 0.28);
  overflow: hidden;
}

.shot-bar {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas-soft);
}

.shot-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6d6da;
}

.shot-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 300px;
}

.shot-side {
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  background: var(--canvas-soft);
}

.shot-side-title {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
}

.shot-line {
  height: 8px;
  margin-bottom: 10px;
  border-radius: 4px;
  background: #e6e6ea;
}

.shot-line.short {
  width: 62%;
}

.shot-main {
  padding: 22px 24px;
}

.shot-heading {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 4px;
  margin-bottom: 26px;
}

.shot-grid i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: #eeeeef;
}

.shot-grid i.on {
  background: var(--accent);
  opacity: 0.72;
}

.shot-row {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.shot-row:last-child {
  border-bottom: none;
}

.shot-date {
  flex: none;
  color: #9a9aa2;
  font-variant-numeric: tabular-nums;
}

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

.section {
  max-width: var(--width);
  margin: 0 auto;
  padding: 72px 24px;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.section-lead {
  max-width: 700px;
  margin: 0 0 36px;
  color: var(--ink-soft);
}

.section-band {
  max-width: none;
  padding-left: max(24px, calc((100% - var(--width)) / 2 + 24px));
  padding-right: max(24px, calc((100% - var(--width)) / 2 + 24px));
  background: var(--canvas-soft);
}

/* --- カード --- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

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

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* --- 機能 --- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px 40px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* --- チェック --- */

.checks {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 15px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- 料金 --- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas);
}

.plan-pro {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.plan h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 18px;
}

.badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.price {
  margin: 0 0 18px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
}

.plan ul {
  flex: 1;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 14px;
}

.plan li {
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.plan li:last-child {
  border-bottom: none;
}

.plan-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

/* --- FAQ --- */

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "＋";
  display: inline-block;
  width: 1.4em;
  color: var(--accent-ink);
}

.faq details[open] summary::before {
  content: "−";
}

.faq p {
  margin: 0 0 18px;
  padding-left: 1.4em;
  color: var(--ink-soft);
  font-size: 15px;
}

/* --- 最後の誘い --- */

.final {
  max-width: var(--width);
  margin: 0 auto;
  padding: 80px 24px 96px;
  text-align: center;
}

.final h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
}

.final p {
  margin: 0 0 28px;
  color: var(--ink-soft);
}

/* --- フッター --- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--canvas-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  max-width: var(--width);
  margin: 0 auto;
  padding: 28px 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.footer-inner nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.footer-note {
  margin: 0 0 0 auto;
  color: var(--ink-soft);
  font-size: 13px;
}

/* --- スマートフォン --- */

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 12px 18px;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    font-size: 13px;
    white-space: nowrap;
  }

  .site-header .button-small {
    margin-left: auto;
  }

  .hero {
    padding: 48px 18px 32px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-shot {
    margin-top: 32px;
  }

  .shot-body {
    grid-template-columns: 1fr;
  }

  .shot-side {
    display: none;
  }

  .shot-main {
    padding: 18px;
  }

  .shot-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .section {
    padding: 52px 18px;
  }

  .section-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 18px;
  }

  .footer-note {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
