/*------------------- ヘッダー -------------------*/

header {
	position: absolute;
	z-index: 10;
	left: 0;
	top: 0;
	width: 100%;
	box-sizing: border-box;
	padding: 0 3% 0;
}
header .h_inbox {
	display: flex;
	justify-content: space-between;
}
header .h_left {
	position: relative;
	width: 35%;
	margin-top: 1em;
}
header .h_left .h_logo {
	margin-bottom: 1em;
}
header .h_left .h_logo img {
	margin-left: 0;
  width: 55%;
}
header .h_left .h_logo span {
	display: block;
	width: 54%;
	margin-bottom: 1em;
}
header h1 {
	font-size: 0.7rem;
	letter-spacing: .14em;
	line-height: 1.4em;
}

header .h_contact {
	display: flex;
    justify-content: space-between;
    align-items: flex-end;
	text-align: center;
	position: relative;
	color: #fff;
}

header .h_tel dl {
	position: relative;
}
header .h_tel dt {
	text-align: left;
	color: #938068;
	font-size: min(1.4vw,94%);
	letter-spacing: .14em;
	margin-bottom: .2em;
}
header .h_tel dt span {
	font-size: 80%;
	color: #363636;
}
header .h_tel dt,
header .h_tel .phone_num {
	padding-left: 20%;
}
header .h_tel img {
    margin: 0;
}
header .h_tel .phone_num {
	font-size: min(1.8vw,130%);
}
header .h_tel .icon {
    left: 0;
    top: auto;
	bottom: 0;
    transform: none;
}
header .h_tel {
	background: #ffffff94;
	margin: auto;
}
header .h_tel .h_time {
	/* margin-top: .8em; */
}
header .h_time {
  font-size: 15px;
}
header .h_web a {
	padding: .8em .8em .7em;
}
header .h_web a > div {
	position: relative;
	box-sizing: border-box;
	padding-left: 25%;
}
header .h_web .icon_web {
	position: absolute;
	width: 23%;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
}
header .h_web .com_web_style {
	width: 96%;
    max-width: 154px;
	padding-left: 4%;
	padding-bottom: .6em;
	transition: all .5s;
	overflow: hidden;
}
header .h_web .com_web_style::before {
	position: absolute;
	content: "";
	background-color: #FFF;
	width: 100%;
	height: 1px;
	left: 0;
	bottom: 0;
}
header .h_web .com_arrow2 {
	bottom: .5em;
}
header .h_web .h_web_txt {
	width: 84%;
    margin: .7em auto 0;
}

/*------------------- メニュー -------------------*/
/* 最初は通常の位置に */
.nav {
  width: 100%;
  background: #fff;
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* 最初は relative */
  transition: all 0.3s ease-in-out;
  z-index: 10;
}

/* 固定されるときのスタイル */
.nav.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); */
  background: #ffffff;
  transition: all 0.3s ease-in-out;
  z-index: 15;
}


/* メニューリスト */
.nav-list {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 1200px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* メニュー項目 */
.nav-item {
  position: relative;
}

/* メニューリンク */
.nav-item a {
  text-decoration: none;
  color: #666;
  font-size: 16px;
  font-weight: bold;
  padding: 15px 8px;
  display: block;
  position: relative;
  transition: color 0.3s ease;
}

/* ホバー時のエフェクト（下線アニメーション） */
.nav-item a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  background: #938068;
  transition: all 0.3s ease-out;
  transform: translateX(-50%);
}

.nav-item a:hover::after {
  width: 100%;
}

.nav-item a:hover {
  color: #b19768;
}
/* メニューリンクなし */
.nav-item p {
  text-decoration: none;
  color: #666;
  font-size: 16px;
  font-weight: bold;
  padding: 15px 20px;
  display: block;
  position: relative;
  transition: color 0.3s ease;
}


/* プルダウンメニュー */
.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* プルダウンメニュー項目 */
.dropdown li {
  padding: 12px 0;
}

.dropdown li a {
  text-decoration: none;
  color: #666;
  display: block;
  font-size: 14px;
  transition: background 0.3s ease, padding-left 0.3s ease;
}

.dropdown li a:hover {
  background: #f4f4f4;
/*   padding-left: 25px; */
}

/* ホバー時にプルダウンを表示 */
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  z-index: 1;
}

/* ハンバーガーメニュー（スマホ対応） */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}



.nav-item a.active {
  color: #333333; /* テキスト色 */
  background-color: rgba(74, 144, 226, 0.1); /* 薄いブルーの背景色 */
  border-radius: 50%; /* 円形にする */
  padding: 10px; /* 上下左右に均等なパディング */
  display: inline-flex; /* flexを使用して中央揃えを容易に */
  justify-content: center; /* 横軸中央揃え */
  align-items: center; /* 縦軸中央揃え */
  min-width: 30px; /* 最小幅を指定 */
  height: 30px; /* 高さを指定 */
  transition: background-color 0.3s ease; /* 背景色の変化にトランジションを適用 */
  text-align: center; /* テキストを中央揃えに */
  white-space: nowrap; /* テキストを折り返さない */
}

.nav-item a.active:hover {
  background-color: rgba(74, 144, 226, 0.2); /* ホバー時に背景色を少し濃くする */
}

/* 初期は表示 */
.menu-header-pc-only {
  display: block;
}

/* 768px以下（モバイル）は非表示 */
@media screen and (max-width: 768px) {
  .menu-header-pc-only {
    display: none;
  }
}

/*------------------- ファーストビューブロック -------------------*/
.main-visual {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  padding: 3.2em 5.8em 0px;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  transition: opacity 2s ease-in-out; /* ふわっとフェードする */
}

.background-image.active {
  opacity: 1;
  z-index: 2;
}

.image1 {
  background-image: url('../images/feature/main3.png');
}

/* .image2 {
  background-image: url('../images/main2-2.png');
} */

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #dddddd29;
  z-index: 3;
}

/* キャッチコピー */
.undertext-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 4;
  top: 80%;
}
.undertext-content p {
  font-size: 1.8rem;
}
.undertext-content p::after {
  content: "";
  display: block;
  /* width: 80px; */
  height: 1px;
  background-color: #c89b3c;
  margin: 8px auto 0;
  border-radius: 2px;
}
.size3rem {
  font-size: 4rem;
  font-weight: 600;
  line-height: 1.5;
  /* text-shadow: 1px 1px 6px rgba(255, 255, 255, 0.6), 0 0 10px rgba(204, 183, 115, 0.2); */
  /* text-shadow: 1px 1px 6px rgba(255, 255, 255, 0.6), 0 0 10px #d5892e; */
  margin-bottom: 25px;
}

.bgwrap {
  position: relative;
  display: inline-block;
  /* padding: 0.3em 0.8em; */
  /* background: linear-gradient(to right, rgb(255, 255, 255), rgb(250, 243, 220));
  box-shadow: 0 4px 20px rgba(255, 215, 115, 0.2);
  backdrop-filter: blur(4px); */
}

.size1-5rem {
  font-size: 1.5rem;
  color: #5c4a1f;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.bgwrap .catchhighlight {
  background: linear-gradient(90deg, #d6b161, #f8e5ab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-shadow: 0 0 8px rgb(123 100 33 / 40%);
    font-size: 3.5rem;
}

.catchhighlight {
  background: linear-gradient(90deg, #d6b161, #f8e5ab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-shadow: 0 0 8px rgb(123 100 33 / 40%);
    font-size: 1.5rem;
}

/* 数字 */
.appeal {
  /* padding: 0 45px; */
  margin: 50px 0;
  display: flex;
  flex-direction: column;
}
.appeal dl {
  display: grid;
  grid-template-columns: 10em 1fr;
  align-items: end;
  border-bottom: 2px solid #ffe7a2;
  width: 34.7em;
  margin: 0 1em 1.6em;
  color: #69492a;
}

.appeal dt {
  background: linear-gradient(135deg, #f1e0b5 20%, #f5e2a1 80%);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.5em 1px;
}

.appeal i {
  /* font-size: 64%; */
  display: block;
}

.appeal dd {
  font-size: 1.4rem;
  padding: 0 0 0 0.4em;
  display: flex; /* これでdd内の要素を横並びにする */
  align-items: flex-end;
  margin: 0 0 0.5rem;
}

.appeal dl dd em {
  margin: 0 0.2em 0;
}

.appeal dd em {
  font-size: 3rem;
  color: #d9c173;
  letter-spacing: -0.06em;
  line-height: 1;
  display: inline-block;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2), 0 0 25px rgba(255, 255, 255, 0.6); /* テキストシャドウ */
}

.appeal .minitxt {
  font-size: 1.4rem;
  margin-left: 5px;
}

.white {
  color: white;
}
.tel {
  font-size: 30px;
  color: #363636;
}


.kkm {
  width: 34.9em;
  aspect-ratio: 524 / 210;
  min-height: max(15vw, 195px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url(../images/mainboxbg.png);
  margin: 50px;
  padding: 0.8em 0px 0px 16.6em;
  text-align: left;
}
.kkm em {
  font-size: 30px;
  margin: 0 5px;
  color: #c02828;
}
.kkm ul {
  display: grid;
  margin: 25px 0;
}
.kkm li {
  margin: 5px 0;
}

.kkm li span {
  display: inline-block;
  font-size: 1.3rem;
  padding-left: 1.2em;
  background-repeat: no-repeat;
  background-size: 1.1em;
  background-image: url(../images/check.png);
  border-bottom: 1px solid rgb(97, 97, 97);
  background-position: 0px 1em;
  margin: 0 0 5px;
  background-position: left center;
}
.kkm li i {
  font-size: 88.6%;
}
.kkm p {
  font-size: 88.6%;
  text-align: right;
  margin-right: 2em;
}

/* ------------------------------------------------------------------------------------------------------------------------------------------------------
ボディ
------------------------------------------------------------------------------------------------------------------------------------------------------ */

/* ---------------------------------------------------------------------------
about
--------------------------------------------------------------------------- */

/* ------------------------一つ目------------------------ */
.clinic-feature {
  position: relative;
}

.clinic-feature-waper:before{
      content: "";
    position: absolute;
    /* background: url(../images/feature/img\ \(85\).png) no-repeat left center / cover; */
    width: 90%;
    max-width: 100%;
    height: 600px;
    left: 0;
    bottom: 0;
    top: 460px;
    z-index: -1;
}

.feature-inner {
  margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
	background: #fbf8f7 url(../images/feature/feature2.png) no-repeat right center / auto 70%;
    position: relative;
    max-width: 1780px;
    padding: 80px 5% 130px;
    background-position: right -80px center;
}

.feature-text-area {
  width: 55%;
}

.headerdiv {
  margin: 20px 0;
  border-bottom: 1px solid #938068;
}
.headerdiv h2 {
  font-size: 2rem;
  color: #5f5646;
  margin: 0 0 0 -20px;
}

.headerdiv p{
  color: #b19768;
}

.concept-text p {
  margin: 10px 0;
}

.concept-text {
  font-size: 1rem;
  line-height: 1.9;
  color: #3b3b3b;
}

.concept-text strong {
  color: #C89B3C;
  font-weight: 600;
}

.feature-images {
  position: absolute;
    bottom: -105px;
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 80%;
}
.feature-images img {
  width: 30%;
  border: 4px solid #fff;
}

/* ------------------------一つ目ここまで------------------------ */
/* ------------------------二つ目------------------------ */
.feature-inner2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #fbf8f7 url(../images/feature/feature1.png) no-repeat left center / auto 85%;
  position: relative;
  /* margin-bottom: 280px; */
  max-width: 1780px;
  padding: 80px 5% 130px;
  background-position: left -171px center;
}
.feature-text-area2 {
  width: 55%;
  margin: 0 0 0 50%;
}

/* ------------------------二つ目ここまで------------------------ */
.clinic-feature:nth-of-type(2) {
  padding: 125px 0;
}
.clinic-feature:nth-of-type(2) .headerdiv {
  border-bottom: 1px solid #938068;
  width: 50%;
  margin: 0 auto;
  text-align: center;
}
.ct-section {
  padding: 60px 20px;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
}

.ct-heading h3 {
  text-align: center;
  font-size: 2rem;
  color: #b19768;
  margin-bottom: 20px;
  letter-spacing: 0.12em;
  font-weight: bold;
}
.ct-heading h3::before {
  content: "「";
  margin-right: 60px;
}

.ct-heading h3::after {
  content: "」";
  margin-left: 60px;
}


.ct-heading p {
  font-size: 15px;
  line-height: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

.ct-heading strong {
  font-weight: bold;
  color: #000;
}

.ct-content {
  display: flex;
}

.ct-content::before {
  content: "";
    max-width: 40%;
    max-height: 680px;
    width: calc(1300 / 1920 * 100vw);
    height: calc(960 / 1920 * 100vw);
    margin: auto;
    /* background: url(../images/feature/featurebg2.png) no-repeat center / contain; */
    position: absolute;
    top: 111px;
    left: 79px;
    z-index: -1;
}

.ct-image img {
  max-width: 360px;
  height: auto;
}

.ct-info-box {
  display: flex;
    max-width: 600px;
    width: 100%;
    margin: 0 0% 0 auto;
    padding: 40px 2.5%;
    background: rgb(237 232 216 / 90%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ct-info-box ul {
  padding-left: 0;
  list-style: none;
}

.ct-info-box li {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ------------------------三つ目------------------------ */
.clinic-feature:nth-of-type(3) .feature-inner {
	background: #fbf8f7 url(../images/feature/feature4.png) no-repeat right center / auto 85%;
}
/* ------------------------三つ目ここまで------------------------ */

/* ------------------------四つ目------------------------ */
.clinic-feature:nth-of-type(4) .feature-inner2{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	background: #fbf8f7 url(../images/feature/feature3.png) no-repeat left center / auto 56%;
	position: relative;
	/* margin-bottom: 280px; */
	max-width: 1780px;
	padding: 80px 5% 130px;
	background-position: left -171px center;
}
/* ------------------------四つ目------------------------ */
/* ------------------------五つ目------------------------ */
.clinic-feature:nth-of-type(5) .headerdiv {
	text-align: center;
	margin: 20px 0 ;
	border-bottom: 1px solid #938068;
	width: 50%;
	margin: 0 auto;
	text-align: center;
}

.clinic-feature:nth-of-type(5)  .headerdiv h2 {
  padding: 0 0 20px;
}
.dental-concept-section {
  background-color: #fff;
}

.section-heading-bar {
  background-color: #516b91; /* 青系 */
  color: #fff;
  font-size: 1.6rem;
  text-align: center;
  padding: 20px;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}

.twocolumn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: start;
}

.concept-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}



/* スタッフ/設備 */
.content-section {
  background-color: #fffef9;
}

.section-heading-bar {
  background-color: #516b91;
  color: #fff;
  font-size: 1.6rem;
  text-align: center;
  padding: 20px;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}
.staffblock {
  background-color: #faf8f7b5;
  padding: 40px 0;
}

.item-block {
  border-top: 1px solid #ccc;
    padding-top: 40px;
    width: 80%;
    margin: 40px auto 0;
}

.item-title {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

.item-body {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.item-text {
  flex: 1 1 55%;
  margin: auto;
}

.item-text ul {
  padding-left: 1.2em;
  list-style: disc;
  font-size: 1rem;
  line-height: 1.8;
  color: #3a3a3a;
}

.item-text ul ul {
  list-style: circle;
  margin-top: 0.5em;
}

.item-image {
  flex: 1 1 40%;
  text-align: center;
}

.item-image img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .item-body {
    flex-direction: column;
  }

  .item-image {
    text-align: left;
    margin-top: 20px;
  }
}


/* リスト */
.checklist {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5em;
}

.checklist li {
  margin-bottom: 0.5em;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  padding-left: 1em;
  text-indent: -1em;
}
ul.under-list {
    line-height: 2.5;
    margin: 15px 0px;
}
/* 六つ目 */
.clinic-feature:nth-of-type(6) .feature-inner2{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	background: #fbf8f7 url(../images/feature/feature6.png) no-repeat left center / auto 75%;
	position: relative;
	max-width: 1780px;
	padding: 80px 5% 130px;
	background-position: left -171px center;
}

/* ---------------------------------------------------------------------------
health
--------------------------------------------------------------------------- */
/* ------------------ 全世代 ------------------ */

.all_generation {
  background: #F7F5F0;
  position: relative;
}

.all_generation::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 100%;
    height: 50vw;
    max-height: 570px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 20%, rgba(255, 255, 255, 0) 100%);
    left: 0;
    bottom: 0;
}
.health_h2 {
  text-align: center;
  margin: 50px 0;
}
.health_h2 h2 {
  font-size: 2.3rem;
  margin: 0 0 20px;
}

.health_wrap {
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* 一つ目 */

.health_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap; /* スマホで縦並びに */
}

.health_txt {
  flex: 1;
  min-width: 280px;
}
.health_txt {
  position: relative;
  padding: 30px;
  z-index: 0;
}

.health_txt::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #d6b161 0%, transparent 70%);
  opacity: 0.3;
  filter: blur(40px);
  z-index: -1;
}

.all_generation h3 {
  text-align: center;
}
.health_txt h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #5b4633;
}

.health_txt p {
  margin-bottom: 1em;
  line-height: 1.8;
}

.health_img {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.health_img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 二つ目 */
.health_inner.reverse {
  flex-direction: row-reverse;
}

/* 三つ目 */
.health_inner.reverse {
  flex-direction: row-reverse;
}

.health_txt {
  flex: 1;
  min-width: 280px;
}

.health_txt p {
  margin-bottom: 1em;
  line-height: 1.8;
}

.health_img {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.health_img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 四つ目 */
.health_txt ul {
  padding-left: 1.2em;
  margin: 1em 0;
}

.health_txt ul li {
  list-style-type: disc;
  margin-bottom: 0.5em;
  line-height: 1.6;
}

/* ------------------ 世代ごと ------------------ */

/* 子供 */
.each_generation_warap {
  max-width: 1200px;
  margin: 0 auto;
}

.health_h3 {
  text-align: center;
  margin-bottom: 40px;
}
.health_h3 h3 {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #5b4633;
  border-bottom: 1px solid #666;
  padding: 0 0 15px;
}

.fst_img {
  padding: 20px 0;
}
.fst_img img {
  margin: 0 auto;
}
.child_wrap {
  width: 90%;
  margin: 0 auto;
}

.each_generation_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 20px 0;
}
.child_img {
  width: 40%;
}

.each_generation_txt {
  flex: 1;
  min-width: 280px;
}
.each_generation_txt img {
  flex: 1;

}
.each_generation_warap h4 {
  font-size: 1.2em;
  color: #5b4633;
  margin-top: 20px;
  background: #e9d2a9;
  padding: 10px 15px;
  margin: 20px 0;
  border-radius: 20px;
}
.each_generation_txt p {
  padding: 0 15px;
}

.each_generation_txt strong {
  color: #d26700;
}

.each_generation_content h5{
  margin: 20px 15px;
  color: #5b4633;
}
/* テーブル */
.orthodontic_table_wrap {
  overflow-x: auto;
  margin: 30px 0;
}

.orthodontic_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #fffdf7;
  border: 1px solid #d8caaa;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.95em;
  color: #4b4b4b;
}

.orthodontic_table thead th {
  background-color: #f9f2e3; /* 薄いゴールドベージュ */
  color: #8b7434; /* 濃いめのゴールドブラウン */
  padding: 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #e6dac0;
}

.orthodontic_table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0e8d4;
  vertical-align: top;
}

.orthodontic_table tbody tr:nth-child(even) {
  background-color: #fdf9f0;
}

.orthodontic_table td small {
  color: #a79b88;
  font-size: 0.85em;
  display: block;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .orthodontic_table {
    font-size: 0.9em;
  }
}

/* 大人 */
.otona_warap,
.otona_link {
  width: 90%;
  margin: 0 auto;
}
.health-message-block {
  margin: 0 10px 40px auto;
  padding: 40px 20px 35px 30px;
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: .1em;
  border: 1px solid #bf9c80;
  position: relative;
}

.health-message-block:before,
.health-message-block:after {
  content: '';
  display: block;
  position: absolute;
  pointer-events: none;
}

.health-message-block:before {
  width: 94px;
  height: 94px;
  background-color: #d1c0b3;
  mix-blend-mode: multiply;
  clip-path: polygon(75% 0,100% 0,0 100%,0 75%);
  top: -1px;
  left: -1px;
}

.health-message-block:after {
  width: 100%;
  height: 100%;
  background: url(//m-dental.net/wp-content/themes/humanity/css/../images/common/pagecatch_bg.png) repeat;
  background-size: 4px 4px;
  top: 10px;
  left: 10px;
  z-index: -1;
}

.health-message-title {
  font-size: 28px;
}

.health-message-block h2 + p,
.health-message-block p + p {
  margin-top: 20px;
}

.health-message-block .case-records-wrap {
  margin-top: 20px;
}

.health-message-block .case-records-wrap + p {
  text-align: center;
  font-size: 12px;
}

.health-message-block .case-records img {
  width: 250px;
}

.highlight-gold {
  color: #e8a548;
  font-weight: bold;
}

/* 高齢 */
.chewing-section {
  background: #fefbf7;
  padding: 60px 20px;
}
.chewing-container {
    width: 90%;
    margin: 0 auto;
}
.chewing-block {
  margin: 20px 0;
}
.chewing-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin: 0 auto 60px;
  flex-wrap: wrap;
}

.chewing-row.reverse {
  flex-direction: row-reverse;
}

.chewing-img {
  flex: 1 1 40%;
  text-align: center;
}

.chewing-img img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
}

.chewing-text {
  flex: 1 1 55%;
  font-size: 16px;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .chewing-row,
  .chewing-row.reverse {
    flex-direction: column;
  }

  .chewing-img,
  .chewing-text {
    flex: 1 1 100%;
  }
}

/* ---------------------------------------------------------------------------
入れ歯が合わない
--------------------------------------------------------------------------- */
/* 全下層共通 */
.under_main {
  width: 90%;
  margin: 0 auto;
  line-height: 3rem;
}

.lead_wrap {
  text-align: center;
  margin-bottom: 75px;
}
.lead_inner dt {
  font-size: 1.7rem;
  margin: 20px 0;
}
.br-sp {
  display: none;
}

/* 見出し */
.under_h2 {
  background: linear-gradient(90deg, #b19768 0%, #937e58 100%);  text-align: center;
  color: #fff;
  font-size: 2rem;
  letter-spacing: .1em;
  line-height: 1.6em;
  padding: .9em 3%;
  margin-bottom: 60px;
}
.under_box1_inner,
.under_box2_inner,
.under_box3_inner,
.under_box4_inner,
.under_box5_inner,
.under_box6_inner,
.under_box7_inner {
  width: 85%;
  margin: 0 auto;
}


/* -------------------------- ブロック1 -------------------------- */
/* 横2カラム（フレックス） */
.under_flex_box {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.flex_box1 {
	flex: 3;
	margin: auto;
}
.flex_box2 {
  flex: 2;
  margin: auto;
  background:none;
  padding: 0 10px;
}

.under_flex_box img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 3カラム（グリッド） */
.under_grid_box {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

/* 各ボックスの背景色 */
.grid_box1,
.grid_box2,
.grid_box3,
.grid_box4 {
  display: flex;
}

.grid_txt_box {
  padding: 15px;
  flex: 3;
  margin: auto;
}

.grid_img_box {
  flex: 2;
  margin: auto;
}
.grid_img_box img {
  width: 80%;
  margin: 0 auto;
}
.grid_img_box img.nopain {
  width: 100%;
  margin: 0 auto;
}

.grid_box1 {
  background: #f8f4ea; 
  padding: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.grid_box2 {
  background: #fdf8ec; 
  padding: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.grid_box3 {
  background: #f3efe4;
  padding: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.grid_box4 {
  background: #fbf3dc;
  padding: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.under_grid_box h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.grid_box1 h3 {
  color: #a68c5e; 
  border-bottom: 1px solid #d3c5a3;
}
.grid_box2 h3 {
  color: #b29b63; 
  border-bottom: 1px solid #e5d6b0;
}
.grid_box3 h3 {
  color: #9a845c; 
  border-bottom: 1px solid #d2c3a1;
}
.grid_box4 h3 {
  color: #9a845c; 
  border-bottom: 1px solid #d2c3a1;
}
.under_grid_box p {
  font-size: 1rem;
  line-height: 1.6;
}

/* h4ありの場合のボックス */
.inh4_box {
    background: #f8f4ea;
}
.inh4_box .grid_box1 {
  box-shadow: none;
}
.bgnone {
  background: none;
}
.noshadow {
  box-shadow: none;
}
.under_grid_h4box {
  margin: 20px 15px;
  box-shadow: none;
}
.grid_box1.h4_box,
.grid_box2.h4_box,
.grid_box3.h4_box {
    background: #fffdf5;
    box-shadow: none;
    margin: 10px 0;
}

.grid_txt_box h4 {
  font-size: 1.3rem;
  color: #a68c5e;
  margin-bottom: 15px;
}
.grid_txt_box h4::before {
  content: "■";
  display: inline-block;
  margin-right: 0.5em;
  color: #a68c5e;
  font-size: 1em; 
}

/* h3の下に画像＋本文カラム */
.wrap_grid_box2 {
  background: #fdf8ec;
  padding: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.wrap_grid_box2 h3 {
  color: #b29b63; 
  border-bottom: 1px solid #e5d6b0;
}

.wrap_grid_box3 {
  background: #f3efe4;
  padding: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.wrap_grid_box3 h3 {
  color: #9a845c; 
  border-bottom: 1px solid #d2c3a1;
}

/* -------------------------- ブロック2 -------------------------- */

.under_vertical_lead {
  margin-bottom: 35px;
}

/* --- 全体ボックスラップ --- */
.under_vertical_box {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 60px;
}

/* --- 各ブロック（横並び2カラム） --- */
.vertical_box1,
.vertical_box2,
.vertical_box3 {
  display: flex;
  gap: 20px;
  background: #f9f6ef; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  align-items: center;
}

/* --- テキスト側 --- */
.box_txt {
  flex: 3;
  margin: auto;
}

.box_txt h3 {
  font-size: 1.5rem;
  color: #a68c5e;
  margin-bottom: 15px;
}

.box_txt p {
  /* font-size: 1rem; */
  line-height: 1.8;
}

/* --- 画像側 --- */
.box_img {
  flex: 2;
}

.box_img img {
  max-width: 90%;
  height: auto;
  margin:auto;
  display: block;
}

/* -------------------------- ブロック3 (よくある質問) -------------------------- */
/* --- 全体ボックス --- */
.under_qa_box {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 60px;
}

/* --- 各QAボックスのスタイル --- */
.qa_box dl {
  padding: 20px 0;
  position: relative;
}

/* Q部分（横並び） */
.qa_box dt {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 10px;
}

.qa_box dt::before {
  content: "Q";
  font-family: "Georgia", serif;
  font-size: 2.4rem;
  color: #7b5b30;
  line-height: 1;
  flex-shrink: 0;
}

.qa_box dt p {
  width: 100%;
  margin: 0;
  padding: 0 0 20px;
  font-size: 1.5rem;
  color: #5b4c2d;
  line-height: 1.6;
  border-bottom: 1px solid #d1c0aa;
}

/* A部分（横並び） */
.qa_box dd {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin: 0;
  color: #3f3f3f;
  line-height: 1.8;
}

.qa_box dd::before {
  content: "A";
  font-family: "Didot", "Bodoni", serif;
  font-size: 2.4rem;
  color: #de8b9c;
  line-height: 1;
  flex-shrink: 0;
}

.qa_box dd p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
}

/* ---------------------------------------------------------------------------
交通事故で歯を失った
--------------------------------------------------------------------------- */
.addbox {
    background: #c89c3cbd;
    border-radius: 10px;
    padding: 40px 10px;
    color: #fff;
    position: relative;
}
.add_flex {
  display: flex;
}
.add_img_box {
  flex: 2;
}
.add_txt_box{
  flex: 3;
  margin: auto;
}
h4.ft_min {
    text-align: left;
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.add_style p {
  color: #fff;
}
.addbox::before {
    content: "";
    position: absolute;
    width: 45%;
    max-width: 500px;
    height: 100%;
    mix-blend-mode: multiply;
    background: url(../images/under/bone.png) no-repeat right top;
    background-size: contain;
    right: -20px;
    top: -20px;
     opacity: 0.2;
}

/* -------------------------- ブロック4 (ボーダーボックス) -------------------------- */
.box4_lead p {
  margin-top: 15px;
}
ul.border_li {
	display: flex;
	gap: 15px;
}
.border_box1 {
  border: 1px solid #d2c3a1;
  padding: 0;
  margin: 20px 0;
  flex: 1;
}
.border_box2 {
  border: 1px solid #6888B0;
  padding: 0;
  margin: 20px 0;
  flex: 1;
}
.border_box_flex {
  display: flex;
}
.border_box1 .border_box_ttl {
  font-size: 1.5rem;
  text-align: center;
  color: #b19768;
  padding: 4% 0;
}
.border_box2 .border_box_ttl {
  font-size: 1.5rem;
  text-align: center;
  color: #6888B0;
  padding: 4% 0;
}
.border_li .border_box_bg1 {
  background: #fbf7f2;
	padding: 30px 15px;
}
.border_li .border_box_bg2 {
  background: #F0F7FA;
	padding: 30px 15px;
}

/* リスト */
.flex_box1 ul,
.flex_box2 ul{
  list-style: none;
}

.gold-list li {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 1em;
  color: #b19768; 
  font-weight: 500;
  line-height: 1.5;
}

.gold-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 27%;
  color: #b19768;
  font-size: 1.2em;
  line-height: 1.2;
}

.blue-list li {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 1em;
  color: #6888B0; 
  font-weight: 500;
  line-height: 1.5;
}

.blue-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 27%;
  color: #6888B0;
  font-size: 1.2em;
  line-height: 1.2;
}

.border_box1 .txtbox,
.border_box2 .txtbox {
  padding: 20px;
}

/* 料金テーブル */
.cost-table-wrap {
  margin: 2em 0;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid #e1c98c;
}

.cost-table th,
.cost-table td {
  border: 1px solid #e1c98c;
  padding: 12px 16px;
  vertical-align: top;
  color: #7a5c28; 
}
.cost-table thead th {
  background-color: #efe7dd;
  color: #7a5c28;
  font-weight: bold;
}


.cost-table-wrap h3 {
  color: #9a845c;
  border-bottom: 1px solid #d2c3a1;
  font-size: 1.7rem;
  margin-bottom: 20px;
}
/* -------------------------- ブロック5 (治療期間) -------------------------- */
.flow_box {
  margin: 20px 0 75px;
}

.flow_box:nth-child(2){
  background: #fdfaef;
  padding: 50px 20px;
}
.flow_box:nth-child(3){
  background: #fffbff;
  padding: 50px 20px;
}
.flow_box:nth-child(4){
  background: #f5fffe;
  padding: 50px 20px;
}

.flow_box h3 {
  color: #9a845c;
  border-bottom: 1px solid #d2c3a1;
  font-size: 1.7rem;
  margin-bottom: 20px;
  padding: 10px 0;
}
ul.implant_flow_vertical.com_btm_100 {
    padding-bottom: 60px;
}
.implant_flow_vertical > li {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	padding-left: 100px;
	padding-bottom: 60px;
}
.implant_flow_vertical li:last-of-type {
	padding-bottom: 0;
}
.implant_flow_vertical > li::before,
.implant_flow_vertical > 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;
}
.implant_flow_vertical > 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;
}
.implant_flow_vertical > li:nth-child(2)::before { content: "2"; }
.implant_flow_vertical > li:nth-child(3)::before { content: "3"; }
.implant_flow_vertical > li:nth-child(4)::before { content: "4"; }
.implant_flow_vertical > li:nth-child(5)::before { content: "5"; }
.implant_flow_vertical > li:nth-child(6)::before { content: "6"; }
.implant_flow_vertical > li:nth-child(7)::before { content: "7"; }
.implant_flow_vertical > li:nth-child(8)::before { content: "8"; }
.implant_flow_vertical > li::after {
	z-index: 0;
	width: 1px;
	height: 100%;
  left: 0.75em;
	background-color: #c6c2bf;
}
.implant_flow_vertical li:last-of-type::after {
	display: none;
}
.implant_flow_vertical .img_r {
	width: 35.5%;
	max-width: 394px;
}

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

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

.implant_flow_vertical .txt_l {
  padding: 0 15px;
	flex: 3;
}

.flow_box .grid_box1{
  flex-direction: row-reverse; 
  box-shadow:none;
  background: none;
}
.implant_flow_vertical {
  flex: 3;
}


/* -------------------------- ブロック6 (シンプル) -------------------------- */
.flex_simple {
  display: flex;
}

/* -------------------------- ブロック7 (h3一つ) -------------------------- */
.box7_h3_wrap {
  background: #f8f4ea;
  padding: 30px;
}
.box7_h3_wrap h3 {
  color: #a68c5e;
  border-bottom: 1px solid #d3c5a3;
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.box7_h3_flex {
  display: flex;
}

/*------------------------------------- 無料相談 --------------------------------------*/
section.consultation {
  background: url(../images/consultation.png) no-repeat top center / 100%;
  width: 100%;
  aspect-ratio: 1400 / 762;
  padding: max(4.571vw, 59px) 0 max(1.429vw, 19px);
  position: relative;
  box-sizing: border-box;
  display: flex
;
  flex-direction: column;
  margin-bottom: max(7.143vw, 93px);
}
.consult-block {
  width: 100%;
  padding: 0 3%;
  max-width: 1400px;
  margin: 0 auto;
}

h2.ja-title {
  line-height: 1.2em;
  font-size: 2rem;
  display: flex;
  height: max(8.214vw, 107px);
  align-items: center;
  box-sizing: border-box;
  padding-top: .2em;
  letter-spacing: .14em;
  margin-bottom: max(2.5vw, 32px);
  color: #5b4633;
}
p.en-title {
  width: 50%;
  line-height: 1em;
  font-size: 2rem;
  letter-spacing: .08em;
  border-bottom: 1px solid;
  box-sizing: border-box;
  padding-bottom: max(1.143vw, 15px);
  margin-bottom: max(1.929vw, 25px);
}
.consult-copy p {
  line-height: 1.5;
  font-size: 1rem;
  letter-spacing: .14em;
  margin: 20px 0;
}
.consult-copy {
    width: 47%;
}

.cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(to right, #d4af37, #bfa13f); /* ゴールドグラデ */
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-align: center;
}

.cta-button:hover {
  color: #fff;
  background: linear-gradient(to right, #bfa13f, #d4af37); /* 逆方向で光るように */
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

/*------------------------------------- 無料相談ここまで --------------------------------------*/
/* button */
.btn-gold-wrap {
    text-align: center;
    margin: 20px 0;
}
.btn-gold {
	font-family: 'Noto Serif JP', serif;
	display: inline-block;
	padding: 10px 30px;
	font-size: 0.9rem;
	font-weight: bold;
	color: #fff;
	background: #cdba97;
	border-radius: 50px;
	text-decoration: none;
	text-align: center;
	transition: 0.3s;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	margin: 10px auto;
}

.btn-gold:hover {
	color:#cdba97;
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
/*------------------------------------- 症例 --------------------------------------*/
div#main_contents {
    width: 90%;
    margin: auto;
	font-family: 'Noto Serif JP', serif;
}
div#main_col {
    width: 80%;
    margin: auto;
	padding: 30px 0;
}
.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: #a68c5e;
    font-family: sans-serif;
    margin: -1% 0 15px;
}


.case_btn {
	text-align: center;
	width: 50%;
	padding: 1%;
	margin: 0 auto;
	display: block;
}

a.case_btn:hover {
	background-color: #dcedff;
}


/* テンプレートcss */
.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: 65%;
		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: #B19768;
    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-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px 8px;
}

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

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

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

.related-case-link {
    margin-top: auto;
    text-align: center;
}

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

.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: #5B4633;
	color: #fff;
	text-decoration: none;
}

/* モバイル対応 */
@media (max-width: 768px) {
	.related-case-item {
		width: 90%;
	}
	.related-cases-grid {
		flex-direction: column;
	}
}

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

.price-table-wrapper {
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  margin-bottom: 30px;
}

.price-table thead th {
  background-color: #f5e8cc;
  color: #6b562d;
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #decba6;
  font-weight: bold;
  width: 30%;
}

.price-table tbody td {
  padding: 12px 15px;
  border: 1px solid #decba6;
  background-color: #fff;
  vertical-align: top;
}

.price-table tbody tr:nth-child(even) td {
  background-color: #fdf9f2;
}

.price-notes {
  background: #f9f2e8;
  border: 1px solid #decba6;
  padding: 20px;
  font-size: 14px;
  margin-top: 20px;
  color: #6b562d;
}

.price-notes ul {
  padding-left: 20px;
  margin: 0;
}

.price-notes li {
  margin-bottom: 8px;
}

@media screen and (max-width: 768px) {
  .under_h2 {
    font-size: 22px;
  }
  .price_subtitle {
    font-size: 18px;
  }
}

/* -------------------比較表------------------- */
.comparison-table {
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  white-space: nowrap;
  font-family: 'Noto Serif JP';
  padding: 15px;
}

.header-row {
	display: flex;
	align-items: center;
	margin-bottom: 0;
	position: relative;
	min-width: 925px;
	padding-left: 24%;
	justify-content: space-between;
	gap: 35%;
}

.circle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circle {
  width: 200px;
  height: 200px;
  /* border-radius: 50%; */
  /* display: flex; */
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.5;
  font-size: 18px;
  border: 1px solid #999;
  background-color: #fff;
  padding: 20px;
}

.circle img {
  width: 90%;
  margin: auto;
}

.circle.allon4 {
  background-color: #e9e5e2;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  border: none;
}

.line-down {
  width: 2px;
  height: 40px;
  background-color: #999;
  margin: 0 auto;
}

.line-down.gold {
  background-color: #c1a753;
}

.row {
  display: flex;
  align-items: stretch;
  min-width: 900px;
  margin-bottom: 10px;
}

.label {
  width: 160px;
  background-color: #977356;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.label-inner {
  text-align: center;
  padding: 10px;
}

.comp_icon {
  font-size: 30px;
  margin-bottom: 8px;
}

.text {
  font-weight: bold;
  font-size: 16px;
}

.content {
  width: 50%;
  border: 1px solid #ccc;
  padding: 20px;
  background-color: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  position: relative;
}

.content.gold {
  border: 1px solid #c1a753;
  background-color: #fdf8ef;
}

.content strong {
  font-weight: bold;
  color: #dfa61f;
}

.content .gold {
  color: #c1a753;
  font-weight: bold;
}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
  .circle {
    width: 100px;
    height: 100px;
    font-size: 12px;
  }
  .circle.allon4{
    font-size: 12px;
  }
  .comparison-table {
    overflow-x: auto;
  }
  .header-row {
    justify-content: center;
    gap: 20%;
  }

  .header-row,
  .row {
    flex-wrap: nowrap;
    min-width: 100%; 
  }

  .label, .content {
    white-space: normal;
  }
  .content {
    padding: 20px 10px;
    font-size: 13px;
    text-align: left;
  }
}
/* =========================================================
  基本リセット（このテーマに既にリセットがあるなら省略OK）
========================================================= */
.main.page a { text-decoration: none; color: inherit; }
.main.page img { max-width: 100%; height: auto; display: block; }

/* =========================================================
  ラップ / コンテナ
========================================================= */
.main.page .wysiwyg-editor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  box-sizing: border-box;
}

/* =========================================================
  バナー
  #custom_banner .banner_image はインラインで背景画像が入る想定
========================================================= */
#custom_banner.desktop_view { display: block; }

#custom_banner .banner_image {
  position: relative;
  min-height: 280px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* 読みやすさ用のオーバーレイ */
#custom_banner .banner_image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45));
}

/* タイトル */
#custom_banner .banner_title {
  position: absolute;
  inset: auto 5% 12% 5%;
  color: #fff;
  z-index: 1;
  line-height: 1.3;
}

#custom_banner .banner_title .title_prefix {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .9;
  margin-bottom: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
}

#custom_banner .banner_title p {
  margin: 6px 0 0;
  font-size: clamp(20px, 3.2vw, 32px);
  font-weight: 700;
}

/* モバイルではバナーを非表示にする指定（.desktop_view） */
@media (max-width: 767px) {
  #custom_banner.desktop_view { display: none; }
}

/* =========================================================
  パンくず（breadcrumb_func() が吐く .breadcrumb を想定）
========================================================= */
.wysiwyg-editor .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0; margin: 0 0 16px;
  font-size: 13px;
}
.wysiwyg-editor .breadcrumb li { color: #666; }
.wysiwyg-editor .breadcrumb a { color: #0b6; }
.wysiwyg-editor .breadcrumb a:hover { text-decoration: underline; }

/* =========================================================
  コンテンツ + サイドバー横並び
  （HTML側に inline style があるが、追加指定で補強）
========================================================= */
.content-sidebar-wrapper {
  align-items: flex-start;
  flex-wrap: nowrap;
}

.contentout { width: 70%; }
.sidebar   { width: 30%; }

/* タブレット以下で縦積み */
@media (max-width: 1024px) {
  .content-sidebar-wrapper { flex-direction: column; }
  .contentout, .sidebar { width: 100%; }
}

/* =========================================================
  記事リスト（カード）
========================================================= */
.contentout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* 記事1件の外枠 */
.contentout .blog-list__list-item {
  list-style: none;
}

/* a.blog-item をカード化 */
.contentout .blog-item {
  display: grid;
  grid-template-columns: 36% 1fr;
  gap: 18px;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* ホバー演出（アクセシビリティ上、微小に） */
.contentout .blog-item:hover {
/*   transform: translateY(-2px); */
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  border-color: #e0e0e0;
}

/* サムネイル領域（アスペクト比を強制して崩れ防止） */
.blog-item__thumbnail {
  position: relative;
  overflow: hidden;
}

/* 16:9 を基本に、縦横比が変でもトリミングで見栄えを維持 */
.blog-item__thumbnail-image {
  width: 100%; height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* 画像が無い場合のプレースホルダ */
.blog-item__thumbnail:empty {
  background: linear-gradient(135deg, #f5f5f5, #eee);
  min-height: 180px;
}

/* テキスト側 */
.blog-item__content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px 18px 16px;
}

/* タイトル */
.blog-item__title {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.5;
  margin: 0 0 8px;
  color: #111;
}

/* ボタン行 */
.blog-item__button {
  align-self: end;
  margin-top: 10px;
}

.blog-item__button-more {
  display: inline-block;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
	border: 1px solid #9a845c;
	color: #9a845c;
  transition: background-color .18s ease, color .18s ease;
}
.blog-item__button-more:hover {
	background: #9a845c;
	color: #fff;
}

/* スマホではカードを縦組み */
@media (max-width: 767px) {
  .contentout .blog-item {
    grid-template-columns: 1fr;
  }
  .blog-item__thumbnail-image { aspect-ratio: 16 / 9; }
  .blog-item__content { padding: 14px 14px 12px; }
}

/* =========================================================
  サイドバー
========================================================= */
.sidebar { position: relative; }

/* PCで軽く固定（ヘッダー高さに合わせて調整） */
@media (min-width: 1025px) {
  .sidebar { position: sticky; top: 88px; }
}

.sidebar .sidebar-section {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.sidebar .sidebar-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
}

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

.sidebar .sidebar-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
}

.sidebar .sidebar-list li:last-child { border-bottom: 0; }

.sidebar .sidebar-list a {
  color: #333;
  transition: color .15s ease;
}
.sidebar .sidebar-list a:hover { color: #9a845c; }

/* wp_get_archives / wp_list_categories のカウント表示に配慮 */
.sidebar .sidebar-list .post-count,
.sidebar .sidebar-list .count {
  color: #888;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
  アクセシビリティ & 細部
========================================================= */
.blog-item:focus-visible,
.sidebar a:focus-visible {
  outline: 3px solid #9a845c;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ダークテキスト on ホワイト背景のコントラスト確保 */
.main.page { color: #222; background: #fff; }
