/* 右→左 テキスト・商品マーキー */

.hp-text-marquee {
  overflow: hidden;
  background: #111;
  color: #fff;
  padding: 14px 0;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.hp-text-marquee-track {
  display: flex;
  width: max-content;
  animation: hpMarqueeLeft 28s linear infinite;
  will-change: transform;
}

.hp-text-marquee-track span {
  flex-shrink: 0;
  padding: 0 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: 'Oswald', 'Noto Sans JP', sans-serif;
}

.hp-text-marquee--light {
  background: #f5f5f5;
  color: #111;
  border-color: #e5e5e5;
}

.hp-marquee-section {
  padding: 40px 0 48px;
  overflow: hidden;
  background: #fff;
}

.hp-marquee-section--dark {
  background: #0a0a0a;
}

.hp-marquee-head {
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hp-marquee-head h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #666;
}

.hp-marquee-head a {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.hp-marquee-head a:hover { color: #111; }

.hp-marquee-row {
  overflow: hidden;
  margin-bottom: 12px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hp-marquee-row:last-child { margin-bottom: 0; }

.hp-marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

.hp-marquee-row[data-speed="slow"] .hp-marquee-track { animation: hpMarqueeLeft 55s linear infinite; }
.hp-marquee-row[data-speed="fast"] .hp-marquee-track { animation: hpMarqueeLeft 32s linear infinite; }
.hp-marquee-row:not([data-speed]) .hp-marquee-track,
.hp-marquee-row[data-speed="normal"] .hp-marquee-track { animation: hpMarqueeLeft 42s linear infinite; }

.hp-marquee-row[data-direction="right"] .hp-marquee-track {
  animation-name: hpMarqueeRight;
}

.hp-marquee-row:hover .hp-marquee-track {
  animation-play-state: paused;
}

@keyframes hpMarqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes hpMarqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* カテゴリカード（skew用） */
.hp-marquee-cat {
  flex: 0 0 200px;
  height: 200px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #eee;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s, border-color 0.3s;
}
.hp-marquee-cat:hover {
  transform: scale(1.03);
  border-color: #111;
}
.hp-marquee-cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-marquee-cat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.65) 100%);
}
.hp-marquee-cat-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

/* 商品カード（マーキー用） */
.hp-marquee-prod {
  flex: 0 0 160px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.hp-marquee-prod-img {
  width: 160px;
  height: 160px;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 8px;
  position: relative;
}
.hp-marquee-prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.hp-marquee-prod:hover .hp-marquee-prod-img img { transform: scale(1.06); }
.hp-marquee-prod-name {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
  color: #222;
}
.hp-marquee-prod-price {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.hp-marquee-section--dark .hp-marquee-head h2 { color: #888; }
.hp-marquee-section--dark .hp-marquee-prod-name { color: #ddd; }
.hp-marquee-section--dark .hp-marquee-prod-price { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .hp-text-marquee-track,
  .hp-marquee-track { animation: none !important; }
}

@media (max-width: 640px) {
  .hp-marquee-cat { flex: 0 0 160px; height: 160px; }
  .hp-marquee-prod { flex: 0 0 130px; }
  .hp-marquee-prod-img { width: 130px; height: 130px; }
}
