:root {
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 全体的なcss */
.user-list {
  max-width: 550px;
  margin: 20px auto;
  border: 2px solid black;
  border-radius: 5px;
  overflow: hidden;
}

.list-header {
  display: flex;
  width: 100%;
}

.tab-menu{
  display: flex;
}

.tab-button {
  flex: 1; /* 均等に分割 */
  padding: 15px;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  background: white;
}
.tab-button{
  background-color: #eff7ff;
}
.tab-button.active {
  background-color: #7fbfff;
  color: black;
}
.tab-button.left.active {
  border-right: 1.5px solid black;
}
.tab-button.right.active {
  border-left: 1.5px solid black;
}

/*タイトル*/
.title {
  font-size: x-large;
  text-align: center;
  padding: 20px;
  font-weight: bold;
  background-color: #f4f7fb;
  border-bottom: 2px solid #3498db;
}

/*フィルター*/
.selecter-box {
  display: flex;
  padding: 10px;
  align-items: center;
  justify-content: space-between;
  background-color: #f9f9f9;
  border-top: 2px solid black;
  border-bottom: 2px solid black;
}

/* フィルターボタン */
#filter-button,.help-button,.add-button{
  cursor: pointer;
  font-size: 16px;
  border: 1px solid #c0c0c0;
  border-radius: 8px;
  padding: 10px 20px;
  color: black;
  background-color: #afeeee;
}

/* フィルターチェックボックス */
#department-checkboxes {
  position: fixed;
  background-color: white;
  border: 2px solid #c0c0c0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 15px;
  display: none;
  z-index: 100;
  border-radius: 10px;
  transition: all 0.3s ease;
}

#department-checkboxes label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

#department-checkboxes.visible {
  display: block;
}

/*フィルターバッジ*/
.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #00bfff;
  color: #fffaf0;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
}

/*ボタングループ*/
.button-group {
  display: flex;
  gap: 10px;
}
.help-button,.add-button{
  font-size: 12px;
  padding: 10px 10px;
}

/*ユーザーリスト*/
.item-list {
  display: block;
  padding: 0;
  margin: 0;
  width: 100%;
  list-style: none;
}

.item-list li {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  position: relative;
  background-color:white;
}

.high {
  display: flex;
  width: 100%;
  margin-bottom: 15px;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/*編集削除ボタン*/
.actions {
  display: flex;
  position: absolute;
  right: 10px;
  height: 33px;
  gap: 10px;
  background-color: #f4f7fb;
}

.actions .update,.delete{
  width: 70px;
  border: 1px solid #c0c0c0;
  border-radius: 10px;
  color: #f4f7fb;
}

.actions .update,#update-button{
	background-color: #4CAF50;
}
.actions .update:hover,#update-button:hover{
	background-color: #45a049;
}
.actions .delete,.delete-button{
	background-color: #f44336;
}
.actions .delete:hover,.delete-button:hover{
	background-color: #d32f2f;
}

/*トグル*/
.toggle-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  color: #2c3e50;
}

.toggle-button .fa-chevron-up,
.toggle-button .fa-chevron-down {
  transform: none;
}

/*隠しパラ*/
.hidden {
  display: none !important;
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  text-align: center;
  margin: 5% auto;
  padding: 25px; /* デフォルトのパディング */
  max-width: 450px;
  width: 85%;
  border: 1px solid #3498db;
  border-radius: 12px;
  background-color: #fff;
}

.text-input,.select-input {
  font-size: 18px;
  padding: 5px;
  width: 80%;
  text-align: center;
}
.text-input{
  width: 75%;
}

#update-button,.delete-button{
  font-size: 16px;
  cursor: pointer;
  width: 70px;
  color: #f4f7fb;
  border: 1px solid #c0c0c0;
  border-radius: 5px;
}

#confirm-button{
  margin-top: 15px;
}

.close-button {
  position: absolute;
  cursor: pointer;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.close-button:hover {
  color: #3498db;
}

/* Tutorial */
.tutorial-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);
}
.tutorial-modal .modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 90%;
  width: 300px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .tutorial-modal .modal-content {
    width: 80%;
  }
}

#next-button {
  background: #ff5733;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
}
#next-button:hover {
  background: #ff4500;
}

.disable {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.6;
}

/*メディアクエリ*/
@media (max-width: 480px) {

  .user-list {
    width: 100%;
  }
}