  .links_type3 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.links_type3 .item-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(240px, 1fr));
  gap: 0.8rem;
}
.links_type3 .item-list .item {
  width: 100%;
}
/*.links_type3 .item-list .item:nth-child(-n+5)::after {
  content: "";
  width: calc(100% + 0.8rem);
  display: block;
  border-bottom: 1px solid #ccc;
  padding-bottom: 16px;
}*/
.links_type3 .item-list .item:nth-child(5)::after {
  width: calc(100%);
}
.links_type3 .item-list .item a {
  display: block;
}
.links_type3 .item-list .item a img {
  width: 100%;
}

    
    .links_type3 a:hover .links_text {
        color: var(--color-primary);
    }

    .links_type3 span.links_box {
        background-color: #eee;
        padding: 10px 15px 12px 15px;
        display: block;
        font-weight: 700;
    }

    .links_type3 .links_text {
        color: #565656;
        overflow: hidden;
        height: 50px;
        align-items: center;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        box-sizing: border-box;
    }

/**************
RWD s.
***************/
@media (max-width: 1400px) {
  .links_type3 .item-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .links_type3 .item-list .item:nth-child(n)::after {
    content: "";
    width: calc(100% + 0.8rem);
    display: block;
    border-bottom: 1px solid #ccc;
    padding-bottom: 16px;
  }
  .links_type3 .item-list .item:nth-child(4n)::after {
    width: calc(100%);
  }
}
@media (max-width: 1200px) {
  .links_type3 .item-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .links_type3 .item-list .item:nth-child(n)::after {
    content: "";
    width: calc(100% + 0.8rem);
    display: block;
    border-bottom: 1px solid #ccc;
    padding-bottom: 16px;
  }
  .links_type3 .item-list .item:nth-child(3n)::after {
    width: calc(100%);
  }
}
@media (max-width: 991.98px) {
  .links_type3 .item-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .links_type3 .item-list .item {
    column-rule: 2px dashed #222;
  }
  .links_type3 .item-list .item:nth-child(n)::after {
    content: "";
    width: calc(100% + 0.8rem);
    display: block;
    border-bottom: 1px solid #ccc;
    padding-bottom: 16px;
  }
  .links_type3 .item-list .item:nth-child(2n)::after {
    width: calc(100%);
  }
}
/**************
RWD e.
***************/
