/* ================================================================
   BODY DECO - トップCSS
   Color Me Shop Admin: デザイン管理 > トップCSS
   ================================================================
   適用範囲: トップページ専用スタイル
   (共通CSS: 01b_共通CSS.css が先に読み込まれている前提)
   ================================================================ */

/* ── 7. ANNOUNCEMENT BAR ──────────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, #1a1400, #2a1f00, #1a1400);
  border-bottom: 2px solid rgba(200,169,110,0.5);
  overflow: hidden;
  height: 52px;
  display: flex;
  align-items: center;
}

.announcement-track {
  display: flex;
  align-items: center;
  animation: marqueeScroll 28s linear infinite;
  will-change: transform;
}
.announcement-track:hover { animation-play-state: paused; }

.announcement-text {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-right: 80px;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ── 8. HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(480px, 75vw, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.75);
  transform-origin: center;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.2) 50%,
    rgba(0,0,0,0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--sp-16);
  max-width: 680px;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2vw, 0.9375rem);
  letter-spacing: 0.3em;
  color: var(--color-accent);
  margin-bottom: var(--sp-3);
  display: block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 14rem);
  line-height: 0.9;
  color: var(--color-white);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-4);
}
.hero-title__line1 { display: block; }
.hero-title__line2 {
  display: block;
  color: var(--color-accent);
  font-weight: 400;
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  color: rgba(232,232,232,0.8);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: var(--sp-8);
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll__line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  margin-inline: auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.6); }
}


/* ── 9. TRUST BADGES ──────────────────────────────────────── */
.trust-badges {
  padding-block: var(--sp-5);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.badges-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

.badge-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.badge-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

.badge-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.badge-text strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}
.badge-text span {
  font-size: 0.8125rem;
  color: var(--color-muted);
}


/* ── 10. FEATURED CATEGORIES ──────────────────────────────── */
.featured-categories {
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-4);
  background: var(--color-bg);
}
/* Title header inside container */
.categories-header {
  margin-bottom: var(--sp-5);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}

.category-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.category-card:hover {
  background: var(--color-surface-3);
}

.category-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
  text-decoration: none;
}
.category-card__link:hover { text-decoration: none; }

.category-card__icon { display: none; }

.category-card__overlay {
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-off-white);
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.category-card:hover .category-card__title { color: var(--color-accent); }

.category-card__cta { display: none; }


/* ── 11. BANNER SLIDER (bxSlider) ────────────────────────── */
.banner-slider-section {
  width: 100%;
  overflow: hidden;
  background: var(--color-bg);
  margin: 0;
}
/* Static fallback (when no CMS slideshow is configured) */
.banner-static__link {
  display: block;
  line-height: 0;
  width: 100%;
}
.banner-static__img {
  width: 100%;
  height: auto;
  display: block;
}
.slider {
  width: 100%;
}
/* Strip bxSlider default white chrome &#8212; do NOT override height or width on
   viewport/li as bxSlider needs to control those for fade to work */
.bx-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  max-width: 100% !important;
  width: 100% !important;
}
.bx-wrapper .bx-viewport {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  left: 0 !important;
}
.bx-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}
/* hide pager dots and auto-play arrows */
.bx-wrapper .bx-pager,
.bx-wrapper .bx-controls-auto { display: none !important; }

/* Responsive height caps */
@media (max-width: 479px) {
  .bx-wrapper .bx-viewport { max-height: 200px; overflow: hidden !important; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .bx-wrapper .bx-viewport { max-height: 260px; overflow: hidden !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .bx-wrapper .bx-viewport { max-height: 340px; overflow: hidden !important; }
}

/* keep legacy promo-banner for any remaining uses */
.promo-banner {
  padding-block: var(--sp-6) var(--sp-12);
  background: var(--color-bg);
}
.promo-banner__link {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: opacity var(--dur-fast) var(--ease),
              transform var(--dur-base) var(--ease);
  box-shadow: var(--shadow-md);
}
.promo-banner__link:hover {
  opacity: 0.92;
  transform: scale(0.995);
}
.promo-banner__link img { width: 100%; border-radius: var(--radius-md); }


/* ── 12. PRODUCT SECTIONS ─────────────────────────────────── */
.products-section {
  padding-block: var(--sp-12);
  background: var(--color-bg);
}
.products-section--dark {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.product-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease-spring);
}
.product-card:hover {
  background: rgba(200,169,110,0.08);
  border-color: rgba(200,169,110,0.35);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(200,169,110,0.15);
  transform: translateY(-3px);
}

.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.product-card__link:hover { text-decoration: none; }
.product-card__img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain;
  object-position: center;
  transition: transform var(--dur-slow) var(--ease),
              filter var(--dur-slow) var(--ease);
}
.product-card:hover .product-card__img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Local placeholder &#8212; avoids third-party image hosts (privacy / perf) */
.product-card__no-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--sp-2);
  box-sizing: border-box;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(0,0,0,0.2));
  pointer-events: none;
}

.product-card__badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.product-card__badge--recommend {
  background: var(--color-accent);
  color: var(--color-bg);
}
.product-card__badge--hot {
  background: rgba(231, 76, 60, 0.9);
  color: #fff;
  backdrop-filter: blur(4px);
}

.product-card__body {
  padding: var(--sp-2) var(--sp-3) var(--sp-2);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.product-card__name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-off-white);
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.product-card__price {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-top: 1px solid var(--color-border);
  color: var(--color-accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: gap var(--dur-fast) var(--ease);
}
.product-card:hover .product-card__footer { gap: var(--sp-3); }


/* ── 13. ABOUT SECTION ────────────────────────────────────── */
.about-section {
  padding-block: var(--sp-10);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  overflow: hidden;
}

.about-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: justify;
  gap: var(--sp-10);
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.about-eyebrow {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  text-align: center;
}
.about-text .section-title { margin-bottom: var(--sp-2); text-align: center; }
.about-text p {
  color: rgba(232,232,232,0.7);
  font-size: 0.9375rem;
  line-height: 1.8;
}
.about-text .btn { align-self: center; margin-top: var(--sp-2); }


/* ── 14. BRANDS STRIP ─────────────────────────────────────── */
.brands-section {
  padding-block: var(--sp-8);
  background: var(--color-bg);
  overflow: hidden;
}
.brands-section .section-title {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 500;
  margin-bottom: var(--sp-8);
}
.brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  align-items: center;
}
.brand-item {
  padding: var(--sp-3) var(--sp-6);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.brand-item:hover {
  background: var(--color-surface-3);
  border-color: rgba(200,169,110,0.4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 0 1px rgba(200,169,110,0.15);
  transform: translateY(-2px);
}
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-off-white);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.brand-item:hover .brand-name { color: var(--color-accent); text-decoration: none; }


/* ── RESPONSIVE &#8212; TABLET (&#8805; 640px) ───────────────────────── */
@media (min-width: 640px) {
  .badges-list {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4) var(--sp-6);
  }

  .categories-grid { grid-template-columns: repeat(4, 1fr); }

  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── RESPONSIVE &#8212; DESKTOP (&#8805; 1024px) ─────────────────────── */
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(6, 1fr); }


  .hero-content { padding-block: var(--sp-24); }
  .hero { min-height: min(100vh, 800px); }
}

/* ── ABOUT-SECTION / FOOTER ATTACHMENT ───────────────────── */
/* Remove spacing gap: about-section leads directly into footer on top page */
.site-footer { margin-top: 0; border-top: none; }

/* Light theme: keep about-section in the page palette, not the black footer */
body.theme-light .about-section {
  background: var(--color-surface-2);
  border-color: rgba(100,80,180,0.2);
}
/*body.theme-light .about-text p { color: #4a3870; } */
body.theme-light .about-text p { color: #3D2515; }
body.theme-light .about-eyebrow {
  color: #7A3B00;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Light theme: trust-badges stays dark regardless of theme */
body.theme-light .trust-badges {
  background: #111111;
  border-bottom-color: rgba(255,255,255,0.08);
}
body.theme-light .badge-icon {
  background: #222222;
  border-color: rgba(255,255,255,0.08);
}
body.theme-light .badge-text strong { color: #ffffff; }
body.theme-light .badge-text span { color: #888888; }

/* Light theme: product-card background to white */
body.theme-light .product-card {
  background: #ffffff;
  border-color: rgba(100,80,180,0.15);
}
body.theme-light .product-card:hover {
  background: rgba(200,169,110,0.10);
  border-color: rgba(200,169,110,0.45);
}
body.theme-light .product-card__body { background: var(--color-surface-2); }
body.theme-light .product-card__name { color: #2a1a60; }
body.theme-light .product-card__price { color: #7A3B00; }
body.theme-light .product-card__footer {
  background: var(--color-surface-2);
  border-top-color: rgba(100,80,180,0.12);
  color: #5C3A1E;
}
body.theme-light .category-card:hover .category-card__title { color: #7A3B00; }
body.theme-light .brand-name { color: #3D2515; }
body.theme-light .brand-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12), 0 0 0 1px rgba(200,169,110,0.2); }
body.theme-light .brand-item:hover .brand-name { color: #7A3B00; }
