/* ==========================================================================
   左右いっぱいに広がるモダンフッター（32x32アイコン・ライン同期版）
   ========================================================================== */
.site-footer {
  width: 100vw;               /* 画面の横幅いっぱいに強制拡張 */
  position: relative;
  left: 50%;
  transform: translateX(-50%); /* 親の幅を無視して画面全体に広げる */
  background-color: #1e293b;  /* ヘッダーと同じダークネイビー */
  border-top: 3px solid #3a6b73; /* 旧Menuのキーカラーをアクセント線として使用 */
  color: #cbd5e1;             /* 上品な薄灰色テキスト */
  padding: 24px 0 16px 0;     /* コンパクトな上下余白 */
  margin-top: 40px;
}

/* フッター内部のコンテンツを中央寄せ＆レイアウト制御 */
.footer-inner {
  max-width: var(--primary-size);         /* 本文全体の最大幅と同期 */
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;    /* 【重要】各セクションのスタート位置を上端で完璧に揃える */
  gap: 64px;                  /* 32pxアイコンに合わせて少し間隔を調整 */
}

/* フッター内の各セクション（Menuブロック / 外部リンクブロック） */
.footer-section {
  flex: 0 1 auto;
  min-width: 180px;
}

/* 各セクションの見出しタイトル */
.footer-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-top: 0;
  margin-bottom: 12px;
  
  /* 【重要・ズレ修正】高さを固定し、中の文字の高さも統一することで下線を完璧に同期 */
  line-height: 1.2;
  height: 1.2rem;
  padding-bottom: 6px;
  border-bottom: 1px solid #334155;
  box-sizing: content-box;    /* パディングによる高さのブレを防止 */
}

/* リンク構造のリセット */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;                  /* 32pxアイコンが窮屈にならない絶妙な隙間 */
}

/* 各リンクの挙動 */
.footer-links li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;        /* アイコンとテキストの縦の中心を完全に揃える */
  gap: 10px;                  /* 32pxアイコンと文字の間の心地よい隙間 */
  transition: all 0.2s ease;
}

/* 32x32pxアイコン用の固定・形状維持設定 */
.footer-links li a img {
  width: 32px;                /* 横幅を32pxに固定 */
  height: 32px;               /* 縦幅を32pxに固定 */
  border-radius: 6px;         /* 解像度に合わせて角丸をほんの少し滑らかに */
  object-fit: cover;
  flex-shrink: 0;             /* 画面が狭くなっても絶対に潰さない */
}

/* ホバー時の演出 */
.footer-links li a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* 最終更新日エリアのスタイル（コピーライトと一体化） */
.footer-bottom-meta {
  max-width: var(--primary-size);
  margin: 24px auto 0 auto;
  padding: 12px 24px 0 24px;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 既存のh2を上書きして完全にフッター用のテキストにする */
.footer-bottom-meta h2 {
  font-size: 0.8rem;
  font-weight: 400;
  color: #64748b;
  margin: 0;
}

/* 最下部のコピーライトエリア */
.footer-copyright {
  font-size: 0.8rem;
  color: #64748b;
}


/* --------------------------------------------------------------------------
   スマートフォン向けの画面幅調整（画面幅768px以下の時）
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .site-footer {
    padding: 16px 0 12px 0;
    margin-top: 0px;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
  }
  
  .footer-section {
    min-width: 100%;
  }
  
  .footer-title {
    margin-bottom: 10px;
    height: auto;             /* スマホ時は縦並びになるため固定を解除 */
  }
  
  .footer-bottom-meta {
    margin-top: 16px;
    padding: 12px 16px 0 16px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}