/* ページトップへジャンプ */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; /* 初期状態では非表示 */
  z-index: 1000;
  width: 50px;
  height: 50px;
  padding: 10px;
  border-radius: 50%;
  font-size: 20px;
  background-color: #0540F2;
  color: #F0F0F0;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  text-align: center;
}

.back-to-top:hover {
  background-color: #05C7F2;
  color: #F0F0F0;
  text-decoration: none;
}

/* 未確定リンク部分 */
.footer-links {
  width:100%;
  background-color: rgba(0, 0, 0,0.1);
  text-align: center;
  padding:2rem;
}

.footer-links p {
  margin: 1rem 0;
}

/* ロゴグリッド */
.grid-logo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  align-items: center;
  justify-items:center;
  margin-bottom: 2rem;
}

.grid-logo a img {
  width: 100px; /* 幅を少し狭く */
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  border-radius: 4px;
}

.grid-logo a:hover img {
  transform: scale(1.05);
}

/* 海外ロゴに縁をつける */
.grid-logo a.foreign-logo img {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #FFFFFF;
  padding: 0.3rem;
  opacity: 0.9;
}

/* レスポンシブ対応（768px以下でも複数列） */
@media (max-width: 768px) {
  .grid-logo {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }

  .grid-logo a img {
    width: 80px;
  }
}



