@charset "UTF-8";
/* CSS Document */

/*h1アニメーション*/
/* 見出し全体 */
.heading {
  position: relative;
  overflow: hidden;
  text-align: center;
  z-index: 1;
  padding: 20px 0;
  font-size: 1.5rem;
	margin: 50px auto;
	max-width: 800px;
}

/* 見出しテキスト（白→オレンジ） */
.heading span {
  position: relative;
  z-index: 2;
  display: inline-block;
  color: white;
  transition: color 0.2s ease;
}

/* アニメーションで白→オレンジに */
.heading.active span {
  color: #f18b00;
}

/* オレンジ背景アニメーション本体 */
.heading::before {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 0;
  background-color: #f18b00;
  z-index: 1;
  transition: none;
}

/* 左からアニメーション */
.heading.left-slide::before {
  left: 0;
}

.heading.left-slide.active::before {
  animation: slideAndShrinkLeft 1s forwards;
}

/* 右からアニメーション */
.heading.right-slide::before {
  right: 0;
  left: auto;
}

.heading.right-slide.active::before {
  animation: slideAndShrinkRight 1s forwards;
}

/* 左からスライド → 停止 → ライン化 */
@keyframes slideAndShrinkLeft {
  0% {
    left: 0;
    width: 0;
    height: 100%;
    top: 0;
  }
  50% {
    width: 100%;
    height: 100%;
    top: 0;
  }
  80% {
    width: 100%;
    height: 100%;
    top: 0;
  }
  100% {
    width: 100%;
    height: 3px;
    top: calc(100% - 3px);
  }
}

/* 右からスライド → 停止 → ライン化 */
@keyframes slideAndShrinkRight {
  0% {
    right: 0;
    width: 0;
    height: 100%;
    top: 0;
  }
  50% {
    width: 100%;
    height: 100%;
    top: 0;
  }
  80% {
    width: 100%;
    height: 100%;
    top: 0;
  }
  100% {
    width: 100%;
    height: 3px;
    top: calc(100% - 3px);
  }
}

/*h1動きここまで*/

/* メインビジュアル */
.top-img {
  margin-top: 5%;
  height: 50vh;
  background-image: url("../img/implant-img/implant-top.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left center;
  position: relative;
}

.top-img h1 {
  font-size: 4rem;
  font-weight: 500;
  position: absolute;
  bottom: 20px;
  right: 5%;
  color: #fff;
  font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 黒い影を追加 */
}
.top-img span{
	font-size: 2rem;
}

@media screen and (max-width: 700px){
	.top-img h1 {
  font-size: 3rem;
		line-height: 2rem;

}
	.top-img span{
	font-size: 1.5rem;
}
}

.section-01 {
	margin: 0 auto;
	background-image: url("../img/alexander-wende-Hzkp3JPUxVY-unsplash.jpg");
	background-size: cover;
	background-position: center;
	position: relative;
	padding: 50px;
	overflow: hidden; /* 擬似要素はみ出し防止 */
	
}

/* 白いフィルター */
.section-01::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.7); /* 70%白フィルター */
	z-index: 0;
}

/* フィルターの上にコンテンツを出す */
.section-01 > * {
	position: relative;
	z-index: 1;
}


.section-01text img {
  height: 80px;
  display: block;
  margin: 0 auto 20px; /* 横中央＋下に余白 */
}


.section-01text{
	max-width: 800px;
	justify-content: center;
	margin: 20px auto;
}
.section-01text h1{
	text-align: center;
	color: #C1B29F;
	font-family:YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
}
.section-01text span{
	font-size: 1rem;
}


/*３つの治療法*/
.section-02 {
  width: 80%;
  margin: 100px auto;
}

.section-02 h1 {
  text-align: center;
 
  font-size: 1.6rem;
  line-height: 1.5;
}

.section-02-00{
	display: flex;
	flex-wrap: wrap;
	gap:15px;
}

.section-02-item {
  width: 30%;
min-width: 400px;
  align-items: center;
  margin: 50px auto;
  position: relative;
	
}



/* li本体（治療法ボックス） */
.section-02-item li {
  align-items: center;
  padding: 15px 20px;
  border-radius: 15px;
  flex: 1;
  list-style: none;
}

/* 画像 */
.section-02-item img {
  width: 200px;
  height: 200px;
  padding: 15px 20px;
  border-radius: 15px;
  display: block;
  margin: 0 auto;

}

/* テキスト */
.section-02text {
  width: 90%;
margin: 0 auto;
  align-self: flex-start;
}

.section-02text h2 {
  text-align: center;
  font-size: 1.4rem;
  margin: 0 auto 10px;
  border-bottom: solid 2px #7B2D2E;

  
}


.section-02text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

@media (max-width: 1550px){
	.section-02-item {
min-width: 320px;

}
.section-02-item li {

  padding: 10px 15px;

}
	.section-02text h2 {

  font-size: 1.1rem;
  

  
}
} 

/* スマホ表示：縦並び＋番号上に */
@media (max-width: 1200px) {
 .section-02-item {
  width: 90%;

margin: 0 auto;
}


}

/*ふわっと出てくる動き*/

/* 最初は非表示・透明・下にずらす */
.fade-target {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 表示時にふわっと */
.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/*動きここまで*/


/*インプラントのメリットは？*/
.section-03{
	width: 80%;
	margin: 0 auto;
}
.section-03 li {
  background-color: #FEECE1;
  padding: 20px;
  margin: 20px auto;
  list-style: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.section-03 li.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-03 h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #7B4F2C;
}

.section-03 p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}



/*ビフォアフ*/
.section-04 {
  margin: 0 auto;
  background-color: #f9f9f9;
	
}
.section-04 h1{
	font-size: 2rem;
	text-align: center;
	padding-top: 50px;
	margin-bottom: 50px;
}

.implant-a {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;

	padding-bottom: 50px;
}

.img-wrap {
  position: relative;
  width: 45%;
  max-width: 300px;
}

.img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.label {
  position: absolute;
  top: -30px;
  left: 0;
  font-size: 1rem;
  font-weight: bold;
  color: #f18b00;
}

/* ▼三角の矢印 */
.arrow {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #f18b00;
}

@media screen and (max-width: 700px) {
  .implant-a {
    flex-direction: column;
  }

  .img-wrap {
    width: 90%;
  }

  /* 下向きの矢印に変更 */
  .arrow {
    margin: 10px 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #f18b00;
    border-bottom: none;
  }
}
.section-03{
	margin-bottom: 100px;
}

.section-04 p{
	max-width: 500px;
	margin: 0 auto;
	padding-bottom: 100px;
	width: 80%;
	
}