.site-footer {
  background: #f7f8fa;
  color: #4b5563;
  border-top: 1px solid #e5e7eb;
}

.site-footer__inner {
  width: min(calc(100% - 48px), var(--aw-content-width));
  margin: 0 auto;
  padding: 58px 0 24px;
}

.site-footer__widgets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  padding-bottom: 46px;
}

.footer-widget__title {
  margin: 0 0 16px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.5;
}

.footer-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-widget li + li {
  margin-top: 8px;
}

.footer-widget a {
  color: #5f6875;
  font-size: 14px;
}

.footer-widget a:hover {
  color: #2563eb;
}

.site-footer__brand {
  padding-top: 34px;
  border-top: 1px solid #dde2e7;
  text-align: center;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  font-size: 21px;
  font-weight: 800;
}

.site-footer__logo:hover {
  color: #1f2937;
  text-decoration: none;
}

.site-footer__logo img {
  display: block;
  width: var(--aiwapress-logo-pc-width, 180px);
  max-width: 220px;
  height: auto;
}

.footer-legal-nav {
  margin-top: 22px;
}

.footer-legal-nav__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal-nav__menu a {
  color: #6b7280;
  font-size: 12px;
}

.footer-legal-nav__menu a:hover {
  color: #2563eb;
}

.site-footer__credit {
  margin: 18px 0 0;
  color: #9ca3af;
  font-size: 12px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #dbe3ec;
  border-radius: var(--aw-radius);
  background: #ffffff;
  color: #12304a;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(8px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top .dashicons {
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 20px;
}
