@charset "utf-8";

.p-categories {
  padding-top: 100px;

  @media (width < 768px) {
    padding-top: 50px;
  }

  section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .c-category {
    display: block;
    border-radius: 26px;
    background: #f6f5f4;
    min-width: 160px;
    padding: 16px 50px;
    color: var(--color-red);
    border: 1px solid transparent;
    font-size: 14px;
    flex-shrink: 1;
  }

  .c-category:hover,
  .c-category.is-selected {
    background: var(--color-red);
    color: #f6f5f4;
  }
}

.p-works {
  padding-top: 70px;
  padding-bottom: 140px;
  overflow: hidden;

  @media (width < 768px) {
    padding-top: 50px;
    padding-bottom: 80px;
  }

  section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 54px 20px;

    @media (width < 1120px) {
      gap: 40px 20px;
    }

    @media (width < 768px) {
      grid-template-columns: repeat(2, 1fr);
    }
  }
}
