@charset "UTF-8";
/*
 * トップの新着コラム（partials/top-column.php）。トップだけで読み込む。
 * css/column.css はコラムのページ専用なので、同じ見た目のカードをここに書いている。
 * 余白はセミナー枠と導入事例の間に合わせた（導入事例の上余白 PC 1.2rem・SP 0.4rem と同じ）。
 */

/* ---- カード（/column/ の一覧と同じ見た目）------------------------------ */

.p-section-top-column__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-section-top-column__item {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.p-section-top-column__link {
  display: flex;
  overflow: hidden;
  width: 100%;
  border: 1px solid #d8ecd8;
  background-color: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .p-section-top-column__link:hover {
    transform: translateY(-0.03rem);
    border-color: #02773a;
    box-shadow: 0 0.05rem 0.16rem rgba(6, 66, 31, 0.13);
  }

  .p-section-top-column__link:hover .p-section-top-column__image .u-object {
    transform: scale(1.05);
  }
}

.p-section-top-column__link:focus-visible {
  outline: 0.02rem solid #02773a;
  outline-offset: 0.02rem;
}

.p-section-top-column__image {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin: 0;
  background-color: #f0faf0;
}

.p-section-top-column__image .u-object {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.p-section-top-column__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.p-section-top-column__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem;
}

.p-section-top-column__date {
  color: #02773a;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
}

.p-section-top-column__category {
  padding: 0.02rem 0.08rem;
  border: 1px solid #ddefdd;
  border-radius: 0.03rem;
  background-color: #f2faf2;
  color: #02773a;
  font-size: 0.12rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.p-section-top-column__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #1e1e1e;
  font-weight: 700;
  letter-spacing: 0.04em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.p-section-top-column__action {
  max-width: 1.8rem;
  margin: 0 auto;
}

/* ---- PC ---------------------------------------------------------------- */

@media print, (width >= 768px) {
  .p-section-top-column {
    padding-top: 1.2rem;
  }

  .p-section-top-column__list {
    gap: 0.34rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0.44rem 0 0.6rem;
  }

  .p-section-top-column__link {
    flex-direction: column;
    border-radius: 0.14rem;
  }

  .p-section-top-column__image {
    width: 100%;
    border-bottom: 1px solid #eef7ee;
  }

  .p-section-top-column__body {
    padding: 0.18rem 0.2rem 0.22rem;
  }

  .p-section-top-column__meta {
    margin-bottom: 0.12rem;
  }

  .p-section-top-column__date {
    font-size: 0.13rem;
  }

  .p-section-top-column__title {
    font-size: 0.18rem;
    line-height: 1.6;
  }
}

/* ---- SP（画像を左に置いて、3件で長くなりすぎないようにする）------------ */

@media only screen and (width <= 767px) {
  .p-section-top-column {
    padding-top: 0.5rem;
  }

  .p-section-top-column__list {
    gap: 0.12rem;
    margin: 0.24rem 0 0.3rem;
  }

  .p-section-top-column__link {
    border-radius: 0.1rem;
  }

  /* 画像の高さに本文の高さを引きずられないよう、画像は枠いっぱいに重ねて置く */
  .p-section-top-column__image {
    position: relative;
    flex: 0 0 38%;
  }

  .p-section-top-column__image .u-object {
    position: absolute;
    top: 0;
    left: 0;
  }

  .p-section-top-column__body {
    justify-content: center;
    padding: 0.1rem 0.12rem;
  }

  .p-section-top-column__meta {
    margin-bottom: 0.05rem;
  }

  .p-section-top-column__date {
    font-size: 0.11rem;
    letter-spacing: 0.06em;
  }

  /* 日付と同じ行に収まらず画像より背が高くなるので、スマホでは出さない */
  .p-section-top-column__category {
    display: none;
  }

  .p-section-top-column__title {
    font-size: 0.13rem;
    line-height: 1.5;
  }
}
