/* =============================
   News Single Post Design
   お知らせ記事詳細ページのモダンなデザイン
================================ */

/* subctsのpaddingを削除（お知らせ記事詳細ページのみ） */
body.single-news .subcts {
  padding: 0;
}

/* コンテナ */
.news-single-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* メインコンテンツエリア */
.news-single-main {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 記事タイトル */
.news-single-title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  margin: 0 0 24px;
}

/* メタ情報エリア */
.news-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 2px solid #f0f0f0;
}

/* 投稿日 */
.post-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.post-date svg {
  color: #667eea;
}

/* カテゴリバッジ - /blogページと完全に同じスタイル (blog-modern.css) */
.news-single-main .post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.news-single-main .post-categories .category-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: #b71f39 !important;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  font-size: 12px !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  transition: background .2s !important;
}

.news-single-main .post-categories .category-badge:hover {
  background: #CE2746 !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

/* 記事本文 */
.news-single-content {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.8;
}

.news-single-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1f2937;
  margin: 48px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #667eea;
}

.news-single-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin: 40px 0 20px;
}

.news-single-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 32px 0 16px;
}

.news-single-content p {
  margin-bottom: 24px;
}

.news-single-content ul,
.news-single-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

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

.news-single-content a {
  color: #667eea;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.news-single-content a:hover {
  color: #764ba2;
}

.news-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.news-single-content blockquote {
  border-left: 4px solid #667eea;
  padding-left: 20px;
  margin: 24px 0;
  color: #6b7280;
  font-style: italic;
}

.news-single-content pre,
.news-single-content code {
  background: #f3f4f6;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

.news-single-content pre {
  padding: 16px;
  overflow-x: auto;
  margin: 24px 0;
}

.news-single-content code {
  padding: 2px 6px;
  font-size: 0.9em;
}

/* タグ */
.news-single-tags {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tags-label {
  font-weight: 600;
  color: #6b7280;
  font-size: 14px;
}

.tag-badge {
  display: inline-block;
  padding: 6px 12px;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 16px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-badge:hover {
  background: #667eea;
  color: #fff;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
  .news-single-container {
    padding: 24px 16px;
  }

  .news-single-main {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .news-single-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .news-single-content {
    font-size: 15px;
  }

  .news-single-content h2 {
    font-size: 22px;
    margin: 32px 0 16px;
  }

  .news-single-content h3 {
    font-size: 20px;
    margin: 28px 0 14px;
  }

  .news-single-content h4 {
    font-size: 18px;
    margin: 24px 0 12px;
  }
}
