:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #23201c;
  --ink-soft: #5c574f;
  --line: #e7e3da;
  --accent: #c8532b;
  --accent-soft: #f6e9e2;
  --max: 720px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130f;
    --surface: #201c17;
    --ink: #f0ece4;
    --ink-soft: #b3aca0;
    --line: #322c24;
    --accent: #f0855c;
    --accent-soft: #2c211a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.85;
  font-size: 17px;
  letter-spacing: .01em;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(1.4) blur(6px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: .02em;
}
.brand .dot { color: var(--accent); }
.nav a { color: var(--ink-soft); font-size: 15px; margin-left: 18px; }

/* hero */
.hero { text-align: center; padding: 56px 20px 24px; }
.hero h1 {
  font-size: 30px;
  line-height: 1.5;
  margin: 0 0 12px;
  letter-spacing: .02em;
}
.hero p { color: var(--ink-soft); margin: 0; font-size: 16px; }

/* article list */
.list { padding: 24px 0 64px; }
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); text-decoration: none; }
.card .tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.card h2 { font-size: 20px; margin: 0 0 6px; color: var(--ink); line-height: 1.5; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* article page */
.article { padding: 40px 0 64px; }
.article .kicker { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.article h1 { font-size: 27px; line-height: 1.55; margin: 8px 0 8px; }
.article .meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 32px; }
.article h2 {
  font-size: 21px;
  margin: 40px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  line-height: 1.5;
}
.article p { margin: 0 0 20px; }
.article .lead {
  font-size: 19px;
  font-weight: 600;
  background: var(--accent-soft);
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.article .point {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.article .point strong { color: var(--accent); }

/* 関連書籍（アフィリエイト） */
.related {
  margin: 44px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.related .related-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.related .related-head h3 { font-size: 16px; margin: 0; }
.related .pr {
  font-size: 11px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
}
.related a.book {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}
.related a.book:first-of-type { border-top: 0; }
.related a.book:hover { color: var(--accent); text-decoration: none; }
.related a.book .arw { color: var(--accent); font-weight: 700; margin-right: 6px; }

.back { display: inline-block; margin-top: 40px; color: var(--ink-soft); font-size: 15px; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
  padding: 28px 20px;
}
