/* ===== 導入企業実績一覧：一律縦積みレイアウト ===== */

/* グリッド配置 */
.company-list {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px 24px;
  max-width: 1040px;
  justify-content: start;
}

/* カード共通 */
.company-item {
  position: relative;
  display: flex;
  flex-direction: column;  /* 常に縦積み */
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 90px;        /* 高さゆったり */
  padding: 18px 20px;
  background: #f9fbff;
  color: #203a57;
  border: 1px solid #cdddfb;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
  box-shadow:
    0 0 0 2px rgba(47,111,222,0.06),
    0 4px 14px rgba(32,58,87,0.10);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

/* 左のアクセントバー */
.company-item::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg,#2f6fde,#48a6f7);
  opacity: .85;
}

/* aタグをカード全体に広げる */
.company-item a {
  display: flex;
  flex-direction: column;  /* 縦積み */
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* ロゴ画像 */
.company-item img.company-logo {
  max-height: 42px;  /* 上限だけ指定 */
  width: auto;
}


/* テキスト */
.company-item .company-name {
  font-size: 17px;
  font-weight: 500;
  color: #203a57;
  text-align: center;
  line-height: 1.4;
}

/* テキストのみのカード */
.company-item:not(:has(img)) {
  justify-content: center;
}

/* ホバー：リンク付きのみ */
.company-item:has(a):hover,
.company-item:has(a):focus-within {
  transform: translateY(-2px);
  background: #f5f9ff;
  border-color: #b8cffc;
  box-shadow:
    0 0 0 2px rgba(47,111,222,.10),
    0 8px 22px rgba(32,58,87,.18);
  cursor: pointer;
}
.company-item:not(:has(a)) { cursor: default; }

/* 注釈 */
.note-companylist {
  margin-top: 12px;
  font-size: 13px;
  color: #666;
  text-align: right;
}

/* スマホ対応 */
@media (max-width: 720px) {
  .company-item { min-height: 80px; font-size: 16px; }
  .company-item img.company-logo { height: 36px; }
  .company-item .company-name { font-size: 16px; }
}
