@charset "UTF-8";

section#works {
  width: min(1120px, 100%);
  padding: 0 16px;
  padding-top: 144px;
  padding-bottom: 104px;
  margin-inline: auto;

  .h3-wrap {
    margin-bottom: 48px;
  }
}

form {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px;
  margin-bottom: 80px;

  background: #fff;
  border-radius: 20px;

  .btn-reset {
    color: #333;
    background: #f5f6f6;
    border: solid 2px #d6d6d6;
  }
}

.option-list-wrap {
  margin-bottom: 24px;

  .search-label {
    margin-bottom: 8px;

    font-weight: 700;
  }

  .option-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;

    label {
      display: block;
      padding: 4px 4px;

      font-size: 15px;
      color: var(--tc);
      font-weight: 700;
      text-align: center;

      transition: 0.3s all linear;

      border: solid 1px var(--tc);
      background: #fff;
      border-radius: 20px;

      input[type="checkbox"],
      input[type="radio"] {
        display: none;
      }
    }

    label:has(input[type="checkbox"]:checked),
    label:has(input[type="radio"]:checked) {
      color: #fff;

      background: var(--tc);
    }
  }
}

section#works .works-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
  row-gap: 32px;
  margin-bottom: 48px;

  li.item {
    height: 100%;


    a {
      display: block;
      height: 100%;
      padding: 24px;

      border-radius: 20px;
      background: #fff;
      box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    }

    .thumbnail-wrap {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 310 / 200;
      margin-bottom: 16px;

      img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
      }
    }

    p.title {
      margin-bottom: 24px;

      font-size: 18px;
      font-weight: 700;
      line-height: 1.4;
      text-align: center;
    }

    dl {
      display: grid;
      grid-template-columns: 6em 1fr;
      padding: 8px 0;

      dd {
        font-weight: 700;
      }
    }
  }
}

@media (min-width : 1200px) {}

@media (max-width : 1200px) {
  section#works {
    padding-top: 5dvh;
    padding-bottom: 5dvh;
  }
}

@media (max-width : 599px) {
  section#works .works-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    row-gap: 16px;

    li.item {
      height: 100%;

      a {
        padding: 0px;

        border-radius: 16px;
      }

      .thumbnail-wrap {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 310 / 200;
        margin-bottom: 16px;

        img {
          border-radius: 10px 10px 0 0;
        }
      }

      p.title {
        margin-bottom: 24px;

        font-size: 18px;
        font-weight: 700;
        line-height: 1.4;
        text-align: center;
      }

      dl {
        display: grid;
        grid-template-columns: 6em 1fr;
        padding: 8px 0;

        dd {
          font-weight: 700;
        }
      }
    }
  }
}