/* Tailwindで足りない最小限のみ */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::before {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.35rem;
  border-right: 1.5px solid #8B9CAA;
  border-bottom: 1.5px solid #8B9CAA;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  vertical-align: 0.1em;
}

details[open] > summary::before {
  transform: rotate(45deg);
}

.ref-icon {
  display: block;
  flex-shrink: 0;
}

.ref-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(35, 24, 21, 0.75);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(35, 24, 21, 0.2);
}

.swatch-copied {
  outline: 2px solid #2A89CA;
  outline-offset: 2px;
}
