/* ===== Bootstrap カスタマイズ ===== */
body {
  background-color: #f8f9fa;
}

/* 記事コンテンツのスタイル */
.post-content {
  line-height: 1.8;
}

.post-content h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.post-content h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content code {
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
  color: #d63384;
}

.post-content pre {
  background-color: #0d1117;
  padding: 0;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.post-content pre code {
  background-color: transparent;
  padding: 1rem;
  display: block;
  color: #e6edf3;
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-content blockquote {
  border-left: 4px solid #0d6efd;
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1rem;
  color: #6c757d;
  font-style: italic;
}

.post-content a {
  color: #0d6efd;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

.post-content img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

/* カードのホバーエフェクト */
.card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.post-content {
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
}

.post-content h2 {
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #222;
}

.post-content h3 {
  font-size: 18px;
  margin-top: 25px;
  margin-bottom: 12px;
  color: #333;
}

.post-content p {
  margin-bottom: 15px;
}

.post-content ul,
.post-content ol {
  margin-left: 25px;
  margin-bottom: 15px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content code {
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 14px;
}

.post-content pre {
  background-color: #0d1117;
  padding: 0;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
  margin-top: 20px;
}

.post-content pre code {
  background-color: transparent;
  padding: 16px;
  display: block;
  color: #e6edf3;
  font-size: 14px;
  line-height: 1.6;
}

.back-link {
  display: inline-block;
  margin-top: 30px;
  color: #0066cc;
  font-size: 14px;
}

/* ===== フッター ===== */
.site-footer {
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 30px 0;
  margin-top: 60px;
  text-align: center;
}

.site-footer p {
  color: #999;
  font-size: 14px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .site-title {
    font-size: 24px;
  }

  .post-card {
    padding: 20px;
  }

  .post-title {
    font-size: 20px;
  }

  .post-content {
    padding: 25px;
  }
}
