/* Shared footer styles are independent of each page's theme. */
body footer.preserved-footer, body footer.preserved-footer * { box-sizing: border-box; }
body footer.preserved-footer :where(div,p,a,span,img) { margin: 0; padding: 0; border: 0; font: inherit; color: inherit; letter-spacing: inherit; }
/* One footer presentation, preserving the established full-width wordmark and badges. */
body footer.preserved-footer {
  --gallery-gutter: clamp(18px,1.39vw,32px);
  --panel-gutter: clamp(28px,4.4vw,84px);
  --panel-cell: clamp(32px,3.2vw,60px);
  --dark-line: rgba(245,245,246,.23);
  --graphite: #3c3c3c;
  --on-dark: #f5f5f6;
  --accent: #bf012d;
  --font-body: "Gen Interface JP", "Noto Sans JP", sans-serif;
  --site-font-latin: "DM Sans", sans-serif;
  width: 100%; text-align: left; letter-spacing: normal;
  margin: 0; padding: 0; border-top: 1px solid var(--dark-line);
  background: var(--graphite); color: var(--on-dark); font: 400 16px/1.75 var(--font-body);
}
body footer.preserved-footer :is(p,figure) { margin: 0; }
body footer.preserved-footer a { color: inherit; text-decoration: none; }
body footer.preserved-footer img { display: block; max-width: 100%; object-fit: contain; }
body footer.preserved-footer .footer-top { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
body footer.preserved-footer .footer-about { min-width: 0; padding: 64px var(--panel-gutter) 72px; border-right: 1px solid var(--dark-line); }
body footer.preserved-footer .footer-brand { width: min(100%,440px); margin-bottom: 28px; }
body footer.preserved-footer .footer-brand img { width: 100%; height: auto; }
body footer.preserved-footer .footer-about > p { max-width: 38em; font-size: 16px; line-height: 1.9; }
body footer.preserved-footer .footer-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin: 40px 0; }
body footer.preserved-footer .footer-badges img { flex: 0 0 auto; width: 86px; height: 86px; }
body footer.preserved-footer .footer-badges img:first-child { width: 160px; height: 78px; padding: 14px 10px; border-radius: 4px; background: #fff; }
body footer.preserved-footer .footer-badges img:nth-child(3) { margin-left: -12px; }
body footer.preserved-footer .footer-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
body footer.preserved-footer .footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: 26px; padding: 72px var(--panel-cell); }
body footer.preserved-footer .footer-grid > div + div { border-left: 1px solid var(--dark-line); }
body footer.preserved-footer .footer-grid a { max-width: 100%; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; transition: opacity .2s; }
body footer.preserved-footer .footer-grid a:hover { opacity: .55; }
body footer.preserved-footer .footer-grid .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; font: 500 13px/1.7 var(--site-font-latin); letter-spacing: .04em; }
body footer.preserved-footer .eyebrow::before { content: ''; flex: 0 0 7px; height: 7px; background: var(--accent); }
body footer.preserved-footer .footer-wordmark { position: relative; display: block; container-type: inline-size; padding: 54px var(--gallery-gutter); border-top: 1px solid var(--dark-line); overflow: visible; }
body footer.preserved-footer .footer-wordmark p { width: 100%; font: 500 min(10cqw,240px)/1 var(--site-font-latin); letter-spacing: -.065em; white-space: nowrap; }
body footer.preserved-footer .footer-bottom { padding: 22px var(--gallery-gutter); border-top: 1px solid var(--dark-line); font: 400 13px/1.6 var(--site-font-latin); }


@media (max-width: 1100px) {
  body footer.preserved-footer .footer-top { grid-template-columns: minmax(0,1fr); }
  body footer.preserved-footer .footer-about { border-right: 0; border-bottom: 1px solid var(--dark-line); }
}
@media (max-width: 760px) {
  body footer.preserved-footer .footer-about { padding-block: 48px; }
  body footer.preserved-footer .footer-brand { width: min(100%,380px); }
  body footer.preserved-footer .footer-badges { gap: 18px; }
  body footer.preserved-footer .footer-badges img { width: 76px; height: 76px; }
  body footer.preserved-footer .footer-badges img:first-child { width: 140px; height: 65px; padding: 10px 9px; }
  body footer.preserved-footer .footer-grid { grid-template-columns: minmax(0,1fr); }
  body footer.preserved-footer .footer-grid > div { padding-block: 44px; }
  body footer.preserved-footer .footer-grid > div:first-child { border-bottom: 1px solid var(--dark-line); }
  body footer.preserved-footer .footer-grid > div + div { border-left: 0; }
  body footer.preserved-footer .footer-grid .eyebrow { margin-bottom: 16px; }
  body footer.preserved-footer .footer-wordmark { padding-block: 40px; }
  body footer.preserved-footer .footer-bottom { padding-block: 20px; font-size: 11px; }
}
@media (max-width: 400px) {
  body footer.preserved-footer .footer-badges { gap: 12px; }
}

body footer.preserved-footer .footer-guideline {
  display: inline-flex; align-items: stretch; justify-content: space-between;
  min-height: 52px; max-width: 100%; overflow: hidden;
  border: 1px solid currentColor; border-radius: 0;
  background: transparent; color: inherit; font: 500 16px/1.3 var(--font-body);
}
body footer.preserved-footer .footer-guideline .button-text { display: flex; align-items: center; padding: 13px 16px; }
body footer.preserved-footer .footer-guideline .button-icon { display: grid; place-items: center; flex: 0 0 52px; border-left: 1px solid currentColor; font: 400 21px/1 var(--site-font-latin); }
body footer.preserved-footer .footer-guideline:is(:hover,:focus-visible) { background: var(--on-dark); color: var(--graphite); }
body footer.preserved-footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
@media (prefers-reduced-motion: reduce) { body footer.preserved-footer a { transition: none; } }
