
/* .display_text {
  font-size: calc(1.625rem + 1.5vw);
  font-weight: 900;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

@media screen and (max-width: 768px) {
  .display_text {
    font-size: calc(1.625rem + 0.2vw);
    font-weight: 900;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  }
} */

.carousel-indicators [data-bs-target] {
  height: 8px;
}

/* =========================================================
  ケン・バーンズ効果 (画像ズーム)
========================================================= */

/* 1. アニメーションの定義 */
@keyframes kenBurnsZoom {
  from {
    transform: scale(1); /* 開始時: 拡大なし */
  }
  to {
    transform: scale(1.1); /* 終了時: 5%拡大 */
  }
}

/* 2. 画像へのアニメーション適用 */
.carousel-item img.kenburns-zoom {
  /* アニメーション名、時間、イージング（滑らかさ）、終了状態（forwardsで最終状態を維持） */
  animation: kenBurnsZoom 5s ease-out forwards;
  
  /* トランジションが切り替わったときにスムーズにリセットされるように */
  transition: transform 0s;
}

/* 3. 親要素の設定 */
/* アニメーションをカルーセル全体に適用するため、画像がはみ出しても見えないように設定 */
#header_carousel {
  overflow: hidden; 
  position: relative;
}

/* =========================================================
  テキストマスク（左入→滞留→右抜け）
========================================================= */
.headlineReveal {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  margin-top: 70px;
}

.headlineReveal__content {
  position: relative;
  z-index: 1;
  opacity: 0;
}

.headlineReveal__bar {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 2;
  transform: translateX(-100%);
  will-change: transform;
}

/* active */
.headlineReveal.is-active .headlineReveal__bar {
  animation: revealBarSharp 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.headlineReveal.is-active .headlineReveal__content {
  animation: revealText 0.2s ease-out forwards;
  animation-delay: 0.46s;
}

@media screen and (max-width: 768px) {
  .headlineReveal {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    margin-top: 10px;
  }
}




/* 白帯 */
@keyframes revealBarSharp {
  0% {
    transform: translateX(-100%);
  }
  48% {
    transform: translateX(0);
  }
  52% {
    transform: translateX(4%);
  }
  100% {
    transform: translateX(102%);
  }
}

/* テキスト表示 */
@keyframes revealText {
  to {
    opacity: 1;
  }
}

/* メインビジュアル */
#header_carousel .carousel-item {
  height: 40vh;
}

#header_carousel .carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

@media (max-width: 768px) {
  #header_carousel .carousel-item {
    position: relative;
    min-height: 200px;
    height: 30vh;
  }
  
}


/* ==============================
  住宅設備延長保証｜対象設備･機器例
============================== */
.question_box {
  border: 1px solid #e0e0e0;
  padding: 20px 24px;
  background: #fbfbfb;
  margin: 30px 0 50px;
}

/* タイトル行 */
.question_box__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #222;
}

.question_box__icon {
  font-size: 18px;
  line-height: 1;
}


/* ==============================
  導入される理由 2
============================== */
ul.feature_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.feature_list li {
  background: #fbfbfb;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 20px 16px 16px 60px;
  margin-bottom: 12px;
  position: relative;
}

.feature-index {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  color: #333;
  background: #fff;
}

ul.feature_list li strong {
  font-size: 1.1em;
}

ul.feature_list li p {
  margin: 6px 0;
  line-height: 1.6;
  color: #555;
}



/* ==============================
  実務フロー
============================== */
.flow_list {
  position: relative;
}

/* 縦ライン（❶〜❺センター） */
/* .flow_list::before {
  content: "";
  position: absolute;
  top: 0;
  left: 35px;
  width: 2px;
  height: calc(100% - 90px);
  background: #eee;
} */

@media screen and (max-width: 768px) {
  /* .flow_list::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 2px;
  height: calc(100% - 320px);
  background: #ddd;
  } */
}

.flow_item {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 40px;
}

.flow_item:last-child {
  padding-bottom: 0;
}

.flow_item.is-last {
  padding-bottom: 0;
}

.flow_num {
  width: 54px;
  height: 28px;
  background: #0f8f7c;
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
  font-size: 13px;
}

.flow_content {
  margin-top: 5px;
}

.flow_content h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.flow_content p {
  margin: 0;
  line-height: 1.8;
}

@media screen and (max-width: 768px) {
  .flow_item {
    display: flex;
    gap: 10px;
    position: relative;
    padding-bottom: 40px;
    flex-direction: column;
  }

  .flow_num {
    width: 100%;
    height: 28px;
    background: #0f8f7c;
    color: #fff;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
    font-size: 13px;
  }

  .flow_content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    text-align: center;
  }

  .knowledge_box {
    border: 1px solid #e0e0e0;
    padding: 20px 24px;
    background: #fbfbfb;
    margin: 15px 0 15px;
    border-radius: 4px;
  }
}

.knowledge_box {
    border: 1px solid #e0e0e0;
    padding: 20px 24px;
    background: #fbfbfb;
    margin: 10px 0 10px;
    border-radius: 4px;
}

/* ==============================
  footer
============================== */
@media screen and (max-width: 768px) {
  .row + .imi-footer-bottom {
    margin-bottom: 10px;
  }
  /* .btn.btn-lg.btn-primary.btn-lg-square.rounded-circle.back_to_top {
    bottom: 95px;
  } */
}
