@charset "UTF-8";

.navbar-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  flex: 1;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #ffffff;
  border: none;
  border-bottom: 3px solid #e0e0e0;
  border-radius: 0;
  padding: 0 24px;
  gap: 0;
  width: 100%;
  height: 60px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.navbar-links li a {
  text-decoration: none;
  color: #222;
  font-size: 20px;
  white-space: nowrap;
}

.navbar-links li a:hover {
  color: #c0392b;
}

.navbar-logo {
  margin-right: 24px;
  display: flex;
  align-items: center;
}

.navbar-logo-img {
  height: 35px;
  width: auto;
  display: block;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  /* ナビバー：ハンバーガーメニュー風に縦並び */
  .navbar {
    height: auto;
    flex-direction: column;
    padding: 8px 16px;
  }

  .navbar-links {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 2列→3列に変更 */
    gap: 4px 8px;
    width: 100%;
    padding: 4px 0;
  }
  
  .navbar-links li {
    text-align: center;                  /* 各項目を中央揃え */
  }

  .navbar-links li a {
    font-size: 14px;
  }

  .navbar-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  }

  .navbar-logo-img {
  height: 28px;
  width: auto;
  }
}