.p-products {
  margin-block: 10rem 5rem;
  @media (max-width: 767.98px) {
    margin-block: 6rem;
  }
}

.p-products:nth-of-type(n+2) {
	margin-top: 5rem;
  margin-bottom: 10rem;
  @media (max-width: 767.98px) {
    margin-top: 6rem;
  }
}

.p-products__inner {
}
.p-products__cards {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  row-gap: 20px;
  column-gap: 60px;
  margin-top: 30px;
  @media (max-width: 767.98px) {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    row-gap: 25px;
    /* width: calc(360 / 420 * 100 * var(--vw)); */
    /* margin-inline: auto; */
  }
}
.p-products__card {
	display: flex;
	
}
.p-products__card-link {
  display: block;
  width: 100%;
  padding-block: 30px 20px;
  padding-inline: min(30px, 30 / 383 * 100%);
  border: 1px solid #007dc5;
  position: relative;
  isolation: isolate;
  transition: background 0.3s, color 0.3s;
  &:hover {
    background: #0075c2;
    color: #fff;
    border: 1px solid #007dc5;
  }
  &:hover .p-products__card-title {
    color: #fff;
  }
}
.p-products__card-link::after {
  content: "";
  display: block;
  width: 20px;
  aspect-ratio: 1;
  background: linear-gradient(to right bottom, transparent calc(50% - 0.5px), #007dc5 calc(50% + 0.5px));
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  translate: -6px -6px;
  transition: translate 0.3s;
}
.p-products__card-link:hover::after {
  translate: none;
  background: linear-gradient(to right bottom, transparent calc(50% - 0.5px), #fff calc(50% + 0.5px));
}
.p-products__no-padding {
  padding: 0;
}
.p-products__card-title {
  margin-top: calc(3.3 / 20 * 1em);
  color: #007dc5;
  padding-bottom: 7px;
  font-weight: 700;
  line-height: calc(29 / 20);
  font-size: clamp(1.4rem,1.8vw,1.8rem);
  transition: color 0.3s;
  @media (max-width: 767.98px) {
    font-size: 1.4rem;
  }
}

.p-products__card-title > small {
	font-size: clamp(1.4rem,1.8vw,1.8rem);
	@media (max-width: 767.98px) {
		font-size: 1.4rem;
	}
}


.p-products__card-desc {
  margin-top: calc(0 / 50 * 1em);
  margin-bottom: 10px;
  line-height: calc(24 / 16);
  font-size: clamp(1.4rem,1.8vw,1.8rem);
  @media (max-width: 767.98px) {
    font-size: 1.4rem;
  }
}

.p-products__img-box {
  
}

.p-products__img-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 30px;
  column-gap: 35px;
  @media (max-width: 767.98px) {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    row-gap: 20px;
    column-gap: 20px;
  }
}

.p-products__img-item {
  a {
    width: 100%;
    height: 100%;
    transition: opacity 0.3s;
  }
  a:hover {
    opacity: 0.8;
  }
}