/* SyncScreen 紹介サイト。ロゴに合わせたモノクロ基調＋プラグインと同じ青（#0d99ff）をアクセントに使う */

:root {
  --bg: #ffffff;
  --surface: #f6f6f4;
  --text: #1b1b1b;
  --muted: #666660;
  --line: #e4e4e0;
  --accent: #0d99ff;
  --accent-text: #0b7fd4;
  --button-bg: #1b1b1b;
  --button-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --surface: #212121;
    --text: #f2f2ef;
    --muted: #a3a39c;
    --line: #333331;
    --accent-text: #5bb8ff;
    --button-bg: #f2f2ef;
    --button-text: #161616;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', 'IBM Plex Sans JP', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

p {
  margin: 0;
}

/* ---- ヘッダー / フッター ---- */

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}

.logo-mark {
  width: 26px;
  height: 32px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.site-header nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
}

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

.site-footer {
  margin-top: 96px;
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 12px;
}

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

/* ---- 共通部品 ---- */

.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  opacity: 0.85;
}

.button.disabled {
  opacity: 0.45;
  cursor: default;
}

.button.small {
  padding: 8px 16px;
  font-size: 13px;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

section {
  padding-top: 96px;
}

section > h2 {
  font-size: 28px;
  margin-bottom: 32px;
}

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

.hero {
  padding-top: 64px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: -0.01em;
}

.hero .lead {
  max-width: 640px;
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: 18px;
}

/* ---- 同期の図 ---- */

.diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 16px;
  margin-top: 64px;
  padding: 32px;
  border-radius: 20px;
  background: var(--surface);
}

.diagram .file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.diagram .file-name {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
}

.diagram .caption {
  color: var(--muted);
  font-size: 13px;
}

.diagram .screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 132px;
  height: 200px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.diagram .screen i {
  height: 10px;
  border-radius: 5px;
  background: var(--line);
}

.diagram .screen i:first-child {
  width: 60%;
  height: 14px;
  margin-bottom: 12px;
  background: var(--text);
}

.diagram .screen i.accent {
  height: 26px;
  margin-top: auto;
  border-radius: 13px;
  background: var(--accent);
}

.diagram .card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
}

.diagram .card .screen {
  border: 0;
  border-radius: 0;
}

.diagram .card-footer {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.5;
}

.diagram .card-footer b {
  font-weight: 600;
}

.diagram .card-footer u {
  color: var(--accent-text);
}

.diagram .flow {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 500;
}

.diagram .flow::after {
  content: '';
  width: 72px;
  height: 10px;
  margin-top: 4px;
  background: var(--accent);
  clip-path: polygon(0 40%, 86% 40%, 86% 0, 100% 50%, 86% 100%, 86% 60%, 0 60%);
}

/* ---- 手順 / 機能 ---- */

.steps,
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li,
.features li {
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
}

.features li {
  border: 1px solid var(--line);
  background: none;
}

.steps h3,
.features h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.steps p,
.features p {
  color: var(--muted);
  font-size: 15px;
}

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

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

.plan {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.plan.featured {
  border: 2px solid var(--text);
}

.plan h3 {
  font-size: 18px;
}

.plan .price {
  margin-top: 8px;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.2;
}

.plan .price small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
}

.plan .price-sub {
  color: var(--muted);
  font-size: 14px;
}

.plan ul {
  margin: 20px 0 0;
  padding-left: 20px;
  font-size: 15px;
}

.requirement {
  margin: 16px 0;
  padding: 24px;
  border-left: 4px solid var(--accent);
  border-radius: 4px 16px 16px 4px;
  background: var(--surface);
}

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

.requirement p {
  font-size: 15px;
}

/* ---- FAQ ---- */

.faq {
  margin: 0;
}

.faq > div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.faq dt {
  font-weight: 600;
}

.faq dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.closing {
  text-align: center;
}

.closing .actions {
  justify-content: center;
}

/* ---- 法務ページ ---- */

.legal {
  max-width: 760px;
  padding-top: 48px;
}

.legal.center {
  margin: 0 auto;
  padding-top: 96px;
  text-align: center;
}

.legal h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--muted);
  font-size: 14px;
}

.legal h2 {
  font-size: 19px;
  margin: 40px 0 8px;
}

.legal p {
  margin-top: 12px;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal h3 {
  font-size: 16px;
  margin: 28px 0 4px;
}

.legal code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface);
  font-size: 0.9em;
}

.legal li ul {
  margin-top: 4px;
}

/* 方針文書（Markdown から生成）: 見出し直後の日付行は控えめに */
.legal.policy h1 + p {
  margin-top: 0;
  color: var(--muted);
  font-size: 14px;
}

/* 列見出しのある表（Markdown の表）。狭い画面では横にスクロールさせる */
.legal .table-scroll {
  margin-top: 16px;
  overflow-x: auto;
}

.legal table.grid {
  min-width: 560px;
  margin-top: 0;
}

.legal table.grid th,
.legal table.grid td {
  display: table-cell;
  width: auto;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.legal table.grid th {
  background: var(--surface);
  white-space: nowrap;
}

.legal hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.legal table {
  width: 100%;
  margin-top: 32px;
  border-collapse: collapse;
  font-size: 15px;
}

.legal th,
.legal td {
  padding: 14px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal th {
  width: 30%;
  font-weight: 600;
}

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

@media (max-width: 720px) {
  .site-header,
  main,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header nav {
    gap: 12px;
    font-size: 13px;
  }

  .site-header nav a[href*='#']:not(.button) {
    display: none;
  }

  section {
    padding-top: 64px;
  }

  .steps,
  .features,
  .plans {
    grid-template-columns: 1fr;
  }

  .diagram {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }

  .diagram .file-name {
    align-self: center;
  }

  .diagram .flow::after {
    transform: rotate(90deg);
    margin: 36px 0 32px;
  }

  .legal th,
  .legal td {
    display: block;
    width: 100%;
  }

  .legal td {
    padding-top: 0;
    border-top: 0;
  }
}
