/* footer.html 専用のスタイル */
.footer {
  background-color: #343a40; /* 暗い背景 */
  color: #f8f9fa; /* 明るいテキスト */
  padding: 40px 20px;
  font-family: Arial, sans-serif; /* クリーンなフォント */
  text-align: center;
}

.footer-main-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-related-sites {
  width: 100%;
  max-width: 900px; /* 関連サイト全体が収まるように幅を調整 */
  text-align: center;
}

.footer-related-sites h3 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #72AEE6; /* ハイライトカラー */
  position: relative;
  padding-bottom: 10px;
}

.footer-related-sites h3::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background-color: #72AEE6;
  margin: 10px auto 0;
}

.site-links-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid; /* Gridレイアウトに変更 */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 応答性のある列幅 */
  gap: 15px; /* カード間の間隔 */
}

.site-card {
  display: flex;
  flex-direction: column; /* アイコン、タイトル、URLを縦に並べる */
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08); /* 半透明の背景 */
  color: #f8f9fa;
  padding: 15px; /* カード内のパディング */
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%; /* 高さの統一 */
  box-sizing: border-box; /* パディングを幅に含める */
  text-align: center;
}

.site-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.site-icon {
  font-size: 2rem; /* アイコンのサイズ */
  color: #72AEE6; /* アイコンの色 */
  margin-bottom: 10px; /* アイコンとタイトルの間隔 */
}

.site-title {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: #a8c7fa; /* タイトル用の明るい青 */
  line-height: 1.4;
}

.site-url {
  display: block;
  font-size: 0.85rem;
  opacity: 0.7;
  word-break: break-all; /* URLが長い場合に改行 */
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 15px;
  }
  .footer-related-sites h3 {
    font-size: 1.1rem;
  }
  .site-links-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* より狭い画面での調整 */
    gap: 10px;
  }
  .site-card {
    padding: 12px;
  }
  .site-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }
  .site-title {
    font-size: 0.9rem;
  }
  .site-url {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .site-links-grid {
    grid-template-columns: 1fr; /* 最も狭い画面では1列に */
  }
}