@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/shisyuubyou-img/31059743_m.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;
}
}


/* セクション共通 */
h2 {
  font-size: 1.3rem;
  color: #F18B00;
}

p{
  text-align: left;
  margin-bottom: 1.5em;
}



/*歯周病（Perio）とは*/
.perio-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; /* 擬似要素はみ出し防止 */
}

/* 白いフィルター */
.perio-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;
}

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

.perio-01text{
	max-width: 800px;
	justify-content: center;
	margin: 20px auto;
}
.perio-01text h1{
	text-align: center;
	color: #C1B29F;
	font-family:YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
}
.perio-01text span{
	font-size: 1rem;
}
.perio-01text img {
  height: 80px;
  display: block;
  margin: 0 auto 20px; /* 横中央＋下に余白 */
}

/*共通アニメーション*/
/*初期状態 */
.fade-up {
	opacity: 0;
	transform: translateY(50px);
	transition: opacity 1s ease, transform 1s ease;
}

/* 表示状態 */
.fade-up.show {
	opacity: 1;
	transform: translateY(0);
}
/*歯周病の症状*/
.perio-02{
	max-width: 1200px;
	display: flex;
	margin: 100px auto;
	justify-content: center;
}
.perio-02 img{
	width: 30%;
	border-radius: 20px;
	object-fit: cover;
}
.perio-02-text{
	text-align: left;
	margin: 30px;
	max-width: 500px;
	line-height: 2rem;
}
@media screen and (max-width: 950px){
	.perio-02 {
		display: block;
		text-align: center;
	}
	.perio-02 img {
		width: 80%;
		max-height: 300px;
		object-fit: cover;
		margin: 0 auto;
	}
	.perio-02-text {
		width: 80%;
		margin: 30px auto;
		text-align: left;
		max-width: 500px;
	}
}



/*歯周病の進行過程*/
.perio-flow {
  background-color: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
}

.perio-flow h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #F18B00; /* オレンジに変更 */
}

.perio-steps {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 auto;
  list-style: none;
  max-width: 1200px;
}

.perio-steps li {
  background: #fff;
  border-radius: 8px;
  width: 220px;
  padding: 15px;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.perio-steps li:not(:last-child)::after {
  content: "▶";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: #F18B00; /* オレンジ矢印 */
  font-size: 20px;
}

.step-label {
  font-weight: bold;
  padding: 5px;
  color: #fff;
  margin-bottom: 10px;
  border-radius: 4px;
  font-size: 0.95rem;
}

.step-label.pink {
  background-color: #F18B00; /* オレンジ */
}

.step-label.red {
  background-color: #d65a00; /* 濃いオレンジ */
}

.perio-steps img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.step-range {
  color: #F18B00; /* オレンジ */
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.perio-steps p {
  font-size: 0.85rem;
  color: #444;
}

/* ▼ スマホでは縦並び＋矢印縦方向 */
@media screen and (max-width: 950px) {
  .perio-steps {
    flex-direction: column;
    align-items: center;
  }

  .perio-steps li {
    width: 90%;
    max-width: 350px;
  }

  .perio-steps li::after {
    content: "";
  }

  .perio-steps li:not(:last-child)::after {
    content: "▼";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    right: auto;
    color: #F18B00; /* オレンジの下向き矢印 */
  }
}



/*治療*/

.perio-03{
	max-width: 1200px;
	display: flex;
	margin: 100px auto;
	justify-content: center;
	flex-direction: row-reverse; 
}
.perio-03 img{
	width: 30%;
	border-radius: 20px;
	object-fit: cover;
	object-position: center; 
	
}
.perio-03-text{
	text-align: left;
	margin: 30px;
	max-width: 500px;
	line-height: 2rem;
}


@media screen and (max-width: 950px){
	.perio-03 {
		display: block;
		text-align: center;
	}
	.perio-03 img {
		width: 80%;
		max-height: 300px;
		object-fit: cover;
		margin: 0 auto;
	}
	.perio-03-text {
		margin: 30px auto;
		text-align: left;
		max-width: 500px;
		width: 80%;
	}
}



/* 歯周病と全身疾患の関わり */
.perio-04 {
  padding: 2em;
	max-width: 80%;
	margin: 0 auto;
}

.perio-04 h2 {
  font-size: 1.6rem;
  color: #F18B00;
  margin-bottom: 2em;
  text-align: center;
}

.perio-04 ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding: 0;
  list-style: none;
}

.perio-04 li {
  width: calc(33.333% - 20px);
  background-color: #fffaf2;
  padding: 1.2em 1em;
  border-left: 8px solid #f18b00;
  border-radius: 6px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
  position: relative;
  opacity: 0;
  transition: all 0.8s ease;
}

/* アイコン風の丸番号 */
.perio-04 li::before {
  content: attr(data-icon);
  position: absolute;
  top: -15px;
  left: -15px;
  background: #F18B00;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
}

/* 左からスライド */
.perio-04 li.slide-left {
  transform: translateX(-30px);
}
.perio-04 li.slide-left.visible {
  transform: translateX(0);
  opacity: 1;
}

/* 右からスライド */
.perio-04 li.slide-right {
  transform: translateX(30px);
}
.perio-04 li.slide-right.visible {
  transform: translateX(0);
  opacity: 1;
}

.perio-04 h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5em;
  color: #333;
}

.perio-04 p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* レスポンシブ */
@media screen and (max-width: 700px) {
  .perio-04 ul {
    flex-direction: column;
  }

  .perio-04 li {
    width: 100%;
  }

  .perio-04 li::before {
    top: -10px;
    left: -10px;
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
}

 
.perio-05{
	font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
	max-width: 800px;
	line-height: 3rem;
	width: 80%;
	margin: 100px auto;
	font-size: 1.2rem;
}

@media screen and (max-width: 700px){
	.perio-05{
		font-size: 1rem;
		text-align: center;
	}
}