@charset "utf-8";

.p-searchresults {
  background: #fffbf3;
  border-radius: 40px 40px 0 0;
  margin-top: -56px;
  padding: 134px 0 150px;

  @media (width < 768px) {
    padding: 80px 0 120px;
  }

  .l-inner {
    max-width: 1175px;
  }

  .webgene-blog {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px clamp(20px, calc(68vw / 13.66), 68px);

    @media (width < 768px) {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  }

  .webgene-legend {
    width: 100%;
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }

  .item-title {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1.5px solid #d0d0d0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 22px;
    line-height: 1;
    color: #00132b;

    .item-total {
      font-weight: 700;
      font-size: 42px;
      color: var(--color-green);
      line-height: 1;
      position: relative;
      bottom: 0.2em;
    }

    .item-unit {
      font-size: 16px;
      position: relative;
      left: 6px;
      bottom: 0.6em;
    }
  }

  .item-title::before {
    content: "";
    width: 8px;
    height: 34px;
    background: var(--color-l-green);
    margin-right: 8px;
  }

  .webgene-item {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e4e4e4;
    padding: 40px 20px 34px;

    @media (width < 768px) {
      max-width: 530px;
    }
  }

  .webgene-item-info {
    margin: 0 auto;
    max-width: 450px;
  }

  .item-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 26px;

    @media (width < 768px) {
      gap: 14px;
    }
  }

  .item-img-wrapper {
    width: 35%;
    min-width: 120px;
    aspect-ratio: 158/128;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .item-head-main {
    margin-top: 5px;
    flex: 1 1 auto;

    @media (width < 768px) {
      margin-top: 0;
      line-height: normal;
    }
  }

  .item-head-tag {
    min-width: 40px;
    padding: 2px 8px;
  }

  .item-head-title {
    margin-top: 2px;
    font-weight: 500;
    font-size: 14px;
    line-height: calc(32 / 14);
    min-height: 64px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;

    @media (width < 768px) {
      margin-top: 10px;
      line-height: 2;
    }
  }

  .item-lists {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
  }

  .item-list {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    line-height: calc(20 / 12);
    border-bottom: 1px solid #dcdcdc;
  }

  .item-list-head {
    min-width: 90px;
    font-weight: 500;
  }

  .item-list-text {
  }

  .item-link-inner {
    margin: 26px auto 0;
    text-align: center;
  }

  .item-link {
    min-width: 258px;
    justify-content: center;
    gap: 20px;

    p {
      font-size: 14px;
    }
  }

  .webgene-pagination {
    margin-top: 40px;

    @media (width < 768px) {
      margin-top: 0;
    }
  }
}
