/* 一覧全体：検索ブロックと同じ max-width で中央寄せ */
.exnet-company-list {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  color: #000;
  line-height: 1.6;
  max-width: 90%;
  margin: 24px auto 40px;
  padding: 5px;
  list-style: none;
  gap: 2px;              /* カード同士のすき間 */
  justify-content: flex-start;
  align-items: stretch;

  display: grid;
  grid-template-columns: repeat(auto-fit, 240px);
}

/* 1カード（PC） */
.exnet-company-item {
  box-sizing: border-box;
  background-color: #ffffff;
  border-radius: 8px;
  /* border: 1px solid #e3e3e3; */
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 240px;
  height: 410px;
}

/* 本文エリア：ここが伸び縮みする */
.exnet-company-body {
  width: 100%;
  flex: 1 1 auto;
}

/* SNS行：下側にいつも存在する */
.company-card__sns-row {
  margin-top: 8px;
  width: 100%;
  min-height: 28px;           /* ← SNSがなくてもこの高さだけ確保 */
  display: flex;
  align-items: center;
}

/* SNSアイコンを横並び */
.company-card__sns-list {
  display: flex;
  gap: 4px;
}

/* SNSアイコン行 */
.exnet-company-sns {
  margin-top: 4px;
}

/* SNSアイコンイメージ用設定 */
.exnet-company-sns img {
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

/* サムネイル部分 */
.exnet-company-thumb img {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0px auto;
  object-fit: cover;
  border-radius: 6px;
}

/* 店名 */
.exnet-company-name {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: bold;
}

/* 業種 */
.exnet-company-tagline {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 住所 */
.exnet-company-addr1 {
  line-height: 1.6;
  max-width: 100%;
  word-break: break-all;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exnet-company-addr2 {
  line-height: 1.6;
  margin-top: -2px;  /* これくらいが「詰め気味できれい」になることが多い */
  max-width: 100%;
  min-height: 25.59px;           /* ← SNSがなくてもこの高さだけ確保 */
  word-break: break-all;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exnet-company-addr1 a,
.exnet-company-addr2 a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 電話 */
.exnet-company-tel {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* スマホ縦 */
@media screen and (min-width: 0px) and (max-width: 480px) {
  /* スマホでは 1列 or 2列。ここでは1列にしておく */
  .exnet-company-list {
    max-width: 95%;
    justify-content: center;
    padding: 5px;
  }
}

/* スマホ横 */
@media screen and (min-width: 481px) and (max-width: 896px) {
  .exnet-company-list {
    max-width: 95%;
    gap: 2px;
    padding: 5px;
  }
}