@charset "UTF-8";

.p-post-list {
  position: relative;
  overflow: hidden;
  background: #000842;
  color: #fff;
}

.p-post-list::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 520px;
  background: url("../img/post/bg-post-list-top.webp") center top / 100% auto
    no-repeat;
  pointer-events: none;
  z-index: 0;
}

.p-post-list__inner {
  position: relative;
  z-index: 1;

  width: min(100%, 1229px);
  margin-inline: auto;

  padding: 80px 56px 180px;
}

.p-post-list-mv {
  text-align: center;
}

.p-post-list-mv__title {
  margin: 0;
}

.p-post-list-mv__title img {
  width: 472px;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.45));
}

.p-post-list-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.p-post-list-filter a {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 103px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(57, 174, 255, 0.9);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.p-post-list-filter a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #3547ff 0%, #19b8e8 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.p-post-list-filter a:hover::before,
.p-post-list-filter li:first-child a::before {
  opacity: 1;
}

.p-post-list-content {
  margin-top: 56px;
}

.p-post-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 70px 24px;
}

.p-post-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.p-post-card__image {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}

.p-post-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .p-post-card__link:hover .p-post-card__image img {
    transform: scale(1.04);
  }
}

.p-post-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  line-height: 1.4;
}

.p-post-card__meta span {
  color: #fff;
  font-size: 16px;
}

.p-post-card__meta time {
  color: #fff;
  font-size: 14px;
}

.p-post-card__title {
  margin: 18px 0 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
}

.p-post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.p-post-card__tags li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3547ff 0%, #19b8e8 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.p-post-list-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  margin-top: 64px;
}

.p-post-list-pagination a,
.p-post-list-pagination span {
  position: relative;
  z-index: 0;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  border: 1px solid rgba(57, 174, 255, 0.9);
  border-radius: 50%;

  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;

  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}

.p-post-list-pagination a::before,
.p-post-list-pagination span::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background: linear-gradient(90deg, #3547ff 0%, #19b8e8 100%);
  opacity: 0;

  transition: opacity 0.3s ease;
}

.p-post-list-pagination a:hover::before,
.p-post-list-pagination .is-current::before {
  opacity: 1;
}

.p-post-list-pagination .is-current {
  border-color: transparent;
}

.p-post-list-pagination span:not(.is-current) {
  border: none;
}

.p-post-list-pagination .is-next {
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(57, 174, 255, 0.9);
  border-radius: 50%;
  background: #fff;

  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.p-post-list-pagination .is-next::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background: linear-gradient(90deg, #3547ff 0%, #19b8e8 100%);
  opacity: 0;

  transition: opacity 0.3s ease;
}

.p-post-list-pagination .is-next::after {
  content: "";
  position: relative;
  z-index: 1;

  width: 10px;
  height: 10px;

  border-top: 2px solid #000842;
  border-right: 2px solid #000842;

  rotate: 45deg;
  margin-left: -3px;

  transition: border-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .p-post-list-pagination .is-next:hover::before {
    opacity: 1;
  }

  .p-post-list-pagination .is-next:hover::after {
    border-color: #fff;
  }
}

@media (max-width: 1023px) {
  .p-post-list__inner {
    padding: 64px 40px 160px;
  }

  .p-post-list-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
}

@media (max-width: 767px) {
  .p-post-list::before {
    height: 360px;
  }

  .p-post-list__inner {
    padding: 104px 18px 120px;
  }

  .p-post-list-mv {
    text-align: left;
  }

  .p-post-list-mv__title {
    text-align: center;
  }

  .p-post-list-mv__title img {
    width: 221px;
  }

  .p-post-list-filter {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 45px;
  }

  .p-post-list-filter a {
    min-width: 84px;
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
  }

  .p-post-list-content {
    margin-top: 30px;
  }

  .p-post-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 19px;
  }

  .p-post-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 10px;
  }

  .p-post-card__meta span {
    font-size: 12px;
    gap: 2px;
  }

  .p-post-card__meta time {
    font-size: 10px;
  }

  .p-post-card__title {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
  }

  .p-post-card__tags {
    gap: 5px;
    margin-top: 8px;
  }

  .p-post-card__tags li {
    min-width: 54px;
    height: 20px;
    padding: 0 8px;
    font-size: 10px;
  }

  .p-post-list-pagination {
    gap: 10px;
    margin-top: 64px;
  }

  .p-post-list-pagination a,
  .p-post-list-pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transform: translateY(-1px);
    font-size: 16px;
  }
}
