.site-footer,
.reference-home .site-footer {
  position: relative;
  padding-bottom: calc(15vw + 28px);
}

@media (min-width: 1051px) {
  .site-footer { grid-template-columns: 150px minmax(0, 1fr) 235px; }
}

.site-footer::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100vw;
  height: 15vw;
  transform: translateX(-50%);
  background: url("assets/katsushika-skyline-orange.png") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.site-footer .footer-contact .footer-provider-details {
  grid-column: 1 / -1;
  padding-bottom: 14px;
  border-bottom: 1px solid #e7d4b8;
}

.site-footer .footer-provider-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 12px 24px;
}

.site-footer .footer-company {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.site-footer .footer-company span { white-space: nowrap; }

.site-footer .footer-company a {
  color: #7a664f;
  font-size: 11px;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .footer-company a:hover { color: #b84b00; }

@media (max-width: 800px) {
  .site-footer .footer-provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .site-footer .footer-provider-grid { grid-template-columns: 1fr; gap: 8px; }
  .site-footer .footer-company { justify-content: flex-start; gap: 18px; }
}

@media (max-width: 600px) {
  .site-footer,
  .reference-home .site-footer {
    padding-bottom: 143px;
  }

  .site-footer .footer-contact {
    order: -1;
  }

  .site-footer > a[aria-label="えんがわ ホーム"] {
    justify-self: center;
  }

  .site-footer::before {
    height: 118px;
    background-size: auto 118px;
    background-position: 28% bottom;
  }
}
