@charset "utf-8";

/* ====================================================
building 共通
==================================================== */

.building-list .contents-wrapper,
.building-detail .contents-wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0 80px;
  padding-bottom: 100px;
  border-radius: 36px;
  background: #fff;
}

figure img {
  border-radius: 0;
}

.breadcrumb ul li:nth-child(2) a::after {
  display: none;
}

/* ====================================================
building一覧 building-list
==================================================== */

.building-list .contents__head {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  background: url(../img/building/building__head__illust.svg) no-repeat right;
  background-size: 48%;
}

.building-list .contents__head h1 {
  font-size: var(--fs-42);
  text-align: left;
}

.building-list .contents__head h1 span {
  color: var(--c-blue);
}

.breadcrumb ul {
  justify-content: flex-start;
}

.building-list .contents-wrapper {
  max-width: 1200px;
}

.building-list .contents-wrap {
  display: flex;
  justify-content: space-between;
  margin: 0 auto 180px;

  gap: 30px;
}

.building-list .contents-wrap:nth-child(2) {
  flex-direction: row-reverse;
}

.building-list .contents-wrap:nth-child(3) {
  margin-bottom: 0;
}

.building-list .contents-wrap .catch {
  position: absolute;
  z-index: 2;
  margin: 20px 0 26px;
}
.building-list .contents-wrap .catch.sustainability {
  width: 58%;
  max-width: 835px;
}
.building-list .contents-wrap .catch.one-stop {
  width: 38%;
  max-width: 528px;
}
.building-list .contents-wrap .catch.community {
  width: 46%;
  max-width: 664px;
}

.building-list .contents-wrap .catch img {
  border-radius: 0;
}

.building-list .contents-wrap .text_area {
  width: 42%;
  max-width: 520px;
  padding-top: 140px;
}

.building-list .contents-wrap .text_area .ttl_area {
  position: relative;
  margin-bottom: 42px;
}

.building-list .contents-wrap .text_area .ttl_area h2 {
  margin-bottom: 8px;
  font-size: var(--fs-42);
  letter-spacing: 0.3rem;
  line-height: 1.3;
}

.building-list .contents-wrap .text_area .ttl_area span {
  font-size: var(--fs-17);
  font-weight: bold;
  color: #759771;
}

.building-list .contents-wrap .text_area p {
  margin-bottom: 30px;
  line-height: 1.8;
}

.building-list .contents-wrap .img_area {
  width: 50%;
  max-width: 560px;
}

@media screen and (max-width: 767px) {
  .building-list .contents__head {
    background: none;
  }
  .building-list .contents__head h1 {
    font-size: var(--fs-26);
    text-align: center;
    letter-spacing: 0.2rem;
    padding-bottom: 4px;
  }

  .breadcrumb ul {
    justify-content: center;
  }
  .building-list .contents-wrapper {
    padding: 0 0 60px;
  }
  .building-list .contents-wrap {
    flex-direction: column;
    margin: 0 auto 70px;
  }
  .building-list .contents-wrap:nth-child(2) {
    flex-direction: column;
  }
  .building-list .contents-wrap .text_area .ttl_area h2 {
    font-size: var(--fs-38);
  }
  .building-list .contents-wrap .text_area {
    width: 100%;
    max-width: 100%;
    order: 3;
    padding-top: 0;
  }
  .building-list .contents-wrap .img_area {
    width: 100%;
    order: 1;
    margin: 0 auto;
  }
  .building-list .contents-wrap .catch {
    position: static;
    order: 2;
    margin-bottom: 0;
  }
  .building-list .contents-wrap .catch.sustainability {
    width: 76%;
    max-width: 76%;
  }
  .building-list .contents-wrap .catch.one-stop {
    width: 48%;
    max-width: 48%;
  }
  .building-list .contents-wrap .catch.community {
    width: 60%;
    max-width: 60%;
  }
}

/* ====================================================
building-detail 共通
==================================================== */
.building-detail .contents__head {
  position: relative;
  margin-left: auto;
  padding-top: 0;
  padding-bottom: 0;
}

.building-detail .contents__head__bg {
  width: 68%;
  max-height: 360px;
  aspect-ratio: 972 / 360;
  margin-left: auto;
  border-radius: 24px 0 0 24px;
}

.sustainability .contents__head__bg {
  background: url(../img/building/sustainability_ttl_img.webp) no-repeat center right / cover;
}
.one-stop .contents__head__bg {
  background: url(../img/building/one-stop_ttl_img.webp) no-repeat center right / cover;
}
.community .contents__head__bg {
  background: url(../img/building/community_ttl_img.webp) no-repeat center right / cover;
}

.building-detail .contents__head .head__illust {
  position: absolute;
  right: 5%;
  bottom: -150px;
  max-width: 323px;
  width: 24%;
}

.building-detail .contents__head .main_catch {
  margin-bottom: 56px;
}

.sustainability .contents__head .main_catch {
  max-width: 716px;
}
.one-stop .contents__head .main_catch {
  max-width: 453px;
}
.sustainability .contents__head .main_catch {
  max-width: 569px;
}

.building-detail .contents__head .mainttl_area {
  margin-left: 5%;
  position: absolute;
  top: 42%;
}

.building-detail .contents__head .mainttl_area .breadcrumb ul {
  justify-content: left;
}

.building-detail .contents__head .mainttl_area h1 {
  font-size: var(--fs-46);
  text-align: left;
  line-height: 1.4;
  letter-spacing: 0.2rem;
}

.building-detail .contents__head .mainttl_area .sub_copy {
  display: block;
  font-size: var(--fs-22);
  font-weight: bold;
  color: #759771;
  margin-bottom: 12px;
}

.building-detail .contents-wrapper {
  max-width: 1124px;
  padding: 221px 0 80px;
}

.building-detail .contents-wrapper .contents-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 120px;
}

.building-detail .contents-wrapper .contents-wrap:nth-child(2) {
  flex-direction: row-reverse;
}

.building-detail .contents-wrapper .contents-wrap:nth-child(3) {
  margin-bottom: 0;
}

.building-detail .contents-wrapper .img_area {
  max-width: 520px;
  width: 46%;
}

.building-detail .contents-wrapper .img_area figcaption {
  text-align: right;
  font-size: var(--fs-13);
}

.building-detail .contents-wrapper .text_area {
  max-width: 520px;
  width: 46%;
}

.building-detail .contents-wrapper .text_area .ttl_area h2 {
  margin-bottom: 20px;
  font-size: var(--fs-32);
  color: #35609d;
  line-height: 1.4;
  letter-spacing: 0.2rem;
}

.building-detail .contents-wrapper .text_area p {
  line-height: 1.8;
}

@media screen and (max-width: 1120px) {
  .building-detail .contents__head .head__illust {
    width: 28%;
    bottom: -52%;
  }
}

@media screen and (max-width: 767px) {
  .building-detail .contents__head {
    margin-bottom: 60px;
    margin-left: auto;
    border-radius: 24px 0 0 24px;
    background-size: cover;
  }
  .building-detail .contents__head__bg {
    width: 95%;
    aspect-ratio: 345 / 180;
  }

  .building-detail .contents__head .head__illust {
    position: static;
    margin-left: auto;
    margin-right: 5%;
  }

  .sustainability .contents__head .head__illust {
    width: 65%;
    margin-top: -15%;
  }

  .one-stop .contents__head .head__illust {
    width: 60%;
    margin-top: -18%;
  }

  .community .contents__head .head__illust {
    width: 68%;
    margin-top: -10%;
  }

  .building-detail .contents__head .main_catch {
    margin-bottom: 18px;
  }
  .sustainability .contents__head .main_catch {
    width: 80%;
    margin-top: 10px;
  }
  .one-stop .contents__head .main_catch {
    width: 48%;
  }
  .community .contents__head .main_catch {
    width: 60%;
  }
  .building-detail .contents__head .mainttl_area h1 {
    font-size: var(--fs-28);
  }

  .building-detail .contents__head .mainttl_area .sub_copy {
    font-size: var(--fs-18);
  }
  .building-detail .contents__head .mainttl_area {
    position: static;
    margin-left: 10%;
    margin-top: -30px;
  }
  .building-detail .contents-wrapper {
    padding: 0;
    width: 90%;
  }
  .building-detail .contents-wrapper .contents-wrap {
    flex-direction: column;
    margin-bottom: 80px;
  }
  .building-detail .contents-wrapper .contents-wrap:nth-child(2) {
    flex-direction: column;
  }
  .building-detail .contents-wrapper .img_area {
    margin-bottom: 30px;
  }
  .building-detail .contents-wrapper .img_area {
    width: 100%;
  }

  .building-detail .contents-wrapper .text_area {
    width: 100%;
  }
  .building-detail .contents-wrapper .text_area .ttl_area h2 {
    font-size: var(--fs-24);
  }
}

/* ========== モーダル ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s 0s;
}

.modal-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  margin: 0;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.modal-content {
  pointer-events: auto;
}

.modal-content img {
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 30px;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
}

.close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
