.bar_d001 {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: var(--main-width, 1200px);
  margin: 0 auto;
}

.bar_d001-fullwidth {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: none;
}

.bar_d001-inner {
  width: 100%;
  overflow: hidden;
}

.bar_d001-track {
  display: flex;
  gap: var(--bar_d001-bd-gap, 10px);
  height: var(--bar_d001-bd-card-height, 12rem);
  transition: transform 0.5s ease;
  will-change: transform;
}

.bar_d001-card {
  flex: 0 0 auto;
  width: calc(
    (100% - (var(--bar_d001-bd-visible-count, 6) - 1) * var(--bar_d001-bd-gap, 10px)) /
      var(--bar_d001-bd-visible-count, 6)
  );
  height: 100%;
  position: relative;
  border-radius: 0.25rem;
  overflow: hidden;
  cursor: pointer;
}

.bar_d001-card[data-no-link="true"] {
  cursor: default;
}

.bar_d001-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.bar_d001-card:hover .bar_d001-image {
  transform: scale(1.05);
}

.bar_d001-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
  z-index: 1;
}

.bar_d001-card:hover .bar_d001-overlay {
  opacity: 1;
  visibility: visible;
}

.bar_d001-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar_d001-content {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.bar_d001-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}

[data-device="pad"] .bar_d001-track {
  gap: var(--bar_d001-bd-gap, 8px);
}

[data-device="pad"] .bar_d001-card {
  width: calc(
    (100% - (var(--bar_d001-bd-visible-count-pad, 4) - 1) * var(--bar_d001-bd-gap, 8px)) /
      var(--bar_d001-bd-visible-count-pad, 4)
  );
}

[data-device="phone"] .bar_d001-track {
  gap: var(--bar_d001-bd-gap, 6px);
}

[data-device="phone"] .bar_d001-card {
  width: calc(
    (100% - (var(--bar_d001-bd-visible-count-phone, 2) - 1) * var(--bar_d001-bd-gap, 6px)) /
      var(--bar_d001-bd-visible-count-phone, 2)
  );
}
