
html,
body {
  overflow-anchor: none;
}


body {
  font-family: 'Noto Sans JP', '游ゴシック体', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  /* または、日本語フォントを優先する場合 */
  /* font-family: '游ゴシック体', 'Yu Gothic', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif; */
  color: #333;
}
html {
  overflow-y: scroll;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Yu Gothic", "Meiryo", sans-serif !important;
  color: #333;
}

.display_text {
  font-size: calc(1.625rem + 1.5vw);
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.carousel-indicators [data-bs-target] {
  height: 8px;
}

.contents_inner {
  padding: 0 20px;
}
@media (max-width: 767.98px) {
  .contents_inner {
  padding: 0;
  }

  .display_text {
    font-size: 24px;
  }
}

/* =========================================================
  ケン・バーンズ効果 (画像ズーム)
========================================================= */

/* 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;
}


/* =========================================================
  carousel
========================================================= */
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, .1);
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 3.5rem;
  background-color: var(--dark);
  border: 15px solid var(--dark);
}

/* メインビジュアル */
#header_carousel .carousel-item {
  height: 90vh;
}

#header_carousel .carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

@media (max-width: 767.98px) {
  #header_carousel .carousel-item {
    position: relative;
    min-height: 450px;
    height: 80vh;
  }
  
  #header_carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* =========================================================
  テキストマスク（左入→滞留→右抜け）
========================================================= */
.headlineReveal {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.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;
}

/* 白帯 */
@keyframes revealBarSharp {
  0% {
    transform: translateX(-100%);
  }
  48% {
    transform: translateX(0);
  }
  52% {
    transform: translateX(4%);
  }
  100% {
    transform: translateX(102%);
  }
}

/* テキスト表示 */
@keyframes revealText {
  to {
    opacity: 1;
  }
}

/* @keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
    opacity: 0;
  }
} */




/* =========================================
  PC 右側の3ボックス
========================================= */

/* ========== PC: 右側固定 ========== */
.mv-close-icon,
.mv-close-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #666;
  transform-origin: center;
}

.mv-close-icon {
  transform: translate(-50%, -50%) rotate(45deg);
}
.mv-close-icon::before {
  transform: translate(-50%, -50%) rotate(-90deg);
}

/* ========== 個別ボックス ========== */
.mv-box {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 0;
  border-radius: 0;
  position: relative;
  width: 160px;
  overflow: hidden;
  transition:
      opacity 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mv-box-inner {
  padding: 18px 16px 14px 16px;
  position: relative;
  text-align: center;
}

.mv-box:hover {
  opacity: 0.85;
}

.mv-box:hover,
.mv-box:hover * {
  color: #fff;
}

.mv-tag {
  background: rgba(255, 255, 255, 0.35);
  padding: 4px 10px;
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}

.mv-title {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.3;
}


/********** 矢印 **********/
.mv-arrow {
  width: 35px;
  height: 35px;
  position: relative;
  transition: transform 0.3s ease;
  margin-left: auto;

  /* ★ 追加：flex内でも縮まない */
  flex-shrink: 0;
}

/* 矢印の棒 */
.mv-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 11px;
  width: 10px;
  height: 4px;
  background: #fff;
  transform: translateY(-50%);
}

/* 矢印の先端（三角） */
.mv-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 9px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #fff;
  transform: translateY(-50%);
}

/* 矢印がある場合のホバー演出（任意） */
.mv-box:hover .mv-arrow {
  transform: translateX(6px);
}

/* 色 */
.mv-blue { background: #0066CC; }
.mv-green { background: #1AA34A; }
.mv-orange { background: #F36C3D; }

/* 右側に固定（メインビジュアルに重ねる） */
.mv-side {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 173px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ×ボタン：青ボタンの右上に配置 */
.mv-close-all {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 10px;
  right: 10px;
  z-index: 10000;
  width: 38px;
  height: 38px;
  border: none;
  position: relative;
  align-self: flex-end;
  margin-bottom: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

/* =========================================
  SP：最下部固定 ＋ 高さを自動にして揃える
========================================= */
@media (max-width: 767.98px) {

  .mv-side {
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 0 0; /* ← 上に×ボタン分の余白 */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    z-index: 9999;
    position: fixed;
    position: relative;
    top: auto !important;
    transform: none !important;
  }

  .mv-box {
    width: 100%;
    padding: 0;
    height: auto;
  }

  .mv-box-inner {
    padding: 6px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .mv-title {
    font-size: 12px;
    line-height: 1.3;
    margin-top: 4px;
    min-height: calc(1.3em * 2); /* 2行分を確保 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .mv-tag {
    font-size: 12px;
    margin-bottom: 0;
  }

  .mv-arrow {
    margin-top: 0;
    height: 25px;
  }

  /* ×ボタン：青ボタンの右上に配置 */
  .mv-close-all {
    position: absolute;
    top: 6px;
    left: 6px;

    width: 32px;
    height: 32px;

    border-radius: 50%;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10000;

    background: #fff;
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
  }
}

/* ==============================
  タイトル
============================== */
.basic_title {
  text-align: center;
  padding: 20px;
  color: #8b6a2e;
  border: solid 1px #8b6a2e;
}

@media screen and (max-width: 767.98px) {
  .display-7.basic_title {
    text-align: left;
    background: #8b6a2e;
    padding: 20px;
    color: #fff;
    font-size: 18px;
  }
}



.container.default a {
    color: #333;
    text-decoration: underline;
}



/* ==============================
  住宅設備延長保証｜基礎知識
============================== */
.knowledge_box {
  border: 1px solid #e0e0e0;
  padding: 20px 24px;
  background: #fbfbfb;
  margin: 30px 0 30px;
  border-radius: 4px;
}

/* タイトル行 */
.knowledge_box__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
}

.knowledge_box__icon {
  font-size: 18px;
  line-height: 1;
}

/* リスト */
.knowledge_box__list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.knowledge_box__list li {
  list-style: disc;
  margin-bottom: 5px;
}

/* リンク */
.knowledge_box__list a {
  color: #0066cc;
  text-decoration: underline;
}

.knowledge_box__list a:hover {
  text-decoration: none;
}

.container.default a {
  color: #333;
  text-decoration: underline;
}



/* ===============================
  Feature フロント3コンテンツ
=============================== */

h4.lg-tb-text {
  font-size: 1.3rem;
}

/*** Products ***/
.product {
  background: #cc9900;
  background-size: auto;
}

/********** 矢印 **********/
.arrow-box {
  width: 35px;
  height: 35px;
  background: #9c6b00;
  position: relative;
  transition: transform 0.3s ease;

  /* ★ 追加：flex内でも縮まない */
  flex-shrink: 0;
  border-radius: 2px;
}

/* 矢印の棒 */
.arrow-box::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 11px;
  width: 10px;
  height: 4px;
  background: #fff;
  transform: translateY(-50%);
}

/* 矢印の先端（三角） */
.arrow-box::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 9px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #fff;
  transform: translateY(-50%);
}

/* 矢印がある場合のホバー演出（任意） */
.feature-link:hover .arrow-box {
  transform: translateX(6px);
}

/* フロント3コンテンツリンク */
.feature-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #fff;
  text-decoration: none;
}

.feature-link:hover {
  opacity: 0.85;         /* ホバー時の軽い反応（任意） */
}

/* 文章ブロックを同じ高さに */
.feature_text {
  flex: 1;
}

@media (max-width: 767.98px) {
.feature_text {
  background: #fff;
  color: #333;
  margin: 0 0 10px;
  font-size: 15px;
  }

  .product {
    background: #fff;
    background-size: auto;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {

  .tablet_column {
    display: flex;
    padding: 20px 0;
  }
  .row.fa-inverse.tablet_column > .col-sm::before {
    content: none;
  }
  .row.fa-inverse.tablet_column > .col-sm:last-child::after {
    content: none;
  }

  h4.lg-tb-text {
    font-size: 1rem;
  }
  .py-3.px-4.px-lg-0.px-md-0.feature_text {
    font-size: 0.9rem;
  }
  .ft_btn_text {
    font-size: 0.9rem;
  }

}




/* ===============================
  Feature カラム 縦ボーダー
=============================== */
.row.fa-inverse > .col-sm {
  position: relative;
}

/* 左ボーダー（全カラム） */
.row.fa-inverse > .col-sm::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 0;
  width: 1px;
  background-color: rgba(255,255,255,0.3);
}

/* 最後のカラムだけ右ボーダー追加 */
.row.fa-inverse > .col-sm:last-child::after {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 40px;
  right: 0;
  width: 1px;
  background-color: rgba(255,255,255,0.3);
}

@media (max-width: 767.98px) {
  .row.fa-inverse > .col-sm {
    background: #cc9900;
    margin-bottom: 20px;
  }

  .row.fa-inverse > .col-sm::before,
  .row.fa-inverse > .col-sm::after {
      display: none;
  }
}


/* ===============================
  住宅設備延長保証について
=============================== */

.warranty {
  position: relative;
  width: 100%;
  /* min-height: 520px; */
  overflow: hidden;
  background: #fff;
}

/* 背景ラッパー */
.warranty_bg {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* 背景画像 */
.warranty_bg img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
}

/* 上に重ねたテキストボックス */
.warranty_content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 80px 0;
  color: #333;
}

/* 見出し */
.warranty_content h2 {
  font-size: 24px;
  font-weight: 600;
  position: relative;
}

/* リスト全体 */
.warranty-list {
  max-width: 700px;
  /* margin-left: 1rem; */
}

/* 各行 */
.warranty-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 2px dotted #ddd;
  font-size: 18px;
  line-height: 1.6;
  /* text-shadow: 0 0 6px rgba(255, 255, 255, 0.8); */
  text-shadow:
    0 0 2px #fff,
    0 0 4px #fff,
    0 0 8px #fff;

}

/* 最後の線は消す */
.warranty-item:last-child {
  border-bottom: none;
}

/* 矢印の囲み */
.warranty-arrow {
  width: 34px;
  height: 34px;
  background: #b08900;
  position: relative;
  flex-shrink: 0;
}

/* 矢印 */
.warranty-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* warranty-item をリンク化 */
.warranty-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-size: 16px;
}

/* ホバー時の演出 */
.warranty-link:hover {
  opacity: 0.85;
}

/* 矢印のホバー連動 */
.warranty-link:hover .arrow-box {
  transform: translateX(6px);
}

.warranty-link_no {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-size: 16px;
}

.warranty picture,
.warranty img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (min-width: 768px) and (max-width: 1366px) {
  .warranty-item {
    border-bottom: none;
  }
}

/* =========================================
  SP：住宅設備延長保証について
========================================= */
@media (max-width: 767.98px) {
  .warranty {
    position: relative;
    width: 100%;
    min-height: auto;
    overflow: hidden;
    background: #fff;
    height: 10vh;
    min-height: 410px;
  }
  .warranty-list {
    background: #fff;
    padding: 10px;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.4);
  }
  .warranty_content.container h2 {
    margin-top: 20px;
    text-align: center;
  }

  .warranty_content {
    padding: 10px;
    position: relative;
    z-index: 1;
  }

  .warranty_content h2 {
    font-size: 20px;
    font-weight: 600;
  }

  .warranty-link {
    font-size: 15px;
  }

  .warranty picture {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .warranty img {
    opacity: 0.5;
  }

}



/* =========================================================
  お問合せボタン
========================================================= */

.contact_wrap {
  background: #f6f3e0;
  padding: 40px 20px;
}

.contact-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 420px;              /* ボタン横幅（画像に近い） */
  height: 90px;
  background: #d1a100;       /* 金色 */
  text-decoration: none;
  overflow: hidden;
}

/* 中央テキスト */
.contact-btn-text {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* 矢印位置（右寄せ） */
.contact-btn .arrow-box {
  position: absolute;
  right: 30px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* hover時：矢印だけ動かす */
.contact-btn:hover .arrow-box {
  transform: translateX(6px);
}

.contact-btn:hover {
  opacity: 0.85;
}
.contact_text {
  text-align: center;
}

/* =========================
  SP : ～767px
========================= */
@media screen and (max-width: 767.98px) {
  .contact-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  background: #d1a100;       /* 金色 */
  text-decoration: none;
  overflow: hidden;
  }
  .contact-btn-text {
    font-size: 20px;
  }
  .contact_text {
    font-size: 15px;
    text-align: left;
  }
}


/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  .contact_wrap {
    background: #f6f3e0;
    padding: 40px 20px;
  }
}





/*** Section Title ***/
.title_wrap {
  position: relative;
}

@media (max-width: 767.98px) {
  .title_wrap {
    padding: 20px;
  }

  .title_wrap.text-center.mx-auto h2 {
    font-size: 20px;
    text-align: left;
  }
  .title_wrap p {
    font-size: 15px;
    text-align: left;
  }
  .contact.py-4.py-sm-5.py-md-5.py-lg-5.py-xl-5 h2 {
    font-size: 20px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  .title_wrap {
    padding: 0 20px;
  }

}






/********** bootstrap.min.css 上書き **********/

a {
  color: #fff;
  text-decoration: none;
}
a:hover {
  color: inherit;
}

.display-7 {
  font-size: 24px;
  /* font-weight: 900; */
  line-height: 1.2;
  margin-bottom: 30px;
}

.display-8 {
  font-size: 20px;
  /* font-weight: 900; */
  line-height: 1.2;
  margin-bottom: 10px;
}

@media (min-width: 1200px) {
  .display-7 {
      font-size: 2.5rem;
      font-size: 28px;
  }
  .display-8 {
      font-size: 2.0rem;
      font-size: 24px;
  }
}





.fw-medium {
  font-weight: 600;
}
.fw-bold {
  font-weight: 700;
}
.fw-black {
  font-weight: 900;
}

/*** Button ***/
.btn {
  transition: .5s;
  font-weight: 500;
}














