.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 1em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: -0.15em;
}

/* ── ページ全体 ── */
.ilist-page {
  padding: 24px 30px;
}

/* ── ページヘッダー ── */
.ilist-header {
  margin-bottom: 22px;
}

.ilist-page-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.55em;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
}

.ilist-page-title .material-symbols-outlined {
  font-size: 1em;
  color: #5397cb;
}

.ilist-header-desc {
  font-size: 0.9em;
  color: #666;
  margin: 0;
}

/* ── フィルターバー ── */
.ilist-filter-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fafafa;
  border-bottom: 1px solid #e0e5ec;
  padding: 10px 0 12px;
  margin: 0 -30px 18px;
  padding-left: 30px;
  padding-right: 30px;
}

/* ── 検索ボックス ── */
.ilist-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.ilist-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1em;
  color: #999;
  pointer-events: none;
}

.ilist-search {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 36px 9px 34px;
  font-size: 0.95em;
  font-family: inherit;
  border: 1.5px solid #d0d7e0;
  border-radius: 8px;
  background: #fff;
  color: #333;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.ilist-search::placeholder {
  color: #aaa;
}

.ilist-search:focus {
  border-color: #5397cb;
  box-shadow: 0 0 0 3px rgba(83, 151, 203, 0.12);
}

.ilist-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: #aaa;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.ilist-search-clear:hover {
  color: #555;
}

.ilist-search-clear .material-symbols-outlined {
  font-size: 1em;
}

/* ── カテゴリチップ ── */
.ilist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ilist-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1.5px solid #ccc;
  border-radius: 20px;
  background: #fff;
  font-size: 0.82em;
  font-family: inherit;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}

.ilist-chip:hover {
  border-color: var(--chip-color, #5397cb);
  color: var(--chip-color, #5397cb);
  background: #fff;
}

.ilist-chip.active {
  background: var(--chip-color, #5397cb);
  border-color: var(--chip-color, #5397cb);
  color: #fff;
}

.ilist-chip[data-slug=""].active {
  background: #5397cb;
  border-color: #5397cb;
  color: #fff;
}

/* ── 結果情報 ── */
.ilist-results-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82em;
  color: #888;
  margin-bottom: 20px;
}

.ilist-results-info .material-symbols-outlined {
  font-size: 1em;
  color: #bbb;
}

/* ── 結果なし ── */
.ilist-no-results {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 0;
  color: #999;
  text-align: center;
}

.ilist-no-results .material-symbols-outlined {
  font-size: 2.8em;
  color: #ccc;
}

.ilist-no-results p {
  margin: 0;
  font-size: 0.95em;
}

.ilist-no-results-hint {
  font-size: 0.85em !important;
  color: #bbb;
}

/* ── 非表示クラス ── */
.ilist-hidden {
  display: none !important;
}

/* ── カテゴリセクション ── */
.ilist-category {
  margin-bottom: 32px;
  scroll-margin-top: 80px;
}

/* ── カテゴリヘッダー ── */
.ilist-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-left: 4px solid var(--cat-color, #5397cb);
  padding: 10px 16px;
  background: #f5f7fa;
  border-radius: 0 8px 8px 0;
  margin-bottom: 14px;
}

.ilist-category-title {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--cat-color, #333);
  margin: 0;
}

.ilist-category-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ilist-cat-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.82em;
  color: #666;
}

.ilist-cat-stat .material-symbols-outlined {
  font-size: 1em;
  color: var(--cat-color, #5397cb);
}

.ilist-cat-sep {
  color: #ccc;
  font-size: 0.82em;
}

.ilist-category-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--cat-color, #5397cb);
  text-decoration: none;
  padding: 3px 10px;
  border: 1.5px solid var(--cat-color, #5397cb);
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.ilist-category-link .material-symbols-outlined {
  font-size: 0.95em;
}

.ilist-category-link:hover {
  background: var(--cat-color, #5397cb);
  color: #fff;
}

/* ── グループ ── */
.ilist-group {
  margin-bottom: 14px;
  padding-left: 14px;
}

.ilist-group-title {
  font-size: 0.78em;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.03em;
  margin-bottom: 7px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #e0e0e0;
}

/* ── 指標アイテム ── */
.ilist-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ilist-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  font-size: 0.85em;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}

.ilist-item:hover {
  border-color: var(--cat-color, #5397cb);
  color: var(--cat-color, #5397cb);
  background: #fdfdff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.ilist-item-label {
  font-weight: 500;
  line-height: 1.3;
}

/* ── 周期タグ ── */
.ilist-item-tag {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 8px;
  line-height: 1.6;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag-daily    { background: #e3f0fd; color: #1565c0; }
.tag-monthly  { background: #e8f5e9; color: #2e7d32; }
.tag-quarterly{ background: #fff3e0; color: #e65100; }
.tag-yearly   { background: #f3e5f5; color: #6a1b9a; }
.tag-weekly   { background: #fce4ec; color: #c62828; }

/* ── レスポンシブ ── */
@media (max-width: 768px) {
  .ilist-page {
    padding: 16px 16px;
  }

  .ilist-filter-bar {
    margin: 0 -16px 14px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .ilist-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .ilist-chips::-webkit-scrollbar {
    display: none;
  }

  .ilist-category-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ilist-group {
    padding-left: 8px;
  }

  .ilist-item {
    font-size: 0.82em;
    padding: 4px 9px;
  }
}

@media (max-width: 480px) {
  .ilist-page-title {
    font-size: 1.25em;
  }

  .ilist-category-title {
    font-size: 1em;
  }
}
