/* AIKATA 共通フッター（全ページ。2026-10-22 作り直し）
   - 中身は src/components/Aikata/generated/shell.ts の AIKATA_FOOTER（class は aft- で始める）
   - WF の古いフッター CSS（navigation108・footer198〜208 など）は .footer108 などの古い class 向け。
     念のため footer.site-footer への指定は下の強い指定（:is(#aft#aft#aft#aft#aft#aft,*)）で上書きする
   - 支援内容のリンクは footer-child110 のまま（スマホのメニューが .aft-svc a.footer-child110 から一覧を作る） */

html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.site-footer.aft {
  --aft-bg: #f4f5f7;
  --aft-ink: #1b1e2b;
  --aft-text: #3d4456;
  --aft-muted: #6b7282;
  --aft-line: #dde1e8;
  --aft-blue: #0f64ae;
  --aft-cta: #d9480f;
  --aft-cta-hover: #b83c0c;
  display: block !important;
  box-sizing: border-box !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--aft-bg) !important;
  border: 0 !important;
  color: var(--aft-text) !important;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  letter-spacing: .03em !important;
  font-feature-settings: "palt" 1 !important;
  -webkit-font-smoothing: antialiased;
  text-align: left !important;
}
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft * { box-sizing: border-box; }
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft :is(p, ul, li) { margin: 0 !important; padding: 0 !important; list-style: none !important; }
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft a {
  display: inline !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
  text-decoration: none !important;
  white-space: normal !important;
  transition: color .2s;
}
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft a::before { content: none !important; display: none !important; }
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft a:focus-visible { outline: 2px solid var(--aft-blue) !important; outline-offset: 3px; border-radius: 2px; }

/* 全体の並び：左にブランド、右に3つのメニュー */
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-in {
  width: min(1200px, calc(100% - 2 * max(24px, env(safe-area-inset-left, 0px))));
  margin: 0 auto;
  padding: 72px 0 0;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2.6fr);
  gap: 48px 64px;
}

/* ブランド */
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-logo { display: inline-block !important; line-height: 0 !important; }
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-mark {
  display: block;
  width: 116px;
  height: 30px;
  background: var(--aft-ink);
  -webkit-mask: url('/aikata-lish/aikata-wordmark.png') center / contain no-repeat;
  mask: url('/aikata-lish/aikata-wordmark.png') center / contain no-repeat;
}
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-tag {
  margin-top: 22px !important;
  color: var(--aft-ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
}
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-desc { margin-top: 6px !important; color: var(--aft-muted); font-size: 13px; line-height: 1.8; }
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin-top: 26px !important;
  padding: 11px 20px 11px 22px !important;
  border-radius: 999px;
  background: var(--aft-cta);
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  transition: background .2s;
}
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-cta span { font-family: "Barlow", sans-serif; transition: transform .2s; }
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-cta:hover { background: var(--aft-cta-hover); }
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-cta:hover span { transform: translateX(3px); }

/* メニュー */
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-nav {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 40px;
  margin: 0 !important;
  padding: 6px 0 0 !important;
}
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-h {
  margin-bottom: 18px !important;
  color: var(--aft-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.5;
}
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-h a:hover { color: var(--aft-blue) !important; }
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-col ul { display: flex; flex-direction: column; gap: 12px; }
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-col ul.aft-svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-col li a { color: var(--aft-text) !important; }
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-col li a:hover { color: var(--aft-blue) !important; }

/* 下の行 */
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-legal {
  grid-column: 1 / -1;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin: 16px 0 0 !important;
  padding: 22px 0 26px !important;
  border-top: 1px solid var(--aft-line) !important;
  color: var(--aft-muted);
  font-size: 12.5px;
  line-height: 1.5;
}
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-legal a:hover { color: var(--aft-ink) !important; }
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-op a { color: var(--aft-text) !important; }
html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-copy { margin-left: auto !important; font-family: "Barlow", sans-serif; font-weight: 600; letter-spacing: .06em; }

/* すぐ下の LISH の1行もフッターと同じ地にする */
html body.aikata footer.aft ~ aside.lish-grp { background: #f4f5f7; }

/* タブレット：ブランドを上の段に */
@media (max-width: 1023px) {
  html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-in { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
}
/* スマホ */
@media (max-width: 767px) {
  html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-in { width: calc(100% - 2 * max(20px, env(safe-area-inset-left, 0px))); gap: 32px; padding-top: 44px; }
  html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-mark { width: 96px; height: 25px; }
  html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-tag { margin-top: 16px !important; font-size: 16px; }
  html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-cta { margin-top: 20px !important; }
  html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-nav { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-col--svc { grid-column: 1 / -1; grid-row: 2; }
  html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-h { margin-bottom: 12px !important; }
  html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-col ul { gap: 0; }
  html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-col li a { display: block !important; padding: 9px 0 !important; word-break: keep-all !important; overflow-wrap: anywhere !important; }
  html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-col ul.aft-svc { gap: 0 20px; }
  html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-legal { margin-top: 4px !important; padding: 18px 0 22px !important; gap: 8px 20px; }
  html body.aikata:is(#aft#aft#aft#aft#aft#aft, *) footer.aft .aft-op { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html body.aikata footer.aft :is(a, .aft-cta span) { transition: none !important; }
}
