:root {
  --text: #1f2430;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent2: #0ea5e9;
  --bg: #ffffff;
  --soft: #f6f8fb;
  --grad: linear-gradient(135deg, #2563eb, #0ea5e9);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; padding-top: 12px; padding-bottom: 12px;
}
.site-title {
  font-weight: 800; font-size: 1.12rem; color: var(--text);
  text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
}
.site-title::before {
  content: ""; width: 26px; height: 26px; border-radius: 8px;
  background: var(--grad); box-shadow: 0 4px 10px rgba(37,99,235,.35);
}
.site-nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: .95rem; }
.site-nav a:hover { color: var(--accent); }

/* ヒーロー */
.hero {
  margin: 28px 0 8px; padding: 34px 26px; border-radius: 20px;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe 55%, #eef2ff);
  border: 1px solid #dbeafe;
}
.hero-badge {
  display: inline-block; background: #fff; color: var(--accent);
  border: 1px solid #bfdbfe; border-radius: 999px;
  padding: 2px 14px; font-size: .8rem; font-weight: 700; margin-bottom: 12px;
}
.hero h1 { font-size: 1.65rem; line-height: 1.5; margin: 0 0 12px; }
.hero p { margin: 0 0 16px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips span {
  background: rgba(255,255,255,.85); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 13px; font-size: .83rem; color: var(--text);
}

/* 記事カード */
.section-title {
  font-size: 1.25rem; margin: 34px 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ""; width: 6px; height: 24px; border-radius: 3px; background: var(--grad);
}
.cards { display: grid; gap: 18px; padding-bottom: 44px; }
.card {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: 0 2px 10px rgba(15,23,42,.05);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 10px 26px rgba(15,23,42,.12); transform: translateY(-2px); }
.card a { color: inherit; text-decoration: none; display: block; }
.card-thumb {
  height: 92px; background: var(--grad);
  display: flex; align-items: flex-end; padding: 10px 16px;
}
.card-thumb span {
  background: rgba(255,255,255,.92); color: var(--accent);
  border-radius: 999px; padding: 1px 12px; font-size: .78rem; font-weight: 700;
}
.card-body { padding: 16px 20px 18px; }
.card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.card p { margin: 4px 0; }
.card-meta { color: var(--muted); font-size: .85rem; }

/* 記事ページ */
.post { padding: 30px 0 48px; }
.post h1 { font-size: 1.55rem; line-height: 1.5; }
.post h2 {
  font-size: 1.2rem; margin: 34px 0 12px; padding: 8px 14px;
  background: var(--soft); border-left: 5px solid var(--accent); border-radius: 0 10px 10px 0;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.tags span {
  background: #eff6ff; color: var(--accent); border-radius: 999px;
  padding: 2px 12px; font-size: .8rem; font-weight: 600;
}
.affiliate-box {
  border-radius: 16px; padding: 2px; margin: 28px 0;
  background: var(--grad); box-shadow: 0 8px 20px rgba(37,99,235,.18);
}
.affiliate-box-inner {
  background: #fff; border-radius: 14px; padding: 20px; text-align: center;
}
.affiliate-box-inner p { margin: 0 0 6px; font-weight: 600; }
.affiliate-link {
  display: inline-block; margin-top: 8px; padding: 11px 34px;
  background: var(--grad); color: #fff; font-weight: 700;
  border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 14px rgba(37,99,235,.3);
}
.author-box {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; margin: 36px 0 8px; background: var(--soft);
}
.author-avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.author-box h3 { margin: 0 0 4px; font-size: 1rem; }
.author-box p { margin: 0; font-size: .92rem; color: var(--muted); }

.conclusion-box {
  border: 2px solid var(--accent); border-radius: 14px;
  padding: 16px 20px; margin: 22px 0 6px; background: #eff6ff;
}
.conclusion-box p { margin: 4px 0; }
.conclusion-title { font-weight: 800; color: var(--accent); }
.faq p { margin: 6px 0; }

/* フッター */
.site-footer {
  background: #0f172a; color: #cbd5e1;
  font-size: .85rem; padding: 26px 0 36px; margin-top: 12px;
}
.site-footer p { margin: 6px 0; }
