/* posts */

.posts {
  padding-top: 100px;
  padding-bottom: 100px;
}

.posts .wrap {
  max-width: 1000px;
  padding: 0 15px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 767px) {
  .posts {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .posts .wrap {
    flex-direction: column;
  }
}

/* content */

.posts .content {
  width: 65%;
  margin-right: 5%;
}

.posts .wrap .content .boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.posts .wrap .content .boxes .box {
  position: relative;
  width: 48%;
  margin-bottom: 30px;
}

.posts .wrap .content .boxes .box .card {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
}

.posts .wrap .content .boxes .box .card a {
  padding: 5px 10px;
  background-color: #000;
  color: #fff;
  font-weight: bold;
  position: static;
  margin-right: 5px;
  margin-bottom: 5px;
  font-size: 12px;
}

.posts .wrap .content .boxes .box:nth-child(2n) {
  margin-left: 2%;
}

.posts .wrap .content .boxes .box .box-img img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.posts .wrap .content .boxes .box .box-main time {
  margin-top: 10px;
  display: block;
  font-size: 14px;
}

.posts .wrap .content .boxes .box .box-main .box-title {
  margin-top: 10px;
}

.posts .wrap .content .pagenavis {
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.posts .wrap .content .pagenavis a,
.posts .wrap .content .pagenavis span {
  margin-left: 5px;
  padding-right: 5px;
  font-size: 20px;
}

@media screen and (max-width: 767px) {
  .posts .content {
    width: 100%;
    margin-right: 0;
  }

  .posts .wrap .content .pagenavis a,
  .posts .wrap .content .pagenavis span {
    font-size: 16px;
  }
}

/* side */

.posts .wrap .side {
  width: 30%;
}

.posts .wrap .side .side-title {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid;
}

.posts .wrap .side .side-title.margin {
  margin-top: 30px;
}

.posts .wrap .side .side-category {
  display: flex;
  flex-direction: column;
}

.posts .wrap .side .side-category a {
  width: fit-content;
  margin-bottom: 10px;
}

.posts .wrap .side .side-tag {
  display: flex;
  flex-direction: column;
  /* height: 50px;
  overflow: scroll; */
}

.posts .wrap .side .side-tag a {
  width: fit-content;
  margin-bottom: 10px;
}

.posts .wrap .side .side-tag a::before {
  content: "#";
}

.posts .wrap .side .side-archive .ul li {
  width: fit-content;
  margin-bottom: 10px;
}

.posts .wrap .side .side-archive select {
  padding: 10px;
  margin-top: 20px;
}

@media screen and (max-width: 767px) {
  .posts .wrap .side {
    margin-top: 50px;
    width: 100%;
  }
}

/* single-posts */

.posts .wrap .single-posts {
  width: 65%;
  margin-right: 5%;
}

.posts .wrap .single-posts .cards {
  display: flex;
  align-items: flex-end;
}

.posts .wrap .single-posts .cards time {
  display: inline-block;
  margin-right: 10px;
}

.posts .wrap .single-posts .cards .card {
  display: flex;
  flex-wrap: wrap;
}

.posts .wrap .single-posts .cards .card a {
  padding: 5px 10px;
  background-color: #000;
  color: #fff;
  font-weight: bold;
  margin-right: 5px;
  font-size: 12px;
}

.posts .wrap .single-posts .titles {
  font-size: 30px;
  margin-top: 20px;
  margin-bottom: 50px;
}

@media screen and (max-width: 767px) {
  .posts .wrap .single-posts {
    width: 100%;
    margin-right: 0;
  }

  .posts .wrap .single-posts .titles {
    font-size: 20px;
  }
}

/* post-links */

.post-links {
  display: flex;
  margin-top: 100px;
  width: 100%;
  border: 1px solid #000;
}

.post-links .post-link {
  width: 33%;
}

.post-links .post-link-top {
  width: 33%;
  border-right: 1px solid #000;
  border-left: 1px solid #000;
}

.post-links .post-link a,
.post-links .post-link-top {
  position: relative;
  padding: 15px 0;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  display: block;
}

.post-links .post-link-p a {
  padding-left: 10px;
}

.post-links .post-link-n a {
  padding-right: 10px;
}

.post-links .post-link a::after {
  content: "";
  position: absolute;
  top: 24.5px;
  width: 6px;
  height: 6px;
  border: 2px solid #000;
}

.post-links .post-link-p a::after {
  left: 20px;
  transform: rotate(225deg);
  border-left: none;
  border-bottom: none;
}

.post-links .post-link-n a::after {
  right: 20px;
  transform: rotate(45deg);
  border-left: none;
  border-bottom: none;
}

@media screen and (max-width: 767px) {
  .post-links {
    margin-top: 50px;
    border: 1px solid #212121;
  }

  .post-links .post-link {
    width: 50%;
  }

  .post-links .post-link-p {
    border-right: 1px solid #000;
  }

  .post-links .post-link a {
    font-size: 14px;
  }

  .post-links .post-link a::after {
    top: 21.5px;
  }

  .post-links-sp {
    padding: 15px 0;
    border: 1px solid #000;
    font-weight: bold;
    text-align: center;
    display: block;
    font-size: 14px;
    width: 100%;
    margin-top: -1px;
  }
}
