/* サイドバーの位置調整 */
.sidebar {
  background-color: #f4f4f4;
  padding: 15px;
  border-left: 1px solid #ccc;
  width: 400px; /* サイドバーの幅 */
  position: static; /* またはこの行を削除 */
  overflow-y: auto;
  margin-left: 20px; /* コメントセクションとの余白を追加 */
  max-height: 3650px; /* サイドバーの最大高さ */
}

.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* 各リストアイテム */
#survivor-list li,
#hunter-list li {
  display: flex;
  align-items: center;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

#survivor-list li a,
#hunter-list li a {
  display: flex;
  align-items: center;
  text-decoration: none;
  width: 100%; /* リストアイテム内にフル幅で広がる */
}

li:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

li img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

li .arrow {
  font-size: 1.5em;
  color: #007bff;
  margin-left: auto; /* 矢印を右に配置 */
}

a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

a:hover {
  color: #007bff;
}

.custom-line {
  display: none;
}

@media (max-width: 1210px) {
  .sidebar {
    max-height: 800px;
    width: 100%;
    border-left: none;
    float: none; /* 浮かせない */
  }
  .custom-line {
    display: block;
    border: none;
    height: 3px;
    width: 80%;
    margin: 20px auto;
    background-image: linear-gradient(
      to right,
      #333,
      #333 33%,
      transparent 33%,
      transparent 66%,
      #333 66%,
      #333
    );
    background-size: 8px 3px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    margin-right: 1.5cm; /* コメントセクションとの余白を追加 */
    margin-left: 0;
    padding: 10px;
  }
}
