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

/* メイン＋サイドバーのレイアウト */
#main_contents {
  max-width: 1100px;
  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: #f0f6fb;
  color: #5b9fbf;
}

/* 本文 */
.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 #5b9fbf;
  padding-left: 12px;
}

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

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

.news-single .entry-content a:hover {
  color: #417c9c;
}

.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: #f0f6fb;
  color: #5b9fbf;
}

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

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

/* 「ほかのお知らせ」タイトル */
.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: #5b9fbf;
}

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

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

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

/* 詳細ボタン */
.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 #5b9fbf;
  color: #5b9fbf;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn.case_btn:hover {
  background: #5b9fbf;
  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: #5b9fbf;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-blue:hover {
  background: #417c9c;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

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

#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 #5b9fbf;
  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: #5b9fbf;
  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: #417c9c;
}

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

@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;
  }

  .related-cases-grid {
    grid-template-columns: 1fr;
  }

  .btn-blue {
    width: 100%;
  }
}
/* ==============================
   投稿ページ 見出しデザイン
   （post-single 専用）
============================== */

/* ---- 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 #5b9fbf;
  background: #f0f6fb;
  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 #d8e6ef;
  line-height: 1.5;
}

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

.post-single .entry-content h4::before {
  content: "■";
  color: #5b9fbf;
  font-size: 0.9em;
  position: absolute;
  left: 0;
  top: 0;
}
/* =====================================
   症例シングル（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: #f5f7fa;
  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: #5b9fbf;
  color: #fff;
}

/* 画像が1枚のみのとき */
.case-image.single-image {
  max-width: 640px;
  margin: 0 auto;
}

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

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

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

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

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

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

.related-cases {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #e3edf5;
}

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

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

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

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

/* 年齢・性別 */
.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: #5b9fbf;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-blue:hover {
  background: #417c9c;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

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

/* タブレット 〜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 16px;
  }

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

  .case-study-images .two-column {
    grid-template-columns: 1fr;
  }

  .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 {
    grid-template-columns: 1fr;
    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;
  }
}

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

/* 全体幅・余白（Astraと共存） */
#primary.content-area.primary {
	width: 90%;
	margin: auto;
}
#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;
}

/* カード一覧：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 {
  margin: 14px 14px 10px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}
#primary .related-case-title .related-case-a {
  color: inherit;
  text-decoration: none;
}
#primary .related-case-title .related-case-a:hover {
  text-decoration: underline;
}



/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  #primary .term-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  #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;
  }
  #primary .related-case-title {
    font-size: 15px;
  }
}

