/* MIEKATA 共通フッター（全ページ。2026-10-23 吉田さんの改修指示書 A6）
   - AIKATA のフッター（public/aikata-lish/sections/footer.css）と同じ形・同じ寸法。色だけ MIEKATA の変数
   - 中身は src/components/Miekata/generated/pages/*.ts の footer.mft（scripts/miekata-shell-2026-10-23.py が入れる）
   - メリハリは3つだけ：見出しとリンクは太さと色で差をつける／強い要素（ひとことと主ボタン）は左の列だけ／下の行は線で切って小さく薄く
   - 古い CSS（footer202.css など）に負けないよう、:is(#mft×6, *) で強くする */

:root {
  --mft-bg: #f4f5f7;
  --mft-ink: #1b1e2b;
  --mft-text: #3d4456;
  --mft-muted: #6b7282;
  --mft-line: #dde1e8;
  --mft-blue: var(--ds-blue, #2448d8);
  --mft-cta: var(--ds-cta, #bf5139);
  --mft-cta-hover: var(--ds-cta-dk, #a8452f);
  --mft-white: #fff;
}

html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft {
  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(--mft-bg) !important;
  border: 0 !important;
  color: var(--mft-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:is(#mft#mft#mft#mft#mft#mft, *) footer.mft * { box-sizing: border-box; }
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft :is(p, ul, li) { margin: 0 !important; padding: 0 !important; list-style: none !important; text-align: left !important; }
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft a {
  display: inline !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
  text-decoration: none !important;
  white-space: normal !important;
  transition: color .2s;
}
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft a::before,
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft a::after { content: none !important; display: none !important; }
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft a:focus-visible { outline: 2px solid var(--mft-blue) !important; outline-offset: 3px; border-radius: 2px; }

/* 全体の並び：左にブランド、右に3つのメニュー */
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-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:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
/* ロゴは仮で Barlow Condensed（箱は AIKATA と同じ 116×30） */
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-logo {
  display: flex !important;
  align-items: center !important;
  width: 116px !important;
  height: 30px !important;
  overflow: hidden;
  color: var(--mft-ink) !important;
  font: 500 32px/1 'Barlow Condensed', 'Noto Sans JP', sans-serif !important;
  letter-spacing: .08em !important;
  white-space: nowrap !important;
}
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-tag {
  margin-top: 22px !important;
  color: var(--mft-ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
}
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-desc { margin-top: 6px !important; color: var(--mft-muted); font-size: 13px; line-height: 1.8; }
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-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(--mft-cta) !important;
  color: var(--mft-white) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-shadow: none !important;
  transition: background .2s;
}
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-cta span { font-family: "Barlow", sans-serif; transition: transform .2s; }
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-cta:hover { background: var(--mft-cta-hover) !important; }
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-cta:hover span { transform: translateX(3px); }

/* メニュー */
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-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:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-h {
  margin-bottom: 18px !important;
  color: var(--mft-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.5;
}
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-col ul { display: flex; flex-direction: column; gap: 12px; }
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-col li a { color: var(--mft-text) !important; }
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-col li a:hover { color: var(--mft-blue) !important; }

/* 下の行 */
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-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(--mft-line) !important;
  color: var(--mft-muted);
  font-size: 12.5px;
  line-height: 1.5;
}
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-legal a:hover { color: var(--mft-ink) !important; }
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-op a { color: var(--mft-text) !important; }
html body:is(#mft#mft#mft#mft#mft#mft, *) footer.mft .mft-copy { margin-left: auto !important; font-family: "Barlow", sans-serif; font-weight: 600; letter-spacing: .06em; }

/* すぐ下の LISH の1行もフッターと同じ地にする */
html body footer.mft ~ aside.lish-grp { background: var(--mft-bg); }
/* MIEKATA の古い CSS の「折り返さない」指定で、スマホで帯の文字が画面の外へ出ないように */
html body:is(#mft#mft#mft#mft#mft#mft#mft#mft#mft#mft#mft#mft#mft, *) aside.lish-grp :is(.lish-grp__list, .lish-grp__list li) { min-width: 0 !important; max-width: 100% !important; }
html body:is(#mft#mft#mft#mft#mft#mft#mft#mft#mft#mft#mft#mft#mft, *) aside.lish-grp :is(.lish-grp__item, .lish-grp__item span) { white-space: normal !important; overflow-wrap: anywhere !important; text-align: left !important; }

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