/* 共通フッター末尾：運営サイト、店印と署名、先頭へ戻る札。 */
.site-footer-base {
  position: relative;
}

.site-footer-base > [data-demo-part-id] {
  position: absolute;
  top: 0;
  left: 0;
  scroll-margin-top: 120px;
}

.site-footer:has(.footer-endcard) {
  --footer-ending-line: var(--sb-border-warm-strong);
  --footer-shop-surface: var(--sb-surface-warm);
  --footer-shop-hover: var(--sb-surface-sky);
}

.site-footer:has(.footer-endcard) .site-footer-base {
  padding-top: 32px;
  padding-bottom: 24px;
}

.footer-endcard-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.footer-endcard-heading h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.7;
}

.footer-endcard-heading p {
  margin: 0;
  color: var(--sb-text-muted);
  font-size: 13px;
  line-height: 1.8;
}

.footer-shops {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-shops li {
  min-width: 0;
}

.footer-shop {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--footer-ending-line);
  background: var(--footer-shop-surface);
  box-shadow: 4px 4px 0 var(--sb-surface-highlight);
  color: var(--sb-color-ink);
  text-decoration: none;
  transition: background-color var(--sb-control-motion), border-color var(--sb-control-motion);
}

.footer-shop-picture {
  display: grid;
  flex: 0 0 94px;
  place-items: center;
  width: 94px;
  height: 94px;
  background: var(--sb-surface-mint);
  border-radius: 50%;
}

.footer-shop-picture svg {
  width: 100px;
  height: 84px;
  overflow: visible;
  fill: none;
  stroke: var(--sb-color-blue);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-shop-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.footer-shop-name {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.65;
  line-break: strict;
}

.footer-shop-description {
  margin-top: 8px;
  color: var(--sb-text-muted);
  font-size: 14px;
  line-height: 1.85;
}

.footer-shop-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  border-bottom: 1px solid currentColor;
  color: var(--sb-color-blue);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.8;
}

.footer-shop-action .sb-action-icon {
  --sb-action-icon-size: 17px;
}

.footer-shop:hover,
.footer-shop:focus-visible {
  border-color: var(--sb-color-blue);
  background: var(--footer-shop-hover);
}

.footer-shop:hover .footer-shop-name,
.footer-shop:focus-visible .footer-shop-name {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.footer-signoff {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
}

.footer-signoff--signed {
  margin-top: 24px;
}

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

.footer-signature-shop {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-signature-seal {
  display: block;
  flex: none;
}

.footer-signature-logo {
  display: block;
  width: 72px;
  height: auto;
}

.footer-signature-text {
  min-width: 0;
}

.footer-signature-description {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.footer-signature-operator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.footer-signature-operator span {
  white-space: nowrap;
}

.site-footer .footer-signature-details {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sb-color-blue);
  text-decoration: underline;
  text-underline-offset: .25em;
}

.footer-signature-details:hover {
  text-decoration-thickness: 2px;
}

.footer-signature .footer-copyright {
  margin-top: 12px;
  padding-left: 92px;
}

.footer-signature a:focus-visible {
  outline: var(--sb-control-focus-width) solid var(--sb-color-ink);
  outline-offset: 5px;
}

.footer-copyright {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  padding-bottom: 4px;
  color: var(--sb-text-muted);
  font-size: 12px;
  letter-spacing: .02em;
  line-height: 1.8;
}

.site-footer .footer-up {
  --sb-paper-bg: var(--sb-surface-paper);
  --sb-paper-back: var(--sb-color-pink);
  --sb-paper-text: var(--sb-color-blue);
  --sb-paper-offset-x: 5px;
  --sb-paper-offset-y: 5px;

  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 122px;
  min-height: 148px;
  padding: 12px 10px 16px;
  color: var(--sb-color-blue);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
  transform: translateY(44px) rotate(3deg);
}

.footer-up::after {
  border: 1px solid var(--sb-color-blue);
}

.footer-up-picture {
  width: 84px;
  height: 72px;
  margin-bottom: 5px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.footer-up:hover .footer-up-picture,
.footer-up:focus-visible .footer-up-picture {
  transform: translateY(-4px);
}

.footer-up:hover span,
.footer-up:focus-visible span {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.footer-shop:focus-visible,
.footer-up:focus-visible {
  outline: var(--sb-control-focus-width) solid var(--sb-color-ink);
  outline-offset: 6px;
}

@media (max-width: 1100px) {
  .footer-shops {
    gap: 20px;
  }

  .footer-shop {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
  }
}

@media (max-width: 760px) {
  .site-footer:has(.footer-endcard) .site-footer-base {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .footer-endcard-heading {
    display: block;
    margin-bottom: 20px;
  }

  .footer-endcard-heading h2 {
    font-size: 17px;
    letter-spacing: 0;
  }

  .footer-endcard-heading p {
    margin-top: 6px;
  }

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

  .footer-shop {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 16px;
  }

  .footer-shop-picture {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
  }

  .footer-shop-picture svg {
    width: 70px;
    height: 60px;
  }

  .footer-shop-name {
    font-size: 16px;
  }

  .footer-shop-action {
    gap: 8px;
    margin-top: 12px;
  }

  .footer-signoff {
    gap: 16px;
    margin-top: 16px;
  }

  .footer-signoff--signed {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 16px 24px;
    margin-top: 32px;
  }

  .footer-signature {
    display: contents;
  }

  .footer-signature-shop {
    grid-column: 1 / -1;
    gap: 14px;
  }

  .footer-signature-logo {
    width: 56px;
  }

  .footer-signature .footer-copyright {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
    padding-left: 0;
  }

  .footer-signoff--signed .footer-up {
    grid-column: 2;
    grid-row: 2;
  }

  .footer-copyright {
    flex-direction: column;
    gap: 2px;
    padding: 0;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .site-footer .footer-up {
    width: 104px;
    min-height: 136px;
    padding: 10px 8px 14px;
    transform: translateY(34px) rotate(3deg);
  }

  .footer-up-picture {
    width: 72px;
    height: 62px;
  }
}

@media (max-width: 360px) {
  .footer-shop {
    display: block;
  }

  .footer-shop-picture {
    margin-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-shop,
  .footer-up-picture {
    transition: none;
  }

  .footer-up:hover .footer-up-picture,
  .footer-up:focus-visible .footer-up-picture {
    transform: none;
  }
}
