.tab {
  max-width: 1980px;
  margin: 0 auto;
  padding: 20px;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #ccc;
  padding: 0 20px 10px;        /* 左右の余白も調整 */
}

.tab-buttons button {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
  white-space: nowrap;         /* 文字が折り返さないように */
}

.tab-buttons button:hover {
  background: #f0f8ff;
}

.tab-buttons button.active {
  border-bottom: 2px solid #007bff;
  color: #007bff;
}


.tab-contents .content {
  display: none;
  padding: 20px 0;
  animation: fadeIn 0.3s ease-in-out;

}

.tab-contents .content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}