.card-content .tags span, .filter-buttons button {
  cursor: pointer;
  transition: background .3s, color .3s
}
.contents-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem
}
h3 {
  font-family: "Funnel Sans", "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #0078ff;
  line-height: normal
}
.filter-buttons {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center
}
.filter-buttons button {
  padding: 8px 12px;
  border: 1px solid #0078ff;
  background: #fff;
  color: #0078ff;
  border-radius: 4px
}
.card, .card-wrapper .card-link {
  background: #fff;
  border-radius: .25rem;
  overflow: hidden
}
.card-content .tags span:hover, .filter-buttons button:hover {
  text-decoration: underline
}
.card-content .tags span.active, .filter-buttons button.active {
  background: #0078ff;
  color: #fff
}
.filter-buttons button::before {
  content: "#";
  margin-right: 4px
}
#active-tag-title {
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: #0078ff;
  text-align: center
}
.card-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  justify-content: start
}
.card {
  display: flex;
  flex-direction: column;
  padding: .6rem
}
.card-wrapper .card-link {
  position: relative;
  display: block;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 4px rgba(0, 120, 255, .2), 0 4px 8px rgba(0, 120, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -1px 2px rgba(255, 255, 255, .3)
}
.card-wrapper .card-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  transition: opacity .3s;
  z-index: 10
}
.card-wrapper .card-link::after {
  content: "購入はこちら";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .8);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .3s .1s;
  z-index: 11
}
.card-wrapper .card-link:hover::after, .card-wrapper .card-link:hover::before {
  opacity: 1;
  cursor: pointer
}
.card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left
}
.card-content p {
  flex: 1;
  margin: 0 0 16px;
  font-size: .95rem;
  color: #333
}
.card-content .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: .6rem;
  width: 100%;
  justify-content: flex-start
}
.card-content .tags span {
  display: inline-block;
  background: 0 0;
  border: 1px solid #0078ff;
  color: #0078ff;
  font-size: .8rem;
  padding: 5px 10px 5px 20px;
  border-radius: 999px;
  position: relative
}
.card-content .tags span::before {
  content: "#";
  position: absolute;
  left: 8px
}
@media (max-width:768px) {
  .card-wrapper {
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center
  }
  .card-wrapper .card {
    width: 100%;
    max-width: 400px
  }
}