@charset "utf-8";
/* CSS Document */
.branches {
  text-align: center;
  padding: 60px 20px;
  background-color: #f8f8f8;
}


.branch-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0px;
}

/* カード共通設定 */
.branch-card {
  position: relative;
  width: 30%; /* PC時は3つ横並び */
  min-width: 280px;
  height: 260px;
  background-size: cover;
  background-position: center;
  border-radius: 0px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.branch-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.branch-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.branch-overlay p {
  font-size: 0.95rem;
  margin: 3px 0;
}

/* スマートフォン対応 */
@media (max-width: 768px) {
  .branch-container {
    flex-direction: column;
    align-items: center;
  }

  .branch-card {
    width: 90%; /* スマホでは全幅に近く表示 */
    height: 220px;
  }
}