/* ===== 全体レイアウト ===== */
.indoor-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px; /* 建物ごとの間隔 */
  padding: 40px 20px;
}

/* 建物ごと（bldg1, bldg7） */
.bldg1-groups,
.bldg7-groups,
.others-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px; /* カード間の距離 */
  justify-items: center;
  margin-bottom: 100px;
  padding: 0 20px;
  position: relative;
}

/* ===== カード本体 ===== */
.all-group {
  position: relative;
  width: 100%;
  max-width: 320px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  background: #e1f1fe;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

/* ===== 画像エリア（1:1比率） ===== */
.all-imagediv {
  width: 80%;
  aspect-ratio: 1 / 1; /* ★ 画像を常に正方形に */
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  margin: 30px auto;
}

.all-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.all-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
  text-align: center;
}

.all-date, .all-location, .all-groupname {
  margin: 5px 0;
  font-size: 0.9rem;
  text-align: center;
  color: #555;
}

.all-detail {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 10px;
}

/* ===== レスポンシブ調整 ===== */
@media (max-width: 768px) {
  .bldg1-groups,
  .bldg7-groups,
  .others-groups {
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 80px;
  }

  .indoor-groups {
    gap: 60px;
  }

.all-detail {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 10px;
}
}

/* 詳細表示アニメーション */
.all-invisible {
    display: none; /* 初期は非表示 */
}

.all-group.open .all-invisible {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 詳しくはこちらボタン風 */
.all-group .show-detail-btn {
    display: block;
    margin: 12px auto 0;
    padding: 6px 12px;
    width: fit-content;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255,192,203,0.7), rgba(173,216,230,0.7));
    color: #333;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* ホバー時の色変更 */
.all-group .show-detail-btn:hover {
    background: linear-gradient(90deg, rgba(255,182,193,0.9), rgba(135,206,250,0.9));
    transform: scale(1.05);
}