#news .tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 60px;
}

#news .tags label {
  --border-width: 2px;
  --border-radius: 5px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 20px 0.15em;
  border-radius: var(--border-radius);
  background: var(--color-purple);
  overflow: hidden;
}

#news .tags label input {
  display: none;
}

#news .tags label span {
  position: relative;
}

#news .tags label::before,
#news .tags label::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 300ms;
}

#news .tags label::before {
  transition: opacity 200ms;
  background: linear-gradient(90deg, var(--color-lightblue) 0%, #8e8ed8 35%, #c97bdf 80%, var(--color-purple) 100%);
}

#news .tags label::after {
  border: solid var(--border-width) var(--color-white);
  border-radius: var(--border-radius);
}

#news .tags label:has(input:checked) {
  pointer-events: none;
  color: var(--color-purple);
  background: var(--color-white);
}

#news .tags label:has(input:checked)::before,
#news .tags label:has(input:checked)::after {
  opacity: 0 !important;
}

#news .page-list .colorbox-inner {
  overflow: initial;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 22.5px 7.5px 20px;
}

#news .page-list .colorbox-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border: solid 4px var(--color-white);
  opacity: 0;
  border-radius: 6px;
  overflow: hidden;
  transition: opacity 0.3s;
}

#news .page-list .img {
  position: relative;
  aspect-ratio: 295/165;
  overflow: hidden;
  background: #000;
}

#news .page-list .img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#news .page-list .img .cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#news .page-list .info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#news .page-list .info .date {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;
}

#news .page-list .info .type {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 17.5px;
  padding-bottom: 0.25em;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;
  background: var(--color-purple);
  border-radius: 5px;
}

#news .page-list h2,
#news .page-list .title {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

#news .page-list a .diamond .icon,
#news .page-list button .diamond .icon {
  font-size: 13px;
  margin-left: 0.2em;
  transition: transform 300ms;
}

#news .page-list a[target=_blank] .date {
  display: flex;
  align-items: center;
  gap: 8px;
}

#news .page-list button .img img {
  opacity: 0.6;
}

#news .page-list .outerlink-icon {
  position: absolute;
  right: 13px;
  bottom: 8px;
  width: 15px;
  height: 10px;
}

#news .page-list .outerlink-icon::before,
#news .page-list .outerlink-icon::after {
  width: 11.5px;
  height: 6.5px;
}

@media screen and (min-width: 768px) {
  #news .tags {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  #news .tags label {
    --border-width: 3px;
    --border-radius: 8px;
  }

  #news .tags label {
    height: 44px;
  }

  #news .page-list .colorbox-inner {
    gap: 10px;
    padding: 24px 10px 35px;
  }

  #news .page-list .colorbox-inner::before {
    border-radius: 9px;
  }

  #news .page-list .info .type {
    height: 25px;
    border-radius: 3px;
  }

  #news .page-list .outerlink-icon {
    right: 15px;
    bottom: 10px;
    width: 13px;
    height: 9px;
  }

  #news .page-list .outerlink-icon::before,
  #news .page-list .outerlink-icon::after {
    width: 10px;
    height: 6px;
  }
}

@media screen and (min-width: 1024px) {
  #news .tags {
    display: flex;
    justify-content: center;
    gap: 32px;
  }

  #news .tags label {
    --border-width: 4px;
    --border-radius: 10px;
  }

  #news .tags label {
    width: 150px;
    height: 40px;
  }

  #news .page-list .colorbox-inner {
    padding: 30px 10px 30px;
  }

  #news .page-list .colorbox-inner::before {
    border-radius: 12px;
  }

  #news .page-list a .diamond .icon,
  #news .page-list button .diamond .icon {
    font-size: 18px;
  }
}

@media screen and (min-width: 1280px) {
  #news .page-list .colorbox-inner {
    padding: 30px 15px 30px;
  }
}

@media (hover: hover) {
  #news .tags label:hover::before,
  #news .tags label:hover::after {
    opacity: 1;
  }

  #news .page-list a:hover .colorbox-inner::before,
  #news .page-list button:hover .colorbox-inner::before {
    opacity: 1;
  }

  #news .page-list a:hover .diamond .icon,
  #news .page-list button:hover .diamond .icon {
    transform: translate3d(0.4em, 0, 0);
  }
}

@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
  #news .tags label:hover::before,
  #news .tags label:hover::after {
    opacity: 1;
  }

  #news .page-list a:hover .colorbox-inner::before,
  #news .page-list button:hover .colorbox-inner::before {
    opacity: 1;
  }

  #news .page-list a:hover .diamond .icon,
  #news .page-list button:hover .diamond .icon {
    transform: translate3d(0.4em, 0, 0);
  }
}