/* ================================================================================
   ブログ用スタイルシート
   ================================================================================ */

/* プロズ（Tailwind）コンテンツのスタイリング */
.blog-content {
  line-height: 1.8;
  color: #374151; /* gray-700 */
}

.blog-content p {
  margin: 1.5rem 0;
  font-size: 1rem;
  line-height: 1.8;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  font-family: 'Noto Serif JP', 'Zen Old Mincho', serif;
  color: #1f2937; /* gray-900 */
  margin: 2rem 0 1rem 0;
  font-weight: 600;
  line-height: 1.4;
}

.blog-content h1 {
  font-size: 2.25rem; /* 36px */
  border-bottom: 3px solid #f97316; /* primary */
  padding-bottom: 1rem;
}

.blog-content h2 {
  font-size: 1.875rem; /* 30px */
  border-bottom: 2px solid #fb7185; /* secondary */
  padding-bottom: 0.75rem;
}

.blog-content h3 {
  font-size: 1.5rem; /* 24px */
  color: #d97706; /* amber-600 for visual hierarchy */
}

.blog-content h4 {
  font-size: 1.25rem; /* 20px */
}

.blog-content ul,
.blog-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.blog-content li {
  margin: 0.5rem 0;
  line-height: 1.8;
}

.blog-content ul li::marker {
  color: #f97316; /* primary */
}

.blog-content ol li::marker {
  color: #f97316; /* primary */
  font-weight: bold;
}

.blog-content a {
  color: #f97316; /* primary */
  text-decoration: underline;
  transition: all 0.3s ease;
}

.blog-content a:hover {
  color: #fb7185; /* secondary */
  text-decoration-color: #fb7185;
}

.blog-content strong,
.blog-content b {
  color: #1f2937; /* gray-900 */
  font-weight: 700;
}

.blog-content em,
.blog-content i {
  font-style: italic;
  color: #374151; /* gray-700 */
}

.blog-content blockquote {
  border-left: 4px solid #f97316; /* primary */
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background-color: #fef3c7; /* amber-50 */
  border-radius: 0.5rem;
  font-style: italic;
  color: #374151; /* gray-700 */
}

.blog-content code {
  background-color: #f3f4f6; /* gray-100 */
  color: #374151; /* gray-700 */
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

.blog-content pre {
  background-color: #1f2937; /* gray-900 */
  color: #f3f4f6; /* gray-100 */
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.blog-content table th {
  background-color: #f97316; /* primary */
  color: white;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
}

.blog-content table td {
  border: 1px solid #e5e7eb; /* gray-200 */
  padding: 0.75rem;
}

.blog-content table tr:nth-child(even) {
  background-color: #f9fafb; /* gray-50 */
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #f97316, #fb7185, #f97316);
  margin: 2rem 0;
}

/* ================================================================================
   ブログアイテムスタイル
   ================================================================================ */

.blog-item {
  transition: all 0.3s ease;
}

.blog-item:hover {
  transform: translateX(0.5rem);
}

.blog-item a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-item a:hover {
  color: #f97316; /* primary */
  text-decoration: underline;
}

/* ================================================================================
   フィルターボタンスタイル
   ================================================================================ */

.filter-btn {
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  animation: activeButton 0.3s ease-out;
}

@keyframes activeButton {
  from {
    transform: scale(0.95);
  }
  to {
    transform: scale(1);
  }
}

/* ================================================================================
   レスポンシブデザイン
   ================================================================================ */

@media (max-width: 768px) {
  .blog-content h1 {
    font-size: 1.75rem; /* 28px */
  }

  .blog-content h2 {
    font-size: 1.5rem; /* 24px */
  }

  .blog-content h3 {
    font-size: 1.25rem; /* 20px */
  }

  .blog-content p {
    font-size: 0.95rem;
  }

  .blog-content ul,
  .blog-content ol {
    padding-left: 1.5rem;
  }

  .blog-content blockquote {
    padding: 1rem 1rem;
    margin: 1rem 0;
  }

  .blog-content table {
    font-size: 0.875rem; /* 14px */
    overflow-x: auto;
    display: block;
  }
}

/* ================================================================================
   ダークモード対応（将来用）
   ================================================================================ */

@media (prefers-color-scheme: dark) {
  .blog-content {
    color: #e5e7eb; /* gray-200 */
  }

  .blog-content h1,
  .blog-content h2,
  .blog-content h3,
  .blog-content h4,
  .blog-content h5,
  .blog-content h6 {
    color: #f3f4f6; /* gray-100 */
  }

  .blog-content code {
    background-color: #374151; /* gray-700 */
    color: #f3f4f6; /* gray-100 */
  }

  .blog-content blockquote {
    background-color: rgba(249, 115, 22, 0.1); /* primary with opacity */
    border-left-color: #fb7185; /* secondary */
    color: #e5e7eb; /* gray-200 */
  }

  .blog-content table tr:nth-child(even) {
    background-color: #1f2937; /* gray-900 */
  }

  .blog-content table td {
    border-color: #374151; /* gray-700 */
  }
}

/* ================================================================================
   Prosify CSS（既存のプロズ互換性）
   ================================================================================ */

.prose p {
  margin-bottom: 1.25rem;
}

.prose a {
  color: #f97316;
  text-decoration: none;
  font-weight: 500;
}

.prose a:hover {
  text-decoration: underline;
}

.prose strong {
  font-weight: 600;
  color: #1f2937;
}

.prose em {
  font-style: italic;
}

/* ================================================================================
   ユーティリティクラス
   ================================================================================ */

.blog-highlight {
  background-color: #fef08a; /* yellow-100 */
  padding: 0.125rem 0.25rem;
  border-radius: 0.125rem;
}

.blog-note {
  background-color: #dbeafe; /* blue-100 */
  border-left: 4px solid #3b82f6; /* blue-500 */
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.blog-note strong {
  color: #1e40af; /* blue-800 */
}

.blog-warning {
  background-color: #fee2e2; /* red-100 */
  border-left: 4px solid #ef4444; /* red-500 */
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.blog-warning strong {
  color: #7f1d1d; /* red-900 */
}

.blog-success {
  background-color: #dcfce7; /* green-100 */
  border-left: 4px solid #22c55e; /* green-500 */
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.blog-success strong {
  color: #166534; /* green-900 */
}
