@charset "utf-8";
/* CSS Document */

/* archive.css - article listing & filters */

/* basic container */
.container {
  max-width: 1200px;
  margin: 36px auto;
  padding: 0 20px;
}

/* page title */
.page-title {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: left;
}

/* filter area */
.filter-section {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* 縦並びに変更（横4カラム → 1カラム） */
.filter-columns {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* 各ブロック */
.filter-column h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: bold;
}

/* チェックボックス一覧（横並び・折り返しあり） */
.filter-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 0;
  max-height: none;
  overflow: visible;
}

/* ラベル（アイテム） */
.filter-items label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
/* PC / SP 共通 — 横幅 1カラムなのでレスポンシブ不要 */
/* small scrollbars */
.filter-items::-webkit-scrollbar {
  width: 8px;
}
.filter-items::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.08);
  border-radius: 8px;
}
/* active filters row */
.active-filters {
  margin: 12px 0;
  padding: 10px;
  background: #fff7e6;
  border-radius: 6px;
  gap: 12px;
  align-items:center;
  display: none; /* ← 初期は非表示 */
}
.clear-btn {
  background:#ddd;
  border:none;
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
}
.clear-btn:hover { background:#cfcfcf; }

/* articles grid - 4 columns */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

/* article card */
.article-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: default;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

/* thumbnail */
.article-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #eee;
  display: block;
}

/* info */
.article-info {
  padding: 12px 14px 16px 14px;
}
.article-title {
  font-size: 16px;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

/* tags area */
.tag-group { display:flex; flex-wrap:wrap; gap:8px 3px; }
.tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 4px;
    border-radius: 6px;
    font-size: 9px;
    cursor: pointer;
    color: #333;
    letter-spacing: 0;
}
.tag.category { background:#e8f4ff; }
.tag.keyword { background:#f3f7e6; }
.tag.industry { background:#fff1e6; }
.tag.year { background:#efefef; }

/* small meta row */
.meta-row { margin-top:8px; font-size:13px; color:#666; }

/* responsive */
@media (max-width: 1100px) {
  .filter-columns { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .filter-columns { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
}

/* checkbox small style */
input[type="checkbox"] { width:16px; height:16px; }

/* helper: visually-hidden */
.visually-hidden { position:absolute !important; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

/* no-result */
.no-result {
  padding: 40px;
  text-align: center;
  color: #666;
  background: #fff;
  border-radius: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
}