/*
 * FPS JAPAN Footer v1 — discovery / trust / site search
 */
:where(.fpsj-theme .fpsj-footer) {
  width:100%;
  margin-top:auto;
  border-top:1px solid rgba(74,118,180,.22);
  background:
    radial-gradient(circle at 10% -10%,rgba(52,120,255,.12),transparent 28rem),
    linear-gradient(180deg,#07101f 0%,#040912 100%);
  color:#d8e4f4;
}
:where(.fpsj-theme .fpsj-footer__runtime) { width:100%; }
:where(.fpsj-theme .fpsj-footer__inner) {
  width:min(1480px,calc(100vw - 56px));
  margin-inline:auto;
  padding:clamp(4.6rem,6vw,5.6rem) 0 2rem;
}
:where(.fpsj-theme .fpsj-footer__grid) {
  display:grid;
  grid-template-columns:minmax(280px,1.45fr) repeat(4,minmax(140px,1fr));
  column-gap:clamp(2.4rem,4vw,5.2rem);
  row-gap:3rem;
  align-items:start;
}
:where(.fpsj-theme .fpsj-footer__brand-link) {
  display:inline-flex;
  align-items:center;
  gap:.76rem;
  color:#f7f9fd;
  font-size:1.08rem;
  font-weight:900;
  letter-spacing:.025em;
  line-height:1;
  text-decoration:none;
}
:where(.fpsj-theme .fpsj-footer__brand-link:hover),
:where(.fpsj-theme .fpsj-footer__brand-link:focus-visible) { color:#fff; }
:where(.fpsj-theme .fpsj-footer__logo) {
  display:block;
  width:42px;
  height:42px;
  object-fit:contain;
  filter:drop-shadow(0 0 9px rgba(49,215,255,.18));
}
:where(.fpsj-theme .fpsj-footer__description) {
  max-width:24rem;
  margin:1.4rem 0 0;
  color:#aab9cc;
  font-size:.78rem;
  line-height:1.85;
}
:where(.fpsj-theme .fpsj-footer__disclosure) {
  max-width:24rem;
  margin:1.15rem 0 0;
  color:#7689a4;
  font-size:.68rem;
  line-height:1.7;
}
:where(.fpsj-theme .fpsj-footer__social) {
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  margin-top:1.15rem;
}
:where(.fpsj-theme .fpsj-footer__social a) {
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:.35rem .58rem;
  border:1px solid rgba(74,118,180,.26);
  border-radius:7px;
  background:rgba(12,23,41,.62);
  color:#aabbd0;
  font-size:.68rem;
  font-weight:760;
  text-decoration:none;
}
:where(.fpsj-theme .fpsj-footer__social a:hover),
:where(.fpsj-theme .fpsj-footer__social a:focus-visible) {
  border-color:rgba(49,215,255,.32);
  color:#fff;
}
:where(.fpsj-theme .fpsj-footer__nav h2) {
  margin:0 0 1.2rem;
  color:#f5f8fc;
  font-size:.76rem;
  font-weight:850;
  letter-spacing:.02em;
  line-height:1.3;
  text-transform:none;
}
:where(.fpsj-theme .fpsj-footer__nav ul) {
  margin:0;
  padding:0;
  list-style:none;
}
:where(.fpsj-theme .fpsj-footer__nav li) { margin:0; }
:where(.fpsj-theme .fpsj-footer__nav li + li) { margin-top:.78rem; }
:where(.fpsj-theme .fpsj-footer__nav a) {
  color:#aebed2;
  font-size:.73rem;
  font-weight:560;
  line-height:1.35;
  text-decoration:none;
  transition:color .15s ease,transform .15s ease;
}
:where(.fpsj-theme .fpsj-footer__nav a:hover),
:where(.fpsj-theme .fpsj-footer__nav a:focus-visible) {
  color:var(--fpsj-cyan);
}
:where(.fpsj-theme .fpsj-footer__site) { min-width:0; }
:where(.fpsj-theme .fpsj-footer__search) {
  display:grid;
  grid-template-columns:minmax(0,1fr) 36px;
  align-items:center;
  width:100%;
  height:38px;
  margin-top:1.2rem;
  overflow:hidden;
  border:1px solid rgba(75,118,178,.28);
  border-radius:8px;
  background:#030a13;
}
:where(.fpsj-theme .fpsj-footer__search input) {
  width:100%;
  min-width:0;
  height:100%;
  padding:0 .65rem;
  border:0;
  outline:0;
  background:transparent;
  color:#dbe6f4;
  font:inherit;
  font-size:.7rem;
}
:where(.fpsj-theme .fpsj-footer__search input::placeholder) { color:#647892; }
:where(.fpsj-theme .fpsj-footer__search button) {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  margin-right:2px;
  padding:0;
  border:0;
  border-radius:6px;
  background:var(--fpsj-signal);
  color:#fff;
  cursor:pointer;
}
:where(.fpsj-theme .fpsj-footer__search svg) {
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
}
:where(.fpsj-theme .fpsj-footer__bottom) {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-top:clamp(3.2rem,5vw,4.2rem);
  padding-top:1rem;
  border-top:1px solid rgba(74,118,180,.18);
}
:where(.fpsj-theme .fpsj-footer__bottom p) {
  margin:0;
  color:#71839b;
  font-size:.64rem;
  line-height:1.4;
}

@media (max-width:1120px) {
  :where(.fpsj-theme .fpsj-footer__grid) {
    grid-template-columns:minmax(260px,1.35fr) repeat(2,minmax(150px,1fr));
  }
  :where(.fpsj-theme .fpsj-footer__brand) { grid-row:span 2; }
}
@media (max-width:780px) {
  :where(.fpsj-theme .fpsj-footer__inner) {
    width:calc(100vw - 28px);
    padding-top:2.4rem;
  }
  :where(.fpsj-theme .fpsj-footer__grid) {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:2rem 1.4rem;
  }
  :where(.fpsj-theme .fpsj-footer__brand) {
    grid-column:1 / -1;
    grid-row:auto;
  }
  :where(.fpsj-theme .fpsj-footer__description),
  :where(.fpsj-theme .fpsj-footer__disclosure) { max-width:38rem; }
  :where(.fpsj-theme .fpsj-footer__site) { grid-column:1 / -1; }
  :where(.fpsj-theme .fpsj-footer__search) { max-width:360px; }
}
@media (max-width:480px) {
  :where(.fpsj-theme .fpsj-footer__grid) { grid-template-columns:1fr; }
  :where(.fpsj-theme .fpsj-footer__brand),
  :where(.fpsj-theme .fpsj-footer__site) { grid-column:auto; }
  :where(.fpsj-theme .fpsj-footer__nav) {
    padding-top:1rem;
    border-top:1px solid rgba(74,118,180,.14);
  }
  :where(.fpsj-theme .fpsj-footer__site .fpsj-footer__nav) { padding-top:1rem; }
}

/* =========================================================
   Footer brand text refinement / v0.4.103
   ========================================================= */
:where(.fpsj-theme .fpsj-footer__brand-link),
:where(.fpsj-theme .fpsj-footer__brand-link span) {
  color:#ffffff;
}


/* =========================================================
   Public link-color ownership lock / v0.4.105
   Keep Footer links on the approved muted/white palette instead of
   inheriting the generic cyan link color from theme.json.
   ========================================================= */
.fpsj-theme .fpsj-footer .fpsj-footer__brand-link,
.fpsj-theme .fpsj-footer .fpsj-footer__brand-link span {
  color:#ffffff!important;
}
.fpsj-theme .fpsj-footer .fpsj-footer__nav a {
  color:#aebed2!important;
}
.fpsj-theme .fpsj-footer .fpsj-footer__nav a:hover,
.fpsj-theme .fpsj-footer .fpsj-footer__nav a:focus-visible {
  color:var(--fpsj-cyan)!important;
}
.fpsj-theme .fpsj-footer .fpsj-footer__social a {
  color:#aabbd0!important;
}
.fpsj-theme .fpsj-footer .fpsj-footer__social a:hover,
.fpsj-theme .fpsj-footer .fpsj-footer__social a:focus-visible {
  color:#ffffff!important;
}


/* =========================================================
   Footer spacing refinement / v0.4.107
   Wider five-column rhythm and clearer vertical grouping inspired by
   the supplied ProSettings reference, while retaining FPS JAPAN styling.
   ========================================================= */
@media (min-width:1121px) {
  .fpsj-theme .fpsj-footer .fpsj-footer__inner {
    width:min(1480px,calc(100vw - 56px))!important;
    padding:clamp(4.6rem,6vw,5.6rem) 0 2rem!important;
  }
  .fpsj-theme .fpsj-footer .fpsj-footer__grid {
    grid-template-columns:minmax(280px,1.45fr) repeat(4,minmax(140px,1fr))!important;
    column-gap:clamp(2.4rem,4vw,5.2rem)!important;
    row-gap:3rem!important;
  }
  .fpsj-theme .fpsj-footer .fpsj-footer__brand-link {
    gap:.76rem!important;
  }
  .fpsj-theme .fpsj-footer .fpsj-footer__logo {
    width:42px!important;
    height:42px!important;
  }
  .fpsj-theme .fpsj-footer .fpsj-footer__nav h2 {
    margin-bottom:1.2rem!important;
  }
  .fpsj-theme .fpsj-footer .fpsj-footer__nav li + li {
    margin-top:.78rem!important;
  }
}
