@charset "UTF-8";

.public__inner,
.apartment__inner {
  max-width: 1048px;
  margin: 0 auto 96px;
  padding-inline: 24px;
}

.public__title,
.apartment__title {
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-bottom: 48px;
  position: relative;
}

.public__title img,
.apartment__title img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public__title-text,
.apartment__title-text {
  position: absolute;
  font-size: 24px;
  font-weight: bold;
  color: #2a2a2a;
  writing-mode: vertical-rl;
  font-feature-settings: normal;
  padding: 24px 32px 24px 16px;
  background-color: #fff;
  letter-spacing: 0.05rem;
}

.public__title-text {
  top: 0;
  right: 0;
}

.apartment__title-text {
  top: 0;
  left: 0;
}

.public__title-text span,
.apartment__title-text span {
  border-right: 8px solid #E60012;
}

.public__text,
.apartment__text {
  font-size: 16px;
  line-height: normal;
  letter-spacing: 0.05em;
  color: #2a2a2a;
}

.project {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 360px));
  gap: 64px;
  margin-bottom: 96px;
}

.project:nth-of-type(odd) {
  justify-content: right;
}

.apartment .project:nth-of-type(odd) {
  justify-content: left;
}

.apartment .project:nth-of-type(even) {
  justify-content: right;
}

.project__item {
  max-width: 360px;
}

.project__img {
  width: 100%;
  max-width: 360px;
  height: auto;
  overflow: hidden;
  margin-bottom: 24px;
}

.project__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project__body {
  padding-inline: 24px 14px;
}

.project__data {
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0.05em;
  color: #2a2a2a;
}

.project__title {
  font-size: 16px;
  font-weight: bold;
  line-height: normal;
  letter-spacing: 0.05em;
  color: #2a2a2a;
  margin-bottom: 24px;
}

.project__text {
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0.05em;
  color: #2a2a2a;
}

.service-contact {
  display: flex;
  margin-bottom: 120px;
}

.service-contact__info {
  width: calc((630 / 1400) * 100%);
  background-color: #E60012;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.service-contact__info-inner {
  max-width: 340px;
}

.service-contact__title {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.05rem;
  margin-bottom: 10px;
}

.service-contact__text {
  font-size: 14px;
  letter-spacing: 0.05rem;
  line-height: normal;
}

.service-contact__links {
  width: calc((770 / 1400) * 100%);
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
}

.service-contact__tel {
  width: calc((417 / 770) * 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-contact__tel-text,
.service-contact__form-text,
.service-contact__form-link {
  font-size: 16px;
  font-weight: bold;
  line-height: 28.8px;
}

.service-contact__tel-number {
  font-size: 30px;
  font-weight: bold;
  line-height: 54px;
}

.service-contact__form {
  width: calc((353 / 770) * 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-left: 1px solid #E60012;
}

.service-contact__form-link {
  display: block;
  padding: 10px 30px;
  background-color: #fff;
  border: 1px solid #000;
  margin-top: 10px;
}


@media screen and (max-width: 767px) {

  .project {
    grid-template-columns: repeat(1, minmax(0, 100%));
    padding-inline: 24px;
  }

  .project__item {
    max-width: 100%;
    width: 100%;
  }

  .project__img {
    max-width: 100%;
  }

  .service-contact {
    display: flex;
    flex-direction: column;
  }

  .service-contact__info {
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
  }


  .service-contact__links {
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
    flex-direction: column;
  }

  .service-contact__tel {
    width: 80%;
    padding-bottom: 20px;
  }

  .service-contact__form {
    width: 60%;
    padding-top: 20px;
    border-left: none;
    border-top: 1px solid #E60012;
  }
}