.p-archives__main {
  margin: 0 auto;
  max-width: 1200px;
  padding: 80px 20px 20px;
}

@media screen and (max-width: 768px) {
  .p-archives__main {
    margin: 0 auto;
    padding: 50px 0 0;
    width: 90%;
  }
}

.p-archives__title {
  font-size: 24px;
  line-height: calc(38 / 24);
  text-align: center;
}

@media screen and (max-width: 768px) {
  .p-archives__title {
    font-size: 18px;
    line-height: calc(30 / 18);
  }
}

.p-archives__sort {
  background: #fff;
  border-radius: 5px;
  -webkit-box-shadow: 0 0 7px rgba(0, 0, 0, .16);
  box-shadow: 0 0 7px rgba(0, 0, 0, .16);
  margin-left: auto;
  margin-top: 30px;
  overflow: hidden;
  position: relative;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
}

@media screen and (max-width: 768px) {
  .p-archives__sort {
    margin-left: 0;
    margin-right: auto;
    margin-top: 50px;
  }
}

.p-archives__sort:before {
  background: none;
  background-image: url(../img/icon_arrow.svg);
  background-repeat: no-repeat;
  background-size: contain;
  content: " ";
  display: block;
  height: 18px;
  left: 12px;
  position: absolute;
  top: 10px;
  width: 18px;
}

.p-archives__sort select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
  border: none;
  color: #000;
  display: block;
  font-size: 14px;
  line-height: calc(21 / 14);
  height: 100%;
  padding: 9px 9px 9px 46px;
  -webkit-transform: scale(.875);
  -ms-transform: scale(.875);
  transform: scale(.875);
  -webkit-transform-origin: 0 50%;
  -ms-transform-origin: 0 50%;
  transform-origin: 0 50%;
  width: calc(100% + 42px);
  font-weight: bold;
  cursor: pointer;
}

.p-archives__sort select:focus {
  outline: none
}

.p-archives__list {
  display: grid;
  gap: 20px;
  margin: 30px auto 0;
  max-width: 760px;
}

.p-archives__list::after {
  content: unset;
}

.p-archives__link {
  display: grid;
  gap: 20px;
  grid-template-columns: 225px 1fr;
}

@media screen and (max-width: 768px) {
  .p-archives__link {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, 1fr);
  }
}

.p-archives__image {
  aspect-ratio: 225 / 150;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .p-archives__image {
    aspect-ratio: 150 / 100;
  }
}

.p-archives__text {
  padding-top: 20px;
}

@media screen and (max-width: 768px) {
  .p-archives__text {
    padding-top: 0;
  }
}

.p-archives__text > time {
  color: #808080;
  font-size: 11px;
  line-height: calc(20 / 11);
}

.p-archives__text > h2 {
  font-size: 16px;
  font-weight: normal;
  line-height: calc(28 / 16);
  margin: 0;
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .p-archives__text > h2 {
    font-size: 14px;
    line-height: calc(20 / 14);
  }
}

.p-archives__btn {
  border-radius: 5px;
  cursor: pointer;
  display: block;
  font-weight: bold;
  position: relative;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, .2);
  font-size: 14px;
  margin: 100px auto 0;
  width: fit-content;
}

.p-archives__btn a {
  display: block;
  padding: 12px 48px 12px 24px;
}

@media screen and (max-width: 768px) {
  .p-archives__btn {
    margin-top: 50px;
  }
}

.p-archives__btn::after {
  background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="8.061" height="14.707" viewBox="0 0 8.061 14.707"><path fill="%230" d="M.707,14.707,0,14,6.646,7.353,0,.707.707,0,8.061,7.353Z" /></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  height: 14px;
  position: absolute;
  right: 24px;
  top: calc(50% - 7px);
  width: 7px;
}

.p-archives__btn:hover {
  opacity: .6;
}
