/* ===== site footer (shared by every /media page) =====
   Built into assets/footer.css and loaded site-wide. Every selector is scoped under
   .site-footer so nothing here can reach article content, sidebars or widgets. The
   variables and the small reset are declared on .site-footer itself because on
   non-front pages the top page's :root variables and global reset are not loaded. */
.site-footer{--accent:#ff6a2b;--radius-pill:9999px;
  background:#0a0a0a;color:#dcdcdc;position:relative;overflow:hidden;border-top:1px solid #1c1c1c;
  font-family:"Inter","Noto Sans JP",sans-serif;font-size:16px;line-height:1.7;text-align:left;
  -webkit-font-smoothing:antialiased}
.site-footer *,.site-footer *::before,.site-footer *::after{box-sizing:border-box;margin:0;padding:0}
.site-footer a{color:inherit;text-decoration:none}
.site-footer img{display:block;max-width:100%}
.site-footer h4{font-family:inherit;line-height:inherit;border:0;background:none}
.site-footer h4::before,.site-footer h4::after{content:none}
.site-footer .footer-main{max-width:1520px;margin:0 auto;padding:74px clamp(28px,5vw,64px) 40px;
  display:grid;grid-template-columns:1fr 2fr 1fr;gap:48px;position:relative;z-index:2}
.site-footer .footer-brand .flogo{height:34px;width:auto;display:block;margin-bottom:18px}
.site-footer .footer-brand .fname{font-size:13px;font-weight:700;letter-spacing:1px;color:#fff;margin-bottom:22px}
.site-footer .footer-social{display:flex;gap:12px;margin-bottom:26px}
.site-footer .footer-social a{width:38px;height:38px;border:1px solid #2a2a2a;border-radius:50%;display:grid;
  place-items:center;color:#cfcfcf;font-size:10px;font-weight:700;transition:.2s}
.site-footer .footer-social a:hover{border-color:var(--accent);color:var(--accent)}
.site-footer .footer-social svg{width:15px;height:15px}
.site-footer .footer-links{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;gap:28px}
.site-footer .footer-col h4{font-size:13px;font-weight:800;color:#fff;letter-spacing:1px;margin-bottom:14px}
.site-footer .footer-col a{display:flex;align-items:center;gap:9px;font-size:13.5px;color:#b8b8b8;padding:7px 0;transition:.2s;
  word-break:keep-all;overflow-wrap:anywhere}
.site-footer .footer-col a::before{content:"";width:10px;height:1px;background:#555;flex:none}
.site-footer .footer-col a:hover{color:var(--accent)}
.site-footer .footer-col a:hover::before{background:var(--accent)}
.site-footer .footer-cta{display:flex;flex-direction:column;gap:14px}
.site-footer .footer-cta a{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#141414;
  border:1px solid #2a2a2a;border-radius:var(--radius-pill);padding:15px 16px 15px 24px;
  font-size:13.5px;font-weight:800;color:#fff;transition:.2s;word-break:keep-all;overflow-wrap:anywhere}
.site-footer .footer-cta a:hover{border-color:var(--accent);background:#1a1512}
.site-footer .footer-cta a .arw{width:34px;height:34px;border-radius:50%;background:var(--accent);color:#fff;
  display:grid;place-items:center;font-size:14px;flex:none}
.site-footer .footer-mark{position:absolute;left:0;right:0;bottom:70px;z-index:1;white-space:nowrap;overflow:hidden;
  font-weight:900;font-size:clamp(64px,11vw,150px);letter-spacing:2px;color:#fff;opacity:.045;
  pointer-events:none;line-height:1;text-align:center}
.site-footer .footer-bottom{border-top:1px solid #1c1c1c;position:relative;z-index:2}
.site-footer .footer-bottom .fwrap{max-width:1520px;margin:0 auto;display:flex;align-items:center;
  justify-content:space-between;gap:20px;padding:22px clamp(28px,5vw,64px)}
.site-footer .footer-cp{font-size:12px;color:#8a8a8a;line-height:1.7}
.site-footer .footer-cp b{display:block;color:#cfcfcf;font-weight:700;margin-bottom:2px}
.site-footer .footer-top{display:inline-flex;align-items:center;gap:12px;font-size:13px;font-weight:800;color:#e8e8e8}
.site-footer .footer-top .c{width:44px;height:44px;border:1px solid #2a2a2a;border-radius:50%;display:grid;
  place-items:center;color:var(--accent);font-size:15px;transition:.2s}
.site-footer .footer-top:hover .c{border-color:var(--accent);background:#141414}
/* Non-front pages: the footer sits inside SWELL's <footer id="footer" class="l-footer">.
   SWELL already shows its fixed page-top button there, so the in-footer "Page Top" link
   is hidden to avoid two page-top controls stacked in the bottom-right corner. */
#footer.l-footer{background-color:#0a0a0a}
#footer .site-footer .footer-top{display:none}
/* Non-front pages: SWELL's fixed TOC/page-top buttons (bottom-right) and, on many
   articles, the fixed BigBoss banner (#icz-sb; its script adds body.icz-sb-on while it is
   shown and removes it when closed) sit over the bottom of the screen. Extra
   bottom space lets the footer scroll clear of them so no footer link stays hidden
   underneath at the end of the page. Phones get larger values in the 600px query. */
#footer .site-footer{padding-bottom:40px}
body.icz-sb-on #footer .site-footer{padding-bottom:64px}
@media (max-width:959px){
  /* below 960px the banner is a full-width bar and lifts SWELL's buttons above itself
     (bottom: banner height + 12px), so clear the bar plus that button stack */
  body.icz-sb-on #footer .site-footer{padding-bottom:calc(var(--icz-sb-h,126px) + 24px)}
}
@media (max-width:1100px){
  .site-footer .footer-main{grid-template-columns:1fr;gap:38px}
}
@media (max-width:600px){
  .site-footer .footer-links{grid-template-columns:repeat(2,1fr);gap:20px}
  .site-footer .footer-bottom .fwrap{flex-direction:column;align-items:flex-start;gap:16px}
  .site-footer .footer-cta a{padding:14px 14px 14px 18px;font-size:12px;gap:10px}
  .site-footer .footer-cta a .arw{width:30px;height:30px;font-size:13px}
  #footer .site-footer{padding-bottom:72px}
  /* keep the copyright text out of the column under SWELL's fixed buttons (right edge) */
  #footer .site-footer .footer-bottom .fwrap{padding-right:76px}
}
