/* ===== もじへんげ ブログ共通CSS ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --white: #FFFFFF;
  --bg: #F8F9FC;
  --text: #1A1A2E;
  --text2: #6B7194;
  --border: #E8EAF0;
  --accent: #667eea;
  --accent2: #764ba2;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
  font-family: 'Noto Sans JP', 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
}

/* ===== BLOG INDEX ===== */
.blog-hero {
  background: var(--white);
  text-align: center;
  padding: 60px 24px 48px;
  border-bottom: 1px solid var(--border);
}
.blog-hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(102,126,234,0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.blog-hero-title {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  margin-bottom: 8px;
}
.blog-hero-subtitle {
  font-size: 14px;
  color: var(--text2);
}
.blog-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.blog-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.blog-card-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
}
.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
  width: fit-content;
}
.blog-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
}
.blog-card-excerpt {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  flex: 1;
}
.blog-card-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 12px;
}

/* Tag colors */
.tag-search { background: rgba(102,126,234,0.08); color: var(--accent); }
.tag-tool { background: rgba(43,174,102,0.08); color: #2BAE66; }
.tag-entertainment { background: rgba(232,93,58,0.08); color: #E85D3A; }

/* ===== ARTICLE PAGE ===== */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.article-title {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
}
.article-meta {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 36px;
}
.article-body h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 32px 0 12px;
}
.article-body p {
  font-size: 15px;
  margin-bottom: 20px;
}
.article-body strong {
  color: var(--text);
  font-weight: 700;
}
.article-body a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(102,126,234,0.3);
  transition: border-color 0.2s;
}
.article-body a:hover { border-color: var(--accent); }
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
  font-size: 15px;
}
.article-body li {
  margin-bottom: 8px;
}

/* Conversion example box */
.conv-example {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 16px 0 24px;
  border-left: 4px solid var(--accent);
}
.conv-example .conv-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.conv-example .conv-text {
  font-size: 15px;
  line-height: 1.8;
}
.conv-example .conv-arrow {
  color: var(--accent);
  font-weight: 700;
  margin: 6px 0;
  font-size: 14px;
}

/* Inline illustration */
.article-illust {
  text-align: center;
  margin: 32px 0;
}
.article-illust svg {
  max-width: 100%;
  height: auto;
}

/* CTA button */
.article-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  background: var(--gradient);
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(102,126,234,0.3);
  margin: 24px 0;
}
.article-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(102,126,234,0.4);
  color: #FFFFFF !important;
}

/* Related articles */
.related-section {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 2px solid var(--border);
}
.related-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.related-card-icon {
  font-size: 24px;
  margin-bottom: 10px;
}
.related-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

/* Footer */
.blog-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.blog-footer-logo {
  font-size: 18px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.blog-footer-text { font-size: 12px; color: var(--text2); }
.blog-footer-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.blog-footer-links a {
  font-size: 12px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-footer-links a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-body h2 { font-size: 18px; }
  .conv-example { padding: 16px 18px; }
}