#agihub-site-footer {
      padding: 18px clamp(20px, 4vw, 58px);
      background:
        linear-gradient(180deg, #eef2f5 0%, #f8f7f2 62%);
      color: var(--ink);
      box-shadow: inset 0 1px 0 rgba(6, 19, 31, 0.08);
    }

    #agihub-site-footer .footer-nav {
      display: grid;
      grid-template-columns: repeat(4, minmax(124px, 1fr));
      gap: 14px 26px;
      font-size: 11px;
      font-weight: 780;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    #agihub-site-footer .footer-nav-group {
      display: grid;
      align-content: start;
      gap: 8px;
    }

    #agihub-site-footer .footer-group-label {
      margin: 0;
      color: var(--muted);
      font-size: 10px;
      font-weight: 850;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    #agihub-site-footer .footer-link-list {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 14px;
    }

    #agihub-site-footer .footer-nav a {
      padding-block: 3px;
    }

    #agihub-site-footer .footer-nav a:hover,
    #agihub-site-footer .footer-nav a:focus-visible {
      color: var(--signal);
      outline: none;
    }

    #agihub-site-footer .footer-main {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px 34px;
    }

    #agihub-site-footer .footer-logo {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      font-weight: 840;
      line-height: 1;
      letter-spacing: var(--brand-tracking);
      text-transform: uppercase;
    }

    #agihub-site-footer .footer-symbol {
      width: 24px;
      height: auto;
      object-fit: contain;
    }

    #agihub-site-footer .footer-wordmark {
      width: 78px;
      height: auto;
    }

    #agihub-site-footer .footer-bottom {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
      gap: 10px 16px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    #agihub-site-footer .clarity-disclosure {
      max-width: 48rem;
      margin: 0;
      font-size: 10px;
      font-weight: 600;
      line-height: 1.5;
      letter-spacing: 0.02em;
      text-transform: none;
    }

    #agihub-site-footer .clarity-disclosure a {
      text-decoration: underline;
      text-underline-offset: 3px;
    }


#agihub-site-footer { box-sizing:border-box; --ink:#06131f; --muted:#4b5563; --signal:#0b63ce; font-family:Helvetica,Arial,"Hiragino Sans",sans-serif; font-size:14px; line-height:1.7; width:100%; max-width:none; margin:0; border:0; text-align:left; }
#agihub-site-footer * { box-sizing:border-box; }
#agihub-site-footer a { color:inherit; text-decoration:none; border:0; }
#agihub-site-footer img { display:block; margin:0; max-width:100%; border:0; }
#agihub-site-header { margin:0; width:100%; max-width:none; border:0; border-radius:0; position:relative; top:auto; }
#agihub-site-header a { text-decoration:none; }
#agihub-site-header img { margin:0; border:0; }
#agihub-site-header button { box-shadow:none; }
.translation-local-nav { display:flex; flex-wrap:wrap; gap:12px 24px; padding:16px 24px; border-bottom:1px solid #cbd3d9; }
.translation-source-footer { max-width:960px; margin:24px auto; padding:16px 24px; font-size:13px; line-height:1.8; }
/* 見出しは <summary>。PCでは常に開いた見出しとして見せ、スマホでは折りたたみにする */
#agihub-site-footer summary.footer-group-label { display:block; list-style:none; cursor:default; }
#agihub-site-footer summary.footer-group-label::-webkit-details-marker { display:none; }
#agihub-site-footer .footer-bottom a { text-decoration:none; }

/* スマホ: リンクを全部並べず、4つの見出しをタップで開く折りたたみにする */
@media(max-width:620px) {
  #agihub-site-footer { padding:16px 20px 18px; }
  #agihub-site-footer .footer-main { display:grid; grid-template-columns:minmax(0,1fr); justify-items:stretch; gap:12px; }
  #agihub-site-footer .footer-logo { justify-self:start; }
  #agihub-site-footer .footer-nav { display:block; width:100%; border-top:1px solid rgba(6,19,31,0.12); }
  #agihub-site-footer .footer-nav-group { display:block; border-bottom:1px solid rgba(6,19,31,0.12); }
  #agihub-site-footer summary.footer-group-label { position:relative; display:flex; align-items:center; min-height:44px; padding:0 28px 0 0; color:var(--ink); font-size:12px; cursor:pointer; -webkit-tap-highlight-color:transparent; }
  #agihub-site-footer summary.footer-group-label::after { content:""; position:absolute; right:6px; top:calc(50% - 6px); box-sizing:content-box; width:7px; height:7px; border:0 solid currentColor; border-width:0 2px 2px 0; transform:rotate(45deg); transition:transform 0.18s ease; }
  #agihub-site-footer .footer-nav-group[open] > summary.footer-group-label::after { top:calc(50% - 2px); transform:rotate(-135deg); }
  #agihub-site-footer .footer-link-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; padding:0 0 12px; }
  #agihub-site-footer .footer-link-list a { display:flex; align-items:center; min-height:40px; padding-block:0; }
  #agihub-site-footer .footer-bottom { justify-content:space-between; }
}
html[data-color-mode="dark"] #agihub-site-footer .footer-nav,
html[data-color-mode="dark"] #agihub-site-footer .footer-nav-group { border-color:rgba(237,244,250,0.16); }
