/* メインビジュアル（TOP） */
.top-mainvisual {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
}

.top-mainvisual-image {
  height: 700px;
  overflow: hidden;
}

.top-mainvisual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-left: auto;
}

.top-mainvisual-triangle {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  z-index: 2;
}

.top-mainvisual-triangle img {
  width: 100%;
  height: auto;
  display: block;
}

.image-container {
  position: relative;
  overflow: hidden;
}

.top-mainvisual-box-red,
.top-mainvisual-box-white {
  position: absolute;
  width: 28.3%;
  height: 53.1%;
  border-radius: 8px;
}

.top-mainvisual-box-red {
  background-color: #d94747;
  top: 5%;
  left: 4%;
  opacity: 0.8;
  width: 380px;
  height: 460px;
}

.top-mainvisual-box-white {
  background-color: rgba(255, 255, 255, 0.6);
  top: 5%;
  left: 4%;
  transform: translate(5%, 5%);
  opacity: 0.3;
  width: 380px;
  height: 460px;
}

.top-mainvisual-title {
  position: absolute;
  top: -1%;
  left: 3%;
  transform: translate(10%, 10%);
  color: #fff;
  font-weight: 300;
}

.top-mainvisual-title-one {
  font-size: 60px;
  font-weight: 600;
  margin: 20px 0px 20px 0px;
}

.top-mainvisual-title-two {
  font-size: 25px;
}

/* .top-mainvisual-triangle {
  position: absolute;
  bottom: 115px;
  width: 100%;
}

.top-mainvisual-triangle img {
  width: 100%;
} */

/* メインビジュアル（事業内容~） */
.mainvisual-image-sp {
  display: none;
}

.mainvisual {
  position: relative;
}

.mainvisual-title {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
}

.mainvisual-title h1 {
  font-weight: 500;
  letter-spacing: 8px;
}

.mainvisual-title-background {
  width: 110%;
  height: 120%;
  position: absolute;
  background-color: #a6c48a;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.7;
  z-index: -1;
}

.mainvisual-image img {
  width: 100%;
}

.mainvisual-triangle {
  position: absolute;
  bottom: -1px;
  width: 100%;
}

.mainvisual-triangle img {
  width: 100%;
}

/* メインビジュアル下タイトル */
.top-center-title {
  text-align: center;
  width: 100%;
  margin: auto auto 150px;
  position: relative;
}

.top-center-title h2 {
  font-weight: 600;
}

/* コンセプト */
.top-concept {
  align-items: flex-start;
  position: relative;
  margin-bottom: 15%;
}

.top-concept-image-area {
  z-index: 2;
  position: relative;
  left: 25%;
  transform: translate(-50%, -50%);
}

.top-concept-image-area img {
  width: 40%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: absolute;
  left: 24%;
  transform: translate(0%, 12%);
}

.top-concept-text-box {
  background-color: #d94b4b;
  color: #fff;
  padding: 2% 2% 5% 10%;
  z-index: 1;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-left: auto;
  width: 70%;
}

.headline-image {
  width: 100%;
  max-width: 480px;
  margin-bottom: 20px;
}

.top-concept-lead {
  font-weight: bold;
  margin: 0px 0px 20px 40px;
}

.top-concept-description {
  margin-left: 40px;
  padding-right: 100px;
}

/* 事業内容バナー */
.top-business-content {
  position: relative;
  margin-bottom: 120px;
  z-index: 100;
  background-image: url(../../assets/image/top_business_content.png);
  height: 500px;
  background-repeat: no-repeat;
  width: 100%;
  background-size: cover;
  color: #fff;
}

.top-business-content-box {
  display: flex;
  justify-content: center;
  height: 500px;
  align-items: center;
  gap: 6.25%;
}

.top-business-content-left {
  text-align: end;
}

.top-business-content-title {
  text-align: center;
  color: #fff;
}

.top-business-content-image img {
  width: 100%;
}

.top-business-content-text h3 {
  font-weight: 300;
}

.top-business-content-text-one {
  margin-bottom: 20px;
}

.top-business-content-button {
  width: 100%;
  display: flex;
  justify-content: end;
  z-index: 1000;
  position: relative;
}

.rounded-button-white {
  display: flex;
  justify-content: center;
  padding: 17px 0px 17px;
  border: solid 1px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.2);
  font-size: 16px;
  text-decoration: none;
  position: relative;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
  width: 300px;
  color: #ffffff;
}

.rounded-button-white::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  position: absolute;
  top: 50%;
  right: 16px; /* ← 右側の余白調整 */
  transform: translateY(-50%) rotate(45deg);
}

.rounded-button-white:hover {
  background-color: rgba(0, 0, 0, 0.6); /* 半透明の黒 */
  color: #fff;
}

.rounded-button-white .arrow {
  margin-left: 8px;
  font-weight: bold;
  position: absolute;
  right: 15%;
  transform: translate(50%, -0%);
}

/* 施工事例 */
.construction-example-title {
  text-align: center;
}

.stripe-box-construction-example {
  width: 100%;
  background-image: repeating-linear-gradient(-240deg, #aaa 0px, #aaa 2px, transparent 2px, transparent 6px);
  aspect-ratio: 434 / 374;
  margin-bottom: 20px;
  border-radius: 0px 50px 0px 0px;
}

.construction-example-image {
  aspect-ratio: 1/1;
}

.construction-example-image img {
  width: 100%;
  height: 100%;
  margin: -10px 0px 10px 10px;
  border-radius: 0px 50px 0px 0px;
  object-fit: cover;
}

.business-content-button-green {
  display: flex;
  gap: 4.17%;
  justify-content: center;
}

.rounded-button-green .button-text {
  display: inline-block;
  max-width: 16em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-construction-example-button-green {
  width: 22.6%;
  display: flex;
  position: relative;
  justify-content: end;
  z-index: 1000;
}

.rounded-button-green {
  align-items: center;
  width: 100%;
  padding: 5.2% 0px 5.2%;
  border: 2px solid transparent;
  border-radius: 10px;
  background: linear-gradient(to right, #c6d7d2, #b0d9c1);
  color: #000000;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  text-decoration: none;
  justify-content: center;
  font-weight: bold;
  display: flex;
  position: relative;
  overflow: hidden; /* ← 背景アニメーションを閉じ込める */
}

/* アニメーション用の疑似要素（背景） */
.rounded-button-green::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #ffffff;
  z-index: 0;
  transition: width 0.5s ease;
}

/* ホバー時に左から右へ白くなる */
.rounded-button-green:hover::before {
  width: 100%;
}

/* ホバー時の元の効果（文字色など）を前面で表示 */
.rounded-button-green:hover {
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid #b0d9c1;
}

/* テキストを前面に */
.rounded-button-green > span {
  position: relative;
  z-index: 1;
}

/* 矢印も前面に出す */
.rounded-button-green::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}

.construction-example-button-green-box {
  width: 400px;
  margin: 80px auto auto;
}

.construction-example-button-green-others {
  width: 90%;
  margin: 0 auto;
  display: flex;
  position: relative;
  justify-content: end;
  z-index: 1000;
  margin-bottom: 100px;
}

.rounded-button-green-others {
  align-items: center;
  width: 100%;
  padding: 5.2% 0px 5.2%;
  border: none;
  border-radius: 10px;
  background: linear-gradient(to right, #c6d7d2, #b0d9c1);
  color: #000000;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  text-decoration: none;
  justify-content: center;
  font-weight: bold;
  display: flex;
  text-decoration: none;
  position: relative;
}

.rounded-button-green-others:hover {
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
}

/* ケイズの住まいづくり */
.top-building-home {
  margin-bottom: 120px;
  position: relative;
  z-index: 100;
  background-image: url(../../assets/image/top_building_home.png);
  padding: 110px 0px 135px;
  background-size: cover;
}

.top-building-home-title {
  width: 635px;
  margin: auto auto 70px;
  text-align: center;
  display: block;
}

.top-building-home-text {
  color: #fff;
  width: 78.91%;
  margin: auto auto 65px;
}

.top-building-home-box {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 120px;
}

.top-business-content-button-red {
  width: 400px;
  display: flex;
  justify-content: end;
  z-index: 1000;
  position: relative;
}

.rounded-button-red {
  align-items: center;
  width: 400px;
  padding: 5.2% 0px 5.2%;
  border: none;
  border-radius: 10px;
  background-color: #d43333;
  color: #ffffff;
  /* font-size: 32px; */
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  text-decoration: none;
  justify-content: center;
  font-weight: bold;
  border: solid 1px;
  display: flex;
  justify-content: center;
  text-decoration: none;
  position: relative;
}

.rounded-button-red::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%) rotate(45deg);
}

.rounded-button-red:hover {
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
}

/* お役立ち情報 */
.useful-information {
  position: relative;
  margin-bottom: 120px;
}

.useful-information-background {
  position: absolute;
  top: 0%;
  z-index: -1;
}

.useful-information-background img {
  width: 100%;
}

.useful-information-title {
  text-align: center;
}

.useful-information-title img {
  width: 387px;
}

.useful-information-stripe {
  display: flex;
  width: 80%;
  margin: auto;
  gap: 50px;
  justify-content: center;
  align-items: stretch;
}

.stripe-box-useful-information {
  position: relative;
  overflow: visible;
  width: 100%;
  aspect-ratio: 434 / 374;
  margin-bottom: 25px;
  border-radius: 0 50px 0 0;
}

.stripe-box-useful-information::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -10px;
  right: 10px;
  bottom: -10px;
  background-image: repeating-linear-gradient(-240deg, #aaa 0, #aaa 2px, transparent 2px, transparent 6px);
  background-repeat: repeat;
  border-radius: inherit;
  z-index: -1;
}
.stripe-box-useful-information img {
  display: block;
  width: 100%;
  border-radius: inherit;
}

.useful-information-text-item {
  margin-bottom: 50px;
  flex-grow: 1;
}

.useful-information-text-item p {
  font-size: 18px;
}

.useful-information-stripe-item {
  width: 400px;
  display: flex;
  flex-direction: column;
}

.top-business-content-button-green {
  margin-top: auto;
}

/* 業務内容・ケイズの新築・ケイズのリフォーム */

/* お知らせ */
.top-notice {
  position: relative;
  background-color: #fff7d1;
  padding-top: 80px;
  padding-bottom: 80px;
}

.top-notice-instagram-logo {
  text-align: center;
}

.top-notice-title {
  text-align: center;
}

.top-news-block {
  max-width: 1300px;
  margin: 0 auto;
}

/* 他にもプランをご用意しております */
.plan-promote {
  margin: auto auto 100px;
  width: 67.7%;
}

.plan-promote-title {
  text-align: center;
}

.plan-promote-title h2 {
  font-weight: 600;
  margin-bottom: 50px;
}

.plan-promote-banner {
  background-image: url(../../assets/image/plan_promote_banner.png);
  height: auto;
  text-align: center;
  padding: 95px 0px 90px;
  background-repeat: no-repeat;
  margin: 15px auto;
  background-size: contain;
  background-position: center;
}

.plan-promote-banner p {
  font-weight: 600;
  color: #fff;
  margin-bottom: 35px;
}

.new-house-button-wrap {
  text-align: center;
}

/* リフォームについてはご相談ください */
.reform-contact-banner {
  background-image: url(../../assets/image/plan_promote_banner.png);
  height: 400px;
  text-align: center;
  padding: 40px 0px 30px;
  background-repeat: no-repeat;
  margin: auto;
  background-size: cover;
  background-position: center;
  width: 100%;
  border-radius: 40px;
}

.reform-contact-banner h3 {
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 35px;
}

.reform-button-wrap {
  text-align: center;
  margin: 80px auto;
}

.reform-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 640px;
  height: 128px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #fc6076 0%, #ff9a44 100%);
  color: white;
  font-size: 40px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  position: relative;
}

.reform-button::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-40%) rotate(45deg);
  z-index: 2;
}

.reform-button:hover {
  opacity: 0.85;
}

.reform-button:hover::before {
  opacity: 1;
}

.reform-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: 10px;
}

.reform-button span {
  z-index: 2;
}

@media screen and (max-width: 1024px) {
  /* メインビジュアル */
  .top-mainvisual {
    height: 550px;
  }

  .top-mainvisual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center; /* 中央より右側を見せる */
  }

  .top-mainvisual-title-one {
    font-size: 32px;
  }

  .top-mainvisual-title-two {
    font-size: 16px;
  }

  .top-mainvisual-title {
    top: 0%;
    left: 10%;
  }

  .top-mainvisual-box-red {
    background-color: #d94747;
    top: 6%;
    left: 8%;
    width: 320px;
    height: 210px;
  }

  .top-mainvisual-box-white {
    display: none;
  }

  /* メインビジュアル下タイトル */
  .top-center-title {
    margin: 10px auto 20px;
  }

  .top-center-title h2 {
    font-size: 18px;
  }

  /* コンセプト */
  .top-concept-image {
    max-width: 400px;
  }

  .top-concept {
    /* padding: 50px; */
    margin-bottom: 0px;
    z-index: 2;
  }

  .top-concept-image-area {
    z-index: 1;
    position: relative;
    left: auto;
    transform: none;
  }

  .top-concept-image-area img {
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: none;
    left: auto;
  }

  .top-concept-text-box {
    padding: 40px 30px 40px 10px;
    width: 100%;
  }

  .top-concept-lead {
    margin: 0px 0px 20px 20px;
  }

  .top-concept-description {
    padding-right: 100px;
    margin: auto 0px 0px 20px;
    padding: 0;
  }

  /* 事業内容バナー */
  .top-business-content {
    background-image: url(../../assets/image/top_business_content_sp.png);
    margin: 20px 0px 50px;
    z-index: 1;
    height: auto;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0px 70px;
  }

  .top-business-content-box {
    flex-direction: column;
    gap: 0px;
    height: auto;
  }

  .top-business-content-button {
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
  }

  .top-business-content-left {
    display: contents;
  }

  .top-business-content-title {
    width: 100%;
  }

  .top-business-content-button {
    order: 2;
    padding: 0px;
    margin: 0px auto;
    justify-content: center;
  }

  .top-business-content-text {
    width: 90%;
    margin: 0px auto 60px;
    order: 1;
  }

  .top-business-content-text p {
    font-size: 18px;
    font-weight: 300;
  }

  .top-business-content-text-one {
    margin-bottom: 0px;
  }

  .top-business-content-title {
    margin-bottom: 20px;
  }

  /* 施工事例 */
  .construction-example-button-green-box {
    width: 90%;
    margin: 0px auto auto;
  }

  .business-content-button-green {
    margin-bottom: 70px;
  }
  /* ケイズの住まいづくり */
  .top-building-home {
    height: auto;
    padding: 50px 0px 50px;
    margin-bottom: 70px;
    background-size: cover;
  }

  .top-building-home-title {
    width: 100%;
    margin-bottom: 30px;
  }

  .top-building-home .heading-container {
    width: 100%;
  }

  .top-building-home .rays {
    right: 35%;
  }

  .top-building-home-title img {
    width: 40%;
    min-width: 280px;
  }

  .top-building-home-text {
    width: 90%;
    margin: auto auto 65px;
  }

  .top-building-home-box {
    display: block;
  }

  .rounded-button-red {
    /* min-width: 350px; */
    width: 70%;
    padding: 18.5px 0px 18.5px;
  }

  .top-business-content-button-red {
    width: 100%;
    justify-content: center;
    z-index: 1000;
    text-align: center;
    margin: auto auto 30px;
  }

  .top-business-content-button-red-two {
    width: 100%;
    justify-content: center;
    z-index: 1000;
    margin: auto;
    text-align: center;
  }

  /* お役立ち情報 */
  .useful-information {
    width: 100%;
    margin: 30px auto;
  }

  .useful-information-title {
    margin-bottom: 20px;
  }

  .useful-information-title img {
    width: 328px;
  }

  .useful-information-stripe {
    display: block;
  }

  .useful-information-text-item {
    margin-bottom: 30px;
  }

  .useful-information-stripe-item {
    width: auto;
  }

  .reform-tiem .heading-container {
    width: 100%;
  }

  .reform-tiem .small-rays {
    right: 35%;
  }

  /* 他にもプランをご用意しております */
  .plan-promote {
    margin: auto auto 50px;
    width: 95%;
    min-width: auto;
  }

  .plan-promote-title h2 {
    margin-bottom: 30px;
  }

  .reform-button-wrap {
    margin: 30px auto;
  }

  .plan-promote-banner p {
    padding: 0px 10px;
    margin: 0 20px;
  }

  .new-house-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 80px;
  }

  .plan-promote-banner {
    height: auto;
    padding: 40px 0px;
    background-size: cover;
    border-radius: 30px;
    margin: 20px auto;
  }

  .new-house-button {
    width: 90%;
    max-width: 400px;
    height: 60px;
  }

  .new-house-button::after {
    width: 10px;
    right: 20px;
  }

  .new-house-button-wrap {
    text-align: center;
  }

  /* リフォームについてはご相談ください */
  .reform-button {
    width: 90%;
  }
}

@media screen and (max-width: 768px) {
  /* メインビジュアル */
  .top-mainvisual {
    height: auto;
  }

  /* .top-mainvisual-title,
  .top-mainvisual-box-red,
  .top-mainvisual-box-white {
    display: none;
  } */

  .top-mainvisual-image {
    width: 100%;
    height: 500px;
    overflow-x: hidden;
  }

  .top-mainvisual-image img {
    object-position: 90% center;
  }

  /* メインビジュアル（事業内容~） */
  .mainvisual-image-pc {
    display: none;
  }

  .mainvisual-image-sp {
    display: block;
  }

  .mainvisual-title {
    width: 80%;
    text-align: center;
  }

  .mainvisual-title-background {
    width: 90%;
  }

  /* リフォームについてはご相談ください */
  .reform-contact-banner {
    height: auto;
  }

  .reform-contact-banner h3 {
    font-size: 20px;
    width: 90%;
    margin: auto auto 30px;
  }

  .reform-button {
    font-size: 18px;
    height: 80px;
  }
}
