.group-section {
  padding: 80px 20px;
  background: #f9f9f9;
  text-align: center;
  background: url(../images/group_bg.jpg) center center / cover no-repeat;
}

.section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #333;
  font-weight: bold;
  position: relative;
}

.group-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.group-card__ {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 300px;
  padding: 30px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.group-card {
  position: relative; /* ボタンの位置基準 */
  padding-bottom: 30px; /* 下の余白（必要に応じて調整） */
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 30px 20px;
  width: 300px;
  transition: all 0.3s ease;
  text-align: center;
}

.group-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 30px rgba(0,0,0,0.15);
}

.group-logo img {
  max-width: 100px;
  margin-bottom: 20px;
}

.group-card h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #222;
}

.group-card p {
  font-size: 0.95em;
  color: #666;
}

/*
.toggle-btn {
  background: none;
  border: none;
  color: #007bff;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
}
*/
.toggle-btn__ {
  position: absolute;
  left: 50%;
  bottom: -20px; 
  transform: translateX(-50%);
  
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-btn {
  position: absolute;
  left: 50%;
  bottom: -20px; /* カード下から半分はみ出す */
  transform: translateX(-50%);
  
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 2; /* 詳細より上に置く */
}

.card-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0;
}

.card-detail.open {
  max-height: 700px; /* 中身の高さに合わせて調整 */
  /*height: 700px;*/
  padding: 10px 0;
}

.card-detail .rent-image {
  display: block; /* ブロック要素にして改行 */
  max-width: 100%; /* コンテナ幅にフィット */
  height: auto;
  margin: 15px auto; /* 上下マージン＋中央寄せ */
  border-radius: 8px; /* 角丸 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


@media screen and (max-width: 768px) {
  .group-grid {
    flex-direction: column;
    align-items: center;
  }
}
