/* =========================================================
   お客様事例 共通
========================================================= */

.voice-section {
  background: #f7f2ea;
}

.voice-container {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.voice-header {
  margin-bottom: 34px;
  text-align: center;
}

.voice-title {
  margin: 0;
  color: #96372d;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.5;
}

.voice-lead {
  margin: 18px 0 0;
  color: #5b554f;
  font-size: 14px;
  line-height: 1.9;
}


/* =========================================================
   一覧
========================================================= */

.voice-list {
  display: grid;
  gap: 18px;
}


/* =========================================================
   カード
========================================================= */

.voice-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid #e1d9cf;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(59, 47, 36, 0.035);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.voice-card:hover {
  border-color: #bdc8b4;
  box-shadow: 0 10px 28px rgba(59, 47, 36, 0.08);
  transform: translateY(-2px);
}


/* =========================================================
   画像
========================================================= */

.voice-card__image {
  position: relative;
  display: block;
  width: 220px;
  height: 220px;
  min-height: 220px;
  overflow: hidden;
  background: #ece8e0;
}

.voice-card__image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.voice-card:hover .voice-card__image img {
  transform: scale(1.025);
}

.voice-card__noimage {
  position: absolute;
  inset: 0;
  display: grid;
  color: #817a72;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  place-items: center;
}


/* =========================================================
   本文
========================================================= */

.voice-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 28px;
}

.voice-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 12px;
}


/* =========================================================
   カテゴリー
========================================================= */

.voice-card__category {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 11px;
  border-radius: 3px;
  background: #738862;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.voice-card__category:hover {
  background: #5e724f;
  color: #fff;
}


/* =========================================================
   日付
========================================================= */

.voice-card__date {
  color: #817a72;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}


/* =========================================================
   タイトル
========================================================= */

.voice-card__title {
  margin: 0 0 10px;
  color: #302b27;
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.6;
}

.voice-card__title a {
  color: inherit;
  text-decoration: none;
}

.voice-card__title a:hover {
  color: #7f392f;
}


/* =========================================================
   抜粋
========================================================= */

.voice-card__excerpt {
  margin: 0 0 16px;
  color: #5c5650;
  font-size: 14px;
  line-height: 1.9;
}


/* =========================================================
   タグ
========================================================= */

.voice-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-right: 110px;
}

.voice-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid #d9d2c9;
  border-radius: 3px;
  background: #fff;
  color: #69635d;
  font-size: 11px;
  line-height: 1.3;
  text-decoration: none;
}

.voice-card__tag:hover {
  border-color: #7c9170;
  color: #5d714f;
}


/* =========================================================
   詳しく見る
========================================================= */

.voice-card__more {
  position: absolute;
  right: 26px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8b6229;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.voice-card__more:hover {
  color: #6f4c20;
}


/* =========================================================
   記事なし
========================================================= */

.voice-empty {
  padding: 30px;
  border: 1px solid #ded6cc;
  border-radius: 6px;
  background: #fff;
  color: #605a54;
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
}

.voice-empty p {
  margin: 0;
}


/* =========================================================
   タブレット
========================================================= */

@media (max-width: 900px) and (min-width: 769px) {

  .voice-card {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .voice-card__image {
    width: 190px;
    height: 220px;
  }

  .voice-card__body {
    padding: 22px;
  }

  .voice-card__tags {
    padding-right: 0;
  }

  .voice-card__more {
    position: static;
    align-self: flex-end;
    margin-top: 16px;
  }

}


/* =========================================================
   スマートフォン
========================================================= */

@media (max-width: 768px) {

  .voice-container {
    width: min(100% - 30px, 1080px);
  }

  .voice-header {
    margin-bottom: 26px;
  }

  .voice-list {
    gap: 16px;
  }

  .voice-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .voice-card__image {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .voice-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .voice-card__body {
    padding: 20px 18px 22px;
  }

  .voice-card__meta {
    gap: 8px 12px;
  }

  .voice-card__title {
    font-size: 19px;
  }

  .voice-card__excerpt {
    font-size: 13px;
  }

  .voice-card__tags {
    padding-right: 0;
  }

  .voice-card__more {
    position: static;
    align-self: flex-end;
    margin-top: 16px;
  }

}


/* =========================================================
   小さいスマートフォン
========================================================= */

@media (max-width: 480px) {

  .voice-container {
    width: calc(100% - 24px);
  }

  .voice-card__image {
    aspect-ratio: 4 / 3;
  }

  .voice-card__body {
    padding: 18px 16px 20px;
  }

  .voice-card__title {
    font-size: 18px;
  }

}