/* 全体 */

body.housing {
  background-color: #ffffff;
}
body.housing #topcont {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
}
body.housing .p-housing-shift__title ,
body.housing .p-housing-feature__title ,
body.housing .p-housing-reasons__title ,
body.housing .p-housing-proof__title {
  color: #00458E;
  font-weight: 700;
  font-size: 4rem;
  line-height: 1.5;
  text-align: center;
}

.p-housing-inner {
  box-sizing: border-box;
  container-type: inline-size;
  container-name: housing-inner;
  width: 100%;
  max-width: 128rem;
  margin-right: auto;
  margin-left: auto;
}
.p-housing-lead {
  margin-top: 4rem;
  color: #1E1E1E;
  font-size: 1.8rem;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 6rem;
}
.p-housing-shift,
.p-housing-feature,
.p-housing-reasons,
.p-housing-proof {
  padding-top: 12rem;
  padding-bottom: 12rem;
}

/* mv */

body.housing .p-home-mv {
  background-image: url("/bx/asset/img/industry/housing_equipment_building_materials/mv_bg.jpg");
}
body.housing .p-home-mv .p-home-mv__title {
  color: #ffffff;
  font-weight: 700;
  font-size: 5.2rem;
  line-height: 1.5;
  text-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.95);

}
body.housing .p-home-mv .p-home-mv__lead {
  color: #ffffff;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.5;
  text-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.9);
}
body.housing .p-home-mv .p-home-mv__scroll-text {
  color: #ffffff;
}
body.housing .p-home-mv .p-home-mv__scroll-line::before {
  background-color: #ffffff;
}
@media screen and (min-width: 768px) {
  body.housing .p-home-mv .p-home-mv__inner {
    padding-bottom: 9.6rem;
  }
  body.housing .p-home-mv .p-home-mv__content {
    transform: translateY(4.8rem);
  }
}

/* shift */

.p-housing-shift__flow-container {
  max-width: 120rem;
  margin: 0 auto;
}

.p-housing-shift__problems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.p-housing-shift__flow-arrow {
  width: 8rem;
  height: 3rem;
  background-color: #e6e6e6;
  margin: 2rem auto;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.p-housing-shift__problem-item {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-housing-shift__problem-box {
  background-color: #f6f6f6;
  padding: 1.6rem;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.p-housing-shift__problem-title {
  font-size: 2rem;
  font-weight: bold;
  color: #1e1e1e;
  text-align: center;
  margin-bottom: 2rem;
}

.p-housing-shift__problem-text {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #1e1e1e;
  text-align: center;
}

.p-housing-shift__problem-image-wrapper {
  width: 100%;
  max-width: 40rem;
  margin-top: auto; 
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.p-housing-shift__problem-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.p-housing-shift__solution {
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(58, 151, 187, 1) 20%,
      rgba(0, 102, 204, 1) 50%,
      rgba(58, 151, 187, 1) 80%,
      rgba(255, 255, 255, 0) 100%
    );
  color: #ffffff;
  text-align: center;
  padding: 1.6rem 2rem;
}

.p-housing-shift__solution-lead {
  font-size: 2rem;
  margin: 0 0 1rem 0;
  letter-spacing: 0.05em;
}

.p-housing-shift__solution-title {
  font-size: 3.2rem;
  font-weight: bold;
  margin: 0;
}

@media (max-width: 768px) {
  .p-housing-shift__problems {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .p-housing-shift__problem-item:first-child .p-housing-shift__flow-arrow {
    display: none;
  }
  .p-housing-shift__problem-title {
    font-size: 1.8rem;
  }
  .p-housing-shift__problem-text {
    font-size: 1.4rem;
    text-align: left;
  }
  .p-housing-shift__solution-lead {
    font-size: 1.4rem;
  }
  .p-housing-shift__solution-title {
    font-size: 1.8rem;
    line-height: 1.4;
  }
  .p-housing-shift__solution {
    background: linear-gradient(
      to right,
      #FFFFFF 0%,
      #3A97BB 5%,
      #0066CC 48%,
      #3A97BB 95%,
      #FFFFFF 100%
    );
    margin: 0 -2rem;
  }
}
  



/* feature */

.p-housing-feature {
  background-image: url("/bx/asset/img/industry/housing_equipment_building_materials/feature_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
  
.p-housing-feature__main-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 6rem;
}

.p-housing-feature__card {
  background-color: #ffffff;
  padding: 1.6rem 2rem;
  display: flex;
  flex-direction: column;
}
  
.p-housing-feature__card-header {
  background: linear-gradient(90deg, #0067AA 0%, #0085CC 100%);
  color: #ffffff;
  padding: 0.8rem 2.4rem;
  text-align: center;
}

.p-housing-feature__card-title {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.5;
  margin: 0;
}

.p-housing-feature__card-body {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.p-housing-feature__card-theme {
  font-size: 1.4rem;
  font-weight: bold;
  color: #5e5e5e;
  background-color: #f6f6f6;
  text-align: center;
  padding: 0.4rem 2rem;
  display: inline-block;
  margin: 0 auto 2rem auto;
  border-radius: 1.2rem;
}

.p-housing-feature__card-lead {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #1e1e1e;
  margin: 0 0 2.5rem 0;
}
  
.p-housing-feature__image-box {
  width: 100%;
  height: 22rem;
  margin: auto 0 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-housing-feature__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.p-housing-feature__info-area {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 左右に50%ずつ横並び */
  gap: 2rem; /* グレー枠と緑枠の間の余白 */
  width: 100%;
  box-sizing: border-box;
}

.p-housing-feature__info-box {
  padding: 2rem;
  box-sizing: border-box;
  border-radius: 0.4rem;
}

.p-housing-feature__info-box--gray {
  background-color: #f7f7f7;
  align-self: flex-start; 
}

.p-housing-feature__info-box--green {
  background-color: #ebf6f1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.p-housing-feature__expect-box {
  background-color: #ffffff;
  padding: 1.5rem;
  box-sizing: border-box;
  border-radius: 0.2rem;
}

.p-housing-feature__info-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0 0 1rem 0;
}

.p-housing-feature__info-title--problem {
  color: #5e5e5e;
}
.p-housing-feature__info-title--support,
.p-housing-feature__info-title--expect {
  color: #1D684C;
}

.p-housing-feature__info-list {
  margin: 0;
  padding-left: 1.8rem;
  list-style-type: disc;
}

.p-housing-feature__info-list li {
  font-size: 1.4rem;
  line-height: 1.5;
  color: #1e1e1e;
}

.p-housing-feature__info-list li:last-child {
  margin-bottom: 0;
}

.p-housing-feature__sub-title {
  font-size: 2.8rem;
  font-weight: bold;
  text-align: center;
  color: #0A0F2B;
  margin: 6rem 0 3rem 0;
}

.p-housing-feature__support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.p-housing-feature__support-item {
  background-color: #fdfdfd;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.p-housing-feature__support-icon {
  width: 10.7rem;
  flex-shrink: 0;
}

.p-housing-feature__support-icon img {
  width: 100%;
  height: auto;
}

.p-housing-feature__support-title {
  font-size: 2rem;
  font-weight: bold;
  color: #1e1e1e;
  margin: 0 0 1rem 0;
}

.p-housing-feature__support-text {
  font-size: 1.4rem;
  line-height: 1.5;
  color: #1e1e1e;
  margin: 0;
}
.p-housing-feature__action {
  text-align: center;
}
    
@media (max-width: 768px) {
  .p-housing-feature {
    background-image: url("/bx/asset/img/industry/housing_equipment_building_materials/feature_bg_sp.jpg");
  }
  .p-housing-lead {
    margin-bottom: 2rem
  }
  .p-housing-feature__info-area {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .p-housing-feature__support-grid {
    grid-template-columns: 1fr;
  }
  .p-housing-feature__main-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .p-housing-feature__card {
    margin: 0 -2rem;
    padding: 2rem;
  }
  .p-housing-feature__card-title {
    font-size: 1.6rem;
  }
  .p-housing-feature__sub-title {
    font-size: 2rem;
  }
  .p-housing-feature__support-icon {
    width: 7.8rem;
  }
  .p-housing-feature__support-item {
    padding: 1.2rem;
  }
  .p-housing-feature__card-theme {
    font-size: 1.2rem;
  }
  .p-housing-feature__support-title {
    font-size: 1.8rem;
  }
}
  




/* reasons */

.p-housing-reasons__list {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  margin: 6rem auto 0;
  max-width: 77.5rem;
}
.p-housing-reasons__item {
  display: flex;
  flex-direction: row;
  gap: 4rem;
}
.p-housing-reasons__item-number {
  flex-shrink: 0;

  width: 11.3rem;
  height: 11.3rem;
  
  background-color: #0066cc;
  color: #ffffff;
  
  border-radius: 50%;
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  font-size: 3.6rem;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
}
.p-housing-reasons__item-content {
  max-width: 62.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.p-housing-reasons__item-title {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.p-housing-reasons__item-text {
  font-size: 1.8rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .p-housing-reasons__list {
    gap: 3rem;
  }
  .p-housing-reasons__item {
    flex-direction: column;
    align-items: center;
    width: auto;
    gap: 2rem;
  }
  .p-housing-reasons__item-number {
    font-size: 1.6rem;
    width: 5rem;
    height: 5rem;
  }
  .p-housing-reasons__item-title {
    font-size: 1.8rem;
  }
  .p-housing-reasons__item-text {
    font-size: 1.4rem;
    line-height: 1.3;
  }
}



/* proof */

.p-housing-proof{
  background-color: #EBEEFC;
}

.p-housing-proof__title {
  margin-bottom:6rem;
}

.p-housing-proof__item {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  margin:0 auto 4.8rem;
  width: 97rem;
}

.p-housing-proof__image-wrapper {
  flex: 0 0 45.3rem;
  background-color: #b3b3b3;
  aspect-ratio: 453 / 373;
  border-radius: 0.4rem;
  overflow: hidden;
}

.p-housing-proof__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
  
.p-housing-proof__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.p-housing-proof__sub-label {
  font-size: 1.6rem;
  font-weight: bold;
  color: #5e5e5e;
  margin-bottom: 1rem;
}

.p-housing-proof__item-title {
  font-size: 2rem;
  font-weight: bold;
  color: #1e1e1e;
  margin: 0 0 2rem 0;
}

.p-housing-proof__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.p-housing-proof__tag {
  background-color: #ffffff;
  color: #5e5e5e;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 0.4rem 1.2rem;
  border-radius: 1.2rem;
}

.p-housing-proof__tag-etc {
  font-size: 1.4rem;
  color: #5e5e5e;
}

.p-housing-proof__info-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.p-housing-proof__info-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.p-housing-proof__badge {
  font-size: 1.4rem;
  font-weight: bold;
  padding: 0.2rem 0.8rem;
}

.p-housing-proof__badge--problem {
  background-color: #D4DAF7;
  color: #00458E;
}

.p-housing-proof__badge--support {
  background-color: #CAEBDE;
  color: #1D684C; 
}

.p-housing-proof__badge--effect {
  background-color: #CAEBDE;
  color: #1D684C;
}

.p-housing-proof__text {
  font-size: 1.6rem;
  color: #1e1e1e;
  margin: 0;
  line-height: 1.5;
}

.p-housing-proof__link-wrapper {
  margin-top: auto;
  text-align: right;
}

.p-housing-proof__link {
  font-size: 1.6rem;
  color: #7030A0;
  text-decoration: none;
  font-weight: bold;
}

.p-housing-proof__link:hover {
  text-decoration: underline;
}
  
@media (max-width: 768px) {
  .p-housing-proof__item {
    width: auto;
    flex-direction: column;
    align-items: center;
  }
  .p-housing-proof__image-wrapper {
    flex: 0 0 100%;
    width: 100%;
  }
  .p-housing-proof__content {
    width: 100%;
  }
  .p-housing-proof__sub-label {
    font-size: 1.2rem;
  }
  .p-housing-proof__item-title {
    font-size: 1.8rem;
  }
  .p-housing-proof__tag {
    font-size: 1.2rem;
  }
  .p-housing-proof__tag-etc {
    font-size: 1.2rem;
  }
  .p-housing-proof__badge {
    font-size: 1.2rem;
  }
  .p-housing-proof__text {
    font-size: 1.4rem;
  }
  
}
  


/* cta */

.p-housing-cta {
  display: flex;
  align-items: center;
  gap:2rem;
  margin-top: 6rem;
}
.p-housing-cta__btn {
  flex: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 34rem;
  padding: 1.6rem 5.6rem 1.6rem;
  border-radius: 4rem;
  background-color: #7030a0;
  color: #fff;
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.5;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.p-housing-cta__btn::after {
  content: "";
  position: relative;
  top: 0.4rem;
  left: 1rem;
  width: 0.8rem;
  height: 0.8rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: all 0.2s ease; 
}
.p-housing-cta__btn:hover::after {
  left:1.5rem;
}
.p-housing-cta__text {
  color: #4d271e;
  margin-top: 1.8rem;
  font-size: 1.4rem;
  font-weight: normal;
  line-height: 1.5;
  text-align: center;
}

/* message */

.p-housing-message {
  padding-top: 12rem;
  padding-right: 5rem;
  padding-bottom: 12rem;
  padding-left: 5rem;
  text-align: center; 
}
.p-housing-section--dark {
  background: #333333;
  color: #fff;
}
.p-housing-message .p-housing-section__body {
  margin-top: 2.4rem;
}
.p-housing-message__title {
  color: #ffffff;
  font-weight: 700;
  font-size: 4rem;
  line-height: 1.5;
}
.p-housing-message__action {
  display: flex;
  justify-content: center;
  margin-top: 6rem;
}
.p-housing-message__btn {
  width: 28rem;
  flex: none;
}
@media screen and (max-width: 767.98px) {
  .p-housing-message {
    padding: 6rem 1.5rem;
  }
  .p-housing-message__title {
    font-size: 2rem;
  }
  .p-housing-message__action {
    margin-top: 4rem;
  }
}

[data-fade-up] {
  opacity: 0;
  transform: translateY(5rem);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
[data-fade-up][data-fade-offset="small"] {
  transform: translateY(2rem);
}
[data-fade-up].is-show {
  opacity: 1;
  transform: translateY(0);
}
@media screen and (min-width: 768px) {
  body.housing .p-housing-heading__pc {
      display: block;
      white-space: nowrap;
  }
}

@media screen and (max-width: 767.98px) {
  body.housing .p-home-mv {
    background-image: url("/bx/asset/img/industry/housing_equipment_building_materials/mv_bg_sp.jpg");
    /* 画面高さ基準だと縦横比によって崩れるため、SPはコンテンツ量に応じた高さにする */
    height: auto;
    min-height: 0;
  }
  body.housing .p-home-mv .p-home-mv__inner {
    flex: 0 0 auto;
    height: auto;
    padding-top: 4rem;
  }
  body.housing .p-home-mv .p-home-mv__title {
    font-size: 2rem;
    letter-spacing: 0;
  }
  body.housing .p-home-mv .p-home-mv__lead {
    font-size: 1.4rem;
  }
  body.housing .p-home-mv .p-housing-cta {
    flex-direction: column;
    margin: 4rem auto 0;
  }
.p-housing-cta__label {
  font-size: 1.6rem;
}
.p-housing-cta__label-text {
  font-size: 1.4rem;
}
.p-housing-cta__btn {
  min-width: 0;
  width: 80%;
  max-width: 34rem;
  font-size: 1.6rem;
}
.p-housing-cta__text {
  font-size: 1.05rem;
}
.p-housing-inner {
  padding-right: 2rem;
  padding-left: 2rem;
}
.p-housing-lead {
  margin-top: 1.6rem;
  font-size: 1.6rem;
  text-align: left;
}
body.housing .p-housing-shift__title ,
body.housing .p-housing-feature__title ,
body.housing .p-housing-reasons__title,
body.housing .p-housing-proof__title {
  letter-spacing: 0;
  font-size: 2rem;
  text-align: left;
}
body.housing .p-housing-heading__pc {
  display: contents;
}
body.housing .p-housing-heading__line {
  display: block;
  white-space: nowrap;
}
.p-housing-shift,
.p-housing-feature,
.p-housing-reasons,
.p-housing-proof {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
@media screen and (max-width: 767px) {
  /* 親の親：画面外へのはみ出しによるスクロールバーの発生を防ぐ */
  .card-container {
    width: 100%;
    overflow: hidden; 
  }

}
}
.p-housing-proof {
  display: none;
}