@charset "UTF-8";

/* =============================================================================
   記事一覧ページ（漁視ダイアリー／漁視ネット）
   Figma : 水産DX（運用） /「漁視ダイアリー 記事一覧」「漁視ネット 記事一覧」
   common.css の後に読み込む。
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. ページ見出し
   -------------------------------------------------------------------------- */
.page-title {
  padding: 40px 0 10px;
  color: var(--c-blue);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

/* -----------------------------------------------------------------------------
   2. 記事一覧
   -------------------------------------------------------------------------- */
.articles {
  margin-top: 20px;
  padding-block: 60px;
  background: var(--c-gray);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 284px);
  justify-content: center;
  gap: 20px;
}

/* 2-1. 記事カード ---------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  width: 284px;
  height: 284px;
  overflow: hidden;
  border-radius: 11.321px;
  background: var(--c-white);
  box-shadow: 1.509px 1.509px 3.019px 0 rgba(0, 0, 0, .15);
}

.card__img {
  flex: none;
  width: 100%;
  height: 174.944px;
  object-fit: cover;
}

/* カテゴリはサムネイル下端に重ねる（絶対配置を使わずネガティブマージンで） */
.card__badge {
  align-self: flex-start;
  margin-top: -16.434px;
  padding: 4px 10px 7px;
  color: var(--c-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.card__badge--case { background: var(--c-orange); }
.card__badge--tips { background: var(--c-green); }

/* margin-top は Figma の text-box-trim（半行送りのトリム）を見込んだ値 */
.card__title {
  margin: 10.82px 15.094px 0;
  color: var(--c-blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  font-feature-settings: "palt" 1;
}

.card__more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7.547px;
  margin-top: auto;
  padding: 0 18.868px 19.25px;
  color: var(--c-blue);
  font-size: 10.566px;
  font-weight: 700;
  line-height: 1;
}

.card__more img {
  flex: none;
  width: 12.075px;
  height: 12.075px;
}

/* 2-2. 準備中カード（SP では非表示） --------------------------------------- */
.card-grid__soon { display: none; }

.card--soon {
  align-items: center;
  justify-content: center;
  background: #DADFE9;
  box-shadow: none;
  color: var(--c-white);
  font-size: 27.17px;
  font-weight: 700;
  line-height: 1.4;
  font-feature-settings: "palt" 1;
}

/* =============================================================================
   3. PC（768px 以上）
   ========================================================================== */
@media (min-width: 768px) {

  .page-title {
    padding: 0;
    font-size: 32px;
    line-height: 1.6;
  }

  .articles {
    margin-top: 30px;
    padding-block: 80px;
  }

  /* 漁視ネットは 2 段組みで上下余白が広い */
  .articles--net { padding-block: 110px; }

  .card-grid { justify-content: start; }

  .card-grid__soon { display: block; }
}

@media (min-width: 768px) and  (max-width: 1024px) {
  
  .card-grid { justify-content: center; }
}