

.tarot-index {
  width: 100%;
  padding: 15px 0 40px;
  box-sizing: border-box;
}

.tarot-index__title {
  width: min(94vw, 375px);
  margin: 0 auto 15px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(69, 47, 36, 0.72);
  text-align: center;
  line-height: 1.4;
}

.tarot-index.article-pickup {
  margin-top: 0;
}

.tarot-index__filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12.5px 7.5px;
  width: 100%;
  margin: 0 auto 15px;
  padding: 0;
}

.tarot-index__filters--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tarot-index__filters--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 285px;
}

.tarot-index__filters--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  max-width: 190px;
}

.tarot-index__filter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7.5px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.tarot-index__filter-icon {
  display: block;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 47.5px;
  height: 47.5px;
}

.tarot-index__filter-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.tarot-index__filter-name {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-align: center;
  color: rgba(69, 47, 36, 0.72);
  white-space: nowrap;
}

.tarot-index__filter:not(.is-current) .tarot-index__filter-icon {
  filter: grayscale(1) brightness(0.78);
  opacity: 0.72;
}

.tarot-index__filter:not(.is-current) .tarot-index__filter-name {
  color: rgba(69, 47, 36, 0.42);
}

.tarot-index__filter.is-current .tarot-index__filter-name {
  color: #452f24;
}

.tarot-index__pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: min(94vw, 375px);
  margin: 22px auto 0;
}

.tarot-index__pager[hidden] {
  display: none;
}

.tarot-index__page,
.tarot-index__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(154, 133, 120, 0.38);
  border-radius: 8px;
  background: #fff;
  color: #6b4a38;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tarot-index__page.is-current {
  background: #f0c39b;
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  cursor: default;
}

.tarot-index__nav:disabled,
.tarot-index__page:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (min-width: 768px) {
  .tarot-index {
    padding: 17.5px 0 56px;
  }

  .tarot-index.article-pickup {
    margin-top: 0;
  }

  .tarot-index__title {
    width: min(90vw, 760px);
    margin-bottom: 17.5px;
    font-size: 20px;
  }

  .tarot-index__filters {
    
    width: calc((100% - 9 * 15px) / 10 * 5 + 4 * 15px);
    margin-bottom: 17.5px;
    gap: 12.5px 15px;
  }

  .tarot-index__filters--4 {
    width: calc((100% - 9 * 15px) / 10 * 4 + 3 * 15px);
  }

  .tarot-index__filters--2 {
    width: calc((100% - 9 * 15px) / 10 * 2 + 1 * 15px + 37.5px);
    max-width: none;
  }

  .tarot-index__filter-icon {
    width: 52.5px;
    height: 52.5px;
  }

  .tarot-index__filter-name {
    font-size: 12.5px;
  }

  .tarot-index__pager {
    width: min(90vw, 760px);
    margin-top: 28px;
    gap: 8px;
  }
}
