@charset "utf-8";
@import url("root.css");

/***************************************
-------------- campaign --------------
***************************************/
.campaign_wrap {
  width: 94%;
  margin: auto;
}
.campaign_list {
  width: 100%;
  display: flex;
  gap: 2rem;
  align-items: flex-start;

  .campaign_img {
    width: 150px;
    flex-shrink: 0;

    a {
      display: block;
      width: 100%;

      img {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        object-fit: cover;
        border-radius: 4px;
      }
    }
  }

  .campaign_content {
    flex: 1;

    a {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      text-decoration: none;
      color: inherit;

      .date {
        font-size: 1.4rem;
        color: #666;
      }

      .campaign_title {
        font-size: 1.8rem;
        font-weight: bold;
        line-height: 1.6;
      }

      .campaign_desc {
        font-size: 1.4rem;
        line-height: 1.6;
        color: #333;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      &:hover .campaign_title {
        text-decoration: underline;
      }
    }
  }
}
.campaign_list:not(:last-of-type) {
  padding-bottom: 2rem;
  border-bottom: 2px dotted #999;
  margin-bottom: 2rem;
}

@media (max-width: 599px) {
  .campaign_list {
    flex-wrap: wrap;
    gap: 1rem;

    .campaign_img {
      width: 100%;
    }

    .campaign_content {
      width: 100%;
    }
  }
}

#campaign_detail {
  .detail_date {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto 2rem;
    span {
      margin: 0;
    }
  }
  h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: bold;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--base-color01);
    margin-bottom: 2rem;
  }
  .detail_text {
    margin-bottom: clamp(15px, 3vw, 30px);
  }
}

.detail_img_wrap {
  display: flex;
  width: 100%;
  margin-bottom: clamp(10px, 2vw, 20px);
  gap: clamp(10px, 2vw, 20px) 2%;
  flex-wrap: nowrap;
  .detail_img_box {
    width: 49%;
    height: auto;
    aspect-ratio: 1/1;
    a {
      width: 100%;
      img {
        aspect-ratio: 1/1;
        object-fit: cover;
      }
    }
  }
}

@media (max-width: 599px) {
  .detail_img_wrap {
    flex-wrap: wrap;
  }
}
