.candidates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 40px;  /* ← 下に40pxの余白を追加 */
}


.candidate {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  border: 1px solid #002f6c;
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 450px;   /* ← 1枚あたりの最大幅を制御 */
}

.candidate:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.candidate img {
  flex: 0 0 auto;
  width: 80px;
  height: 100px;
  object-fit: contain;
  background: #ffcc00;
  padding: 4px;
  border-radius: 4px;
  margin-right: 12px;
}

.candidate-content { flex: 1; min-width: 0; }  /* ← ellipsis 有効化に必須 */

.date {
  display: inline-block;
  background: #ffcc00;
  color: #002f6c;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 6px;
}

.area-election {
  font-size: 14px;
  font-weight: bold;
  color: #002f6c;
  margin: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.fullname {
  font-size: 16px;
  font-weight: bold;
  color: #002f6c;
  margin: 6px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.kana {
  font-size: 13px;
  color: #555;
}