body {
  font-family: Arial, sans-serif;
}

.dropdown-container {
  width: 80%;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start; /* タブを左詰めに配置 */
}

.dropdown {
  position: relative;
  display: inline-block;
  margin-right: 10px; /* タブ同士の間隔を調整 */
}

.dropbtn {
  background-color: lightgray;
  padding: 10px 20px; /* ボタンの余白を調整 */
  border: none;
  cursor: pointer;
}

.dropbtn:hover {
  background-color: gray;
  color: white;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 250px;
  padding: 4px; /* ドロップダウン全体の内側の余白を調整 */
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content .menu-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px; /* 各項目の上下の余白を減らす */
  line-height: 1.2; /* 行間を詰める */
}

.menu-item span, .menu-item a {
  display: inline;
  white-space: nowrap;
}

.menu-item a {
  /*margin-left: 2px;*/ /* リンク間のスペース */
  margin-right: 1px;
  color: black;
  text-decoration: none;
}

.menu-item a:hover {
  text-decoration: underline;
}

.dropdown:hover .dropdown-content {
  display: block;
}
