/* ---------- 全体 ---------- */
.main.page {
  padding: 60px 20px;
  background-color: #f7fafd;
  font-family: 'Noto Sans JP', sans-serif;
}

.wysiwyg-editor {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- メイン・サイドバー構成 ---------- */
.content-sidebar-wrapper {
	display: flex;
	flex-direction: row;
	gap: 40px;
}

.contentout {
  width: 70%;
}

.sidebar {
  width: 30%;
}

/* ---------- ブログ記事カード ---------- */
.blog-list__list-item {
  margin-bottom: 40px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.blog-list__list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.blog-item {
	display: flex;
	flex-direction: row;
	color: inherit;
	text-decoration: none;
}

/* アイキャッチ画像 */
.blog-item__thumbnail {
	width: 30%;
	overflow: hidden;
}

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

/* コンテンツ */
.blog-item__content {
	width: 70%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-item__title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
}

.blog-item__button {
  margin-top: auto;
	text-align: right;
}

.blog-item__button-more {
  display: inline-block;
  color: #5b9fbf;
  font-weight: 600;
  border-bottom: 2px solid #5b9fbf;
  transition: all 0.3s ease;
}

.blog-item__button-more:hover {
  color: #417c9c;
  border-color: #417c9c;
}

/* ---------- サイドバー ---------- */
.sidebar {
  background-color: #ffffff;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

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

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

.sidebar-list li {
  margin-bottom: 12px;
  font-size: 15px;
}

.sidebar-list a {
  color: #5b9fbf;
  text-decoration: none;
  transition: color 0.3s;
}

.sidebar-list a:hover {
  color: #417c9c;
}

/* ---------- レスポンシブ ---------- */
@media screen and (max-width: 1024px) {
  .content-sidebar-wrapper {
    flex-direction: column;
  }

  .contentout,
  .sidebar {
    width: 100%;
  }

  .sidebar {
    margin-top: 40px;
  }
}

/* =====================================
   症例シングル（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: #fff7f0;
  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: #D66C2C;
  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: #fff7f0;
  border-left: 4px solid #D66C2C;
}

.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 #F0D7C7;
  vertical-align: top;
}

.case-study-details th {
  width: 25%;
  background: #fff7f0;
  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 #F0D7C7;
}

/* 見出し（「関連する症例」） */
.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: #D66C2C;
}

/* カード一覧 */
.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: #D66C2C;
}

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

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

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

/* ボタン */
.related-case-link {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 10px;
}
a.casebtn.case_btn {
    background: #ef7a1a;
    color: #fff;
    border-radius: 50px;
    padding: 5% 5%;
    margin: auto;
}

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

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

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

.btn-blue:hover {
  background: #A94716;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(146, 67, 26, 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 0;
    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: #5B3A2C;
	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: #B45720;
	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(214, 108, 44, 0.35);
  border-radius: 999px;
  background: #ffffff;
  color: #D66C2C;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(146, 67, 26, 0.08);
  transition: all 0.3s ease;
}

#primary .case-pagination .page-numbers:hover,
#primary .case-pagination .page-numbers.current {
  background: #D66C2C;
  border-color: #D66C2C;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(146, 67, 26, 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: #FFFAF6;
	border: 1px solid #F0D7C7;
  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: #9A471C;
}

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

.case-filter__reset {
  font-size: 14px;
  color: #9A471C;
  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 #D66C2C;
}

.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 #F0D7C7;
}

/* キャプション */
.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;
  }
}
