@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: 2;
  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/kyousei-img/23179124_l.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;
}



.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: 0 auto;
}
.section-02 span{
	color:#F18B00;
}

.section-02 h2{

}


/*メリットデメリット*/
.section-03{
	width: 80%;
	margin: 0 auto;
}
.section-03 h2{
text-align: center;
	margin-top: 50px;
}

.section-03 ul{
	width: 90%;
	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);
}
.demerit-list li {
  background-color: #EFF7FC; /* 変更したい色を指定 */
}

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

.section-03 p {
	
}

.message{
	width: 70%;
	margin: 50px auto 100px;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}