/* StreetSignal 公式サイト共通スタイル
   - ライト/ダーク自動切替
   - モバイルファースト
   - 読みやすさ最優先
*/

:root {
  --bg: #ffffff;
  --bg-elevated: #f6f7f9;
  --text: #14171a;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --accent: #f5a623;
  --accent-hover: #e29410;
  --link: #2563eb;
  --link-hover: #1d4ed8;
  --code-bg: #f1f3f5;
  --max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080a0d;
    --bg-elevated: #11141a;
    --text: #e8eaed;
    --text-muted: #9aa0a6;
    --text-faint: #6b7280;
    --border: #1f2329;
    --border-strong: #2c3138;
    --accent: #f5a623;
    --accent-hover: #ffb83d;
    --link: #6ea8ff;
    --link-hover: #92bcff;
    --code-bg: #1a1d23;
  }
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--link-hover);
}

/* ── ヘッダー ── */
header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.2px;
}
.brand-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}
nav.site-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}
nav.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}
nav.site-nav a:hover { color: var(--text); }
nav.site-nav a.active { color: var(--accent); }

/* ── メインコンテンツ ── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 0 0 8px;
  line-height: 1.3;
}
h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 40px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.1px;
}
h2:first-of-type { border-top: none; padding-top: 0; }
h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text);
}

p {
  margin: 12px 0;
  color: var(--text);
}
p.lead {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 24px;
}

ul, ol {
  padding-left: 1.4em;
  margin: 12px 0;
}
li {
  margin: 6px 0;
}

strong {
  font-weight: 700;
}

code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
th, td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--bg-elevated);
  font-weight: 700;
}

.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
  padding: 12px 16px;
  border-radius: 6px;
  margin: 16px 0;
  font-size: 14px;
}

.meta {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

/* ── フッター ── */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
footer.site-footer a {
  color: var(--text-muted);
  margin: 0 12px;
}

/* ── ランディングページ専用 ── */
.hero {
  text-align: center;
  padding: 64px 20px 48px;
}
.hero h1 {
  font-size: 40px;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.hero .tagline {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.hero .cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  border-radius: 24px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}
.hero .cta:hover {
  background: var(--accent-hover);
  color: #000;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 48px 0;
}
.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.feature h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 15px;
}
.feature p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  .hero h1 { font-size: 32px; }
  .hero .tagline { font-size: 16px; }
  table { font-size: 13px; }
  th, td { padding: 8px 10px; }
}
