* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #1b1b1b;
  line-height: 1.65;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid #e9e9e9;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: #4b5563;
  font-size: 0.98rem;
}

.nav a.active,
.nav a:hover {
  color: #111827;
}

.hero {
  padding: 72px 0 40px;
}

.hero-small {
  padding-bottom: 30px;
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.88rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
  color: #111827;
  max-width: 800px;
}

.hero p {
  max-width: 760px;
  color: #4b5563;
  font-size: 1.05rem;
}

.posts-section {
  padding: 24px 0 80px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.post-card-link {
  display: block;
  height: 100%;
}

.post-card-content {
  padding: 24px;
}

.post-category {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-card h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #111827;
}

.post-card p {
  font-size: 0.98rem;
  color: #4b5563;
  margin-bottom: 18px;
}

.read-more {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.article-wrapper {
  padding: 48px 0 90px;
}

.article-layout {
  max-width: 820px;
}

.breadcrumb {
  margin-bottom: 18px;
  font-size: 0.92rem;
  color: #6b7280;
}

.breadcrumb a {
  color: #374151;
}

.article-header {
  margin-bottom: 30px;
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 14px;
  color: #111827;
}

.article-meta {
  color: #6b7280;
  font-size: 0.95rem;
}

.article-content p {
  margin-bottom: 18px;
  color: #374151;
  font-size: 1.04rem;
}

.article-content h2 {
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: 1.6rem;
  line-height: 1.25;
  color: #111827;
}

.article-content ul {
  margin: 0 0 20px 22px;
}

.article-content li {
  margin-bottom: 8px;
  color: #374151;
}

.cta-box {
  margin-top: 40px;
  padding: 28px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 18px;
}

.cta-box h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #111827;
}

.cta-box p {
  margin-bottom: 16px;
  color: #4b5563;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: #111827;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.96rem;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 24px 0;
}

.site-footer p {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.related-posts {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #f9fafb;
}

.related-posts h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  line-height: 1.3;
  color: #111827;
}

.related-posts ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.related-posts li {
  margin: 0 0 12px !important;
  padding: 0 !important;
}

.related-posts li:last-child {
  margin-bottom: 0 !important;
}

.related-posts a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  color: #374151 !important;
  font-size: 0.98rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.related-posts a::after {
  content: "→";
  color: #9ca3af;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.related-posts a:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #111827 !important;
}

.related-posts a:hover::after {
  transform: translateX(4px);
}