/* テックリサーチクリップ サポートサイト 共通スタイル
   外部フォント・外部スクリプトは使わない（Step10.1 §3-1）。 */

:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5b636d;
  --border: #e3e4e0;
  --accent: #1f6f5c;
  --accent-soft: #e6f2ee;
  --note-bg: #fff8e6;
  --note-border: #ecd9a4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191c;
    --surface: #1f2226;
    --text: #e6e7e9;
    --muted: #a2a8b0;
    --border: #33373d;
    --accent: #6cc4ab;
    --accent-soft: #1f3330;
    --note-bg: #2b2719;
    --note-border: #5a4d27;
  }
}

* {
  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: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

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

/* ヘッダー */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.site-name small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

/* 本文 */
main {
  padding: 32px 0 48px;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 0 0 8px;
}

.lead {
  color: var(--muted);
  margin: 0 0 32px;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 40px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.02rem;
  margin: 24px 0 8px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 1.4em;
}

li + li {
  margin-top: 4px;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.95rem;
}

.toc ol {
  margin: 0;
}

.site-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 12px;
}

.site-card h3 {
  margin-top: 0;
}

.site-card ul {
  margin-bottom: 0;
}

.note {
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
}

dl.faq dt {
  font-weight: 700;
  margin-top: 18px;
}

dl.faq dd {
  margin: 4px 0 0;
}

.cta {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 700;
  text-decoration: none;
}

/* プライバシーポリシー */
.policy-meta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 18px;
  margin: 0 0 24px;
}

.policy-meta p {
  margin: 0;
}

.policy ul {
  list-style: none;
  padding-left: 0;
}

.policy ul li::before {
  content: "・";
}

/* フッター */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer .wrap {
  padding-top: 20px;
  padding-bottom: 24px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.site-footer p {
  margin: 0;
}
