/* =============================================
   秋津整骨院 ブログ記事用CSS
   メインカラー: #EB7800
   適用範囲: .blog-article クラス内のみ
   ============================================= */

/* --- 記事コンテナ --- */
.blog-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "メイリオ", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  word-break: break-all;
  overflow-wrap: break-word;
}

/* --- 見出し共通 --- */
.blog-article h1,
.blog-article h2,
.blog-article h3 {
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* --- h1: 記事タイトル --- */
.blog-article h1 {
  font-size: 26px;
  color: #1a1a1a;
  border-bottom: 3px solid #EB7800;
  padding-bottom: 12px;
  margin: 0 0 32px;
}

/* --- h2: 大見出し --- */
.blog-article h2 {
  font-size: 22px;
  color: #c46300;
  border-left: 5px solid #EB7800;
  padding: 8px 0 8px 16px;
  margin: 48px 0 20px;
  background: #fef6ec;
}

/* --- h3: 小見出し --- */
.blog-article h3 {
  font-size: 18px;
  color: #b35c00;
  padding: 6px 0 6px 14px;
  margin: 36px 0 16px;
  border-left: 3px solid #f4a84b;
}

/* --- 本文 --- */
.blog-article p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

/* --- リスト (ul / li) --- */
.blog-article ul {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
}

.blog-article ul li {
  position: relative;
  padding: 6px 0 6px 24px;
  line-height: 1.8;
  color: #333;
}

.blog-article ul li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 4px;
  width: 10px;
  height: 10px;
  background: #EB7800;
  border-radius: 50%;
}

/* --- 引用 (blockquote) --- */
.blog-article blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: #fef9f3;
  border-left: 4px solid #d4956a;
  border-radius: 0 6px 6px 0;
  color: #555;
  font-style: normal;
  line-height: 1.8;
}

.blog-article blockquote p {
  margin: 0 0 8px;
  color: #555;
}

.blog-article blockquote p:last-child {
  margin-bottom: 0;
}

/* --- 注釈・補足 (small) --- */
.blog-article small {
  display: inline-block;
  font-size: 13px;
  line-height: 1.6;
  color: #888;
}

/* --- 参考文献・出典 (.reference) --- */
.blog-article .reference {
  margin: 40px 0 24px;
  padding: 20px 24px;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}

.blog-article .reference::before {
  content: "参考・出典";
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.blog-article .reference cite {
  display: block;
  font-style: normal;
  padding: 4px 0;
  color: #666;
}

.blog-article .reference cite a {
  color: #EB7800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-article .reference cite a:hover {
  color: #b35c00;
  text-decoration: none;
}

/* --- 記事内リンク（汎用） --- */
.blog-article a {
  color: #EB7800;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.blog-article a:hover {
  color: #b35c00;
  text-decoration: none;
}

/* --- 記事内画像 --- */
.blog-article img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 16px 0;
}

/* --- レスポンシブ --- */
@media screen and (max-width: 600px) {
  .blog-article {
    padding: 20px 16px 36px;
    font-size: 15px;
  }

  .blog-article h1 {
    font-size: 22px;
  }

  .blog-article h2 {
    font-size: 19px;
    padding: 6px 0 6px 12px;
  }

  .blog-article h3 {
    font-size: 17px;
  }

  .blog-article blockquote {
    padding: 16px 18px;
  }

  .blog-article .reference {
    padding: 16px 18px;
  }
}

/* --- 投稿メタ情報（日付・カテゴリー） --- */
.blog-article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -20px 0 28px;
  font-size: 14px;
  color: #888;
}

.blog-article__meta time {
  color: #888;
}

.blog-article__meta a {
  display: inline-block;
  background: #fef6ec;
  color: #EB7800;
  padding: 2px 12px;
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
}

.blog-article__meta a:hover {
  background: #EB7800;
  color: #fff;
}

/* --- アイキャッチ画像 --- */
.blog-article__thumbnail {
  margin: 0 0 32px;
}

.blog-article__thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0;
}

/* --- 前後記事ナビゲーション --- */
.blog-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 48px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid #e0e0e0;
  font-size: 14px;
}

.blog-nav a {
  color: #EB7800;
  text-decoration: none;
}

.blog-nav a:hover {
  text-decoration: underline;
}

.blog-nav__prev,
.blog-nav__next {
  max-width: 45%;
}

.blog-nav__next {
  text-align: right;
  margin-left: auto;
}

/* --- アーカイブページタイトル --- */
.archive-title {
  font-size: 22px;
  font-weight: 700;
  color: #c46300;
  border-left: 5px solid #EB7800;
  padding: 8px 0 8px 16px;
  margin: 0 0 28px;
  background: #fef6ec;
}

/* --- ブログカード（一覧） --- */
.blog-card {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.blog-card__thumb {
  flex-shrink: 0;
  width: 180px;
}

.blog-card__thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.blog-card__body {
  flex: 1;
  min-width: 0;
}

.blog-card__body time {
  font-size: 13px;
  color: #999;
}

.blog-card__body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 4px 0 8px;
  line-height: 1.5;
  border: none;
  padding: 0;
}

.blog-card__body h3 a {
  color: #333;
  text-decoration: none;
}

.blog-card__body h3 a:hover {
  color: #EB7800;
}

.blog-card__body p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* --- ページネーション --- */
.blog-pagination {
  margin: 40px 0 0;
  text-align: center;
}

.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.blog-pagination .page-numbers {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
}

.blog-pagination .page-numbers.current {
  background: #EB7800;
  border-color: #EB7800;
  color: #fff;
}

.blog-pagination .page-numbers:hover:not(.current) {
  background: #fef6ec;
  border-color: #EB7800;
  color: #EB7800;
}

/* --- 一覧レスポンシブ --- */
@media screen and (max-width: 600px) {
  .blog-card {
    flex-direction: column;
    gap: 12px;
  }

  .blog-card__thumb {
    width: 100%;
  }

  .blog-card__thumb img {
    height: 180px;
  }
}

/* =============================================
   カテゴリータブ
   ============================================= */
.category-header {
  margin: 0 0 20px;
}

.category-description {
  font-size: 14px;
  color: #888;
  margin: 8px 0 0;
  line-height: 1.6;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0 0 20px;
  border-bottom: 1px solid #eee;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 14px;
  color: #666;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.category-tab:hover {
  color: #EB7800;
  border-color: #EB7800;
  background: #fef6ec;
}

.category-tab.is-active {
  color: #fff;
  background: #EB7800;
  border-color: #EB7800;
}

.category-tab__count {
  font-size: 12px;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
}

.category-tab.is-active .category-tab__count {
  background: rgba(255, 255, 255, 0.25);
}

/* =============================================
   ブログカード（一覧）
   ============================================= */
.blog-card {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.blog-card__thumb {
  flex-shrink: 0;
  width: 180px;
}

.blog-card__thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.blog-card__body {
  flex: 1;
  min-width: 0;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}

.blog-card__meta time {
  font-size: 13px;
  color: #999;
}

.blog-card__cat {
  display: inline-block;
  font-size: 12px;
  padding: 1px 10px;
  background: #fef6ec;
  color: #EB7800;
  border-radius: 3px;
  text-decoration: none;
}

.blog-card__cat:hover {
  background: #EB7800;
  color: #fff;
}

.blog-card__body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.5;
  border: none;
  padding: 0;
}

.blog-card__body h3 a {
  color: #333;
  text-decoration: none;
}

.blog-card__body h3 a:hover {
  color: #EB7800;
}

.blog-card__body p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* =============================================
   ページネーション
   ============================================= */
.blog-pagination {
  margin: 40px 0 0;
  text-align: center;
}

.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.blog-pagination .page-numbers {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-pagination .page-numbers.current {
  background: #EB7800;
  border-color: #EB7800;
  color: #fff;
}

.blog-pagination .page-numbers:hover:not(.current) {
  background: #fef6ec;
  border-color: #EB7800;
  color: #EB7800;
}

.blog-pagination .prev,
.blog-pagination .next {
  padding: 0 12px;
}

/* =============================================
   記事なし
   ============================================= */
.blog-empty {
  padding: 60px 20px;
  text-align: center;
  color: #999;
  font-size: 15px;
}

/* =============================================
   一覧レスポンシブ
   ============================================= */
@media screen and (max-width: 600px) {
  .category-tabs {
    gap: 6px;
  }

  .category-tab {
    padding: 5px 12px;
    font-size: 13px;
  }

  .blog-card {
    flex-direction: column;
    gap: 12px;
  }

  .blog-card__thumb {
    width: 100%;
  }

  .blog-card__thumb img {
    height: 180px;
  }
}

/* =============================================
   関連記事「このような記事もおすすめです」
   ※ blog-article.css の末尾に追記してください
   ============================================= */

.related-posts {
  width:95%;
  margin:0 auto;
  padding: 36px 0 0;
  border-top: 2px solid #EB7800;
}

.related-posts__title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin: 0 0 24px;
  padding: 0;
  border: none;
  background: none;
  position: relative;
}

.related-posts__title::before {
  content: "＼";
  color: #EB7800;
  margin-right: 8px;
  font-weight: 400;
}

.related-posts__title::after {
  content: "／";
  color: #EB7800;
  margin-left: 8px;
  font-weight: 400;
}

/* 一覧と同じ .blog-card を再利用するため追加スタイル不要 */
/* 最後のカードの下線を消す */
.related-posts .blog-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* --- レスポンシブ --- */
@media screen and (max-width: 600px) {
  .related-posts {
    margin: 40px 0 0;
    padding: 28px 0 0;
  }

  .related-posts__title {
    font-size: 18px;
  }
}