.base_items {
  /* 背景のグラデーションでガラス効果を強調 */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  padding: 2rem;
  border-radius: 20px;
}

.base_items_list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.base_items_list::after {
  display: none; /* グリッドレイアウトでは不要 */
}

.base_item {
  position: relative;
  list-style: none;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%; /* カード全体の高さを統一 */
}

.base_item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.base_item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.base_item dt {
  margin: 0 0 1rem 0;
}

.base_item dd {
  margin: 0;
  padding: 0;
  text-align: center;
  flex: 1; /* 残りのスペースを占有 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.base_item_img {
  width: 100%;
  height: 200px; /* 固定の高さで統一 */
  object-fit: cover; /* アスペクト比を保ちながらサイズ統一 */
  object-position: center; /* 中央部分を表示 */
  border-radius: 12px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.base_item:hover .base_item_img {
  transform: scale(1.05);
}

.base_item_title {
  font-size: 16px;
  font-weight: 800;
  color: #000000;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  flex-grow: 1; /* タイトル部分が可変に */
}

.base-item-price {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  background: #000000;
  text-align: center;
  display: block; /* ブロック要素に変更 */
  width: 100%; /* 横幅いっぱいに */
  margin: 0.5rem 0 0 0; /* マージン調整 */
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: 2px solid #000000;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-sizing: border-box; /* パディングを含めた計算 */
}

.base-item-price::before {
  content: '¥';
  margin-right: 2px;
}

/* ボタンホバー効果 */
.base-item-price:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ボタンクリック効果 */
.base-item-price:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .base_items {
    padding: 1rem;
  }
  
  .base_items_list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .base_item {
    padding: 1rem;
  }
  
  .base_item_img {
    height: 180px; /* レスポンシブでも統一されたサイズ */
  }
  
  .base_item_title {
    font-size: 14px;
    font-weight: 800;
  }
  
  .base-item-price {
    font-size: 16px;
    padding: 0.7rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .base_items_list {
    grid-template-columns: 1fr;
  }
  
  .base_item_img {
    height: 160px; /* スマホでも統一されたサイズ */
  }
  
  .base-item-price {
    font-size: 15px;
    padding: 0.6rem 1rem;
  }
}
