/**
 * Footer Links Section - Image Banner Styles
 * footer-links セクション用スタイルシート
 */

/* ============================================
   Footer Links Section Container
   ============================================ */
.footer-links-section {
    /* padding: var(--spacing-lg) var(--spacing-md); */
    background-color: var(--color-bg-light, #f9f9f9);
    border-top: 1px solid var(--color-border, #e0e0e0);
    padding-bottom: 5px;
}

.footer-links-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* ============================================
   Grid Layout - Responsive
   ============================================ */
.footer-links-grid {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 80%;
  margin: 20px auto;
  
  /* デフォルト：スマートフォン（1列） */
  grid-template-columns: 1fr;
}

/**
 * タブレット以上（744px～1024px）：2列
 */
@media (min-width: 744px) {
  .footer-links-grid {
    grid-template-columns: repeat(3, 1fr);
    width: 90%;
    margin: 20px auto;
  }
}

/**
 * デスクトップ以上（1025px+）：2～3列
 * グリッド項目数に応じて自動調整
 */
@media (min-width: 1025px) {
  .footer-links-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 90%;
    margin: 20px auto;
  }
}

/* ============================================
   Link Item & Banner
   ============================================ */
.footer-links-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0px; /* 画像の最小高さ */
}

.footer-links-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  text-decoration: none;
  transition: transform 0.3s ease, filter 0.3s ease;
  border-radius: 0px;
  overflow: hidden;
}

/* 修正箇所1：ホバー時（現在のあなたのコードの約48行目） */
.footer-links-banner:hover,
.footer-links-banner:focus {
  transform: scale(1.03);
  filter: brightness(0.97);
  outline: 1px solid var(--color-accent, #c8a96e);  /* 2px → 1px、色も変更 */
  outline-offset: 1px;  /* 2px → 1px */
}

/* ============================================
   Image Styles
   ============================================ */
.footer-links-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  background-color: white; /* 透過背景の場合の白背景 */
  padding: var(--spacing-xs);
  border-radius: 0px;
}

/**
 * アクセシビリティ：フォーカス状態
 */
/* 修正箇所2：フォーカス時（現在のあなたのコードの約56行目） */
.footer-links-banner:focus-visible {
  outline: 1px solid var(--color-accent, #c8a96e);  /* 3px → 1px、色も変更 */
  outline-offset: 1px;  /* 2px → 1px */
}

/* ============================================
   Dark Mode対応（オプション）
   ============================================ */
@media (prefers-color-scheme: dark) {
  .footer-links-section {
    background-color: var(--color-bg-dark, #1a1a1a);
    border-top-color: var(--color-border-dark, #333);
  }

  .footer-links-image {
    background-color: #2a2a2a;
  }
}

/* ============================================
   大スクリーン用微調整
   ============================================ */
@media (min-width: 1440px) {
  .footer-links-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }
  
  .footer-links-item {
    min-height: 100px;
  }
}