/* ==========================================================================
   Site Footer — Japan Documented (Editorial · single row)
   ========================================================================== */

.site-footer {
  margin-top: 90px;
  padding: 32px 0 22px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ── Single row: logo · nav · social ───────────────────────────────────── */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  flex-wrap: wrap;
}

/* Logo */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.footer-logo__mark {
  display: block;
  height: 34px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.footer-logo__wordmark {
  font-family: var(--font-body-en), var(--font-body-ja);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
}

/* Nav (inline horizontal, no bullets — gap only) */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.footer-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: rgba(17, 17, 17, 0.7);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  transition: color .22s ease, background-color .22s ease;
}

.footer-nav__link:hover,
.footer-nav__link:focus-visible {
  color: var(--brand);
  background: rgba(22, 94, 131, 0.06);
  outline: none;
}

.footer-nav__arrow {
  display: inline-block;
  flex: 0 0 auto;
  color: rgba(17, 17, 17, 0.4);
  transition: color .22s ease, transform .22s ease;
}

.footer-nav__link--external:hover .footer-nav__arrow,
.footer-nav__link--external:focus-visible .footer-nav__arrow {
  color: var(--brand);
  transform: translate(1px, -1px);
}

/* Social */
.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.footer-social a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 50%;
  color: rgba(17, 17, 17, 0.62);
  transition: color .22s ease, border-color .22s ease, background .22s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  outline: none;
}

.footer-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-social__badge {
  position: absolute;
  top: -6px;
  right: -8px;
  padding: 2px 5px;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  line-height: 1;
}

/* ── Bottom row: fine print ────────────────────────────────────────────── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.footer-copy,
.footer-operator {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(17, 17, 17, 0.48);
}

/* ---------- 1100px : Nav drops to its own row ---------- */
@media (max-width: 1100px) {
  .footer-nav {
    flex: 1 1 100%;
    order: 3;
    justify-content: center;
    padding-top: 18px;
    border-top: 1px solid rgba(17, 17, 17, 0.06);
  }
  .footer-logo {
    order: 1;
  }
  .footer-social {
    order: 2;
  }
}

/* ---------- 720px ---------- */
@media (max-width: 720px) {
  .footer-top {
    gap: 18px 16px;
  }
  .footer-nav {
    justify-content: flex-start;
    padding-top: 14px;
    gap: 2px 4px;
  }
  .footer-nav__link {
    padding: 5px 10px;
  }
  .footer-bottom {
    justify-content: flex-start;
  }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
  .footer-logo__wordmark {
    font-size: 15px;
  }
  .footer-nav__link {
    font-size: 12px;
    padding: 4px 9px;
  }
}
