main {
  min-height: 100vh;
}

.update-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.update-item {
  display: flex;
  flex-direction: column; /* 上から下に並べる */
  justify-content: space-between; /* 上と下に要素を分ける */
  max-width: 800px;
  margin: 0 auto;
  padding: 12px 16px;
  border-bottom: 1px solid #ccc;
  min-height: 80px; /* 高さ調整で右下が安定 */
}

.update-date {
  font-weight: bold;
  margin-bottom: 6px;
}

.update-content {
  text-align: left;
}

.update-content .content {
  word-break: break-word;
}

.update-content a.title {
  text-decoration: none;
  color: #0073aa;
}

.update-content a.title:hover {
  text-decoration: underline;
}

/* タグを右下に寄せる */
.update-item .tags {
  align-self: flex-end; /* 右下に寄せる */
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.update-item .tags .tag {
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid #dfdfdf;
  color: var(--white-color);
  padding: 5px 8px;
  border-radius: 10px;
  background-color: #ffbe758a;
}

span.tag {
  margin: 0;
}

.two-columns {
  margin-left: 0;
  display: flex;
  align-items: flex-start; /* 上揃え */
  margin-bottom: 1em;
}

/* ボタン全体のラッパー */
.filter-buttons {
  display: flex;
  gap: 10px; /* ボタンの間隔 */
  margin-bottom: 20px;
  justify-content: center;
}

/* ボタンの基本スタイル */
.filter-buttons button {
  padding: 6px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f7f7f7;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

/* ホバー時 */
.filter-buttons button:hover {
  background-color: var(--title-color);
  border-color: var(--title-color);
}

/* 選択中のボタン */
.filter-buttons button.active {
  background-color: var(--title-color);
  color: #fff;
  border-color: var(--title-color);
}

/* PC用 */
@media screen and (min-width: 768px) {
  .update-item .tags .tag {
    font-size: 1.2rem;
  }

  .filter-buttons {
    justify-content: flex-end; /* 右寄せ */
  }
}