.search-container {
  display: flex;
  justify-content: center;
  padding: 10px;
  background-color: #ffffff; 
}

.search-container input[type="text"] {
  padding: 18px;
  width: 500px;
  border: 1px solid #ccc;
  border-radius: 5px; 
  outline: none;
}

.search-container button {
  padding: 18px 27px;
  border: none;
  background-color: #0077aa;
  color: white;
  border-radius: 5px 5px 5px 5px; /*しょうみ5pxだけでいい*/
  cursor: pointer;
}

.search-container button:hover {
  background-color: #00aacc;
}

.search-icon {
  font-size: 16px; /*そのまんまやんけ*/
}

.search-container input[type="text"]:focus {
  border: 2px solid #00aacc; /* ボタンのhover色と統一 */
  box-shadow: 0 0 5px rgba(0, 170, 204, 0.5); /* 青系の柔らかい光 */
  transition: all 0.3s ease;
}

.genre-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
}

.search-container input[type="text"]:focus {
  border: 2px solid #00aacc;
  box-shadow: 0 0 8px rgba(0, 170, 204, 0.6);
  background-color: #f0fbff; /* ほんのり青みがかった背景 */
  transition: all 0.3s ease;
}

.genre-group button {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.genre-group button:hover {
  background-color: #e0e0e0;
}

.scroll-wrapper {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 10px;
}

.card-container {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.card-link {
  display: block;
  text-decoration: none;
  color: #000;
}

.card-link:visited,
.card-link:hover,
.card-link:active {
  color: #000;
}

.card-link:hover .card {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
  transition: 0.3s ease;
}

.card {
  width: 160px;           /* 幅を固定 */
  height: 360px;          /* 高さも固定 */
  overflow: hidden;       /* はみ出る要素は隠す */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  background-color: #fff;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.03);
   z-index: 1;
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
}

.card h3,
.card p {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 4px 0;
}

.scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.scroll-wrapper::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 3px;
}
/*MAIN MENU SEARCH*/