.iframe-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    margin-bottom: 40px;
}
.iframe-inner {
    width: 100%;
    max-width: 580px;
    position: relative;
    overflow: hidden;
}
.iframe-inner iframe {
    width: 100%;
    height: 210px;
    border: none;
}
/*------------------- ヘッダー -------------------*/

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 .h_time {
	/* margin-top: .8em; */
}
header .h_tel {
	background: #ffffff94;
	margin: auto;
}
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;
}

/* Tablet (Portrait)
------------------------------------------*/
@media only screen and (min-width: 768px) and (max-width: 959px) {

header {
    padding-top: 2%;
}
header .h_left {
	margin-top: .5em;
}
header .h_left .h_logo span {
    margin-bottom: .6em;
}
header .h_right {
	width: 60%;
}
header h1 {
	letter-spacing: .1em;
}
}

/* Mobile (Portrait)
------------------------------------------*/
@media only screen and (max-width: 768px) {

header {
	padding: 3% 3% 0;
}
header .h_inbox {
	display: block;
}
header .h_left {
	width: 65%;
	margin-top: 0;
}
header .h_left .h_logo {
	margin-bottom: .6em;
}
header .h_left .h_logo span {
	margin-bottom: .4em;
}
header .h_contact {
	display: none !important;
}
header h1 {
	font-size: 65%;
	letter-spacing: normal;
}
.spnone {
  display: none;
}

}
/*------------------- メニュー -------------------*/
/* 最初は通常の位置に */
.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 20px;
  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;
}




/*------------------- ファーストビューブロック -------------------*/
.main-visual {
	position: relative;
	width: 100%;
    aspect-ratio: 16 / 9;
	 overflow: hidden;
    background-size: cover;
    background-position: center;
}

.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/main.png'); */
  background-image: url('../images/main1.png');
}

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

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

/* キャッチコピー */
.text-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 4;
  top: 27%;
	padding: 15px;
}

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


@media screen and (max-width: 768px) {
  .size3rem {
    font-size: 2rem;
  }
  .size1-5rem {
    font-size: 1rem;
  }
}

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

/* ----------------------------------------------------
タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media (max-width: 768px) {
}



/*-------------------------------------- 対比ブロック（3カラム版） --------------------------------------*/
.warranty-banner {
  position: relative;
  overflow: hidden;
}

.warranty-container {
  display: flex;
  flex-wrap: wrap;            /* ← レスポンシブで縦積み可 */
  gap: 20px;
	max-width: 95%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 20px;
}

/* 共通カード */
.warranty-card,
.warranty-left,
.warranty-right,
.warranty-zygomatic {
  box-sizing: border-box;
  width: calc(33.333% - 13.4px);  /* ← 3カラム */
  background: #fff;
  padding: 15px;
  border: 1px solid #69492a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  position: relative;
}

.warranty-title {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  padding: 15px 0;
}
.warranty-title p {
  font-size: 30px;
  font-weight: bold;
  padding: 15px 0;
}
.warrantyspan {
  font-size: 25px;
  font-weight: normal;
}

.warranty-body {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 20px;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0,0,0,0.05) 0,
    rgba(0,0,0,0.05) 1px,
    transparent 1px,
    transparent 6px
  );
}

.warranty-text {
  text-align: left;
  font-size: 16px;
  line-height: 1.8;
  z-index: 2;
}

.paynumber { color: #977c4c; font-size: 22px; font-weight: bold; margin: 0 5px; }
.paynumber2 { color: #977c4c; font-size: 22px; font-weight: bold; margin: 0 5px; }

.warranty-image img {
  max-width: 220px;           /* 3カラムに合わせて少し小さめ */
  height: auto;
  position: absolute;
  top: 60px;
  right: -20px;               /* はみ出し気味の演出は残す */
  z-index: 3;
}

/* 中央リボン */
.warranty-center-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-10deg);
  background: linear-gradient(135deg, #cdc7a7, #dbcb9f);
  color: #fff;
  font-size: 22px;
  padding: 10px 40px;
  z-index: 2;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.1);
  font-family: 'Noto Serif JP', serif;
}

/* レスポンシブ */
@media (max-width: 1080px) {
  .warranty-card,
  .warranty-left,
  .warranty-right,
  .warranty-zygomatic {
    width: calc(50% - 10px);  /* 2カラム */
  }
  .warranty-image img {
    max-width: 200px;
    right: -10px;
  }
}
@media (max-width: 700px) {
  .warranty-card,
  .warranty-left,
  .warranty-right,
  .warranty-zygomatic {
    width: 100%;              /* 1カラム */
  }
  .warranty-image img {
    position: static;         /* スマホははみ出しをやめて整列 */
    max-width: 180px;
  }
  .warranty-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .warranty-center-ribbon {
    font-size: 16px;
    padding: 8px 24px;
    top: 6px;
  }
}
/*-------------------------------------- 対比ブロック（3カラム版） --------------------------------------*/

/*-------------------------------------- 特徴ブロック --------------------------------------*/
.leading-clinic {
	font-family: 'Noto Serif JP', serif;
	color: #f2f2f2;
	background-image: url(../images/featureimg2.png);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	padding: 8.6em 0 0;
	overflow: hidden;
	min-height: 100vh;
}

.hero {
  position: relative;
  width: 100%;
	height: 600px;
  overflow: hidden;
}

.hero-text {
  margin: 50px 0;
  padding: 0 50px;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  gap: 20px;
}

.hero-text h2 {
  font-size: max(1.786vw,23px);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #5b4633;
  text-align: center;
}
.hero-overlay .pttl {
  line-height: 1.3;
  text-align: center;
  font-size: max(2.8vw, 28px);
  letter-spacing: .08em;
  font-feature-settings: "palt";
}

span.pttlbaio {
  color: #bfa250;
}
span.pttlpro {
  background: linear-gradient(180deg, transparent 70%, #f2e2a2 70%);
}

.hero-text {
  flex: 1;
}

.nomalverticalout {
  display: flex;
  justify-content: center;
/*   margin: max(2.5vw, 32px) max(8.357vw, 108px) 0 max(8.714vw, 113px); */
  padding: max(1.071vw, 13px) 0 max(.857vw, 11px);
  background-color: rgba(255, 255, 255, .9);
	width: 50%;
	margin: 10px auto;
}

.nomalverticaloutli p {
  line-height: 2;
  padding-left: max(2.857vw, 37px);
  font-size: max(1.934vw, 25px);
  letter-spacing: .08em;
  font-feature-settings: "palt";
  background: url(//www.all-on-4-dc.com/wp-content/themes/humanity/css/../images/common/icon_Check02.png) no-repeat left center;
  background-size: max(2.036vw, 26px) auto;
}

p.nomalvertical-text {
  font-size: 2rem;
  text-align: start;
  color: #fff;
  line-height: 2;
  flex-shrink: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  padding: 0 50px;
}

.nomalvertical-text span {
  color: #f0e68c;
  font-weight: bold;
  font-size: 3rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); /* ← 強めに追加 */
}

.clinic-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-content: center;
  padding: 50px 20px;
  color: #4b3b2b;
  max-width: 1300px;
  margin: 0 auto;
}

.point {
  position: relative;
  background: #fffbed;
  padding: 20px;
  border: 1px solid #e2c89a;
  text-align: center;
  box-shadow: 0 4px 10px rgba(201, 167, 99, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.point:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(201, 167, 99, 0.3);
}

.point img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #e8d9c1;
}

.point h3 {
  position: absolute;
  top: 189px;
  right: -2px;
  font-size: 17px;
  box-shadow: 4px 4px 4px rgba(184, 169, 142, .25);
  padding: .1em 2em .1em .1em;
  background-color: #f8eddd;
  background-repeat: no-repeat;
  background-size: 10px auto;
  background-position: calc(100% - .5em) 50%;
  background-image: url(//m-dental.net/wp-content/themes/humanity/css/../images/top/afap_arrow.png);
  color: #473a34;
}

.point .gold {
  color: #CD9757;
  font-size: 20px;
  margin: 0 5px;
}

.point p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #5b4633;
}

@media (max-width: 768px) {
  .hero-text {
    flex-direction: column;
  }
  .clinic-points {
    flex-direction: column;
    align-items: center;
  }
  .hero-overlay {
    flex-direction: column;
    align-items: flex-start;
  }
  .nomalvertical-text {
    writing-mode: horizontal-tb;
    text-align: left;
  }
}
/* タブレット用（768px〜1024px） */
@media (max-width: 1024px) {
  .leading-clinic {
    background-position: center top;
    background-size: cover;
  }
}

/* スマホ用（〜767px） */
@media (max-width: 767px) {
  .leading-clinic {
    background-image: url(../images/equipmentbg_sp.png); /* モバイル専用画像があれば */
    background-size: cover;
    background-position: center top;
    min-height: auto; /* コンテンツ量で高さ自動調整 */
    padding-top: 80px; /* 上部に余白が必要なら */
  }
}
/*-------------------------------------- 特徴ブロックここまで --------------------------------------*/
/*-------------------------------------- implantメーカーブロック --------------------------------------*/
.manufacturer_wrap .first_box{
width: 90%;
margin: 0 auto;
}
.manufacturer_wrap .first_box .ttl_box {
  margin: 30px 0;
  text-align: center;
}
.manufacturer_wrap .first_box h2 {
	font-size: 2.3rem;
  color: #fff;
  line-height: 1.4;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
  position: relative;
}
.manufacturer_wrap .first_box .sab_ttl {
  font-size: 1.5rem;
  color: #fff;
}
.manufacturer_wrap .first_box .txt_box p{
  color: #fff;
  text-align: center;
}
.manufacturer_wrap .first_box {
  position: relative;
  color: #FFF;
  background: #897a4c url(../images/implant-manufacturer.png) no-repeat center center;
  background-size: cover;
  padding: 60px 5%;
  box-shadow: 0px 40px 50px -60px rgb(0 0 0 / 20%);
}

.manufacturer_wrap .second_box {
/*     background: url(../images/manufacturerbox2.png) center top no-repeat; */
    background-size: 100% auto;
    padding: 50px 0 0;
}

.manufacturer_wrap .second_box .ttl_box {
  margin: 30px 0;
  text-align: center;
}
.manufacturer_wrap .second_box .ttl_box h3{
  display: inline-block;
  position: relative;
  font-size: 2.5rem;
  margin-top: 10px;
  background: linear-gradient(135deg, #9b7530, #cbb471, #977c4c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
.manufacturer_wrap .second_box .manufacturer_flex {
  display: flex;
  background-color: #ffffffd1;
  width: 80%;
  /* margin: 20px auto; */
  margin: 50px auto 20px;
}
.manufacturer_flex.reverse {
  flex-direction: row-reverse;
}
.manufacturer_flex .flex_txt .flex_txt_ttl {
  color: #fff;
  background-color: #bfa150c0;
  padding: 15px 5px;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.manufacturer_flex .flex_img {
  padding: 30px;
}
.manufacturer_flex .flex_txt {
  margin: auto 0;
  padding: 30px;
}
.manufacturer_flex .flex_txt ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}

.manufacturer_flex .flex_txt ul li {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 1em;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.manufacturer_flex .flex_txt ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: #69492a; /* トーンを合わせた茶色 */
  font-size: 1em;
}

.third_box .third_box1 {
  background: url(../images/thirdbg1.png) left top no-repeat;
  background-size: 100% auto;
  padding: 80px 30px;
}
.third_box .third_box1 h3{
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
  padding: 50px 0;
}
.third_box .third_box1 p {
  color: #fff;
  width: 45%;
  padding: 0 0 50px;
}
.third_box .third_box2 {
	background: url(../images/thirdbg2.png) left 20% no-repeat;
	background-size: 100% auto;
	padding: 100px 30px;
}
.third_box .third_box2 h3{
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
  padding: 50px 0;
  margin: 0 0 0 50%;
}
.third_box .third_box2 p {
  color: #fff;
  width: 45%;
  margin: 0 0 0 50%;
  padding: 0 0 50px;
}
/*-------------------------------------- implantメーカーブロックここまで --------------------------------------*/

/*-------------------------------------- オールオンフォーブロック --------------------------------------*/
.allon4-section {
  /* background: radial-gradient(circle at center, #eef3f8, #dce4ec); */
  /* background-image: url("your-hexagon-bg.svg"); */
  background-repeat: repeat;
  background-size: 200px auto;
  padding: 60px 20px;
  /* border: 1px solid #ddd; */
  font-family: 'Noto Serif JP', serif;
}

.allon4-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.allon4box {
  background: #fff;
  padding: 40px 30px;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.1), /* 基本の影 */
    0 8px 16px rgba(0, 0, 0, 0.05); /* 広がりと柔らかさ */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.allon4flex {
  display: flex;
  position: relative;
}
.allon4-heading {
  text-align: left;
  margin-bottom: 40px;
  width: 70%;
}
/* h2 デザイン */
.allon4-main-title {
  font-size: max(3.274vw, 42px);
  /* font-weight: 600; */
  color: #69492a;
  line-height: 1.4;
  margin-bottom: 15px;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
  position: relative;
  text-align: center;
  margin: 30px 0;
}
.ttlallon4 {
  font-size: 58px;
  font-weight: 600;
}
.gold-underline {
  background: linear-gradient(180deg, transparent 70%, #f2e2a2 70%);
}
/* h3　デザイン */
.allon4-sub-title {
  position: relative;
  font-size: 1.8rem;
  font-weight: 600;
  color: #938068;
  margin-bottom: 30px;
  font-family: 'Noto Serif JP', serif;
}

.allon4-sub-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30%;
  height: 3px;
  background: linear-gradient(to right, #bfa250, #f2e8c4);
  border-radius: 2px;
}

.allon4-heading .lead {
  font-size: 1.4rem;
  line-height: 1.8;
}

.allon4-heading .highlight {
  color: #bfa250;
  font-weight: bold;
  font-size: 1.2em;
}

.rightpx {
  margin-left: 10px;
}
.allon4-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.allon4flex img {
  width: 37%;
  position: absolute;
  top: -45px;
  right: 0;
}

.allon4-description {
  flex: 1 1 60%;
  font-size: 1rem;
  line-height: 1.9;
  background: #f2eee1;
  padding: 40px;
}

.allon4-description .underline {
  text-decoration: none;
  border-bottom: 2px solid #f7d226;
}

@media (max-width: 768px) {
  .allon4-flex {
    flex-direction: column;
  }
  .allon4-heading h2 {
    font-size: 1.5rem;
  }
  .allon4-heading .lead {
    font-size: 1.2rem;
  }
  .allon4-description {
    font-size: 0.95rem;
  }
}
/*-------------------------------------- オールオンフォーブロックここまで --------------------------------------*/

/* -------------------比較表------------------- */
/* 見出し */
.comparisonttl {
  font-size: max(2.274vw, 37px);
  color: #69492a;
  line-height: 1.4;
  margin-bottom: 15px;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
  position: relative;
  text-align: center;
  margin: 30px 0;
}
.comparisonttl .implant {
  font-size: 50px;
  color: #e98056;
}
.comparisonttl .allon4 {
  font-size: 50px;
  color: #ff8f2b;
}
.comparisonttl .mini {
  font-size: 25px;
}

.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;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 0;
  position: relative;
  min-width: 900px;
  padding-left: 12%;
}

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


/*-------------------------------------- 症例ブロック --------------------------------------*/
.case-slider {
  background-image: url("../images/casebg.jpg"); 
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  /* background-attachment: fixed; */
  position: relative;
  padding: 60px 0;
  margin: 0 auto;
}
.case-slider::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: #e9e7dec4;
  z-index: 1;
}
.case-slider > * {
  position: relative;
  z-index: 2;
}

.case-inner {
  gap: 40px;
  max-width: 1300px;
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
}
/* 見出し */
.case-header {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Noto Serif JP', serif;
  color: #5b4633;
}

.case-main {
  font-size: max(3.274vw, 42px);
  line-height: 1.2;
  font-weight: 400;
}

.case-main .gold {
  font-size: 2.5rem;
  letter-spacing: 0.03em;
}


.case-main .highlight-line {
  display: inline-block;
  position: relative;
  font-size: 3.5rem;
  margin-top: 10px;
  background: linear-gradient(135deg, #9b7530, #cbb471, #977c4c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* カルーセルブロック */
.case-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.case-carousel::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -30px;
  right: -30px;
  bottom: -20px;
  /* background: rgba(255, 255, 255, 0.8);  */
  border-radius: 16px;
	z-index: -1;
}

.case-carousel-track {
  display: flex;
  transition: transform 0.7s ease-out;
  width: 100%;
}

.case-carousel-slide {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 100%;
  box-sizing: border-box;
}

.case-slide {
  display: flex;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
	margin: 20px;
}

.case-image-area {
  width: 40%;
  position: relative;
  overflow: hidden;
  padding: 15px;
}

.case-image-area img {
  width: 100%;
  height: 100%;
  display: block;
}

.case-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px 15px;
  font-size: 14px;
}

.case-tag {
  font-size: 14px;
  margin-bottom: 4px;
  color: #fff;
}

.case-cta {
  font-size: 12px;
  opacity: 0.8;
  color: #fff;
}

.case-info {
  width: 100%;
  padding: 15px;
}

.case-bfafp {
  max-width: 873px;
  margin: 0 auto;
  padding: 12px;
}
p.case-heading {
  background: #977c4ca6;
  color: #fff;
  padding: 5px;
  margin: 5px 0;
}

.case-text {
  background: #f9f5ef;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 12px;
  padding: 5px;
}

.case-before-after {
  display: flex;
  justify-content: center;
  /* gap: 10px; */
  max-width: 873px;
  margin: 0 auto;
}
.arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #977c4c;
  padding: 0 5px;
  font-weight: bold;
}
.case-before-after p {
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  /* color: #fff; */
  background-color: #E1D6AB;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  width: 80px;
  margin: 0 auto 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.beforediv,
.afterdiv {
  position: relative;
}
p.before,
p.after {
  position: absolute;
  top: 0;
}

.case-before-after img {
  border-radius: 4px;
  max-width: 100%;
  margin: 0 auto;
}

/* ナビ */
.case-carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
  box-sizing: border-box;
  pointer-events: none;
}

.case-carousel-nav button {
  background: #938068a1;
  color: #fff;
  border: none;
  font-size: 29px;
  padding: 14px;
  border-radius: 41px;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.3s ease, transform 0.3s ease;
  line-height: 1;
}

.case-carousel-nav button:hover {
  background: #c9995c85;
  transform: scale(1.1);
}

.case-carousel-nav .dott {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.dott span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.dott span.active {
  background: #977c4c;
  transform: scale(1.2);
}
.carousel-dots-wrapper {
  text-align: center;
  margin-top: 20px;
}

.casebutton {
  margin: 20px 0;
}
.casebtn {
    text-align: center;
}
/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media (max-width: 768px) {
  .case-inner {
    flex-direction: column;
    padding: 0 15px;
    gap: 30px;
  }

  .case-title-area,
  .case-carousel {
    width: 100%;
  }

  .case-carousel-slide {
    gap: 0;
  }

  .case-slide {
    padding: 12px;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
  }

  .case-image-area {
    width: 40%;
    padding: 10px;
  }

  .case-image-area img {
    width: 100%;
    height: 100px;
    object-fit: cover;
  }

  .case-overlay {
    font-size: 12px;
    padding: 6px 10px;
  }

  .case-info {
    padding: 10px;
  }

  .case-heading {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .case-text {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .case-before-after {
    gap: 6px;
    flex-direction: row;
  }

  .case-before-after img {
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
  }

  .case-before-after p {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .case-carousel-nav {
    top: auto;
    bottom: 45%;
    transform: translateY(50%);
    padding: 0 10px;
  }

  .carousel-dots-wrapper {
    margin-top: 12px;
  }
}

/*------------------------------------- 症例ここまで --------------------------------------*/

/*------------------------------------- 関連ページ --------------------------------------*/

.implant-links {
  padding: 60px 20px;
  background: #fdfcf9;
}

/* 見出し */
.implant-linksttl {
  font-size: max(2.274vw, 37px);
  color: #69492a;
  line-height: 1.4;
  margin-bottom: 15px;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
  position: relative;
  text-align: center;
  margin: 30px 0;
}
.implant-linksttl .highlight {
  font-size: 50px;
    background: linear-gradient(135deg, #6a4e23, #a67c52, #8b5e3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.slash {
  margin: 0 10px;
}
.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 2px solid #8d9a99;
  display: inline-block;
  padding-bottom: 6px;
  color: #2c2c2c;
}

.link-columns {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 50px 0;
}

.link-column {
  flex: 1 1 300px;
  max-width: 340px;
  text-align: center;
  background: #ffffff;
  padding: 20px;
  border: 1px solid #dadada;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.link-column h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #2c2c2c;
}

.link-column img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.link-column .tag {
  background: #f2eedf;
  padding: 8px 12px;
  font-size: 1rem;
  margin-bottom: 15px;
  display: inline-block;
  color: #4d4d4d;
  border-radius: 4px;
}

.link-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.link-column li {
  margin-bottom: 10px;
}

.link-column a {
  color: #a78e12;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px dotted #c5b35a;
  padding-bottom: 1px;
}

.link-column a:hover {
  color: #8c760e;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .link-columns {
    flex-direction: column;
    align-items: center;
  }

  .link-column {
    max-width: 100%;
  }
}

/*------------------------------------- 関連ページここまで --------------------------------------*/

/*------------------------------------- 特徴キャッチコピーブロック --------------------------------------*/
.flex {
  display: flex;
}
.catchout {
  padding: 15px;
  border: 1px solid #666;
}
.leftbox, .rightbox {
  width: 40%;
  margin: auto;
}
.featureimg {
  margin: 0 auto;
}
.rightbox {
  padding: 50px;
  width: 80%;
}
/* 見出し */
h2.catchh2 {
  font-size: 25px;
}
.catchh2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5em;
}

.catchh2::before {
  content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #c1a753, #e0c269);
    border-radius: 2px;
}
.catchh2 span {
  background: linear-gradient(90deg, #c1a753 0%, #e0c269 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}
/* タグ */
.badge-list {
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, #c2a95c, #a6883e);
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  padding: 0.5em 1.3em;
  border-radius: 30px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  letter-spacing: 0.05em;
  margin: 10px 0;
}

.intro_section {
  width: 64%;
  max-width: 762px;
  line-height: 1;
  white-space: nowrap;
  margin: 0 auto 30px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-style: normal;
}

.intro_section p {
  position: relative;
  text-align: center;
  line-height: 1.8;
}

.intro_section p:last-of-type {
  font-size: 35px;
  line-height: 1.4;
}

.intro_section img {
  position: relative;
  width: 35%;
  display: inline-block;
  transform: translate(-1em, 0.5em);
  transition: all 1s;
  opacity: 0;
}

.intro_section img.animation_on {
  transform: translate(0, 0);
  opacity: 1;
}

.intro_section img.effect_txt2 {
  width: 33%;
  transition-delay: 0.5s;
}
/* 文字 */
.text_container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-family: 'Noto Serif JP', serif;
  font-size: 3rem;
  line-height: 1.5;
}

/* 背景 */
.catch {
  background: radial-gradient(circle, #fff 20%, #f0f0f0 80%);
  padding: 100px 0;
  position: relative; /* セクションを基準にする */
  z-index: 0;
}
.catchdiv {
  max-width: 1300px;
  margin: 0 auto;
}

.catch .catchcopy {
  position: absolute;
  top: 0;
  /* left: calc(-50vw + 45rem); */
  z-index: -1;
}
picture.catchcopy.sp {
  display: none;
}
/* ----------------------------------------------------
タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .featurep {
    padding: 0 50px;
  }
}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media (max-width: 768px) {
  /* 見出し */
  .intro_section p:last-of-type{
    font-size: 25px;
  }
  .text_container p  {
    font-size: 25px;
  }
  .flex {
    display: block;
  }
  .leftbox, .rightbox {
    width: 100%;
  }
  .featurep {
    padding: 10px;
  }
  
  .catch .catchcopy {
      left: 0;
      top: 0;
  }

  .catchn .catchcopy img {
      width: 100vw;
  }
}
/* 基本スタイル */
.carouselbox {
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 1s ease-in-out;
}

.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
}

/* 画像がフェードインするアニメーション */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* 画像のスライドアニメーション */
@keyframes slideShow {
  0% { transform: translateX(0); }
  20% { transform: translateX(-100%); }
  40% { transform: translateX(-200%); }
  60% { transform: translateX(-300%); }
  80% { transform: translateX(-400%); }
  100% { transform: translateX(0); }
}

/* トラックがスライドする */
.carousel-track {
  animation: slideShow 15s infinite;
}


/*-------------------------------------- 特徴ブロック --------------------------------------*/

/* ---------title部分--------- */
.feature {
  /* display: flex; */
  justify-content: center;
  align-items: center;
  padding-bottom: 0;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  font-family: "Noto Serif JP", serif;
  font-size: 2rem; 
}
.title-container::after {
  content: "Point"; 
  font-family: 'Great Vibes', cursive;
  font-size: 10rem;
  color: rgba(70, 130, 180, 0.2);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}


/* 左側のテキスト */
.ttleleft {
  color: #666;
  line-height: 1.6;
}

/* 数字 */
.number {
  font-family: "Lora", serif;
  font-size: 10rem;
  color: #1F3A93;
  position: relative;
}

/* 背景の装飾テキスト */
.script-text {
  font-family: 'Great Vibes', cursive;
  font-size: 10rem;
  color: rgba(70, 130, 180, 0.2);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

/* 数字と特徴のセット */
.number-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* 「つの特徴」部分 */
.horizontal {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
}


/* ---------コンテンツ部分--------- */
.featurebox {
  position: relative;
  padding-top: 50px;
  margin-bottom: 30px;
  /* height: 350px; */
}

.featurebox::before {
  position: absolute;
  content: "";
  width: 50%;
  height: 100%;
  top: 0;
  z-index: -1;
}

.feature-box1::before,
.feature-box3::before{
  right: 0;
}
.feature-box2::before {
  left: 0;
}
.feature-box1::before {
  background: url(../images/bg1.png) no-repeat right top;
  background-size: 100% auto;
}
.feature-box2::before {
  background: url(../images/bg2.png) no-repeat right top;
  background-size: 100% auto;
}
.feature-box3::before {
  background: url(../images/bg2-3.png) no-repeat right top;
  background-size: 100% auto;
}
.feature-box2 {
  position: relative;
  background: url(../images/bg2-2.png) no-repeat right bottom;
  background-size: 55% auto;
  padding-bottom: 230px;
  /* margin-bottom: 80px; */
}

.container {
  width: 94%;
  padding: 0 3%;
  max-width: 1300px;
  margin: 0 auto;
  min-width: 100%;
  height: 400px;
}

/* 一つ目のコンテンツ */
.feature-box1 .feature-content {
  width: 60%;
  padding-left: 6%;
  margin-bottom: 70px;
}

/* 二つ目のコンテンツ（さらに右寄せ） */
.feature-box2 .container {
    display: flex;
    justify-content: flex-end; /* コンテンツを右側に寄せる */
    max-width: 1100px; /* 最大幅を少し狭くする */
    margin-left: auto; /* 左側の余白を増やして、右側に寄せる */
}
/* 三つ目のコンテンツ（さらに右寄せ） */
.feature-box3 .feature-content {
  width: 60%;
  padding-left: 6%;
  margin-bottom: 70px;
}

.feature-box2 .feature-content {
    width: 60%; 
    text-align: left;
}

/* feature-content 内の背景数字（デフォルト：左下） */
.feature-content::before {
  content: attr(data-number);
  position: absolute;
  font-size: 150px;
  color: #4da1d11f;
  font-weight: bold;
  z-index: -1;
}

/* 1つ目と3つ目（左下） */
.feature-box1 .feature-content::before {
  left: 10%;
  bottom: 0;
  transform: translate(-10%, 30%);
}

/* 2つ目（右下） */
.feature-box2 .feature-content::before {
  right: 10%;
  bottom: 200px;
  transform: translate(10%, 30%);
  z-index: 2;
}
/* 3つ目（右下） */
.feature-box3 .feature-content::before {
  left: 10%;
  bottom: 0;
  transform: translate(-10%, 30%);
}


/* タイトル・番号 */
span.feature-number {
  font-size: 35px;
  padding-right: 5px;
}

.feature-title {
  position: relative;
  color: #4682B4;
  font-size: 20px;
  line-height: 1;
  margin-bottom: 15px;
}

.feature-subtitle {
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: .1em;
}
/* ----------------------------------------------------
タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .featurebox {
    height: auto;
  }
  .featurebox::before {
    top: 24%;
  }
  .feature-box2 {
    padding-bottom: 85px;
  }
}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media (max-width: 768px) {
  .mfs13 {
    font-size: 13px;
  }
  .mfs40 {
    font-size: 40px;
  }
  .number {
    font-size: 4rem;
  }
  .title-container {
    font-size: 0;
  }
  .feature-box1 .feature-content {
    width: 100%;
    padding: 0;
  }
  .feature-box1::before {
    left: 0;
    width: 90%;
  }
  /* 選ばれる理由2つ目 */
  .feature-box2 .container {
    display: block;
  }
  .feature-box2 .feature-content {
    width: 100%;
  }
  .feature-box2 {
    padding: 0;
  }
    /* 選ばれる理由3つ目 */
    .featurebox {
      height: auto;
    }
    .feature-box3 .feature-content {
      width: 100%;
      padding-left: 0;
    }
  }

/*-------------------------------------- 選ばれる理由ブロック --------------------------------------*/

/* --------- タイトル部分 --------- */
.top50 {
  top: 50px;
}
.reasonttl {
line-height: 1.2;
color: #666;
}

.readonnumber {
  color: #6d92d0;
  text-shadow: 2px 4px 3px rgb(126 126 126 / 30%);
}
.txcenter {
  position: relative; 
}

/* .reasonttl::after {
  content: "Reason"; 
  font-family: 'Great Vibes', cursive;
  font-size: 10rem; 
  color: rgba(70, 130, 180, 0.2);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  white-space: nowrap;
} */

.reason {
  position: relative;
  /* margin-top: max(8.929vw, 116px); */
  padding: max(6.571vw, 85px) 0 0;
  background-image: url(../images/bg3.png);
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
  /* aspect-ratio: 1400 / 1086; */
}

.reason::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 120px; /* さらに短く */
  background: linear-gradient(
      to bottom, 
      #DAE6F8 0%, 
      #E4ECFA 40%, 
      #EFF4FD 70%, 
      rgba(255, 255, 255, 1) 100%
  );
  pointer-events: none;
  z-index: -2;
}


/* --------- コンテンツ部分 --------- */
.team-section {
  background: url(../images/setumei.png) no-repeat top right 4.571% / max(57.071vw, 741.927px);
  margin-bottom: max(7.143vw, 92.857px);
}

.team-title {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  row-gap: max(.786vw, 10.214px);
  margin-bottom: max(2.214vw, 28.786px);
margin-top:120px;
font-family:Noto Serif JP;
}
.team-title h2 {
  padding: 0 .5em;
}

.team-title h2 {
  font-size: max(3.276vw,42.584px);
  line-height: 1.1em;
  height: 1.35em;
  color: #fff;
  display: inline-flex;
  align-items: flex-end;
  background: url(../images/image_with_92B9AA_and_729889_stripes.png) repeat top left / max(.429vw, 5.571px);
  letter-spacing: .06em;
}
.team-title p {
  font-size: max(3.276vw,42.584px);
  line-height: 1.1em;
  height: 1.35em;
  color: #fff;
  display: inline-flex;
  align-items: flex-end;
  background: url(../images/image_with_92B9AA_and_729889_stripes.png) repeat top left / max(.429vw, 5.571px);
  letter-spacing: .06em;
}

.team-cont {
  /* background: linear-gradient(to top, #fff 15%, transparent 15%), url(../images/dot.png) repeat top left / max(.571vw, 7.429px);
  padding: max(2.143vw, 27.857px) 0 0; */
  margin-top: 90px;
}
.team-item-list {
  display: flex;
  justify-content: center;
  column-gap: max(3.714vw, 48.286px);
}
.team-item {
  width: max(25.000vw, 325.000px);
  aspect-ratio: 350 / 400;
  background: #fff;
  box-shadow: 0px 4px 7px 0px rgba(67, 67, 67, .16);
  position: relative;
  padding: max(1.714vw, 22.286px) max(3vw, 39.000px);
  box-sizing: border-box;
}
.team-num {
  display: block;
  width: max(3.929vw, 51.071px);
  position: absolute;
  top: -1.25%;
  left: 4.857%;
  mix-blend-mode: multiply;
}
.team-num img {
width: 110px;
}
.team-category {
  text-align: center;
line-height: 1.3em;
  font-size: max(1.786vw,23.224px);
  margin-bottom: .25em;
  letter-spacing: .08em;
}
.team-item figure {
  margin-bottom: max(1.214vw, 15.786px);
}
ol, ul { list-style: none; }
.team-item:after {
  content: \"\";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 18px 18px;
  border-color: transparent transparent #acacac;
  position: absolute;
  bottom: 7px;
  right: 7px;
}
.team-item01 h3 .team-en { color: #add9e2; }
.team-category .team-en {
  display: block;
  line-height: 1.17em;
  font-size: 62%; /* サイズはそのまま */
  text-align: center; /* 中央揃え */
  margin-top: 0.2em; /* 日本語との間隔を調整 */
  color: #add9e2; /* 色は既存のものを維持 */
}
.team-txt62 { font-size: 62%; }
.team-txt-list li {
font-size: 15px;
line-height: 2;
}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */

.team-item01 li .team-underline,
.team-item02 li .team-underline,
.team-item03 li .team-underline{ border-bottom: 2px solid #add9e2; }
.team-item li .team-underline { text-decoration: none; }
@media (min-width: 768px) and (max-width: 1050px) {
.team-title h2,
.team-title p{
  font-size: 25px;
}
.team-num img {
  width: 60px;
}
}

@media screen and (max-width:768px) {
.team-num img {
  width: 60px;
}
.team-title h2,
.team-title p{
  font-size: 25px;
}
.team-desc {
  padding:15px 5px;
  margin:0;
  width:100%;
  font-size: 15px;
}
.team-title h2{
  padding: 0;
}
}
@media screen and (max-width:543px) {
.team-title h2,
.team-title p{
  font-size: 19px;
}
.team-item-list{
  flex-direction: column; 
      justify-content: center;
      align-items: center; 
      row-gap: max(3.714vw, 48.286px); 
      column-gap: 0; 
}
}

/*-------------------------------------- ピックアップブロック --------------------------------------*/

/* 見出し */
.picuph2 {
  font-size: 50px;
  font-weight: normal;
  text-align: center;
}

.colgr {
  color: #666;
}

.picuph2 .highlight {
  font-size: 27px;
  color: #b19768;
  text-shadow: 2px 4px 3px rgb(126 126 126 / 30%);
}

.underline {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.dots,
.dots1 {
  position: relative;
}
.dots1::before{
  content: "・・";
    position: absolute;
    top: -40px;
    left: 52%;
    transform: translateX(-50%);
    font-size: 50px;
    letter-spacing: 4px;
    color: #6d92d0;
}
.dots::before {
  content: "・・・・";
    position: absolute;
    top: -40px;
    left: 52%;
    transform: translateX(-50%);
    font-size: 50px;
    letter-spacing: 4px;
    color: #6d92d0;
}


.flex_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  background-color: #fff;
  position: relative;
  border-radius: 10px;
}
.flex_box2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  background-color: #fff;
  position: relative;
  border-radius: 10px;
  gap: 20px;
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: sideways;
  font-family: 'Noto Serif JP', serif;
  font-size: 25px;
  color: #3b9ad188;
  letter-spacing: 2px;
  font-weight: bold;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  border-left: 3px solid #3b89d1;
  /* padding-left: 5px; */
}
.vertical-text2 {
  writing-mode: vertical-rl;
  text-orientation: sideways;
  font-family: 'Noto Serif JP', serif;
  font-size: 25px;
  color: #3b9ad188;
  letter-spacing: 2px;
  font-weight: bold;
  position: absolute;
  right: 60%;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  border-left: 3px solid #3b89d1;
}
.vertical-text2-2 {
  writing-mode: vertical-rl;
  text-orientation: sideways;
  font-family: 'Noto Serif JP', serif;
  font-size: 25px;
  color: #b5a9c9;
  letter-spacing: 2px;
  font-weight: bold;
  position: absolute;
  right: 59%;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  border-left: 3px solid #6f45b4;
}
.pickupbox2 {
  width: 60%;
  padding-right: 20px;
  background-color: rgba(59, 137, 209, 0.05);
  border-radius: 5px;
  margin: 0 0 0 15px;
  padding: 15px 20px;
}

.pickupbox2 h3 {
  font-size: 24px;
  color: #3b89d1;
  border-bottom: 2px solid #3b89d1;
  padding-bottom: 5px;
  display: inline-block;
}

.pickupbox2-2 {
  width: 60%;
  padding-right: 20px;
  background-color: #b5a9c92e;
  border-radius: 5px;
  margin: 0 0 0 15px;
  padding: 15px 20px;
}
.pickupbox2-2 h3 {
  font-size: 24px;
  color: #9773d1;
  border-bottom: 2px solid #6f45b4;
  padding-bottom: 5px;
  display: inline-block;
}

.pickupbox1 {
  width: 40%;
  display: flex;
  justify-content: center;
  margin: 10px;
}

.pickup-image {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* リストのデザイン */
.picup-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.picup-list li,
.picup-list2 li{
  font-size: 16px;
  color: #666;
  padding-left: 25px;
  position: relative;
  margin-bottom: 8px;
}

.picup-list li::before {
  content: '✔'; /* チェックマーク */
  position: absolute;
  left: 0;
  color: #3b89d1;
  font-weight: bold;
}

.picup-list2 li::before {
  content: '✔'; /* チェックマーク */
  position: absolute;
  left: 0;
  color: #6f45b4;
  font-weight: bold;
}

/* 強調デザイン */
.pickupbox2 p span {
  font-size: 20px;
  color: #3b89d1;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  z-index: 1;
}
.pickupbox2 p span::after {
  content: "";
  display: block;
  width: 100%;
  height: 8px;
  background-color: #3b89d15b;
  position: absolute;
  bottom: 5px;
  /* left: -5px; */
  z-index: 0;
  /* border-radius: 4px; */
}

.pickupbox2-2 p span {
  font-size: 20px;
  color: #a88fd1;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  z-index: 1;
}
.pickupbox2-2 p span::after {
  content: "";
  display: block;
  width: 100%;
  height: 8px;
  background-color: #b5a9c93b;
  position: absolute;
  bottom: 5px;
  /* left: -5px; */
  z-index: 0;
  /* border-radius: 4px; */
}

/* buttonデザイン 青 */
.pickup-btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  border-radius: 50px;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.pickup-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
}

.pickup-btn:hover {
  background: linear-gradient(135deg, #00c6ff, #007bff);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.5);
}

.pickup-btn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.pickup-btn:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

/* buttonデザイン　紫 */
.pickup-btn-purple {
  display: inline-block;
  padding: 12px 24px;
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #9A7BBF, #C8A2C8); /* 上品なくすみ紫 */
  border-radius: 50px;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(154, 123, 191, 0.4);
}

.pickup-btn-purple::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
}

.pickup-btn-purple:hover {
  background: linear-gradient(135deg, #C8A2C8, #9A7BBF);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(154, 123, 191, 0.5);
}

.pickup-btn-purple:active {
  transform: translateY(2px);
  box-shadow: 0 4px 8px rgba(154, 123, 191, 0.3);
}

.pickup-btn-purple:hover::before {
  transform: translate(-50%, -50%) scale(1);
}
/* ----------------------------------------------------
タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .vertical-text2-2 {
    right: 57%;
  }
}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */

@media (max-width: 768px) {

  .picuph2 {
    font-size: 24px;
  }
  .dots::before {
    content: none;
  }
  .dots1::before {
    content: none;
  }
  /* 1つ目 */
  .flex_box {
      flex-direction: column-reverse;
      align-items: stretch;
      padding: 15px;
  }
  /* 2つ目 */
  .flex_box2 {
    flex-direction: column;
    padding: 15px;
  }
  .pickupbox2-2 {
    width: 100%;
    margin: 0;
    padding: 10px;
  }
  .pickupbox2, .pickupbox1 {
      width: 100%;
      padding: 20px;
      margin: 0;
  }
  .pickupbox2 {
      padding: 10px;
      border-left: none;
  }
  .vertical-text {
      position: relative;
      left: auto;
      top: auto;
      transform: none;
      margin-bottom: 10px;
  }
}
/*-------------------------------------- 診療案内 --------------------------------------*/
.medicalflex {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 40px;
}

.service-box {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  width: 30%;
  padding: 20px;
  text-align: left;
  transition: box-shadow 0.3s ease-in-out;
}


.service-header {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.hexagon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  margin: 0 auto;
  background: linear-gradient(135deg, #A3B9A2 0%, #889D85 100%);
  /* background: linear-gradient(135deg, #678ac4 0%, #3c5c9e 100%); */
  /* box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.3), inset 0 -4px 10px rgba(0, 0, 0, 0.3); */
}
.blue .hexagon { 
  background: linear-gradient(135deg, #B5A9C9 0%, #8D80A6 100%);
  /* background: linear-gradient(135deg, #678ac4 0%, #3c5c9e 100%); */
  /* box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.3), inset 0 -4px 10px rgba(0, 0, 0, 0.3); */
}
.orange .hexagon { 
  background: linear-gradient(135deg, #D3B196 0%, #B18561 100%);
  /* background: linear-gradient(135deg, #d8a05e 0%, #a8652d 100%); */
  /* box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.3), inset 0 -4px 10px rgba(0, 0, 0, 0.3); */
}
.hexagon p{
  color: white;
}
.service-box {
  background-color: #ffffffe0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 8px 8px; 
}

/* h3 のスタイルを調整 */
.service-box h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

/* h3 内の a をブロック化し、クリック範囲を拡大 */
.service-box h3 a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #666;
  transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* h3 内の a のホバー時エフェクト */
.service-box h3 a:hover {
  transform: translateX(5px);
  color: #444;
}

/* ul li の余白を調整 */
.service-box ul li {
  margin-bottom: 25px;
}


.icon {
  width: 30px;
  height: 30px;
  background: #6AABE4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  margin-right: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.green .icon { background: #889D85; }
.blue .icon { background: #8D80A6; }
.orange .icon { background: #B18561; }
.descgreen {
  font-size: 14px;
  color: #889D85;
  margin-top: 5px;
}
.descblue {
  font-size: 14px;
  color: #8D80A6;
  margin-top: 5px;
}
.descorange {
  font-size: 14px;
  color: #B18561;
  margin-top: 5px;
}


/* === Section背景のスタイル === */
.medical {
  position: relative;
  background-image: url('../images/medicalbg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 0; /* 上下の余白を増やす */
}

/* 背景画像の上に半透明のオーバーレイを追加 */
.medical::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(231 229 229 / 71%);
  z-index: 0;
}

.medical > * {
  position: relative;
  z-index: 1; /* コンテンツを背景より前に */
}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media (max-width: 768px) {
.medicalflex {
  padding: 15px;
  flex-direction: column;
}
.service-box {
  width: 100%;
}
}

/*------------------- 院長紹介 -------------------*/
/* === 全体のレイアウト === */
.intyou {
  background: linear-gradient(
    to bottom,
    rgba(235, 245, 255, 0.9) 0%,  /* 明るいブルー */
    rgba(220, 233, 246, 0.8) 40%, /* 中間色 */
    rgba(200, 220, 240, 0.9) 100% /* 濃いブルー */
  );   padding: 40px;
  backdrop-filter: blur(10px);
  position: relative;
}

.intyou::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#2f6b7c56 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.2; /* 控えめなテクスチャ */
  z-index: 0;
}
.profile-container {
  display: flex;
  max-width: 1300px;
  margin: 20px auto;
  align-items: center;
  gap: 40px;
  padding: 60px;
  background: #ffffff91;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* === 左側の画像エリア === */
.profile-image {
  flex: 1;
  max-width: 450px;
  position: relative;
}

.profile-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

/* === 右側のテキストエリア === */
.profile-text {
  flex: 2;
  padding: 10px;
}

/* === 見出しデザイン === */
.highlight .clinic-name {
  font-size: 25px;
  font-weight: bold;
  color: #e5e2d0;
  line-height: 2.5;
}

.position {
  font-size: 18px;
  font-weight: normal;
  color: #777;
}

.doctor-name {
  font-size: 26px;
  font-weight: bold;
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.jp-name {
  font-size: 32px;
  font-weight: bold;
  margin: 0 10px;
}

.en-name {
  font-size: 16px;
  font-weight: normal;
  color: #977c4c;
}

/* === 罫線デザイン === */
.profile-line {
  width: 100%;
  border: 1px solid #ddd;
  margin: 20px 0;
}
/* `.profile-details` を2カラムレイアウトにする */
.profile-details {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 20px; 
}
.profile-details li {
  font-size: 12px;
}

/* 各セクションのスタイル */
.profile-section {
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 見出しデザイン */
.section-title {
  font-size: 20px;
  font-weight: bold;
  color: #977c4c;
  margin-bottom: 10px;
}

/* 略歴は1列全体を使う */
.profile-section.history {
  grid-column: span 2; /* 2カラムをまたぐ */
}


/* === 略歴・学会・講演情報のデザイン === */
.profile-section {
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  color: #977c4c;
  margin-bottom: 10px;
}

.profile-info {
  list-style: none;
  padding: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.profile-info li {
  margin-bottom: 8px;
}

.year {
  font-weight: bold;
  color: #977c4c;
}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media (max-width: 768px) {
  .intyou {
    padding: 15px;
  }

  .profile-details {
      grid-template-columns: 1fr; /* 1カラムに変更 */
  }

  .profile-section.history {
      grid-column: span 1; /* 1カラムで表示 */
  }

  .profile-container {
      flex-direction: column;
      text-align: center;
      padding: 0;
  }

  .profile-image {
      max-width: 80%;
  }

  .profile-text {
      padding: 15px;
      width: 90%;
  }
  .profile-section {
    padding: 10px;
  }

  .doctor-name {
      flex-direction: column;
      text-align: center;
  }

  .jp-name {
      font-size: 28px;
  }

  .en-name {
      font-size: 14px;
  }

  .section-title {
      font-size: 18px;
  }
}

/*------------------- 医院紹介 -------------------*/

/* -------------------フォトギャラリー------------------- */
/* ギャラリー全体 */
.gallery {
  text-align: center;
  padding: 50px;
}

.galleryttl {
  font-size: 50px;
  text-shadow: 2px 4px 3px rgba(0,0,0,0.3);
}

/* スライドショー＋サムネイルを横並びに */
.gallery-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 50px auto;
}

/* 左側のスライドショー */
.gallery-slideshow {
  position: relative;
  width: 600px; /* 任意のサイズ */
  height: 400px; /* 任意のサイズ */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.gallery-slideshow::before {
  content: "";
    position: absolute;
    top: min(-1vw, -13px);
    left: max(1vw, 13px);
    width: 100%;
    height: 100%;
    border: 1px solid #938068;
    z-index: 2;
}

/* メインスライドの画像 */
.gallery-slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
/* 最初の画像だけ表示 */
.gallery-slideshow img.active {
  opacity: 1;
}

/* 右側のサムネイル一覧 */
/* .gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 15px;
} */
/* 右側のサムネイル一覧 */
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 2列 */
  gap: 15px;
}


/* サムネイル画像 */
.gallery-thumbnails img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.2s ease-in-out, border 0.3s ease-in-out;
  border-radius: 5px;
}

/* 選択されたサムネイルの強調 */
.gallery-thumbnails img.active {
  transform: scale(1.1);
}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media (max-width: 768px) {
  .gallery-container {
      flex-direction: column;
      align-items: center;
  }

  .gallery-slideshow {
      width: 100%;
      height: auto;
  }

  .gallery-thumbnails {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
  }

  .gallery-thumbnails img {
      width: 100px;
      height: 80px;
  }
}

/* -------------------支払方法------------------- */
.paymentsec {
  background: linear-gradient(to bottom, #ffffff, #faf8f5);
    /* padding: 80px 0; */
    box-sizing: border-box;
    margin-top: max(7.64svw, 99.36px);
    margin-bottom: max(4.29svw, 55.71px);
    /* padding-top: max(35.71svw, 464.29px); */
    padding-bottom: max(3.21svw, 41.79px);
    background-image: url(../images/paybg.png);
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}
.payttl {
  font-size: max(2.274vw, 37px);
  color: #69492a;
  line-height: 1.4;
  margin-bottom: 15px;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
  position: relative;
  text-align: center;
  margin: 30px 0;
}
.payttl .mini {
  font-size: 25px;
}

.payout {
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  padding: 40px;
  max-width: 1300px;
  margin: 20px auto;
}

.paytxtbox {
  flex: 1 1 55%;
  padding: 20px 30px;
}

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

.paymark span {
  background: linear-gradient(transparent 70%, #bfa25024 70%);
  padding-bottom: 5px;
  font-weight: bold;
  font-size: 20px;
}

.marker {
  margin-bottom: 16px;
  line-height: 1.6;
  position: relative;
  font-size: 20px;
  padding-left: 30px;
}

.marker::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 2px;
  color: #938068;
  font-size: 18px;
}

.payp {
  padding-top: 20px;
  line-height: 1.8;
  font-size: 16px;
  color: #333;
}

.payimg {
  flex: 1 1 40%;
  padding: 20px;
  text-align: center;
}

/* 流れる画像 */
.payimg img {
  max-width: 80%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
}
.flowing-images {
  overflow: hidden;
  width: 100%;
  background: #fff; /* 背景色はお好みで */
  padding: 30px 0;
  margin-top: -30px;
}

.flow-track {
  display: flex;
  width: calc(200%); /* 2倍に伸ばすことでループ */
  animation: scroll-left 30s linear infinite;
}

.flow-track img {
  width: 200px;
  height: auto;
  object-fit: contain;
  margin-right: 30px;
}

/* アニメーション設定 */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* シミュレーション */
.payment-simulation {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Noto Serif JP', serif;
}

.payment-title {
  font-size: 30px;
  color: #333;
  margin-bottom: 30px;
  position: relative;
}

.payment-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: #aaa;
  margin: 10px auto 0;
}

.payment-box-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px auto;
  max-width: 1300px;
}

.payment-box {
  background: #fff;
  width: 100%;
  border: 1px solid #eee;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  padding: 20px;
}

.payment-header {
  background: #E0D2AA;
  padding: 10px;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #5b4633;
}

.paymentflex {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
	gap: 20px;
}

.payment-image {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.paymenttxt  {
  margin: auto;
}

.payment-desc {
  font-size: 14px;
  margin: 10px 0 5px;
  color: #555;
}

.payment-amount {
  font-size: 24px;
  color: #000;
  margin-bottom: 20px;
}

.payment-amount span {
  font-size: 36px;
  color: #c02828;
  font-weight: bold;
  margin: 0 5px;
}

.payment-total {
  font-size: 14px;
  border-top: 1px solid #ccc;
  padding-top: 15px;
  color: #333;
}

.payment-note {
  font-size: 15px;
  color: #4f4e4e;
  margin: 30px 0;
  line-height: 1.5;
}

.payment-button a {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 12px 36px;
  font-size: 18px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s;
}

.payment-button a:hover {
  background: #888;
}


/*------------------------------------- 無料相談 --------------------------------------*/
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: max(2.976vw, 39px);
  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: 1.2rem;
  letter-spacing: .14em;
  margin: 20px 0;
}

.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);
}

/*------------------------------------- 無料相談ここまで --------------------------------------*/



/* -------------------グラフブロック------------------- */
/* 全体 */
.clinicgraph {
    aspect-ratio: 1400 / 933;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-image: url(../images/clinicgraphbg.png);
	background-size: contain;
    color: #fff;
}


/* フレックスボックス */
.graphflex {
	display: flex;
	padding: 0;
	margin: 20% auto 5%;
	max-width: 1400px;
}

/* 見出し */
.graphttl {
	font-size: max(2vw, 20px);
	color: #69492a;
	line-height: 1.4;
	margin-bottom: 15px;
	text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
	position: relative;
	margin: 30px 0;
/* 	 padding-left: 0.8em; */
}

/* 実績ブロック */
.clinic-stats {
  padding: 40px 30px;
  font-family: 'Noto Serif JP', serif;
  color: #3a2e1e;
  /* max-width: 500px; */
  flex: 1 1 400px;
  border-radius: 12px;
  /* box-shadow: 0 4px 10px rgba(0,0,0,0.08); */
}

.stat-block {
  margin-bottom: 30px;
  text-align: center;
}

.stat-label {
  font-size: 1.2rem;
  font-weight: bold;
}

.stat-number {
  font-size: 1.5rem;
}

.stat-number strong {
  font-size: 2.3rem;
  color: #b58b2a;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 20px;
  margin: 0 auto;
  padding: 20px;
  font-family: sans-serif;
}

.stat-item {
  background: #fff;
  border: 1px solid #e0d2aa;
  padding: 20px 25px;
  text-align: center;
}

.stat-title {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #7a6b4e;
}

.stat-value p {
  font-size: 2.2rem;
  font-weight: bold;
  color: #b58b2a;
}

.unit {
  font-size: 1.1rem;
  color: #7a6b4e;
  margin-left: 4px;
}

/* グラフブロック */
.graph-container {
  color: #fff;
  padding: 40px;
  position: relative;
  font-family: 'Noto Serif JP', serif;
  max-width: 600px;
  margin: auto;
}
.graph-info {
  position: absolute;
  top: 30px;
  left: 30px;
  font-size: 1.1rem;
  color: #fff;
}

.graph-info .years {
  font-size: 1.4rem;
  font-weight: bold;
}

.graph-info .highlight {
  color: #e6e15e;
  font-weight: bold;
  font-size: 1.8rem;
}

.graph-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 390px;
  margin-top: 120px;
  gap: 10px;
}

.bar {
    width: 81px;
    background: linear-gradient(to top, #ad916f, #e1bc97);
    text-align: center;
    color: #fff;
    font-size: 13px;
    height: 0;
    transition: height 1s ease;
    position: relative;
}

.speech-bubble {
  position: absolute;
  top: 0;
  right: -10px;
  background: white;
  font-weight: bold;
  padding: 18px;
  border-radius: 50%;
  text-align: center;
  width: 150px;
  height: 150px;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.speech-bubble p {
  margin: auto;
}

.speech-bubble .number {
  font-size: 24px;
  color: #a77e29;
}
.yearflex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  /* margin-top: 120px; */
  gap: 10px;
}
.yearflex p {
  color: #938068;
    font-size: 20px;
    font-weight: bold;
}

.abs1 {
  position: absolute;
    z-index: 4;
    left: 0;
    top: 1%;
}
.arrowimg {
  position: absolute;
  z-index: 0;
  max-width: 380px;
  left: 0;
  top: 11%;
}
.abs2 {
  position: absolute;
  z-index: 6;
  width: 33%;
  max-width: 200px;
  right: 0;
  top: 94px;
  transform: translate(10%, -65%);
}
/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
}

/* -------------------グラフブロックここまで------------------- */
/* -------------------どんなことでお悩みですか？------------------- */

.problem-section {
  text-align: center;
  padding: 0;
  /* background-color: #f4f4f4; */
}

/* 見出し */
.problem-ttlbloc {
  background-color: #F0EBE7;
  position: relative;
  padding: 100px 0;

}

.problem-ttlbloc .underline {
  text-decoration: none;
  border-bottom: 2px solid  #bfa2509e;
}
.problem-ttlbloc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(248, 241, 220, 1), rgba(248, 241, 220, 0.6)); /* 透明度を少し増してスムーズにぼかし */
  z-index: -1;
}

.problem-ttlbloc::after {
  content: "";
  position: absolute;
  bottom: -59px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 70px solid transparent; /* 左側の透明部分を広く */
  border-right: 70px solid transparent; /* 右側の透明部分を広く */
  border-top: 60px solid #F0EBE7; /* 背景色と一致させる、矢印の縦幅を大きくする */
}

.problem-section h2 {
  font-size: max(2.274vw, 37px);
  color: #69492a;
  line-height: 1.4;
  margin-bottom: 15px;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
  position: relative;
  text-align: center;
  margin: 30px 0;
}

.problemspan {
  font-size: 50px;
  background: linear-gradient(135deg, #6a4e23, #a67c52, #8b5e3c); /* 明るめで強調された茶色のグラデーション */
  -webkit-background-clip: text; /* グラデーションを文字に適用 */
  -webkit-text-fill-color: transparent; /* 文字の色を透明にし、背景色で文字色を指定 */
}

.problem-container {
  display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    margin: 6rem auto;
    max-width: 1300px;
}

.problem-item {
  background-color: #fff;
  padding: 0 0 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.problem-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.problembox {
  width: 100%;
}
.problembox h3 {
  color: #997962;
  font-size: 25px;
  margin: 10px 0 20px;
  position: relative;
}
.problembox h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 5%; 
  width: 90%;
  border-bottom: 1px solid #bcbcbc; 
}
.problem-item img {
  width: 100%;
  object-fit: cover;
  margin-bottom: 15px;
}

.problem-item p {
  font-size: 16px;
  font-weight: 500;
  margin: 15px 0;
}

.view-more {
  display: inline-block;
  background-color: #938068;
  color: #fff;
  font-size: 16px;
  padding: 10px 24px;
  text-align: center;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  margin-top: 10px;
}

.view-more:hover {
  background-color: #a18f7a;
  transform: translateY(-5px);
  color: #fff;
}

.view-more:active {
  transform: translateY(2px);
}

/* スマホ用 */
@media (max-width: 768px) {
  .problem-container {
    grid-template-columns: 1fr;  /* スマホサイズで1列にする */
  }

  .problem-item {
    width: 100%;
    height: auto;  /* スマホでは高さを自動調整 */
  }
}
/* -------------------どんなことでお悩みですか？ここまで------------------- */

/* -------------------理想ブロック------------------- */

/* 見出し */
.dream-ttlbloc {
  margin: 30px auto;
}
.dreamttl {
  font-size: max(2.274vw, 37px);
  color: #69492a;
  line-height: 1.4;
  margin-bottom: 15px;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
  position: relative;
  text-align: center;
  margin: 30px 0;
}
.dreamttl .mini {
  font-size: 25px;
}
.dream-ttlbloc p {
  text-align: center;
}
.dream-ttlbloc p .underline {
  text-decoration: none;
  border-bottom: 2px solid #bfa2509e;
}

/* セクションの背景 */
.sedai {
  padding: 95px 0;
  position: relative;
  background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgb(246 242 234 / 90%) 20%, /* #eaf0f6（明るめ）*/ rgb(250 248 245 / 90%) 80%, /* #f5f7fa（ほぼ白）*/ rgba(255, 255, 255, 1) 100%);
  z-index: 0;
  overflow: hidden;
}

.sedai::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  z-index: 1;
}

.sedai::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px; 
  background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  z-index: 1;
}

.idx_inr {
  position: relative;
  display: block;
  margin: 0 auto;
}

.idx_box {
  display: block;
  position: relative
}

.idx_lst li {
  position: relative;
  display: block;
  padding-left: 1em;
  margin-bottom: .5em;
  background-repeat: no-repeat;
  background-position: 0 .4em;
  background-size: .8em auto
}

.sedai .idx_inr {
  max-width: 1400px;
  width: 100%;
  padding: 36px 0;
  margin-bottom: 30px;
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-color: #fff;
  background-position: 100% 0
}

.sedai .idx_inr:nth-of-type(2) {
  background-position: 0 0
}

.sedai .idx_box {
  color: #2e2e2e;
  background-color: #ffffff61;
  box-shadow: 3px 3px 5px rgba(162,162,162,.2);
  max-width: 858px;
  margin: 0 auto 0 0;
  padding: 30px 24px 24px 65px;
}

.sedai .idx_inr:nth-of-type(2) .idx_box {
  box-shadow: -3px 3px 5px rgba(162,162,162,.2);
  margin: 0 0 0 auto
}
.sedai .idx_inr:nth-of-type(4) .idx_box {
  box-shadow: -3px 3px 5px rgba(162,162,162,.2);
  margin: 0 0 0 auto
}

.sedai_ttl {
  position: relative;
  font-size: 26.87px;
  margin: 0 0 24px;
  border-bottom: 1px solid #977c4c;
}
.sedai_ttl span{
  font-size: 35px;
  color: #bfa250;
}
  

.sedai_ttl:before {
  content: "";
  display: block;
  position: absolute;
  width: 99px;
  aspect-ratio: 1/1;
  left: -45px;
  top: -24px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.sedai_lead {
  display: flex;
  align-items: center;
  padding: 0 0 16px;
  margin: 0 auto 15px 0;
  width: 60%;
}

.sedai_lead p {
  display: block;
}

.sedai_lead p i {
  display: block
}

.sedai_lead p .ja {
  font-size: 27.52px
}

.sedai_lead p .en {
  font-size: 39.63px;
  font-weight: 700
}

.sedai_lead figure {
  flex: 1
}

.sedai .idx_lst {
  font-size: 15px
}
.sedai .idx_lst li {
  line-height: 1.3;
  /* letter-spacing: -.06em */
}
.sedai .idx_lst li::before {
  content: "●";
  font-size: 20px;
  color: #C88E48;
  margin-right: 10px;
  position: relative;
  top: 3px;
}

.sedai .idx_lst li span {
  display: block
}
.sedai .idx_lst li em {
    font-weight: 600;
    font-size: 19px;
}
.sedai01 li em{
  color: #C88E48;
}
.sedai02 li em{
    color: #C88E48;
}
.sedai03 li em{
    color: #C88E48;
}
.sedai04 li em{
  color: #C88E48;
}

.sedai_fig {
  position: absolute
}

.sedai .idx_gnr_btn {
  width: unset;
  left: unset;
  right: 36px;
  bottom: 20px
}

.idx_gnr_01 {
  background-image: url(../images/dream01.png);
  background-repeat: no-repeat;
}


.idx_gnr_01 .sedai_lead p {
  margin-right: 42px
}

.idx_gnr_01 .sedai_lead figure img {
  width: 109px;
  aspect-ratio: 109/149
}

.idx_gnr_01 .idx_lst li:nth-of-type(3) {
  /* padding-left: .8em */
}

.idx_gnr_01 .sedai_fig {
  width: 366px;
  bottom: 40px;
  right: 0px;
}

.idx_gnr_01 .sedai_fig img {
  aspect-ratio: 366/272;
  padding: 10px;
}

.idx_gnr_02 {
  background-image: url(../images/dream02.png);
  background-repeat: no-repeat;
}

.idx_gnr_02 .sedai_lead p {
  margin-right: 36px
}

.idx_gnr_02 .sedai_lead figure img {
  width: 103px;
  aspect-ratio: 103/138
}

.idx_gnr_02 .idx_lst li:nth-of-type(2) span:nth-of-type(2) {
  margin-left: -.4em
}

.idx_gnr_02 .sedai_fig {
  width: 378px;
  bottom: 40px;
  right: 42px
}

.idx_gnr_02 .sedai_fig img {
  aspect-ratio: 378/269
}

.idx_gnr_03 {
  background-image: url(../images/dream03.png);
  background-repeat: no-repeat;
}


.idx_gnr_03 .sedai_lead p {
  margin-right: 30px
}

.idx_gnr_03 .sedai_lead figure img {
  width: 117px;
  aspect-ratio: 117/144
}

.idx_gnr_03 .idx_lst li:nth-of-type(2),.idx_gnr_03 .idx_lst li:nth-of-type(3) {
  padding-left: 1em
}

.idx_gnr_03 .sedai_fig {
  width: 377px;
  bottom: 40px;
  right: 42px
}

.idx_gnr_03 .sedai_fig img {
  aspect-ratio: 377/269
}


.idx_gnr_04{
  background-image: url(../images/dream04.png);
  background-repeat: no-repeat;
}
.idx_gnr_04 .sedai_lead p {
  margin-right: 30px
}

.idx_gnr_04 .sedai_lead figure img {
  width: 117px;
  aspect-ratio: 117/144
}

.idx_gnr_04 .idx_lst li:nth-of-type(2),.idx_gnr_04 .idx_lst li:nth-of-type(3) {
  padding-left: 1em
}

.idx_gnr_04 .sedai_fig {
  width: 377px;
  bottom: 40px;
  right: 42px
}

.idx_gnr_04 .sedai_fig img {
  aspect-ratio: 377/269
}


/*------------------------------
ボタン
------------------------------*/

.btn03 {
  position: relative;
}
.btn03 a {
  display: inline-block;
  position: relative;
  min-width: 250px;
  box-sizing: border-box;
  padding: 17px 38px 17px 25px;
  margin: 20px 0;
  line-height: 1;
  border-radius: 40px;
  text-align: left;
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
}
.btn03 a:hover::before {
  right: 20px;
}

.btn03 a:hover::before{
	right: 20px;
}

.btn03 a:hover::after{
	left:0;
	top:0;
}
.btn03 a i{
	margin-right: 7px;
	font-size: 12px;
}
/* 一つ目のボタン */
.sedaibtv01 a {
	border: 1px solid #977c4c;
	color: #977c4c;
	transition: background-color 1s ease, color 1s ease;
}
.sedaibtv01 a:hover {
	color: #fff;
	background:#977c4c;
}

/* 二つ目のボタン */
.sedaibtv02 a {
  border: 1px solid #977c4c;
  color: #977c4c;
	transition: background-color 1s ease, color 1s ease;
}
.sedaibtv02 a:hover {
	color:#fff;
	background:#977c4c;
}

/* 三つ目のボタン */
.sedaibtv03 a {
	border: 1px solid #977c4c;
	color: #977c4c;
	transition: background-color 1s ease, color 1s ease;
}

.sedaibtv03 a:hover{
	color:#fff;
	background-color:#977c4c;
}
.sedaibtv03 a:hover::before{
	border-color:#977c4c;
  color: #fff;
}

/* 四つ目のボタン */
.sedaibtv04 a {
	border: 1px solid #977c4c;
	color: #977c4c;
	transition: background-color 1s ease, color 1s ease;
}

.sedaibtv04 a:hover{
	color:#fff;
	background-color:#977c4c;
}
.sedaibtv04 a:hover::before{
	border-color:#977c4c;
  color: #fff;
}
/* ----------------------------------------------------
タブレット用（768px〜1024px）
---------------------------------------------------- */
/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media (max-width: 768px) {
}
/*-------------------------------------- 理想ブロック --------------------------------------*/

/*-------------------------------------- CV --------------------------------------*/
/* 見出し */
.dream-ttlbloc {
  margin: 30px auto;
}
.cvttl {
  font-size: max(2.274vw, 37px);
  color: #69492a;
  line-height: 1.4;
  margin-bottom: 15px;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
  position: relative;
  text-align: center;
  margin: 30px 0;
}
.cvttl .mini {
  font-size: 25px;
}

.cvttlspan {
  font-size: 45px;
  background: linear-gradient(135deg, #6a4e23, #a67c52, #8b5e3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logobloc img {
  margin: 0 auto;
}

.cv-block {
  background: #fffdf6;
  padding: 60px 20px;
  font-family: 'Noto Serif JP', serif;
}

.cv-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.cv-box {
  background: #fff;
  border: 1px solid #d8b36d;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: #5c4322;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(216, 179, 109, 0.2);
}

.cv-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(216, 179, 109, 0.4);
}

.cv-icon {
  font-size: 36px;
  margin-bottom: 15px;
  color: #b68b32;
}

.cv-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #7c5c2f;
}

.cv-desc {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #6c5842;
}

.cv-contact {
  font-size: 1.4rem;
  font-weight: bold;
  color: #b68b32;
}

/* 個別カラー強調 */
.cv-box.web {
  background: linear-gradient(to bottom, #fdf5d7, #fffaf1);
}

.cv-box.line {
  background: #f9f3e5;
}

.cv-box.line .cv-icon {
  color: #00b900;
}

.cv-box.line .cv-contact {
  color: #00a000;
}

.banerbloc {
  max-width: 1300px;
  margin: 20px auto;
}
.banerbloc img {
  width: 75%;
  margin: auto;
}
/*-------------------------------------- CV --------------------------------------*/


/* -------------------安心してインプラント治療を受けていただくために------------------- */
.features {
  display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-item {
  display: flex;
  width: 48%;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: linear-gradient(to bottom, #fff 0, #fff 5.6em, #faf6ee 6.6em, #faf5ee 16em, #fff 17em, #fff 100%);
  height: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.feature-text {
  padding: 20px;
}

.feature-text h3 {
  font-size: 18px;
  color: #333;
  font-weight: bold;
  margin-bottom: 10px;
}

.feature-text p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #b8a464, #cebf86); 
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.read-more:hover {
  background: linear-gradient(135deg, #b8a464, #cebf86);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  color: #fff;
}

/* -------------------安心してインプラント治療を受けていただくためにここまで------------------- */



/* -------------------footer------------------- */
/* フッター全体 */
.footer * {
  color: #fff;
}
.footer {
  position: relative; /* 疑似要素を適切に配置するために relative を設定 */
  padding: 40px 20px;
  background: url(../images/footerbg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* グラデーションを背景として追加 */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(to bottom, #94bee0d9 0%, #8fb4d9cf 10%, rgba(168, 197, 227, 0.3) 25%, rgba(168, 197, 227, 0) 50%); */
  z-index: 1;
}

/* 半透明の白レイヤーを背景画像の上に配置 */
.footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #4f4f4fb8;
  z-index: 0; 
}

/* フッター内のテキストを前面に配置 */
.footerinner {
  position: relative;
  z-index: 2; /* コンテンツを最前面に */
  color: #363636;
}

/* フッター内のテキストの視認性を確保 */
.footer-content {
  position: relative;
  z-index: 3; /* テキストを最前面に */
  color: #363636; /* 適宜調整 */
}

/* フッター上部（ロゴ・住所・予約） */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
}

.footer-logo img {
  width: 300px;
  margin: 0 auto;
}

/* フッターの情報エリア */
.footer-info {
  text-align: left;
  font-size: 14px;
  color: #363636;
}

/* 各項目のアイコン */
.footer-info p {
  position: relative;
  padding-left: 25px;
  margin: 5px 0;
}

/* 住所アイコン */
.footer-info p:nth-child(1)::before {
  content: "\f3c5"; /* FontAwesomeのマップピンアイコン */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}

/* アクセス方法アイコン */
.footer-info p:nth-child(2)::before {
  content: "\f3c5"; /* 同じくマップピンアイコン */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}

/* モノレールアイコン */
.footer-info p:nth-child(3)::before {
  content: "\f238"; /* FontAwesomeの電車アイコン */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}

/* 電話番号アイコン */
.footer-info p:nth-child(4)::before {
  content: "\f095"; /* FontAwesomeの電話アイコン */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}


/* 診療時間表 */
.footer-schedule {
  text-align: center;
  flex-grow: 1;
  margin: 0 20px;
  padding: 15px;
}

.footer-schedule h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  overflow: hidden;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.schedule-table th,
.schedule-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
}

/* 見出し背景をグラデーションで上品に */
.schedule-table th {
	background: linear-gradient(to bottom, #dbd8cc, #9f9781);
	color: #fff;
	font-weight: bold;
	width: 20%;
}

/* 偶数行に薄い背景色で見やすく */
.schedule-table tbody tr:nth-child(even) td {
  background: #fafafa;
}

.schedule-table td {
  background: #fff;
  color: #444;
}

.schedule-table .sat {
  color: #8e6c2d;
  font-weight: bold;
}

.schedule-table .closed {
  background: #f5f5f5;
  color: #8e6c2d;
  font-weight: bold;
}

.footer-schedule .schedule-note {
  font-size: 12px;
  color: #fff;
  margin-top: 8px;
}

/* スマホ対応：横スクロール可能に */
@media (max-width: 600px) {
  .schedule-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .schedule-table th, .schedule-table td {
    font-size: 12px;
    padding: 6px;
  }
}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */

@media (max-width: 768px) {
  .footer-top {
    display: block;
  }
  .footer-schedule {
      margin: 15px 0;
  }

  .schedule-table th, .schedule-table td {
      font-size: 12px;
      padding: 6px;
  }
}

/* ナビゲーションメニュー */
.footer-nav {
  text-align: center;
  margin: 20px 0;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav ul li {
  display: inline-block;
  margin: 0 10px;
}

.footer-nav ul li a {
  text-decoration: none;
  font-size: 16px;
}

/* 診療内容のリンク */
.footer-links {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: 20px auto;
}

.footer-section {
  width: 30%;
}

.footer-section h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
  border-bottom: 2px solid #fff;
  padding-bottom: 5px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  text-decoration: none;
  font-size: 14px;
}

/* フッターのバナー */
.footer-banners {
  text-align: center;
  margin: 20px 0;
}

.footer-banners a {
  display: inline-block;
  margin: 0 10px;
}

.footer-banners img {
  width: 250px;
  border-radius: 5px;
  transition: transform 0.3s ease-in-out;
}

.footer-banners img:hover {
  transform: scale(1.05);
}

/* フッター下部（著作権） */
.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #ddd;
  padding-top: 15px;
}
:root{
	--side-bg: repeating-linear-gradient(45deg, #f4eee4, #f5f5f5 3px, /* 薄い色の幅を3px */ #e9e9e9 3px, #e9e9e9 6px /* 濃い色の幅を3px */);
	--side-ink: #69492a;
  --side-border: #ddd;
}

.side-fixed{
  position: fixed;
  top: 25%;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-btn{
  writing-mode: vertical-rl;
	text-orientation: upright;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-height: 180px;
  padding: 12px 6px;
  background: var(--side-bg);
  color: var(--side-ink);
  border: 1px solid var(--side-border);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
	transition: all 0.5s ease;
}

/* hover */
.side-btn:hover{
  background: #938068;
  color: #fff;
  transform: translateX(-4px);
}
.bnnerdiv {
        width: 35%;
        margin: 15px auto;
}
/*---------------------------------------------------------------------

ブログ一覧
 
 ---------------------------------------------------------------------*/
 .blogsec {
  padding: 70px 0;
 }
.ftnewsflex {
    display: flex;
    gap:10px;
    justify-content: space-between;
    align-items: flex-start;
    width: 1200px;
    margin: 0 auto;
}
 .blog-block {
  margin: 0 auto;
  position: relative;
  /* background-color: #f7f4f0; */
  padding: 30px 20px;
	 width: 80%;
  font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #a3825c;
  margin-bottom: 20px;
}

.blog-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #5a3e2b;
  display: flex;
  align-items: center;
}

.blog-title::before {
  content: "🦷";
  margin-right: 0.5em;
  font-size: 1.2em;
}

.read-more {
  font-size: 0.9rem;
  color: #8b6b4e;
  text-decoration: none;
}

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

.blog-item {
  display: flex;
  gap: 15px;
  background-color: #fff;
  padding: 15px;
  /* margin-bottom: 45px; */
  border-left: 4px solid #d6cfc7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.blog-thumb {
    display: flex;
    align-items: center;
}
.blog-thumb img {
    width: 150px;
    height: auto;
    object-fit: cover;
    border: 1px solid #ddd;
    margin: 0 auto;
}

.blog-content {
  flex: 1;
}

.blog-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 3px;
}

.blog-item-title {
  font-size: 0.9rem;
  font-weight: bold;
  color: #5a3e2b;
  margin-bottom: 5px;
}

.blog-desc {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
}

/* カレンダー */
.calendarblock {
  width: 50%;
  /* background-color: #f7f4f0; */
  padding: 30px 20px;
  font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
  margin-left: auto;
}

.calreh2 {
  font-size: 1.6rem;
  font-weight: bold;
  color: #5a3e2b;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #a3825c;
  padding-bottom: 5px;
}

.calreh2::before {
  content: "📅";
  margin-right: 0.5em;
  font-size: 1.2em;
}

.caleinner iframe {
  width: 100%;
  height: 386px;
  border: none;
  padding: 0;
}