@charset "utf-8";

.carousel-wrapper {
  position: relative;
  width: 100%; 
  max-width: 100%;
  margin: 0 auto 15px auto;
  box-sizing: border-box;
}

.carousel-window {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 5px; 
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%; 
  max-width: 100%;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}

/* --- ボタンの配置調整（見切れ・重なり防止） --- */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.3s;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.btn-prev { left: 10px; }
.btn-next { right: 10px; }


/* カテゴリー全体の枠 */
.category-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* タイトル部分（左側の青い縦線と下線） */
.category-title {
  font-size: 12px;
  font-weight: bold;
  padding-left: 10px;
  border-left: 5px solid #007bc8;
  /* 青い縦棒 */
  border-bottom: 2px solid #000;
  /* 黒い下線 */
  padding-bottom: 5px;
  margin-bottom: 20px;
}

/* 横並びにするFlexboxの設定 */
.category-flex {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 各カテゴリーボックス（リンク） */
.category-item {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  padding: 15px 10px;
  text-decoration: none;
  color: #333;
  box-sizing: border-box;
  transition: background-color 0.2s;
}

.category-item:hover {
  background-color: #f9f9f9;
}

/* 画像を入れるエリア */
.item-img {
  width: 50px;
  flex-shrink: 0;
  height: auto;
  margin-right: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.item-img img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

/* テキスト部分 */
.item-text {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3;
}

.text-wrap .item-text {
  white-space: normal;
}