:root {
  --base-blue: #3a8dde;
  --accent-blue: #a0c4ff;
  --navy-blue: #1e3a8a;
  --light-blue: #e0f0ff;
  --text-dark: #1b1b1b;
  --text-light: #ffffff;
  --shadow-blue: rgba(58, 141, 222, 0.4);
}

/* 共通 */
.w95 {
    width: 90%;
    padding: 0 3%;
    margin: 0 auto;
    text-align: left;
}
.txt_center {
  text-align: center;
}
.under_underline {
  padding-bottom: 2px;
  border-bottom: 1.5px solid #3a8dde;
}

/* h2 */
.medical-h2 {
  background-color: var(--base-blue);
  text-align: center;
  color: #fff;
  font-size: 230%;
  font-weight: normal;
  letter-spacing: .05em;
  line-height: 1.6em;
  padding: .5em 3%;
  margin-bottom: 60px;
}

/* h3 */
.medical-h3 {
  color: var(--base-blue);
  border-bottom: 1px solid var(--base-blue);
  padding-bottom: 15px;
  margin: 20px 0;
  font-size: 1.5rem;
}

/* h4 */
.medical-h4 {
  font-size: 20px;
  line-height: 1.3;
  /* font-weight: bold; */
  margin-bottom: 10px;
  padding-left: 15px;
  border-left: #3396e2 solid 5px;
}
/* h5 */
.h5 {
  font-size: 18px;
  font-weight: 700;
  color: #3396e2;
}
/* リスク・注意点リスト */
.risk-list {
  list-style: none;
  margin: 20px 0;
  padding: 20px 25px;
  background: #f0f6fc; /* 淡い青背景 */
  border-left: 4px solid #4a90e2; /* 青いラインでアクセント */
}

.risk-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.6;
  color: #333;
}

.risk-list li:last-child {
  margin-bottom: 0;
}

/* 擬似要素でアイコンを作成 */
.risk-list li::before {
  content: "⚠"; /* 注意アイコン */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
  color: #4a90e2;
  line-height: 1.6;
}

/* リスト */
.aftercare-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.aftercare-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* チェック風アイコン */
.aftercare-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #4a90e2; /* 明るい青で安心感 */
  font-weight: bold;
  font-size: 16px;
  line-height: 1.6;
}

.aftercare-list li:last-child {
  margin-bottom: 0;
}

/* simpleリスト */
.bgli {
  background: #f1f8ff;
	padding: 10px;
}
.simple-feature-list {
  list-style: none;
  padding: 20px;
  line-height: 1.8;
  margin: 10px 0;
}

.simple-feature-list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 12px;
}

.simple-feature-list li::before {
  content: "■";
  position: absolute;
  left: 5px;
  top: 0.1em;
  color: #3a8dde;
  font-size: 0.8em;
}


/* ---------------------------------------button--------------------------------------- */
/* ボタンの中央寄せ用ラッパ */
.btn-center {
  text-align: center; /* インライン要素を中央揃え */
  margin: 30px 0;    /* 上下に余白 */
}

/* 丸みボタン */
.btn-blue {
  display: inline-block;
  padding: 12px 28px;
  background: #4a90e2;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  border-radius: 50px;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(74,144,226,0.3);
}

/* ホバー時の動き */
.btn-blue:hover {
  background: #6bb6ff;
  box-shadow: 0 6px 16px rgba(74,144,226,0.45);
  transform: translateY(-2px);
  color: #fff;
}
/* ---------------------------------------button2--------------------------------------- */
.cta-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  background-color: #6091c9;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background-color: #6091c9;
  color: #fff;
}

.btn.light {
  background-color: #fff;
  color: #6091c9;
  border: 2px solid #6091c9;
}

.btn.light:hover {
  background-color: #e9f0f8;
}

/*------------------------------------- 下層ヘッダー --------------------------------------*/

.under_head {
  height: 70vh;
}
.under_head {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 50vw;
    max-height: 480px;
    background-image: url(../images/under/under_head.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}
.invi .under_head {
    position: relative;
    z-index: 0;
    width: auto;
    height: auto;
    max-height: 100%;
    background-image: url(../images/under/invi_under_head.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    aspect-ratio: 1520 / 760;
}
.under_head::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 1) 80%);
    opacity: 0.05;
}
.under_ttl {
    position: absolute;
    z-index: 1;
    margin: auto;
    left: 0;
    right: 0;
    top: 55%;
    transform: translateY(50%);
    color: #fff;
    width: 100%;
    padding-bottom: 20px;
    padding-left: 20px;
    border-bottom: 1px solid #fff;
}
.under_ttlp {
  color: #fff;
  font-size: 300%;
  letter-spacing: .1em;
  line-height: 1.2em;
}


/*------------------------------------- 下層リード文 --------------------------------------*/
.under_lead_box {

}

.under_flex_box {
  display: flex;
}
.txt_box {
  flex:3;
  padding: 15px;
  margin: auto;
}
.img_box {
  flex: 2;
  padding: 15px;
  margin: auto;
}

/*------------------------------------- 背景ありのflex --------------------------------------*/
.flowbg .under_flex_box {
  background: #e2e8f36e;
  margin: 10px 0;
}
/*------------------------------------- 治療の流れ --------------------------------------*/

.flow_box {
  margin: 20px 0 50px;
}

.flow_box {
  background: #f0f6fc;
  padding: 50px 20px;
}

.flow_box h3 {
  color: #9a845c;
  border-bottom: 1px solid #d2c3a1;
  font-size: 1.7rem;
  margin-bottom: 20px;
  padding: 10px 0;
}
ul.medical-flow.com_btm_100 {
    padding-bottom: 60px;
}
.medical-flow > li {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	padding-left: 100px;
	padding-bottom: 60px;
}
.medical-flow li:last-of-type {
	padding-bottom: 0;
}
.medical-flow > li::before,
.medical-flow > li::after {
	content: "";
	position: absolute;
	top: 0;
	font-family: quiche-stencil, sans-serif;
	font-weight: 100;
	font-style: normal;
	text-align: center;
	color: #956f38;
	font-size: 220%;
	line-height: 1.0em;
}
.medical-flow > li::before {
	z-index: 1;
	content: "1";
	width: 1.5em;
	line-height: 1.5em;
	background: #fff;
	border: 1px solid #956f38;
	border-radius: 50%;
	left: 0;
}
.medical-flow > li:nth-child(2)::before { content: "2"; }
.medical-flow > li:nth-child(3)::before { content: "3"; }
.medical-flow > li:nth-child(4)::before { content: "4"; }
.medical-flow > li:nth-child(5)::before { content: "5"; }
.medical-flow > li:nth-child(6)::before { content: "6"; }
.medical-flow > li:nth-child(7)::before { content: "7"; }
.medical-flow > li:nth-child(8)::before { content: "8"; }
.medical-flow > li::after {
	z-index: 0;
	width: 1px;
	height: 100%;
  left: 0.75em;
	background-color: #c6c2bf;
}
.medical-flow li:last-of-type::after {
	display: none;
}
.medical-flow .img_r {
	width: 35.5%;
	max-width: 394px;
}

.medical-flow .implant_style1 > dt {
  font-size: 1.5rem;
	padding-top: 0.6em;
	color: #956f38;
}
.medical-flowinner.clearfix {
  display: flex;
  /* flex-direction: row-reverse;  */
  align-items: flex-start;
  gap: 20px; 
}
.medical-flowinner.clearfix.cari {
	display: block;
  /* flex-direction: row-reverse;  */
  align-items: flex-start;
  gap: 20px; 
}

.medical-flow .img_r {
  width: 35.5%;
  max-width: 394px;
}

.medical-flow .txt_l {
  padding: 0 15px;
  flex: 3;
}

.flow_box .grid_box1{
  flex-direction: row-reverse; 
  box-shadow:none;
  background: none;
}
.medical-flow {
  flex: 3;
}
.grid_img_box {
    width: 40%;
}
/*------------------------------------- 表 --------------------------------------*/
/* 表全体の余白とレスポンシブ用ラッパー */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

/* 治療費用テーブル */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px; /* スマホで横スクロール */
}

/* ヘッダー */
.cost-table thead th {
  background: #4a90e2; /* 青系ヘッダー */
  color: #fff;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  border: 1px solid #ddd;
}
.cost-table.invi thead th {
  width: 50%;
}

/* ボディ */
.cost-table tbody td {
  border: 1px solid #ddd;
  padding: 12px;
  line-height: 1.6;
}

/* 偶数行の背景色を淡くする */
.cost-table tbody tr:nth-child(even) td {
  background: #f5f9ff; /* 淡い青 */
}

/* 注意書き */
.note {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

/* スマホ時は文字サイズ少し小さめに */
@media (max-width: 768px) {
  .cost-table {
    font-size: 13px;
  }
  .cost-table thead th,
  .cost-table tbody td {
    padding: 10px;
  }
}
/*------------------------------------- 表2 --------------------------------------*/
.whitening-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.whitening-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

/* ヘッダー */
.whitening-table thead th {
  background: #4a90e2;
  color: #fff;
  text-align: center;
  padding: 10px;
  border: 1px solid #ddd;
  font-weight: bold;
}

/* セル */
.whitening-table tbody td {
  border: 1px solid #ddd;
  padding: 10px;
  line-height: 1.6;
  vertical-align: top;
}

/* 偶数行 */
.whitening-table tbody tr:nth-child(even) td {
  background: #f5f9ff;
}

/*------------------------------------- チェックリスト --------------------------------------*/
.check-section {
  margin: 60px auto;
  max-width: 1000px;
}

.check-container {
  border: 1px solid #cce0eb;
  padding: 40px 30px 0;
  background: #f9fdfd;
}

.checkttl {
  text-align: center;
  font-size: 1.6rem;
  color: #123456;
  margin-bottom: 30px;
}

.check-container h2 .sub {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}

.check-icon {
  color: #70b7d9;
  font-size: 1.8rem;
  margin-left: 5px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 40px;
  margin-bottom: 30px;
}

.check-list li {
  list-style: none;
  position: relative;
  padding-left: 28px;
  color: #003366;
}

.check-list li::before {
  content: "✔";
  color: #70b7d9;
  position: absolute;
  left: 0;
  top: 0;
}

.check-footer {
  background: #e6f3f8;
  text-align: center;
  padding: 15px;
  font-size: 0.95rem;
  color: #225577;
  margin: 0 -30px -1px; /* 左右いっぱいに広げる */
}

/*------------------------------------- よくある質問 --------------------------------------*/


.faq-item {
  margin-bottom: 10px;
  border-radius: 2px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background-color: #b3d6f5;
  color: #3e7ac1;
  font-size: 1.2rem;
  font-weight: 500;
  border: none;
  padding: 5px 10px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.qst {
  font-size: 1.2rem;
}
.faq-question .q-icon {
    font-size: 1.5em;
    color: #4a90e2;
    margin-right: 0.4em;
    display: inline-block;
}

.faq-toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle-icon {
  transform: rotate(180deg);
}


.faq-answer {
  background: #fffbf4;
  padding: 1em 2em;
  display: none;
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
}
a.faqlink {
  display: inline-block;
  background: rgba(83, 102, 135, .95);
  color: #fff;
  padding: 10px 20px;
  margin-top: 10px;
  text-decoration: none;
}
.a-icon {
  font-size: 1.5em;
  color: #4a90e2;
  margin-right: 0.4em;
  display: inline-block;
}
/*------------------------------------- よくある質問 --------------------------------------*/
/* -------------------インビザ特徴------------------- */
/* ===== Invisalign block (namespaced) ===== */
.ivz-invisalign {
  /* ブロック内限定のカラートークン（競合回避のため --ivz- 接頭辞） */
  --ivz-bg: #f5f8ff;
  --ivz-card: #ffffff;
  --ivz-ink: #1f2a44;
  --ivz-sub: #5d6b86;
  --ivz-primary: #3f7cff;
  --ivz-primary-2: #2b59d9;
  --ivz-ring: #cfe0ff;
  --ivz-grad: linear-gradient(135deg, rgba(63,124,255,.12), rgba(43,89,217,.08));

  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(63,124,255,.10), transparent 60%),
    radial-gradient(1200px 600px at 110% 20%, rgba(43,89,217,.08), transparent 60%),
    var(--ivz-bg);
  padding: clamp(28px, 6vw, 56px) 16px;
  color: var(--ivz-ink);
  position: relative;
  overflow: clip;
}

.ivz-invisalign__lead {
  margin: 0 0 28px;
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.9;
  color: var(--ivz-sub);
}

/* ===== feature cards ===== */
.ivz-featureList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(14px, 2.4vw, 20px);
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .ivz-featureList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .ivz-featureList {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ivz-feature {
  background: var(--ivz-card);
  box-shadow:
    0 1px 0 rgba(28, 42, 76, 0.06),
    0 10px 24px rgba(28, 42, 76, 0.08);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  outline: 1px solid rgba(63,124,255,.08);
}

.ivz-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ivz-grad);
  opacity: .6;
  pointer-events: none;
  z-index: 0;
}

.ivz-feature:hover {
  /* transform: translateY(-2px); */
  box-shadow:
    0 2px 0 rgba(28, 42, 76, 0.06),
    0 16px 32px rgba(28, 42, 76, 0.12);
}

.ivz-feature__media {
  aspect-ratio: 4 / 3;
  margin: 0;
  background: #f0f5ff;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(63,124,255,.10);
  position: relative;
  z-index: 1;
}

.ivz-feature__media img {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(63,124,255,.25));
}

.ivz-feature__body {
  padding: 16px 16px 18px;
  position: relative;
  z-index: 1;
}

.ivz-feature__title {
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.6;
  text-align: center;
  margin: 0;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ivz-ink);
  position: relative;
}

/*------------------------------------- メリットデメリット --------------------------------------*/
/* .meritdemerit .under_flex_box {
  border-bottom: 1px solid #6666665c;
}

.meritdemerit .under_flex_box:last-child {
  border-bottom: none;
} */

.demerit_box {
  background: #f5f7fbb0;
  padding: 20px;
  margin: 45px 0;
}
.merit_box {
  background: #f2fbffb0;
  padding: 20px;
  margin: 45px 0;
}
/* ============ Layout base ============ */
.ivz-cases{
  --ivz-bg: #f5f8ff;        /* ページ地色（薄い青系） */
  --ivz-ink: #1f2a44;       /* 文字色（濃紺に近いネイビー） */
  --ivz-muted: #5d6b86;     /* 補助文字（グレー寄りブルー） */
  --ivz-card: #ffffff;      /* カード地 */
  --ivz-line: #cfd8e3;      /* 罫線/境界（淡いブルーグレー） */
  --ivz-shadow: 0 10px 24px rgba(28,42,76,.08);
  --ivz-ring: #d9e4f7;

  --ivz-number: #234c91;    /* 番号バッジのネイビー */
  --ivz-number-grad: linear-gradient(180deg,#234c91 0%,#3f7cff 100%);
  --ivz-headband: #e7f0fb;  /* 見出し帯の淡いブルー */

  padding: clamp(28px, 6vw, 56px) 16px;
  color: var(--ivz-ink);
}


.ivz-cases__inner{
  margin: 0 auto;
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: repeat(1, minmax(0,1fr));
}
@media (min-width: 820px){
  .ivz-cases__inner{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ============ Card ============ */
.ivz-case{
  position: relative;
  background: var(--ivz-card);
  box-shadow: var(--ivz-shadow);
  overflow: hidden;
  outline: 1px solid #efe6de;
}

/* 番号バッジ（左上に浮かせる） */
.ivz-case__badge{
  position: absolute;
  top: 10px; left: 12px;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--ivz-number-grad);
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(107,58,37,.25);
  z-index: 3;
}
.ivz-case__badge b{ font-size: 22px; line-height: 1; }

/* 上部の引用風アイブロウ */
.ivz-case__eyebrow{
  margin: 0;
  padding: 18px 18px 6px 66px; /* バッジ分の左余白 */
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ivz-ink);
}

/* 画像エリア */
.ivz-case__media{
  margin: 10px 12px 0;
  overflow: hidden;
  position: relative;
/*   background: #f4efe9; */
/*   aspect-ratio: 16/9; */
}
.ivz-case__media img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ivz-case__tint{
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(255,255,255,.12), rgba(255,255,255,.12));
}

/* 画像下の帯見出し（ベージュ） */
.ivz-case__headline{
  margin: 10px 12px 0;
  background: var(--ivz-headband);
  color: #6f5b50;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: 20px;
  line-height: 1.6;
  padding: 10px 16px;
}

/* 本文＋右下の小さな丸い矢印 */
.ivz-case__body{
  padding: 12px 18px 22px;
  position: relative;
}
.ivz-case__body p{
  margin: 8px 0 0;
  color: var(--ivz-muted);
  line-height: 1.9;
  font-size: 15px;
}

/* 右下の黒い丸＋白三角（CSSだけで作成） */
/* .ivz-case__cta{
  position: absolute;
  right: 16px; bottom: 16px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #24211f;
}
.ivz-case__cta::before{
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-left: 5px solid #fff;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: translate(-40%,-50%);
} */

/* 細かい雰囲気づくり（行間/微妙な影） */
.ivz-case::after{
  content:"";
  position:absolute; inset:0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  pointer-events:none;
}

/* カードの間隔を整える（モバイル時余白を少し大きめ） */
@media (max-width: 819.98px){
  .ivz-case{ border-radius: 10px; }
  .ivz-case__eyebrow{ padding-left: 60px; font-size: 17px; }
  .ivz-case__headline{ font-size: 18px; }
}

/* 任意：偶数カードの背景トーンを微妙に変化させる（スクショの雰囲気寄せ） */
.ivz-cases__inner > .ivz-case:nth-child(2n){
  background: #fffdfa;
}

/*------------------------------------- 支払いアイコン --------------------------------------*/
.ivz-payment {
  --ivz-bg: #f0f6ff;
  --ivz-card: #fff;
  --ivz-ink: #1f2a44;
  --ivz-sub: #5d6b86;
  --ivz-primary: #3f7cff;
  --ivz-shadow: 0 8px 18px rgba(31,42,68,.08);

  /* background: var(--ivz-bg); */
  padding: clamp(28px, 6vw, 56px) 16px;
}

.ivz-payment__list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ivz-payment__item {
  background: var(--ivz-card);
  /* border-radius: 12px; */
  padding: 20px;
  box-shadow: var(--ivz-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .3s ease, box-shadow .3s ease;
}

.ivz-payment__item:hover {
  /* transform: translateY(-3px); */
  box-shadow: 0 12px 24px rgba(31,42,68,.12);
}

.ivz-payment__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}
.ivz-payment__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ivz-payment__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ivz-ink);
}

.ivz-payment__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ivz-sub);
}
.ivz-payment__icon {
  font-size: 28px;
  color: var(--ivz-primary, #3f7cff);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #eef4ff;
}
/*------------------------------------- 入れ歯用 --------------------------------------*/

.dentures-block {
  margin: 24px 0 40px;
  color: #223;
  font-size: 15px;
  line-height: 1.8;
}

.lead-txt {
  margin: 6px 0 16px;
  color: #444;
}

/* ========== Type cards (総入れ歯 / 部分入れ歯) ========== */
.type-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}
.type-card {
  background: #fff;
  border: 1px solid #e3ecfb;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(30, 80, 160, 0.06);
  display: grid;
  grid-template-columns: 40% 1fr;
}
.type-card__media {
  background: linear-gradient(180deg, #f4f9ff, #eaf3ff);
  display: grid;
  place-items: center;
  padding: 15px 5px;
}
.img-placeholder {
  width: 100%;
  border: 2px dashed #9ebdf3;
  display: grid;
  place-items: center;
  color: #4a84e2;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.type-card__body {
  padding: 16px 18px;
}

/* ========== Gallery ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 28px;
}
.gallery__item {
  text-align: center;
}
.gallery__item .img-placeholder {
  aspect-ratio: 4/3;
}
.gallery__item figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #415a92;
}

/* ========== Compare cards (保険/自費) ========== */
.compare-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.compare-card {
  background: #ffffff;
  border: 1px solid #e3ecfb;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(30, 80, 160, 0.06);
  padding: 10px
}

.compare-card__body {
  padding: 14px 16px 16px;
}

/* List styles */
.list-check,
.list-attn {
  list-style: none;
  padding: 0;
  margin: 6px 0 10px;
}
.list-check li,
.list-attn li {
  position: relative;
  padding-left: 22px;
  margin: 6px 0;
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74,144,226,.15);
}
.list-attn li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: #977c4c;
  box-shadow: 0 0 0 3px rgb(255 252 107 / 18%);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .type-grid {
    grid-template-columns: 1fr;
  }
  .type-card {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .medical-h2 { font-size: 20px; }
  .medical-h3 { font-size: 16px; }
  .medical-h4 { font-size: 14px; }
}

/*------------------------------------- 設備紹介 --------------------------------------*/
/* 設備紹介セクション */
.equipment {
  padding: 40px 0;
}

.equipment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.equipment-item {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 16px;
}

.equipment-img {
  width: 100%;
  text-align: center;
  margin-bottom: 12px;
}

.equipment-img img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.equipment-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.equipment-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}
/*------------------------------------- スタッフ紹介 --------------------------------------*/
.staff {
  padding: 60px 0;
  background: #f5f9fc; /* 淡い青背景 */
}

.staff-list {
  display: block; /* 縦並び */
}

.staff-item {
  background: #fff;
  border: 2px solid #e1ecf7;
  padding: 24px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.staff-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.staff-photo {
  flex: 1.5; 
}

.staff-photo img {
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid #e1ecf7;
}

.staff-content {
  flex: 4.5;
}

.staff-header {
  margin-bottom: 16px;
  border-left: 5px solid #005bac;
  padding-left: 12px;
}

.staff-name {
  font-size: 1.3rem;
  font-weight: bold;
  color: #003f7d;
}

.staff-subttl {
  font-size: 1.1rem;
  margin: 20px 0 10px;
  color: #005bac;
  border-bottom: 1px solid #d6e5f5;
  padding-bottom: 5px;
}

.staff-message p {
  line-height: 1.7;
  color: #333;
}

.staff-career ul,
.staff-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.staff-career ul li,
.staff-group ul li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
  line-height: 1.6;
  color: #444;
}

.staff-career ul li::before,
.staff-group ul li::before {
  content: "■";
  color: #005bac;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
}
.staffcertificateimg {
  width: 30%;
}
/* スマホ対応 */
@media (max-width: 768px) {
  .staff-inner {
    flex-direction: column;
    align-items: center;
  }
  .staff-photo {
    flex: 0 0 auto;
    width: 60%;
    max-width: 250px;
  }
  .staff-content {
    width: 100%;
  }
}
/*------------------------------------- アクセス --------------------------------------*/
.flex_access {
    display: flex;
    gap: 15px;
}
.access-train {
  flex: 1.5;
}
.mapbox {
  flex: 3.5;
}
.access-train {
  margin: 40px 0;
  background: #fff;
  padding: 15px;
}

.access-ttl {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #225577;
}

.train-access-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.train-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.train-icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  background: #3b89d1; /* 青系背景 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
}

.train-text p {
  margin: 0;
  line-height: 1.5;
}

.train-line {
  font-size: 0.95rem;
}

.train-station {
  font-size: 1.05rem;
  font-weight: bold;
}

.train-station span {
  color: #3b89d1; /* 駅名を青で強調 */
}

.map-wrap {
  position: relative;
  padding-bottom: 35.25%; 
  height: 0;
  overflow: hidden;
  margin-top: 30px;
}

.map-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* ボタンを右寄せ配置 */
.map-btn-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.map-btn {
  background: #005bac;
  color: #fff;
  font-size: 0.95rem;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: background 0.3s ease;
}

.map-btn:hover {
  background: #004080;
  color: #fff;
}

.map-btn-icon {
  background: #fff;
  color: #005bac;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 0.85rem;
  font-weight: bold;
}

.access-schedule {
  width: 80%;
  margin: auto;
}
.reserve-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* スマホで折り返し */
}
/*------------------------------------- 料金表 --------------------------------------*/
/* ベース */
:root { --border:#e5e7eb; --text:#111827; --muted:#6b7280; --bg:#ffffff; }

/* レイアウト */
.price-page {
   margin: 24px auto 64px; 
   padding: 0 16px; 
  }
.price-section { 
  margin-top: 16px; 
}

/* テーブル */
.table-wrap { 
  overflow-x: auto; 
}
.price-table { 
  width: 100%; 
  border-collapse: collapse; 
  min-width: 640px; 
}
.price-table th, .price-table td {
  border: 1px solid var(--border);
  padding: .75rem .9rem;
  vertical-align: top;
  background: #fff;
}
.price-table thead th { 
  background: #f9fafb; 
  text-align: left; 
  white-space: nowrap; 
}
.col-price { 
  text-align: right; 
  white-space: nowrap; 
}

/* 註釈・支払い */
.note { 
  color: var(--muted); 
  font-size: .92rem; 
  margin: .5rem 0 0; 
}
.pay-list { 
  padding-left: 1.1rem;
 }

/* ちょい読みやすく */
.price-table tbody tr:nth-child(even) td { 
  background: #fcfcfd; 
}
/*------------------------------------- ブリッジ --------------------------------------*/
.img_flex3 {
  display: flex;
  justify-content: space-between; 
  gap: 20px;
  width: 80%;
  margin: 20px auto;
}

.img_flex3 img {
  width: 33.33%; /* 三等分 */
  height: auto;
  object-fit: cover;
}

/*------------------------------------- コラムsingleページ --------------------------------------*/
/**************************************
 * Single：main_contents 以下
 **************************************/
main.main.single {
    margin: 35px 0;
}
#main_contents {
  width: 100%;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) 0;
}

#main_col {
	width: 75%;
	margin: 0 auto;
}

/* 記事本体 */
#main_col article {
  background: #fff;
}

#main_col .entry-content {
  font-size: 16px;
  line-height: 1.9;
  color: #222;
}

/* 画像・図版 */
#main_col .entry-content img,
#main_col .entry-content figure img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

/* 見出し */
/* ====== 見出しデザイン（青系） ====== */
#main_col .entry-content h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  font-weight: 700;
  margin: 2.2em 0 0.8em;
  padding: 0.4em 0.6em;
  border-left: 5px solid #1e88e5;   /* 濃い青ライン */
  background: linear-gradient(90deg, #e3f2fd, transparent); /* 左から淡青 */
  color: #0d47a1; /* 濃い青文字 */
  border-radius: 4px;
}

#main_col .entry-content h3 {
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.5;
  font-weight: 700;
  margin: 1.8em 0 0.6em;
  padding-bottom: 4px;
  border-bottom: 2px solid #64b5f6; /* 明るい青の下線 */
  color: #1565c0; /* 少し柔らかい青文字 */
}

#main_col .entry-content h4 {
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  margin: 1.4em 0 0.6em;
  padding-left: 0.6em;
  border-left: 3px solid #90caf9; /* 明るめブルー */
  color: #1976d2; /* h3より淡い青で差別化 */
}

/* 段落・リスト・引用 */
#main_col .entry-content p {
  margin: 1.1em 0;
}

#main_col .entry-content ul,
#main_col .entry-content ol {
  margin: 1.1em 0 1.4em 1.4em;
  padding: 0;
}

#main_col .entry-content blockquote {
  margin: 1.6em 0;
  padding: 1.2em 1.4em;
  border-left: 4px solid #eee0b3;
  background: #fffaf0;
  border-radius: 8px;
}

/* 表 */
#main_col .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 15px;
}
#main_col .entry-content th,
#main_col .entry-content td {
  border: 1px solid #e9e9e9;
  padding: 10px 12px;
}
#main_col .entry-content th {
  background: #ebf0fa;
  font-weight: 700;
}

/* ページャー（<!--nextpage-->） */
#main_col .page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2em 0 0;
}
#main_col .page-links > a,
#main_col .page-links > span {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #ddd2a3;
  border-radius: 6px;
  text-decoration: none;
}
#main_col .page-links > span {
  background: #fff5cc;
  border-color: #e6b800;
  font-weight: 700;
}

/* タグ */
#main_col .post-tags {
  margin: 2.2em 0 0.6em;
  font-size: 14px;
  color: #666;
}
#main_col .post-tags a {
  display: inline-block;
  margin: 4px 8px 0 0;
  padding: 6px 10px;
  text-decoration: none;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  font-size: 13px;
  color: #333;
  background: #fafafa;
}
#main_col .post-tags a:hover {
  background: #fff3c2;
  border-color: #e6b800;
}

/* 前後ナビ */
#main_col .post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 1.6em 0 0;
  padding: 14px 0 24px;
  border-top: 1px solid #eee;
}
#main_col .post-nav a {
  color: #333;
  text-decoration: none;
}
#main_col .post-nav a:hover {
  text-decoration: underline;
}

/* 関連コラム */
.related-posts.related-cases {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(8px, 1.5vw, 12px);
  border-top: 1px solid #eee2b5;
}

/* .related-posts.related-cases .term-title.case_heading.case_span {
  font-size: clamp(18px, 2vw, 22px);
  margin: 0 0 16px;
  display: inline-block;
  padding: 6px 10px;
	background: #b6cce5;
	border: 1px solid #4a90e2;
  border-radius: 8px;
	color: #4a90e2;
} */

/* カードグリッド */
.related-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

@media (max-width: 980px) {
  .related-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .related-cases-grid {
    grid-template-columns: 1fr;
  }
}

/* カード */
.related-case-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #eee9cf;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.related-case-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

/* サムネイル */
.related-case-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f7f7f7;
}
.related-case-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* タイトル */
.related-case-title {
  font-size: 16px;
  line-height: 1.55;
  margin: 14px 14px 8px;
}
.related-case-title .related-case-a {
  color: #222;
  text-decoration: none;
}
.related-case-title .related-case-a:hover {
  text-decoration: underline;
}

/* メタ */
.related-case-meta {
  margin: 0 14px 10px;
  font-size: 13px;
  color: #666;
}

/* 仕切り線 */
.related_hr {
  width: calc(100% - 28px);
  margin: 6px auto 10px;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f0e7bd, transparent);
}

/* 一覧へリンク */
.more-cases-link {
  margin-top: clamp(18px, 2.5vw, 28px);
  text-align: center;
}
.more-cases-link .btn.case_btn {
  padding-inline: 22px;
}

/* 余白の最終調整（下部） */
#main_col article + .related-posts {
  margin-top: clamp(24px, 3.2vw, 36px);
}
/* ---------------------------------------ダイレクトボンディング--------------------------------------- */
.subttl {
  position: relative;
  font-size: 2rem;
  text-align: center;
  margin: 20px 0;
  /* display: inline-block;  */
}

.subttl::before {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 13px;
background: linear-gradient(
    90deg,
    rgba(118, 152, 199, 0.3), /* 薄めブルー */
    rgba(167, 196, 245, 0.3)  /* さらに薄いブルー */
  );
  border-radius: 2px;
}

.subttl2 {
  background: #7491b3;
  color:#fff;
  padding: 20px;
  font-size: 1.8rem;
  text-align: center;
  width: 60%;
  margin: auto;
}

.subttl3 {
  font-size: 1.5rem;
  text-align: center;
}
.directbox {
    background: #eaf2ff;
    padding: 20px;
}
/* ---------------------------------------自費と保険の違い--------------------------------------- */
/* ===== 保険診療リスト（青系） ===== */
:root{
  --blue-50:#f3f7ff;
  --blue-100:#e6efff;
  --blue-200:#cfe0ff;
  --blue-400:#5a8dff;
  --blue-500:#2f6fff;
  --blue-600:#215ae6;
  --ink:#1b1f23;
  --muted:#5b6670;
  --shadow:0 6px 20px rgba(23, 65, 142, .12);
}

.insure-sec{
  background: linear-gradient(180deg, var(--blue-50), #fff);
  padding: clamp(28px, 4vw, 56px) 0;
}
.insure-wrap{width:min(1100px, 92%); margin:0 auto;}
.insure-h2{
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: var(--ink);
  text-align:center;
  margin: 0 0 20px;
}
.insure-h2::after{
  content:"";
  display:block;
  width:120px; height:10px; margin:10px auto 0;
  background: linear-gradient(90deg, var(--blue-200), var(--blue-500));
  border-radius:6px;
  opacity:.3;
}

.insure-grid{
  list-style:none; padding:0; margin:24px 0 0;
  display:grid; gap:16px;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width:640px){
  .insure-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width:980px){
  .insure-grid{ grid-template-columns: repeat(3, 1fr); }
}

.insure-card{
  background:#fff;
  box-shadow: var(--shadow);
  padding:18px 18px 16px;
  border:1px solid var(--blue-100);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position:relative;
  overflow:hidden;
}
.insure-card::before{
  content:"";
  position:absolute; inset:auto 0 0 0; height:4px;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
  opacity:.8;
}
.insure-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(23, 65, 142, .16);
  border-color: var(--blue-200);
}

.insure-icon{
  width:44px; height:44px; display:grid; place-items:center;
  color:#fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  margin-bottom:10px;
}

.insure-ttl{
  font-size:1.05rem; line-height:1.4; margin:6px 0 6px; color: var(--ink);
}
.insure-txt{
  margin:0; color: var(--muted); font-size:.95rem; line-height:1.8;
}
.insure-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.insure-icon .fa-tooth {
  font-size: 28px;
}
.insure-icon .diamond {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 14px;
    color: #fff;
}
.insure-icon .diamond::before {
  content: "♦";  /* ダイヤの文字 */
}
.box_design {
    background: #eef4ff;
    margin: 20px 0;
    padding: 15px 10px;
    border: 1px solid #4a90e2;
}
/* ---------------------------------------下層症例--------------------------------------- */
img.caseimg {
    width: 80%;
    margin: auto;
}
/* ====== 症例ブロック：共通の軽い調整 ====== */
.case-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 15px;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}
.case-table th, 
.case-table td {
  border: 1px solid #e5e5e5;
  padding: 12px 14px;
  text-align: left;
}
.case-table th {
  background: #f0f6fb;
  font-weight: 600;
  color: #333;
  width: 18%;
}
.case-table td {
  background: #fff;
  color: #444;
}
.case-table tr:nth-child(even) td { background: #fafafa; }
.case-table tr:hover td { background: #f9fcff; }
.case-table td[colspan="3"] { font-weight: 500; background: #fdfdfd; }

figure { text-align: center; }
figure figcaption { font-size: 0.9em; margin-top: .4em; color: #666; }

/* ====== モバイル（〜767px） ====== */
@media (max-width: 767px) {
  /* Before / After を縦並びに */
  .under_flex_box { 
    display: flex; 
    flex-direction: column; 
    gap: 16px !important; 
  }
  .under_flex_box .img_box { width: 100% !important; }
  .under_flex_box .img_box img { width: 100%; height: auto; display: block; }

  /* 症例テーブルをカード風にブロック化 */
  .case-table {
    box-shadow: none;           /* 各行に影を移すので全体の影はオフ */
    border-radius: 0;
    border: 0;
  }
  .case-table thead { 
    position: absolute; 
    width: 1px; height: 1px; 
    overflow: hidden; 
    clip: rect(0 0 0 0); 
    white-space: nowrap; 
  }
  .case-table, 
  .case-table tbody, 
  .case-table tr, 
  .case-table th, 
  .case-table td {
    display: block;
    width: 100%;
    border: 0;
  }
  .case-table tr {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  /* 行内の項目を「ラベル→値」の順で縦積み表示 */
  .case-table th {
    background: transparent;
    color: #6b7280;             /* グレー系 */
    font-size: .88rem;
    padding: 6px 0 0;
  }
  .case-table td {
    background: transparent;
    color: #111827;
    font-size: 1rem;
    padding: 2px 0 10px;
  }
  /* 交互色やホバーは無効化 */
  .case-table tr:nth-child(even) td,
  .case-table tr:hover td { background: transparent; }

  /* 見出し的な行（colspanあり）は上マージンを少し広く */
  .case-table td[colspan="3"] { 
    padding-top: 8px; 
    font-size: .98rem;
    line-height: 1.7;
  }
}
/* ---------------------------------------カスタム投稿タイプ症例--------------------------------------- */
.case_heading {
    text-align: center;
    padding: 2%;
	margin-top: 7%;
	font-size: 2.375rem;
    font-weight: 300;
    line-height: 1.3em;
}

.case_span::after{
    content: "case";
    display: block;
    font-size: 1.5rem;
    font-weight: 200;
	color: #4a90e2;
    font-family: sans-serif;
    margin: -1% 0 15px;
}

.case-study-details table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}

.case-study-details th, .case-study-details td {
	padding: 10px;
	border: 1px solid #ddd;
}

.case-study-details th {
	background-color: #f7f7f7;
	text-align: left;
	width: 40%;
}

.case-study-images img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.two-column {
    display: flex;
    justify-content: space-between;
}

.two-column img {
    width: 48%;
}

.case-study-images {
    text-align: center;
    margin-bottom: 20px;
}

.case-study-images .two-column {
    display: flex;
    justify-content: space-between;
	gap: 10%;
	margin: 0 auto;
}

.case-study-images .case-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.case-study-images .case-image img {
    width: 100%;
    height: auto;
    object-fit: cover; 
        border-radius: 0 0 8px 8px;
}

.case-study-images .case-image span {
    display: block;
    text-align: center;
    font-weight: bold;
}

.case-study-images .single-image {
    text-align: center;
    margin: 0 auto;
}

.case-study-details {
    margin-top: 20px;
	width: 90%;
	margin: auto;
}

.free-text {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    clear: both;
}

td.treatment_text {
    font-size: 14px;
}
@media screen and (min-width: 1400px) {
	.two-column {
		width: 90%;
		text-align: center;
		margin: 0 auto;
	}
}
@media screen and (max-width: 768px) {
    .case-study-images .two-column {
        flex-direction: column;
        align-items: center;
    }

    .case-study-images .case-image {
        max-width: 100%;
    }

    .case-study-details {
        padding-left: 0;
        padding-right: 0;
    }

    .free-text {
        margin-left: 0;
        margin-right: 0;
    }
}
.syourei_span {
	background-color: #6d97bf;
    margin: 0 auto;
    color: white;
    border-radius: 10px 10px 0 0;
}


/* 追加css　関連ページ  */
.term-section {
	padding:0 0 30px;
}
div#primary {
    width: 90%;
    margin: auto;
}

.related-cases {
    margin-top: 40px;
}

.related-cases-grid {
	display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
	margin: 20px 0;
}

.related-case-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.related-case-item.casekanren {
	max-width:30%;
}

.related-case-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px 8px;
}

.related-case-title {
    font-size: 1.2em;
    margin-top: 15px;
}

.related-case-meta {
	font-size: 0.9rem;
	color: #fff;
	margin-top: 10px;
	background: #4a90e2;
	padding: 6px;
	text-align: center;
	width: 46%;
}

.related-case-excerpt {
    margin-top: 15px;
    font-size: 0.9em;
    color: #777;
}

.related-case-link {
    text-align: center;
	margin: 20px 0;
}

.related-case-link .btn.case_btn {
    margin-top: 20px;
    padding: 10px 15px;
    font-size: 1em;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
	background: #4a90e2;
}

.more-cases-link {
    text-align: center;
    margin-top: 40px;
}

.more-cases-link .btn.case_btn {
	padding: 10px 20px;
	font-size: 1.2em;
	border-radius: 8px;
	background-color: #5680a7;
	color: #fff;
	text-decoration: none;
}

.price_subtitle {
  font-size: 20px;
  color: #bfa45a;
  margin: 40px 0 15px;
  border-left: 5px solid #bfa45a;
  padding-left: 10px;
}


