
/* .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;
}


/* ==============================
  サービス導入の流れ
============================== */

/* カード全体 */
.feature_card {
  height: 100%;
}

/* 画像エリア */
.feature_img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.feature_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* タイトル */
.feature_title {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

/* 説明文 */
.feature_text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
}


.flow_list {
  position: relative;
}

/* 縦ライン（❶〜❺センター） */
.flow_list::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px; /* 丸数字の中心 */
  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: 24px;
  position: relative;
  padding-bottom: 40px;
}

.flow_item.is-last {
  padding-bottom: 0;
}

.flow_num {
  width: 40px;
  height: 40px;
  background: #5a3a1a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
}

.flow_content {
  margin-top: 10px;
}

.flow_content h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.flow_content p {
  margin: 0;
  line-height: 1.8;
}

/* イラスト */
.flow_illustration {
  margin-top: 24px;
  text-align: center;
}

.flow_illustration img {
  max-width: 540px;
  width: 100%;
  height: auto;
}

.flow_illustration2 {
  margin-top: 24px;
  text-align: center;
}

.flow_illustration2 img {
  max-width: 1000px;
  width: 100%;
  height: auto;
}


/* ==============================
  住宅設備「エクセレント保証®」とは
============================== */

.excellent_support {
  background-color: #f2efd6;
  padding: 30px;
  border-radius: 4px;
}

.excellent_Three_title {
  color: #be0614;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  padding: 10px;
}

.excellent_columns {
  display: flex;
  gap: 32px;
}

.excellent_item {
  flex: 1;
  background: #fff;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
}


.excellent_item h3 {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  min-height: 3em;
}

.excellent_item > p:not(.excellent_point) {
  min-height: 6em;
}

.excellent_item h3::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #ddd;
  margin: 12px auto 0;
  transform: scaleY(0.5);
  transform-origin: top;
}

.excellent_item p {
  line-height: 1.8;
}

.excellent_point {
  margin-top: auto;   /* ← 重要 */
  background: #c40000;
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-weight: 700;
  border-radius: 4px;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {

  .excellent_Three_title {
    color: #be0614;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    padding: 10px;
  }

  .excellent_support {
    background-color: #f2efd6;
    padding: 10px;
    border-radius: 4px;
  }

  .excellent_columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .excellent_columns {
    flex-direction: column;
    gap: 24px;
  }

  /* 高さ揃えを解除 */
  .excellent_item h3,
  .excellent_item > p:not(.excellent_point) {
    min-height: auto;
  }

  /* 余白をSP向けに調整（任意） */
  .excellent_item {
    padding: 24px 20px;
    border-radius: 4px;
  }

  .excellent_point {
    margin-top: 16px; /* 下固定を解除 */
  }
  .excellent_item p {
    font-size: 16px;
    line-height: 1.8;
  }

}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  .excellent_columns {
    flex-direction: column;
    gap: 24px;
  }
}

/* ==============================
  よくあるご質問 Q&A
============================== */
.faq {
  margin: 0 auto;
}

.faq_item {
  padding: 30px 0;
  border-bottom: 1px solid #e0e0e0;
}

.faq_q,
.faq_a {
  display: flex;
  align-items: baseline;
  gap: 15px;
}


.faq_q {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.faq_label {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.faq_label.q {
  background-color: #5a3a1a;
  color: #fff;
  border-radius: 4px;
}

.faq_label.a {
  border: 1px solid #222;
  border-radius: 4px;
}

.faq_q h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.faq_answer {
  font-size: 16px;
  line-height: 1.8;
}

.faq_answer ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.faq_answer li {
  margin-bottom: 6px;
}

.faq_item:last-child {
  border-bottom: none;
}


/* レスポンシブ */
@media screen and (max-width: 768px) {
  /* .faq {
    padding: 0 15px;
  } */

  .faq_q h3 {
    font-size: 16px;
  }
}

/* ==============================
  POINT
============================== */
.hd_label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  margin-top: 30px;
}

.hd_label .label {
  font-size: 12px;
  padding: 4px 8px;
  background: #5a3a1a;
  color: #fff;
  border-radius: 3px;
}

@media screen and (max-width: 768px) {
  .hd_label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    margin-top: 50px;
  }
}



/* ==============================
  住宅設備延長保証の基礎知識
============================== */

.excellent_under_img {
  position: relative;
  background-image: url("../img/25037312_s.jpg"); 
  background-size: cover;
  background-position: center;
  padding: 50px;
}

.excellent_under_img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
}

.excellent_under_img > * {
  position: relative;
  z-index: 1;
}

.warranty-list {
  margin-left: 0;
}

@media screen and (max-width: 768px) {
  .excellent_under_img {
    padding: 10px;
  }
}


/* ==============================
  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;
  } */
}
