/* Shared corporate footer. Content determines height; spacing stays consistent. */
.site-footer {
  box-sizing: border-box;
  display: block;
  min-height: 0;
  padding: 32px clamp(22px, 5vw, 96px) 24px;
  border: 0;
  background: #272421;
  color: #f7f2e8;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 13px;
  line-height: 1.8;
}

.footer-inner {
  width: min(1360px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 560px);
  gap: 12px 40px;
  align-items: start;
}

.footer-brand {
  min-width: 0;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  vertical-align: top;
}

.footer-logo-image {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  margin: 0;
  filter: grayscale(1) invert(1) brightness(1.28) contrast(0.88);
}

.footer-brand p,
.site-footer .copyright {
  margin: 12px 0 0;
  color: rgba(247, 242, 232, 0.68);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px 24px;
  min-width: 0;
  color: rgba(247, 242, 232, 0.78);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: #fffefb;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-footer a:focus-visible {
  outline: 2px solid #fffefb;
  outline-offset: 4px;
}

.site-footer .copyright {
  grid-column: 2;
  justify-self: end;
  margin: 0;
  text-align: right;
}

@media (max-width: 900px) {
  .site-footer {
    padding-block: 28px 20px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .footer-nav {
    justify-content: flex-start;
    column-gap: 20px;
  }

  .site-footer .copyright {
    grid-column: auto;
    justify-self: start;
    text-align: left;
  }
}
