/* ==============================
   お知らせシングル レイアウト
============================== */

/* メイン＋サイドバーのレイアウト */
#main_contents.newspage {
  max-width: 80%;
  margin: 40px auto 80px;
  display: flex;
  gap: 40px;
}

/* 記事エリア */
#main_col {
  flex: 1 1 auto;
}

/* サイドバー */
#main_contents .sidebar {
  flex: 0 0 280px;
}

/* ==============================
   記事本体（.news-single）
============================== */

.news-single {
  background: #ffffff;
  padding: 32px 32px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-radius: 8px;
}

/* 見出し（タイトル）は .under_head 側に出ている想定なので
   .entry-header では日付・カテゴリのみ表示 */
.news-single .entry-header {
  margin-bottom: 24px;
}

.news-single .entry-meta {
  font-size: 14px;
  color: #777;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.news-single .entry-meta time {
  font-weight: 600;
  letter-spacing: 0.05em;
}

.news-single .entry-meta .entry-terms {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 999px;
  background-color: #eef5f0;
  color: #5F856E;
}

/* 本文 */
.news-single .entry-content {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.news-single .entry-content p {
  margin-bottom: 1.4em;
}

.news-single .entry-content h2,
.news-single .entry-content h3,
.news-single .entry-content h4 {
  margin: 2.2em 0 1.0em;
  line-height: 1.5;
  color: #333;
}

.news-single .entry-content h2 {
  font-size: 22px;
  border-left: 4px solid #5F856E;
  padding-left: 12px;
}

.news-single .entry-content h3 {
  font-size: 18px;
  border-bottom: 1px solid #d9e6de;
  padding-bottom: 6px;
}

.news-single .entry-content a {
  color: #5F856E;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-single .entry-content a:hover {
  color: #3F5648;
}

.news-single .entry-content ul,
.news-single .entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}

/* ページネーション（複数ページに分かれる場合） */
.news-single .page-links {
  margin-top: 24px;
  font-size: 14px;
}

.news-single .page-links a {
  display: inline-block;
  margin: 0 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eef5f0;
  color: #5F856E;
}

/* ==============================
   関連（ほかのお知らせ）
============================== */

.related-posts.related-news {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #d9e6de;
}

/* 「ほかのお知らせ」タイトル */
.related-posts .term-title.case_heading.case_span {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-left: 14px;
}

.related-posts .term-title.case_heading.case_span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #5F856E;
}

/* カード一覧 */
.related-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* カード本体 */
.related-case-item {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-case-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* サムネイル */
.related-case-thumbnail {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.related-case-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* タイトル＋日付＋ボタン部分 */
.related-case-title {
  font-size: 15px;
  font-weight: 600;
  margin: 16px 16px 8px;
  line-height: 1.6;
}

.related-case-title .related-case-a {
  color: #333;
  text-decoration: none;
}

.related-case-title .related-case-a:hover {
  color: #5F856E;
}

.related-case-meta {
  margin: 0 16px;
  font-size: 13px;
  color: #777;
}

.related_hr {
  margin: 16px 16px 0;
  border: none;
  border-top: 1px solid #d9e6de;
}

/* 詳細ボタン */
.related-case-link {
  margin: 12px 16px 16px;
  text-align: right;
}

.btn.case_btn {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #5F856E;
  color: #5F856E;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn.case_btn:hover {
  background: #5F856E;
  color: #ffffff;
}

/* ==============================
   「お知らせ一覧へ」ボタン
============================== */

.btn-center {
  margin-top: 40px;
  text-align: center;
}

.btn-blue {
  display: inline-block;
  min-width: 220px;
  padding: 12px 32px;
  border-radius: 999px;
  background: #5F856E;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(63, 86, 72, 0.18);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-blue:hover {
  background: #3F5648;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(63, 86, 72, 0.22);
}

/* ==============================
   サイドバー（最近のお知らせ）
============================== */

#main_contents .sidebar {
  background-color: #ffffff;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  height: fit-content;
}

.sidebar-section {
  margin-bottom: 32px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #5F856E;
  color: #333;
}

.sidebar-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.sidebar-list a {
  color: #5F856E;
  text-decoration: none;
  position: relative;
  padding-left: 12px;
}

.sidebar-list a::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
}

.sidebar-list a:hover {
  color: #3F5648;
}

/* ==============================
   レスポンシブ
============================== */

@media screen and (max-width: 1024px) {
  #main_contents {
    flex-direction: column;
    gap: 24px;
    margin: 24px auto 60px;
    padding: 0 16px;
  }

  #main_contents .sidebar {
    width: 100%;
  }

  .related-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .news-single {
    padding: 24px 20px 32px;
  }

  .btn-blue {
    width: 100%;
  }
}

/* ==============================
   投稿ページ 見出しデザイン
   （post-single 専用）
============================== */
.related-posts.related-blog {
  margin: 50px 0;
}

/* ベースを整える */
.wp-block-list {
  list-style: none;
  padding: 0;
  margin: 1.2em 0;
  background: #f6faf7;
}

/* 各項目のデザイン */
.wp-block-list li {
  position: relative;
  padding: 10px 12px 10px 32px;
  margin-bottom: 8px;
  border-radius: 8px;
}

/* チェックマーク風の装飾 */
.wp-block-list li::before {
  content: "●";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #6F927C;
  font-weight: 700;
}

table.has-fixed-layout {
  margin: 20px 0;
}

/* ===== Entry header area ===== */
.entry-header {
  margin: 0 0 18px;
}

/* メタ情報（日時 / カテゴリ） */
.entry-header .entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}

/* 日付 */
.entry-header time {
  font-weight: 600;
  letter-spacing: .02em;
}

/* スラッシュの見え方調整（元の “ / ” が強い場合） */
.entry-header .entry-meta {
  position: relative;
}

.entry-header .entry-meta::after {
  content: "";
  display: block;
  width: 100%;
  border-bottom: 1px solid #e5e7eb;
  margin-top: 10px;
}

/* カテゴリ */
.entry-terms {
  font-weight: 600;
}

/* ===== ラベルをCSSで追加（カテゴリの手前に出す） ===== */
.entry-header .entry-meta::before {
  content: "コラム";
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  margin-right: 4px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #243129;
  background: #eef5f0;
  border: 1px solid #d7e3da;
}

/* ===== タイトル（今はpで入ってる前提） ===== */
.entry-content > p:first-child {
  margin: 14px 0 0;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.5;
  color: #111827;
  letter-spacing: .02em;
}

/* タイトル内の “｜博多のむらつ歯科クリニック” を控えめにしたい場合 */
.entry-content > p:first-child {
  word-break: break-word;
}

/* SP微調整 */
@media (max-width: 768px) {
  .entry-header .entry-meta {
    font-size: 12px;
  }

  .entry-header .entry-meta::after {
    margin-top: 8px;
  }
}

/* ---- h2 ---- */
.post-single .entry-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 2.4em 0 1.2em;
  padding: 0.4em 0.8em;
  border-left: 6px solid #5F856E;
  background: #eef5f0;
  border-radius: 4px;
  line-height: 1.5;
}

/* ---- h3 ---- */
.post-single .entry-content h3 {
  font-size: 19px;
  font-weight: 600;
  color: #333;
  margin: 2.2em 0 1.0em;
  padding-bottom: 6px;
  border-bottom: 2px solid #d7e3da;
  line-height: 1.5;
}

/* ---- h4 ---- */
.post-single .entry-content h4 {
  font-size: 17px;
  font-weight: 600;
  color: #5F856E;
  margin: 1.8em 0 0.8em;
  padding-left: 1.0em;
  position: relative;
  line-height: 1.5;
}

.post-single .entry-content h4::before {
  content: "■";
  color: #5F856E;
  font-size: 0.9em;
  position: absolute;
  left: 0;
  top: 0;
}

/* SP微調整 */
@media (max-width: 768px) {
  .post-single .entry-content h2 {
    font-size: 18px;
  }

  .post-single .entry-content h3 {
    font-size: 16px;
  }
}

/* ------------------- アーカイブページ用 ------------------- */
main.news_main.page {
	width: 80%;
	margin: auto;
}

.content-sidebar-wrapper {
  display: flex;
  gap: 20px;
}

.content-sidebar-wrapper .contentout {
  width: 70%;
}

/* ===== カード全体（念のため） ===== */
.blog-list__list-item {
  margin-bottom: 24px;
}

.blog-item {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  overflow: hidden;
  transition: .2s ease;
}

.blog-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

/* ===== 画像側 ===== */
.blog-item__thumbnail {
  width: 40%;
  min-width: 240px;
}

/* .blog-item__thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
} */

/* ============================= */
/* ★ ここが本題：content部分 ★ */
/* ============================= */

.blog-item__content {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* タイトル */
.blog-item__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: #111827;
}

/* ボタンエリア */
.blog-item__button {
  margin-top: auto;
}

/* 「記事を読む」ボタン風 */
.blog-item__button-more {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #6F927C;
  color: #fff;
  transition: .2s ease;
}

/* hover時 */
.blog-item:hover .blog-item__button-more {
  background: #5F856E;
}

/* ============================= */
/* スマホ調整 */
/* ============================= */
@media (max-width: 768px) {

  .blog-item {
    flex-direction: column;
  }

  .blog-item__thumbnail,
  .blog-item__content {
    width: 100%;
    min-width: auto;
  }

  .blog-item__content {
    padding: 14px 14px 16px;
  }

  .blog-item__title {
    font-size: 12px;
  }

  .content-sidebar-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .contentout {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: column;
  }

  .content-sidebar-wrapper .contentout {
    width: 100%;
  }

  .contentout > .blog-list__list-item {
    /* width: calc((100% - 10px) / 2);  */
  }

  /* 念のため：中のaを高さ100%にしてカード崩れ防止 */
  .contentout > .blog-list__list-item > a {
    display: flex;
    flex-direction: row;
    color: inherit;
    text-decoration: none;
    height: 100%;
  }

  /* 画像がはみ出す/潰れる対策 */
  .blog-item__thumbnail-image {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* =====================================
   症例シングル（single-case）レイアウト
===================================== */

/* 全体幅＆センタリング */
#main_col {
  max-width: 1100px;
  margin: 40px auto 80px;
}

/* 症例記事ボックス */
.case-single {
  background: #ffffff;
  padding: 32px 32px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* 本文エリア */
.case-single .entry-content p {
  margin-bottom: 1.4em;
}

/* =====================================
   症例 画像エリア
===================================== */

.case-study-images {
  margin-bottom: 32px;
}

.case-study-images .two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case-image {
  position: relative;
  background: #f6faf7;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.case-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px auto 0;
}

/* 「治療前 / 治療後」ラベル */
.syourei_span {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: #5F856E;
  color: #fff;
}

/* 画像が1枚のみのとき */
.case-image.single-image {
  max-width: 640px;
  margin: 0 auto;
}
/* =====================================
   症例 画像エリア3カラム
===================================== */
.case-study-images .three-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media screen and (max-width: 1024px) {
  .case-study-images .three-column {
    gap: 12px;
  }
}

@media screen and (max-width: 767px) {
  .case-study-images .three-column {
    grid-template-columns: 1fr;
  }
}

/* =====================================
   症例コメント（自由テキスト）
===================================== */

.free-text {
  margin-bottom: 32px;
  padding: 16px 20px;
  border-radius: 6px;
  background: #f6faf7;
  border-left: 4px solid #5F856E;
}

.free-text p {
  margin: 0;
  font-size: 15px;
}

/* =====================================
   症例詳細テーブル
===================================== */

.case-study-details {
  margin-top: 24px;
}

.case-study-details table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.case-study-details th,
.case-study-details td {
  padding: 12px 14px;
  border-bottom: 1px solid #d9e6de;
  vertical-align: top;
}

.case-study-details th {
  width: 25%;
  background: #f6faf7;
  font-weight: 600;
  color: #333;
}

.case-study-details td {
  width: 75%;
}

/* =====================================
   関連する症例
===================================== */

.related-cases {
	width: 90%;
	margin: auto;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #d9e6de;
}

/* 見出し（「関連する症例」） */
.related-cases .term-title.case_heading.case_span {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-left: 14px;
}

.related-cases .term-title.case_heading.case_span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #5F856E;
}

/* カード一覧 */
.related-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* カード本体 */
.related-case-item {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-case-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* サムネイル */
.related-case-thumbnail {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.related-case-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* タイトル */
.related-case-title {
  font-size: 15px;
  font-weight: 600;
  margin: 16px 16px 8px;
  line-height: 1.6;
}

.related-case-title .related-case-a {
  color: #333;
  text-decoration: none;
}

.related-case-title .related-case-a:hover {
  color: #5F856E;
}

/* 用語（治療法 / お悩み） */
.related-case-meta {
  margin: 0 16px;
  font-size: 13px;
  color: #777;
}

/* HR */
.related_hr {
  margin: 16px 16px 0;
  border: none;
  border-top: 1px solid #d9e6de;
}

/* 年齢・性別 */
.case-person {
  margin: 8px 16px 12px;
  font-size: 13px;
  color: #555;
}

/* ボタン */
.related-case-link {
  margin: 0 16px 16px;
  text-align: right;
}

/* =====================================
   「もっと見る」ボタン
===================================== */

.btn-center {
  margin-top: 40px;
  text-align: center;
}

.btn-blue {
  display: inline-block;
  min-width: 220px;
  padding: 12px 32px;
  border-radius: 999px;
  background: #5F856E;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(63, 86, 72, 0.18);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-blue:hover {
  background: #3F5648;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(63, 86, 72, 0.22);
}

/* =====================================
   レスポンシブ
===================================== */

/* タブレット 〜1024px */
@media screen and (max-width: 1024px) {
  #main_col {
    margin: 32px auto 64px;
    padding: 0 20px;
  }

  .case-single {
    padding: 28px 24px 36px;
  }

  .case-study-images .two-column {
    gap: 12px;
  }

  .related-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

/* スマホ 〜767px */
@media screen and (max-width: 767px) {
  #main_col {
    margin: 24px auto 56px;
    padding: 0;
  }

  .case-single {
    padding: 20px 16px 28px;
    font-size: 14px;
  }

  .case-image {
    padding: 12px;
  }

  .free-text {
    padding: 12px 14px;
    font-size: 14px;
  }

  .case-study-details table {
    font-size: 14px;
  }

  .case-study-details th,
  .case-study-details td {
    display: block;
    width: 100%;
    padding: 8px 10px;
  }

  .case-study-details th {
    border-bottom: none;
    border-radius: 4px 4px 0 0;
  }

  .case-study-details td {
    border-top: none;
    margin-bottom: 8px;
    background: #fff;
  }

  .related-cases-grid {
    gap: 16px;
  }

  .related-case-title {
    margin: 12px 12px 6px;
    font-size: 14px;
  }

  .related-case-meta,
  .case-person {
    margin: 0 12px 8px;
    font-size: 12px;
  }

  .related-case-link {
    margin: 0 12px 12px;
  }

  .btn-blue {
    width: 100%;
    min-width: auto;
    padding: 12px 0;
  }
	
.related-cases {
	width: 90%;
	margin: auto;
	}
}

/* ========== 症例アーカイブ（treatment別 3件表示） ========== */

/* 全体幅・余白（Astraと共存） */
#primary.content-area.primary {
	max-width: 80%;
    margin: 40px auto 80px;
    display: flex;
    gap: 40px;
}

#primary .site-main {
  padding: 24px 0 40px;
}

/* セクション（診療科目単位） */
#primary .term-section {
  margin: 0 0 48px;
}

#primary .term-title.case_heading.case_span {
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  letter-spacing: 0.02em;
	font-size: 3rem;
}

/* カード一覧：3列（PC） */
#primary .term-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

/* 見出しと「もっと見る」ボタンは全幅 */
#primary .term-section > .term-title,
#primary .term-section > .btn-center {
  grid-column: 1 / -1;
}

/* 症例カード */
#primary .related-case-item.casekanren {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

#primary .related-case-item.casekanren:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}

/* サムネ */
#primary .related-case-thumbnail a {
  display: block;
}

#primary .related-case-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* タイトル */
#primary .related-case-title{
	font-size: 1.8rem;
    line-height: 1.45;
    font-weight: 700;
    color: #4b5343;
	margin: 14px 14px 10px;
}

#primary .related-case-title .related-case-a {
  color: inherit;
  text-decoration: none;
}

#primary .related-case-title .related-case-a:hover {
  text-decoration: underline;
}

.related-case-info {
	margin: 14px 14px 10px;
}
.related-case-info__item span {
	color: #6d8d7c;
	font-weight: 700;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
	#primary.content-area.primary {
		width: 80%;
	}
  #primary .term-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
	#primary.content-area.primary {
		width: 100%;
		max-width: 95%;
	}
  #primary .site-main {
    padding: 18px 0 34px;
  }

  #primary .term-section {
/*     grid-template-columns: 1fr; */
    gap: 14px;
    margin-bottom: 38px;
  }

  #primary .term-title.case_heading.case_span {
    margin-bottom: 10px;
	  font-size: 2rem;
  }

  #primary .related-case-title {
    font-size: 15px;
  }
	.related-case-info {
		margin: 14px 10px 10px;
	}
}
/* =====================================
   症例アーカイブ ページネーション
===================================== */

#primary .case-pagination {
  grid-column: 1 / -1;
  margin-top: 48px;
  text-align: center;
}

#primary .case-pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

#primary .case-pagination li {
  margin: 0;
}

#primary .case-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(95, 133, 110, 0.35);
  border-radius: 999px;
  background: #ffffff;
  color: #5F856E;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(63, 86, 72, 0.08);
  transition: all 0.3s ease;
}

#primary .case-pagination .page-numbers:hover,
#primary .case-pagination .page-numbers.current {
  background: #5F856E;
  border-color: #5F856E;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(63, 86, 72, 0.18);
}

#primary .case-pagination .prev,
#primary .case-pagination .next {
  min-width: 78px;
}

/* スマホ */
@media screen and (max-width: 640px) {
  #primary .case-pagination {
    margin-top: 36px;
  }

  #primary .case-pagination ul {
    gap: 6px;
  }

  #primary .case-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 1.3rem;
  }

  #primary .case-pagination .prev,
  #primary .case-pagination .next {
    min-width: 64px;
  }
}
/* =====================================
   症例アーカイブ お悩み別
===================================== */
.case-filter {
/*   width: 90%;
  max-width: 1100px; */
  margin: 0 auto 40px;
	padding: 22px 24px;
	background: #f7fdf8;
	border: 1px solid #d9f5df;
  border-radius: 12px;
}

.case-filter form {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.case-filter__label {
  font-size: 16px;
  font-weight: 700;
  color: #24566d;
}

.case-filter__select {
  min-width: 260px;
  padding: 12px 42px 12px 16px;
	border: 1px solid #d9f5df;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  color: #333;
}

.case-filter__reset {
  font-size: 14px;
  color: #24566d;
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .case-filter {
    padding: 18px 16px;
    margin-bottom: 30px;
  }

  .case-filter form {
    display: block;
  }

  .case-filter__label {
    display: block;
    margin-bottom: 10px;
  }

  .case-filter__select {
    width: 100%;
    min-width: auto;
  }

  .case-filter__reset {
    display: inline-block;
    margin-top: 12px;
  }
}
/*==================================================================================================================================

  *監修者情報(TCDテーマ専用)

==================================================================================================================================*/
.sprvs-info {
  width: 100%;
  margin: auto;
  padding: 20px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  font-family: 'Noto Serif', serif;
}

.sprvs-info__dl {
  margin: 0;
}

.sprvs-info__title {
  font-weight: 400;
  font-size: 150%;
  padding-bottom: 12px;
  margin-bottom: 14px;
  color: #000;
  border-bottom: 1px solid #eaeaea;
}

.sprvs-info__body {
  margin: 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px 20px;
  grid-template-areas:
    "photo   heading"
    "meta    meta";
  align-items: start;
}

.sprvs-info__heading {
  grid-area: heading;
  margin: 0;
  align-self: center;
}

.sprvs-info__clinic {
  margin: 0 0 6px;
  font-size: 100%;
  color: #555;
}

.sprvs-info__name {
  margin: 0;
  font-size: 140%;
  font-weight: 400;
  color: #111;
}

.sprvs-info__grid {
  display: contents;
}

.sprvs-info__photo {
  grid-area: photo;
  width: 160px;
  margin: 0;
}

.sprvs-info__photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.sprvs-info__meta {
  grid-area: meta;
  min-width: 0;
}

.sprvs-info__block {
  margin-bottom: 14px;
}

.sprvs-info__block-title {
  font-weight: 600;
  font-size: 110%;
  margin-bottom: 8px;
  padding-left: 10px;
  color: #444;
  border-left: 4px solid #5F856E;
}

.sprvs-info__table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
}

.sprvs-info__table td {
  padding: 10px 12px;
  border-top: 1px solid #eee;
  vertical-align: top;
  font-size: 90%;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", 游ゴシック, "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.6;
}

.sprvs-info__table tr:first-child td {
  border-top: none;
}

.sprvs-info__year {
  width: 92px;
  white-space: nowrap;
  color: #666;
  background: #fafafa;
}

.sprvs-info__desc {
  color: #333;
}

.sprvs-info__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sprvs-info__two-col .sprvs-info__block {
  margin-bottom: 0;
}

.sprvs-info__list {
  margin: 0;
  padding-left: 18px;
  font-size: 90%;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", 游ゴシック, "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
  color: #333;
}

/* ==============================
  ▼タブレット・スマホ
================================ */
@media screen and (max-width: 768px) {
  .sprvs-info {
    padding: 16px;
    width: auto;
  }

  .sprvs-info__body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "photo"
      "meta";
  }

  .sprvs-info__photo img {
    width: 200%;
  }

  .sprvs-info__photo {
    width: 160px;
  }

  .sprvs-info__two-col {
    grid-template-columns: 1fr;
  }
}
/* =====================================
   症例 画像エリア 比較グリッド
   (オリジナル ⇔ マーキング解説の対比)
===================================== */
.case-study-images .compare-grid {
  display: grid;
  gap: 20px 16px;
}

.case-study-images .compare-grid--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-study-images .compare-grid--3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* マーキング行(下段)の上に区切り線を表示 */
.case-study-images .compare-cell--marking {
  position: relative;
}

.case-study-images .compare-grid--2col .compare-cell--marking:nth-child(3)::before,
.case-study-images .compare-grid--3col .compare-cell--marking:nth-child(4)::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  border-top: 1px dashed #d9e6de;
}

/* キャプション */
.compare-cell__caption {
  margin: 10px 0 0;
	font-size: 1.5rem;
	line-height: 1.6;
  color: #555;
  text-align: left;
}

.compare-cell__caption--note {
  color: #999;
  font-size: 12px;
}

/* 凡例ドット(マーキング色) */
.compare-cell__legend {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: middle;
  border: 1.5px dashed #E4C236;
  border-radius: 2px;
  background: transparent;
}

/* マーキング側のラベル色を変える */
.syourei_span--marking {
  background: #C99A2E;
}

/* タブレット以下 */
@media screen and (max-width: 1024px) {
  .case-study-images .compare-grid {
    gap: 16px 10px;
  }
}

/* スマホ */
@media screen and (max-width: 767px) {
  .case-study-images .compare-grid--2col,
  .case-study-images .compare-grid--3col {
/*     grid-template-columns: 1fr; */
    gap: 12px;
  }

  .case-study-images .compare-cell--marking::before {
    display: none !important;
  }

  .compare-cell__caption {
    font-size: 12px;
  }
}
