.news-archive,
.single-news {
  /* max-width: 1200px; */
  margin: 5px auto 10px;
  text-align: center;
  background: #f7efe3;
}

/* =====================
   レイアウト
===================== */
.tab-wrapper {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.tab-menu {
  width: 220px;
  list-style: none;
}

/* タブ全体 */
.tab-menu li {
  padding: 12px 16px;
  cursor: pointer;
  border-left: 4px solid transparent;
  transition: 0.2s;
}

/* ホバー */
.tab-menu li:hover {
  background: #f0f0f0;
}

/* アクティブ（選択中） */
.tab-menu li.active {
  background: #e6f0fa;
  border-left: 4px solid #6b8db3;
  font-weight: bold;
  color: #2c4a73;
}

.tab-contents {
  flex: 1;
}

/* =====================
   タブ
===================== */
.tab-content {
  display: none;
}

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

/* =====================
   アイテム
===================== */
.item {
  display: block;
  padding: 14px 22px;
  margin-bottom: 12px;

  background: #fff;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  text-align: left;
}

.item:hover {
  background: #f7f7f7;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.item-left {
  display: block;
}

.meta {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 6px;
  font-size: 12px;
  color: #777;
}

.date {
  min-width: 82px;
}

.category {
  background: #eef4ff;
  color: #6b8db3;
  padding: 2px 10px;
  border: 1px solid #b8cde8;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.title {
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

/* PDFアイコン */
.pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 44px;
  padding: 4px 8px;

  background: #d9534f;
  color: #fff;
  border-radius: 4px;

  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
}

/* =====================
   レスポンシブ
===================== */
@media (max-width: 768px) {
  .news-archive,
  .single-news {
    padding: 0 15px;
  }

  .tab-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  /* タブを横スクロールに */
  .tab-menu {
    display: flex;
    width: 100%;
    overflow-x: auto;
    padding: 0;
    margin: 0;
    gap: 6px;
    white-space: nowrap;
  }

  .tab-menu li {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-left: none;
    border-bottom: 3px solid transparent;
    background: #f7f7f7;
    border-radius: 20px;
    font-size: 13px;
  }

  .tab-menu li.active {
    background: #b0d3da;
    border-left: none;
    border-bottom: 3px solid #6b8db3;
    color: #2c4a73;
  }

  .tab-contents {
    width: 100%;
  }

  .item {
    display: block;
    padding: 14px 16px;
  }

  .item-left {
    display: block;
  }

  .meta {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
  }

  .title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .title {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
  }

  .pdf-icon {
    flex: 0 0 auto;
    min-width: 42px;
  }
}

@media (max-width: 480px) {

  .page-hero h1 {
    font-size: 28px;
  }

  .news-archive h3 {
    font-size: 18px;
  }

  .tab-menu li {
    font-size: 12px;
    padding: 7px 12px;
  }

  .item {
    padding: 12px 14px;
  }

  .meta {
    font-size: 11px;
  }

  .category {
    font-size: 10px;
    padding: 2px 7px;
  }

  .title-row {
    align-items: flex-start;
  }

  .pdf-icon {
    font-size: 10px;
    padding: 4px 7px;
  }
}