@charset "utf-8";
/* =========================
   コラム詳細ページ
   ========================= */

.column-single {
    padding: 100px 9.8%;
}

.column-content {
	padding:0 10%;
}

.column-h2 {
	display: inline-flex;
	padding: 10px 20px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	background: #E4EDF5;
	font-size:3rem;
    width: 100%;
}

.column-h3 {
	color: #4b90cf;
	font-size: 2.4rem;
	margin-top: 40px;
	margin-bottom: 40px;
	text-align: center;
	font-weight: 600;
}

.column-h4 {
	color: #2D5A8E;
	font-size: 2.0rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-skip-ink: none;
    text-decoration-color: #E4EDF5;
    text-decoration-thickness: 17.5%;
    /* 7px */
    text-underline-offset: 24.5%;
    /* 9.8px */
    text-underline-position: from-font;
    margin-top: 40px;
	margin-bottom: 40px;
	text-align: center;
}

.column-single a {
    border: 1px solid #4b90cf;
    color: #4b90cf;
    transition: background-color 1s ease, color 1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 340px;
    box-sizing: border-box;
    padding: 17px 38px 17px 25px;
    margin: 20px 0;
    line-height: 1;
    border-radius: 40px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    margin: 40px auto 0;
}
.wp-block-group {
    box-sizing: border-box;
    padding: 40px 0;
	margin:0 auto;
	text-align:center;
}
.column-content .wp-block-image,
.column-content .wp-block-image figure {
    display: flex !important;
    justify-content: center !important;
}

.column-content .wp-block-image img {
    margin: 0 auto !important;
    display: block !important;
}

.column-content p {
	font-size:1.6rem;
	margin-top:40px;
	text-align:start;
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
	.column-content {
	padding:0 4%;
}
	
    .column-h2 {
        text-align: center;
        font-size: 22px;
    }
}
@media screen and (max-width: 768px) {
    .column-single {
        padding: 40px 6.8%;
    }
	.column-content {
	padding:0;
}
	.wp-block-group {
    padding: 20px 0;
}

    .column-title {
        font-size: 24px;
        margin-top: 60px;
        text-align: center;
    }

    .column-single a {
        width: 275px;
    }

    .column-h2 {
		text-align: start;
		font-size: 2rem;
    }
	.column-h3 {
        text-align: start;
		font-size: 1.8rem;
		margin: 0;
    }
	.column-h4 {
        text-align: start;
        font-size: 1.8rem;
    }

}

/*==================================================================================================================================

  *監修者情報

==================================================================================================================================*/
.sprvs-info {
	margin: 40px 0 0 0;
  padding: 20px 50px;
  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;
}

.sprvs-info__heading {
  margin-bottom: 16px;
}

.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: flex;
  gap: 18px;
  align-items: flex-start;
}

.sprvs-info__photo {
  width: 340px;
  margin: 0;
}

.sprvs-info__photo img {
  width: 100%;
  height: auto;
  border-radius: 10px; /* ▶デザイン：角丸 */
  display: block;
}

.sprvs-info__meta {
  flex: 1;
  min-width: 0;
}

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

.sprvs-info__block-title {
  font-weight: 600;
  font-size: 1.6rem;
  margin-bottom: 8px;
  padding-left: 10px;
  color: #444; /* ▶色変え：経歴/資格/所属学会-見出し文字色 */
  border-left: 4px solid #111; /* ▶色変え：経歴/資格/所属学会-見出しの前のライン色 */
}

.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: 1.3rem;
  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__list {
  margin: 0;
  padding-left: 18px;
  font-size: 1.3rem;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", 游ゴシック, "Yu Gothic", Meiryo, sans-serif; /* ▶見出しとフォントを変えたい場合設置 */
  line-height: 1.7;
  color: #333; /* ▶色変え：資格/所属学会リスト文字色 */
}

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

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

/*==============================================
  *タブレット版
==============================================*/
@media screen and (max-width: 1024px) {
  .sprvs-info {
    padding: 16px;
	  margin: 40px 0 0 0;
  }
}

/*==============================================
  *モバイル版
==============================================*/
@media (max-width: 768px) {
  .sprvs-info {
    padding: 16px;
	  margin: 40px 0 0 0;
  }

  .sprvs-info__grid {
    flex-direction: column;
  }

  .sprvs-info__photo {
    width: 100%;
    flex: none;
  }

  .sprvs-info__two-col {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
  コラム本文 section入れ子調整
  H2 section / H3 section の横幅が狭くなる問題を修正
========================================== */

/* 本文全体の幅をここで管理 */
.column-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 !important;
}

/* WordPressのsectionブロック共通 */
.column-content .wp-block-group {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: 40px 0;
  margin: 0 auto;
  text-align: center;
}

/* WordPress側でinner-containerが入る場合の横幅リセット */
.column-content .wp-block-group__inner-container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

/* H2を囲む外側section */
.column-content > .wp-block-group {
  padding: 40px 0;
}

/* H3を囲む内側section */
.column-content .wp-block-group .wp-block-group {
  padding: 0;
  margin: 40px 0 0;
}

/* H3内側sectionの中身が狭くならないようにする */
.column-content .wp-block-group .wp-block-group > .wp-block-group__inner-container {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

/* 本文テキスト */
.column-content p {
  width: 100%;
  max-width: none;
  text-align: start;
}

/* H2の背景帯が極端に小さくならないように調整 */
.column-content .column-h2 {
  box-sizing: border-box;
  max-width: 100%;
  margin: 40px auto;
}

/* H3も親幅内で自然に表示 */
.column-content .column-h3 {
  max-width: 100%;
}

/* 画像のはみ出し防止 */
.column-content .wp-block-image img {
  max-width: 100%;
  height: auto;
}

/* ==========================================
  タブレット調整
========================================== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .column-content {
    max-width: 860px;
    padding: 0 !important;
  }

  .column-content > .wp-block-group {
    padding: 36px 0;
  }

  .column-content .wp-block-group .wp-block-group {
    padding: 0;
    margin-top: 36px;
  }
}

/* ==========================================
  スマホ調整
========================================== */
@media screen and (max-width: 768px) {
  .column-content {
    max-width: none;
    padding: 0 !important;
  }

  .column-content > .wp-block-group {
    padding: 28px 0;
  }

  .column-content .wp-block-group .wp-block-group {
    padding: 0;
    margin-top: 28px;
  }

  .column-content .column-h2 {
    font-size: 2.2rem;
    text-align: start;
  }

  .column-content .column-h3 {
    font-size: 2rem;
    text-align: start;
  }

  .column-content .column-h4 {
    font-size: 1.8rem;
    text-align: start;
  }
}

/* =========================
   コラム記事ヘッダー（日付・アイキャッチ）
   ========================= */
.column-article__meta {
  max-width: 960px;
  margin: 0 auto 16px;
  text-align: right;
}

.column-article__date {
  display: inline-block;
  color: #175899;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.column-article__eyecatch {
  max-width: 960px;
  margin: 0 auto 40px;
}

.column-article__eyecatch img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* =========================
   関連コラム
   ========================= */
.column-related {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 9.8% 0;
  box-sizing: border-box;
}

.column-related__title {
  text-align: center;
  font-size: 2.8rem;
  color: #2D5A8E;
  margin-bottom: 32px;
}

.column-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.column-related__item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #E4EDF5;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}

.column-related__item:hover {
  box-shadow: 0 8px 24px rgba(23, 88, 153, .12);
  transform: translateY(-4px);
}

.column-related__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #E4EDF5;
}

.column-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.column-related__thumb.is-noimage {
  background: linear-gradient(135deg, #E4EDF5 0%, #cfe0f0 100%);
}

.column-related__date {
  display: block;
  color: #175899;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 16px 18px 0;
}

.column-related__name {
  padding: 6px 18px 20px;
  font-size: 1.6rem;
  line-height: 1.6;
  font-weight: 500;
}

/* =========================
   コラム一覧へ戻るボタン
   ========================= */
.column-backbtn {
  text-align: center;
  padding: 50px 9.8% 90px;
}

.column-backbtn__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 280px;
  box-sizing: border-box;
  padding: 18px 40px;
  background: #175899;
  color: #fff;
  border-radius: 40px;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .3s ease;
}

.column-backbtn__link:hover {
  background: #2D5A8E;
}

/* ===== タブレット ===== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .column-related__grid {
    gap: 20px;
  }
  .column-related__title {
    font-size: 2.4rem;
  }
}

/* ===== スマホ ===== */
@media screen and (max-width: 768px) {
  .column-article__meta,
  .column-article__eyecatch {
    max-width: none;
  }
  .column-related {
    padding: 40px 6.8% 0;
  }
  .column-related__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .column-related__title {
    font-size: 2.2rem;
    margin-bottom: 24px;
  }
  .column-backbtn {
    padding: 40px 6.8% 70px;
  }
  .column-backbtn__link {
    min-width: 240px;
    padding: 16px 32px;
  }
}

/* ============================================================
   通常投稿（＝コラム記事）single.php 用のデザイン
   ※ single.php / single-news.php は .entry-content と
     .related-cases-grid / .btn-blue 等を使うため、それらを装飾する。
   ============================================================ */

/* --- 本文レイアウト --- */
#main_contents {
  width: 100%;
  margin: 0 auto;
}

#main_col {
  max-width: 75%;
  margin: 0 auto;
  padding: 60px 6.6%;
  box-sizing: border-box;
}

.entry-content {
  font-size: 1.6rem;
  line-height: 1.9;
}

.entry-content p {
  font-size: 1.6rem;
  margin: 0 0 1.6em;
  text-align: start;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.6em 1.5em;
  font-size: 1.6rem;
  line-height: 1.9;
}

.entry-content a {
  color: #175899;
  text-decoration: underline;
}

/* 記事メタ（日付） */
.entry-header .entry-meta,
.entry-meta {
  color: #175899;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* --- 関連コラム見出し --- */
.related-posts {
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 0 6.6%;
  box-sizing: border-box;
}

.term-title,
.related-posts .case_heading {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 500;
  color: #2D5A8E;
  margin: 40px 0 32px;
  line-height: 1.4;
}

/* --- 関連コラム グリッド --- */
.related-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.related-case-item {
  background: #fff;
  border: 1px solid #E4EDF5;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
  display: flex;
  flex-direction: column;
}

.related-case-item:hover {
  box-shadow: 0 8px 24px rgba(23, 88, 153, .12);
  transform: translateY(-4px);
}

.related-case-thumbnail {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #E4EDF5;
}

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

.related-case-title {
  padding: 16px 18px 0;
  font-size: 1.6rem;
  line-height: 1.6;
  font-weight: 500;
}

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

.related-case-meta {
  padding: 8px 18px 0;
  color: #175899;
  font-size: 1.3rem;
  font-weight: 700;
}

.related_hr {
  border: none;
  border-top: 1px solid #E4EDF5;
  margin: 14px 18px 0;
}

.related-case-link {
  padding: 14px 18px 20px;
  margin-top: auto;
}

.related-case-link .btn,
.btn.case_btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 12px 16px;
  border: 1px solid #175899;
  border-radius: 40px;
  color: #175899;
  background: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .3s ease, color .3s ease;
}

.related-case-link .btn:hover,
.btn.case_btn:hover {
  background: #175899;
  color: #fff;
}

/* --- 一覧へ戻るボタン --- */
.btn-center {
  text-align: center;
  padding: 50px 6.6% 20px;
}

.btn-blue {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 280px;
  box-sizing: border-box;
  padding: 18px 40px;
  background: #175899;
  color: #fff;
  border-radius: 40px;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .3s ease;
}

.btn-blue:hover {
  background: #2D5A8E;
}

/* --- タブレット --- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .related-cases-grid {
    gap: 20px;
  }
  .term-title,
  .related-posts .case_heading {
    font-size: 2.4rem;
  }
}

/* --- スマホ --- */
@media screen and (max-width: 768px) {
  #main_col {
	  max-width:100%;
	  padding: 40px 5%;
  }
  .related-posts {
    padding: 0 6.8%;
  }
  .related-cases-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .term-title,
  .related-posts .case_heading {
    font-size: 2.2rem;
    margin: 32px 0 24px;
  }
  .btn-center {
    padding: 40px 6.8% 10px;
  }
  .btn-blue {
    min-width: 240px;
    padding: 16px 32px;
  }
}

:where(.wp-block-columns) {
    margin-top: 1.75em;
}