.btn1,
a.btn1,
button.btn1 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  margin: 10px 0px;
  padding: 1rem 1rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
}

a.btn-border {
  border: 2px solid #6f6b6a;
  border-radius: 0;
  background: #fff;

  -webkit-transform-style: preserve-3d;

  transform-style: preserve-3d;
}

a.btn-border:before {
  position: absolute;
  top: 0;
  left: 0;

  width: 5px;
  height: 100%;

  content: '';
  -webkit-transition: all .3s;
  transition: all .3s;

  background: #6f6b6a;
}

a.btn-border:hover {
  color: #fff;
  background: #6f6b6a;
}

a.btn-border:hover:before {
  background: #fff;
}
.categoly_btn {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 1rem;
}

.border_news{
  border: 1px solid #000;
  padding-top: 20px;
}


@media screen and (max-width: 768px) {
/* 768pxまでの幅の場合に適応される */
     .categoly_btn {
        white-space: nowrap;
        grid-auto-flow: row;  
        gap: 0rem;
        }
      a.btn1 {
        font-size: 1rem;
        border: 2px solid #000;
        border-radius: 0;
        background: #fff;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
        } 
      .btn1, a.btn1 {
        margin: 5px 15px;
    }
}