@charset "UTF-8";

.contents {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem 0;
  border: 2px solid #5685C4;
}
.contents_item {
  max-width: 14.28571428%;
  width: 100%;
  box-sizing: border-box;
}
.contents_item:nth-child(n + 2) {
  border-left: 1px solid #5685C4;
}
.contents_item a {
  transition: 0.3s all;
}
.contents_item a:hover {
  opacity: 0.7;
  transition: 0.3s all;
}
.contents_image img {
  max-height: 60px;
  object-fit: contain;
}
.contents_text {
  text-align: center;
  margin-top: 1rem;
}
.contents_text span {
  line-height: 1.5;
  display: inline-block;
  font-size: 1.4rem;
}

@media screen and (max-width: 768px){
.contents {
  justify-content: left;
}
.contents_item {
  max-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #5685C4;
}
.contents_item:nth-child(n + 2) {
  border-left: initial;
}
.contents_item:nth-child(odd) {
  border-right: 1px solid #5685C4;
}
.contents_item:nth-child(n + 3) {
  padding-top: 1.5rem;
}
.contents_item:nth-child(7) {
  padding-bottom: initial;
  border-right: 1px solid #5685C4;
  border-bottom: initial;
    border-right: 0;
    max-width: 100%;
}
.contents_image img {
  max-height: 50px;
}
}