* {
  margin: 0 auto;
  padding: 0;
}

figure{
	display: grid;
	align-items: center;
	height: 100%;
	box-sizing: border-box;

}

.prettifydiv {
  font-size: 13px;
}
* {
  margin: 0;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}

body {
  margin: 0 auto;
  color: var(--black);
}
 
.container {
  max-width: 1400px;
  margin: 0 auto;
}
 
input[type="radio"] {
  position: absolute;
  left: -9999px;
}

.filters {
  text-align: center;
  margin-bottom: 2rem;
}
.filters * {
  display: inline-block;
}
.filters label {
  text-align: center;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.25rem;
  min-width: 50px;
  line-height: normal;
  cursor: pointer;
  transition: all 0.2s;
  color: #999;
}
.filters label:hover {
  background: #994B8A;
  color: #fff;
}
.targets {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(7, 1fr);
}
.targets .target {
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.targets .target-title {
  font-size: 0.8rem;
  margin: 1rem 0 1rem 0.25rem;
  color: #999;
}
.targets .target-title:hover {
  text-decoration: none;
}
.targets figcaption {
  padding: 1rem;
	background-color: #000652;
	color: #fff;
	margin: 5px;
  font-size: 0.75rem;
	text-align: center;
}
.targets .target-categories {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
	text-align: center;
}
.targets .target-categories * {
  display: inline-block;
}
.targets .target-categories li {
  margin-bottom: 0.2rem;
}
.targets .target-categories a {
  padding: 0.2rem 0.5rem;
  transition: all 0.1s;
  color: #994B8A;
}
.targets .target-categories a:hover {
  background: #994B8A;
  color: #fff;
}
.targets2 {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
}
.targets2 .target {
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.targets2 .target-title {
  font-size: 0.8rem;
  margin: 1rem 0 1rem 0.25rem;
  color: #999;
}
.targets2 .target-title:hover {
  text-decoration: none;
}
.targets2 figcaption {
  padding: 1rem;
	background-color: #000652;
	color: #fff;
	margin: 5px;
  font-size: 0.75rem;
	text-align: center;
}
.targets2 .target-categories {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
	text-align: center;
}
.targets2 .target-categories * {
  display: inline-block;
}
.targets2 .target-categories li {
  margin-bottom: 0.2rem;
}
.targets2 .target-categories a {
  padding: 0.2rem 0.5rem;
  transition: all 0.1s;
  color: #994B8A;
}
.targets2 .target-categories a:hover {
  background: #994B8A;
  color: #fff;
}



/* フィルタリング  */
[value="All"]:checked ~ .filters [for="All"],
[value="cat-a"]:checked ~ .filters [for="cat-a"],
[value="cat-b"]:checked ~ .filters [for="cat-b"], 
[value="cat-c"]:checked ~ .filters [for="cat-c"], 
[value="cat-d"]:checked ~ .filters [for="cat-d"],
[value="cat-e"]:checked ~ .filters [for="cat-e"],
[value="cat-f"]:checked ~ .filters [for="cat-f"] {
  background: #994B8A;
  color: #fff;
}
[value="All"]:checked ~ .targets [data-category] {
  display: block;
}
[value="cat-a"]:checked ~ .targets .target:not([data-category~="cat-a"]), 
[value="cat-b"]:checked ~ .targets .target:not([data-category~="cat-b"]), 
[value="cat-c"]:checked ~ .targets .target:not([data-category~="cat-c"]),
[value="cat-d"]:checked ~ .targets .target:not([data-category~="cat-d"]), 
[value="cat-e"]:checked ~ .targets .target:not([data-category~="cat-e"]), 
[value="cat-f"]:checked ~ .targets .target:not([data-category~="cat-f"]) {
  display: none;
}
[value="All"]:checked ~ .targets2 [data-category] {
  display: block;
}
[value="cat-a"]:checked ~ .targets2 .target:not([data-category~="cat-a"]), 
[value="cat-b"]:checked ~ .targets2 .target:not([data-category~="cat-b"]), 
[value="cat-c"]:checked ~ .targets2 .target:not([data-category~="cat-c"]),
[value="cat-d"]:checked ~ .targets2 .target:not([data-category~="cat-d"]), 
[value="cat-e"]:checked ~ .targets2 .target:not([data-category~="cat-e"]), 
[value="cat-f"]:checked ~ .targets2 .target:not([data-category~="cat-f"]) {
  display: none;
}
/* メディアクエリ */
@media screen and (max-width: 900px) {
  .targets {
    grid-template-columns: repeat(3, 1fr);
  }
  .targets2 {
    grid-template-columns: repeat(3, 1fr);
  }
.container {
  width: 95%;;
  margin: 0 auto;
}
}
 
@media screen and (max-width: 650px) {
  html {
    font-size: 14px;
  }
  .targets {
    grid-template-columns: repeat(2, 1fr);
  }
  .targets2 {
    grid-template-columns: repeat(2, 1fr);
  }

}