@charset "UTF-8";
/* CSS Document */
/* 見出し全体 */
.heading {
  position: relative;
  overflow: hidden;
  text-align: center;
  z-index: 1;
  padding: 20px 0;
  font-size: 1.5rem;
  margin: 50px auto 0;
  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/corporate-img/DSC07900.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;
}
.slideshow-container {
  position: relative;
  width: 80%;
  max-width: 800px;
  margin: 50px auto;
  overflow: hidden;
}
.slide-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}
.slide {
  min-width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.slide img {
  width: 100%;
  height: auto;
  display: block;
}
.caption {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #333;
}
/* ボタン */
.prev, .next {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}
@media screen and (max-width: 700px) {
  .section-01 {
    padding: 0px;
  }
}
/*クリニック概要*/
.section-02 {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  background: #fff;
}
.section-02 h1 {
  font-size: 2rem;
  text-align: center;
  color: #222;
  margin: 0 auto;
}
.table-wrapper {
  overflow-x: auto;
}
.info-table {
  width: 100%;
  font-size: 1rem;
  border-collapse: collapse;
  color: #333;
  line-height: 1.8;
}
.info-table th {
  text-align: left;
  padding: 12px 8px;
  font-size: 1.1rem;
  background: none;
  border-bottom: 1px solid #ccc;
  color: #F18B00;
  padding-top: 50px;
}
.info-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e0e0e0;
  background: none;
}
.info-table tr:nth-child(even) td {
  background-color: #fafafa;
}
/* スマホ対応 */
@media screen and (max-width: 600px) {
  .info-table {
    font-size: 0.95rem;
  }
  .section-02 {
    padding: 15px;
  }
}
/*地図*/
.section-03 iframe {
  width: 60%;
  height: 40vh;
  display: block;
  margin: 0 auto;
}
.section-03text {
  width: 60%;
  margin: 0 auto 100px;
  justify-content: center;
}
.section-03text span {
  font-size: 1rem;
  color: #F18B00;
}

@media screen and (max-width: 700px){
	.section-03 iframe {
  width: 90%;

}
	.section-03text {
  width: 90%;
  margin: 10px auto 100px;
}
}