/* iSyncX の Web サイト。色はアプリのアイコン(水色 → 青のグラデーション・金の星)から取る */

:root {
  --bg: #f7fafd;
  --surface: #ffffff;
  --text: #16202a;
  --muted: #56636f;
  --line: #dde5ec;
  --accent: #1f8fe6;
  --accent-soft: #e3f2fd;
  --hero-from: #2fa3e8;
  --hero-to: #1565c0;
  --star: #ffe07a;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f151b;
    --surface: #17202a;
    --text: #e6edf3;
    --muted: #9aa8b5;
    --line: #26323e;
    --accent: #6cc2ff;
    --accent-soft: #1a2d3d;
    --hero-from: #1d6fb0;
    --hero-to: #0e3f6b;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

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

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- 上の帯 ---- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}
.brand img { width: 32px; height: 32px; }
.lang { font-size: 15px; }

/* ---- 最初の大きな見出し ---- */
.hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff;
  border-radius: 24px;
  padding: 48px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.hero img { width: 128px; height: 128px; flex: none; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .18)); }
.hero h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.3; }
.hero p { margin: 0; font-size: 18px; opacity: .95; }
.hero .note { margin-top: 16px; font-size: 15px; }
.hero .note strong { color: var(--star); }

/* ---- 節 ---- */
section { margin: 48px 0; }
h2 {
  font-size: 24px;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
h3 { font-size: 18px; margin: 0 0 6px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card p { margin: 0; color: var(--muted); font-size: 16px; }

ol.steps { padding-left: 1.4em; }
ol.steps li { margin-bottom: 8px; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 16px;
}
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: none; }
th { width: 28%; font-weight: 600; background: var(--accent-soft); }

.get {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.get .card { display: flex; flex-direction: column; gap: 8px; }
.get-btn {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: var(--surface);
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 600;
  text-decoration: none;
}
.get-btn:hover { filter: brightness(1.08); }
.card p.note-small { font-size: 14px; }
.soon {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 14px;
  font-weight: 600;
}

.callout {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
}

/* ---- 文書(プライバシーポリシー) ---- */
.doc h1 { font-size: 30px; line-height: 1.35; margin: 32px 0 8px; }
.doc .date { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 20px; margin-top: 36px; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }

/* ---- 下の帯 ---- */
footer {
  margin-top: 64px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.small { font-size: 14px; color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { flex-direction: column; text-align: center; padding: 32px 20px; gap: 16px; }
  .hero img { width: 96px; height: 96px; }
  .hero h1 { font-size: 26px; }
  th, td { display: block; width: 100%; }
  th { border-bottom: none; padding-bottom: 4px; }
  td { padding-top: 4px; }
}
