/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Oct 27 2026 | 05:00:31 */
/* =========================
   症例紹介：基本設定
========================= */

body.post-type-archive-case,
body.single-case {
  background: #f7eee5;
}

.sc-wrap {
  --sc-green: #77bdae;
  --sc-light-green: #bfd7d0;
  --sc-brown: #584f46;
  --sc-side-bg: #e5ddd4;

  width: min(1100px, calc(100% - 40px)) !important;
  max-width: 1100px !important;
  margin: 60px auto 100px !important;
  color: var(--sc-brown);
}

.sc-wrap,
.sc-wrap * {
  box-sizing: border-box;
}

.sc-wrap a {
  color: inherit;
  text-decoration: none;
}

.sc-wrap a:focus-visible {
  outline: 3px solid #315f54;
  outline-offset: 3px;
}

/* =========================
   検索タブ
========================= */

.sc-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0 16px;
}

.sc-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px;
  background: #fff;
  text-align: center;
	font-size:20px;
	font-family: "Noto Serif JP", serif;
	font-weight:400;
	
}

.sc-tabs a.is-active {
  color: #fff;
  background: var(--sc-green);
}

.sc-filter {
  padding: 28px;
  background: var(--sc-light-green);
}

.sc-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sc-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0px;
  background: #fff;
  text-align: center;
  font-size: 16px;
	font-family: "Noto Sans JP", sans-serif;
	font-weight:500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.sc-buttons a.is-active,
.sc-buttons a:hover {
  color: #fff;
  background: var(--sc-brown);
}

/* =========================
   症例カード
========================= */

.sc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-top: 40px;
}

.sc-card {
  min-width: 0;
  padding: 20px;
  background: #fff;
}

.sc-card > a {
  display: block;
  height: 100%;
}

.sc-card-image,
.sc-noimage {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #eee;
}

.sc-noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 13px;
}

.sc-card h2 {
  margin: 6px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
	font-family: "Noto Sans JP", sans-serif;
	font-weight:500;
}

.sc-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-labels span {
  display: inline-block;
  padding: 5px 10px;
  background: #eee;
  font-size: 12px;
	font-family: "Noto Sans JP", sans-serif;
	font-weight:500;
  line-height: 1.5;
}

/* =========================
   ページ送り
========================= */

.sc-pagination {
  margin-top: 60px;
}

.sc-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-pagination li > .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 4px;
  border: 1px solid var(--sc-brown);
}

.sc-pagination .page-numbers.current {
  color: #fff;
  background: var(--sc-brown);
}

.sc-empty {
  padding: 40px 0;
  text-align: center;
}

/* =========================
   詳細ページ
========================= */

.sc-detail-columns {
  align-items: flex-start !important;
  gap: 32px !important;
}

.sc-detail-columns > .wp-block-column {
  min-width: 0;
}

.sc-case-title {
  margin-top: 0;
  padding: 14px 20px;
  color: #fff;
  background: var(--sc-green);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
	margin-bottom: 20px;
}

.sc-detail-columns .wp-block-post-content {
  margin-top: 28px;
}

.sc-detail-columns .wp-block-post-content img {
  max-width: 100%;
  height: auto;
}

/* =========================
   右側の検索メニュー
========================= */

.sc-sidebar {
  padding: 20px;
  background: var(--sc-side-bg);
}

.sc-sidebar section + section {
  margin-top: 24px;
}

.sc-sidebar h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
	font-family: "Noto Serif JP", serif;
	font-weight:400;
}

.sc-sidebar .sc-buttons {
  grid-template-columns: 1fr;
  gap: 10px;
}

/* =========================
   関連症例
========================= */

.sc-related {
  margin-top: 48px;
}

.sc-related section + section {
  margin-top: 40px;
}

.sc-related h2 {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sc-green);
  font-size: 20px;
  line-height: 1.5;
	font-family: "Noto Sans JP", sans-serif;
	font-weight:500;
}

.sc-related .sc-grid {
  gap: 20px;
  margin-top: 0;
}

.sc-related .sc-card {
  padding: 12px;
}
.sc-related .sc-card .sc-labels span  {
	background-color:#ECECEC;
}

.sc-related .sc-card h3 {
  font-size: 14px;
}

.sc-related .sc-labels {
  gap: 4px;
}

.sc-related .sc-labels span {
  padding: 4px 6px;
  font-size: 10px;
}

/* =========================
   スマホ
========================= */

@media (max-width: 781px) {
  .sc-wrap {
    width: calc(100% - 32px) !important;
    margin-top: 32px !important;
    margin-bottom: 60px !important;
  }
	
	.sc-buttons a {
  min-height: 30px;
  padding: 0px;
  font-size: 12px;
}

  .sc-tabs {
    gap: 6px;
    padding: 0;
  }

  .sc-tabs a {
    min-height: 60px;
    padding: 10px 6px;
    font-size: 15px;
  }

  .sc-filter {
    padding: 16px;
  }

  .sc-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
  }

  .sc-card {
    padding: 12px;
  }

  .sc-card h3 {
    font-size: 15px;
  }

  .sc-labels {
    gap: 4px;
  }

  .sc-labels span {
    padding: 4px 6px;
    font-size: 11px;
  }

  .sc-detail-columns {
    flex-direction: column;
  }

  .sc-detail-columns > .wp-block-column {
    width: 100%;
    flex-basis: 100% !important;
  }

  .sc-sidebar .sc-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sc-related .sc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .sc-related h2 {
    font-size: 18px;
  }
}

/* 症例検索タブを2列に変更 */
.sc-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 症例詳細：タイトル下のラベル背景を白に変更 */
body.single-case .sc-detail-columns .sc-labels span {
  background-color: #fff;
}

/* 関連症例のカード内は元のグレーを維持 */
body.single-case .sc-related .sc-labels span {
  background-color: #eee;
}

/* 一覧・関連症例の画像を正方形に統一 */
.sc-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* 症例詳細：アイキャッチ画像の上に30pxの余白 */
body.single-case .sc-detail-columns .wp-block-post-featured-image {
  margin-top: 20px !important;
}
/* 症例詳細：画像を幅700px・中央揃えに */
body.single-case .sc-detail-columns .wp-block-post-featured-image {
  width: 700px;
  max-width: 100%;
  margin: 30px auto 0 !important;
}


.caseDetail p{
	margin-top:20px;
	 font-weight: 400;
	font-family: "Noto Sans JP", sans-serif;
}



