/* ==========================================================================
   Layout - フッター
   ========================================================================== */

.site-footer {
  background: var(--pb-bg-dark);
  color: var(--pb-text-inverse);
  margin-top: auto;
}

/* ===== フッターウィジェットエリア ===== */
.footer-widgets {
  max-width: var(--pb-container-max);
  margin: 0 auto;
  padding: var(--pb-space-16) var(--pb-space-6) var(--pb-space-12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pb-space-10);
}

@media screen and (max-width: 768px) {
  .footer-widgets {
    grid-template-columns: 1fr;
    gap: var(--pb-space-8);
    padding: var(--pb-space-10) var(--pb-space-6);
  }
}

.footer-widgets .widget-title {
  font-size: var(--pb-font-size-base);
  font-weight: var(--pb-font-weight-semibold);
  margin-bottom: var(--pb-space-5);
  padding-bottom: var(--pb-space-3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.footer-widgets .widget ul {
  display: flex;
  flex-direction: column;
  gap: var(--pb-space-2);
}

.footer-widgets .widget a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--pb-font-size-sm);
  transition: color var(--pb-transition-fast);
  display: block;
  padding: var(--pb-space-1) 0;
}

.footer-widgets .widget a:hover {
  color: #ffffff;
}

/* ===== フッターナビ ===== */
.footer-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--pb-space-6) 0;
}

.footer-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--pb-space-4);
  max-width: var(--pb-container-max);
  margin: 0 auto;
  padding: 0 var(--pb-space-6);
}

.footer-nav a {
  font-size: var(--pb-font-size-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--pb-transition-fast);
}

.footer-nav a:hover {
  color: #ffffff;
}

/* ===== フッターボトム ===== */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--pb-space-6) 0;
}

.footer-bottom-inner {
  max-width: var(--pb-container-max);
  margin: 0 auto;
  padding: 0 var(--pb-space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media screen and (max-width: 600px) {
  .footer-bottom-inner {
    flex-direction: column;
    gap: var(--pb-space-4);
  }
}

.footer-copyright {
  font-size: var(--pb-font-size-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* ===== ページトップボタン ===== */
.page-top-btn {
  position: fixed;
  bottom: var(--pb-space-8);
  right: var(--pb-space-8);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pb-primary);
  color: #ffffff;
  border-radius: var(--pb-radius-full);
  box-shadow: var(--pb-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--pb-transition-base);
  z-index: var(--pb-z-sticky);
}

.page-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-top-btn:hover {
  background: var(--pb-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--pb-shadow-xl);
}

.page-top-btn svg {
  width: 20px;
  height: 20px;
}

@media screen and (max-width: 768px) {
  .page-top-btn {
    bottom: var(--pb-space-20);
    right: var(--pb-space-4);
    width: 42px;
    height: 42px;
  }
}
