/* WanDuff 開発日記 — LPと統一したダークテーマ */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+2:wght@400;500;700;800;900&family=DM+Mono:wght@400;500&display=swap');

:root {
  --green: #00E676;
  --red: #f87171;
  --yellow: #fbbf24;
  --bg: #111;
  --card: #1a1a1a;
  --border: #252525;
  --text: #eee;
  --muted: #aaa;
  --mono: "DM Mono", monospace;
  --max-w: 430px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "M PLUS 2", sans-serif;
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 15px;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ─── ヘッダー（LP準拠） ─── */
.blog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}
.header-logo-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.header-tagline {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}
.header-logo {
  font-family: "M PLUS 2", sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  text-decoration: none;
  line-height: 1.2;
}
.header-logo span { color: var(--green); }

.header-nav {
  display: flex;
  gap: 8px;
}
.header-nav-link {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  transition: border-color .2s;
}
.header-nav-link:hover {
  border-color: rgba(255,255,255,0.4);
}

/* ─── メインコンテンツ ─── */
.blog-main {
  padding: 0 20px 80px;
}

/* ─── 記事一覧ヒーロー ─── */
.blog-index-hero {
  text-align: center;
  padding: 60px 20px 40px;
}
.blog-index-hero .section-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--green);
  letter-spacing: 0.14em;
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.2);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.blog-index-hero h1 {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.blog-index-hero p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ─── 記事カード一覧 ─── */
.article-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.article-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color .3s, box-shadow .3s;
}
.article-card:hover {
  border-color: rgba(0,230,118,0.3);
  box-shadow: 0 0 20px rgba(0,230,118,0.05);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 11px;
  color: #555;
  font-family: var(--mono);
}
.card-meta .tag {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--green);
  letter-spacing: 0.08em;
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.2);
  padding: 2px 8px;
  border-radius: 20px;
}
.article-card h2 {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 8px;
}
.card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── 記事本文 ─── */
.article-header {
  padding: 48px 0 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.article-header .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 11px;
  color: #555;
  font-family: var(--mono);
}
.article-header .meta .tag {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--green);
  letter-spacing: 0.08em;
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.2);
  padding: 2px 8px;
  border-radius: 20px;
}
.article-header h1 {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.4;
  color: #fff;
  letter-spacing: -0.3px;
}

.article-body { padding-top: 24px; }

.article-body h2 {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--green);
  line-height: 1.4;
}
.article-body h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 28px 0 12px;
  color: rgba(238,238,238,0.9);
}
.article-body p {
  font-size: 16px;
  color: rgba(238,238,238,0.78);
  line-height: 1.85;
  margin-bottom: 18px;
}
.article-body ul, .article-body ol {
  margin: 0 0 18px 20px;
  font-size: 16px;
  color: rgba(238,238,238,0.78);
}
.article-body li { margin-bottom: 6px; line-height: 1.75; }

.article-body blockquote {
  background: rgba(0,230,118,0.04);
  border-left: 3px solid var(--green);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-size: 16px;
  color: rgba(238,238,238,0.85);
  line-height: 1.75;
}
.article-body blockquote strong {
  color: var(--green);
  font-weight: 800;
}

.article-body code {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--mono);
  color: var(--green);
}
.article-body pre {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.6;
}
.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: rgba(238,238,238,0.75);
}

/* ストーリーブロック（LPの story-block 準拠） */
.article-body .story-block {
  background: rgba(255,255,255,0.02);
  border-left: 2px solid var(--green);
  padding: 16px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 16px;
  color: rgba(238,238,238,0.78);
  line-height: 1.85;
}
.article-body .story-block strong {
  color: var(--green);
  font-weight: 800;
}

/* 注意ボックス */
.article-body .warn-box {
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 13px;
  color: rgba(238,238,238,0.78);
  line-height: 1.75;
}
.article-body .warn-box strong {
  color: var(--yellow);
}

/* テーブル（LP card風） */
.article-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  font-size: 13px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.article-body th, .article-body td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article-body th {
  background: rgba(0,230,118,0.06);
  font-weight: 700;
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.article-body td {
  color: rgba(238,238,238,0.75);
}
.article-body tr:last-child td {
  border-bottom: none;
}

/* ─── 前後の記事ナビ ─── */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-nav a {
  display: block;
  flex: 1;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: rgba(238,238,238,0.78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  transition: border-color .3s;
}
.article-nav a:hover {
  border-color: rgba(0,230,118,0.3);
}
.article-nav .nav-label {
  font-size: 10px;
  color: var(--green);
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.article-nav .next { text-align: right; }

/* ─── フッター（LP準拠） ─── */
.blog-footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-logo-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-tagline {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}
.footer-logo {
  font-family: "M PLUS 2", sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}
.footer-logo span { color: var(--green); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.footer-copy {
  font-size: 12px;
  color: #444;
  font-family: var(--mono);
}

/* ─── 記事末CTA ─── */
.article-cta {
  margin-top: 48px;
  padding: 36px 24px;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,230,118,0.06) 0%, transparent 70%);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}
.article-cta .cta-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--green);
  letter-spacing: 0.14em;
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.2);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.article-cta .cta-heading {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
}
.article-cta .cta-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.article-cta .cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #111;
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.article-cta .cta-note {
  margin-top: 14px;
  font-size: 11px;
  color: #555;
  font-family: var(--mono);
}

/* ─── 記事一覧へ戻るボタン ─── */
.back-to-list {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  padding-bottom: 8px;
}
.back-to-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid rgba(0,230,118,0.3);
  border-radius: 20px;
  transition: background .2s, border-color .2s;
}
.back-to-list a:hover {
  background: rgba(0,230,118,0.06);
  border-color: rgba(0,230,118,0.5);
}
