/* RMS商品カテゴリ一覧 — グリッドカードレイアウト */

body.maroan-rms-product-archive #content.l-container,
body.maroan-rms-product-archive .l-mainContent__inner {
  max-width: 1180px;
}

body.maroan-rms-product-archive .l-mainContent {
  padding-top: 0.5rem;
}

.maroan-rms-archive__hub {
  margin-bottom: 1.25rem;
}

.maroan-rms-archive__trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e5e9df;
  border-radius: 8px;
  background: #f8faf5;
  font-size: 0.86rem;
  line-height: 1.4;
}

.maroan-rms-archive__trail-link {
  color: var(--color_htag, #3a4b05);
  font-weight: 600;
  text-decoration: none;
}

.maroan-rms-archive__trail-link:hover,
.maroan-rms-archive__trail-link:focus-visible {
  text-decoration: underline;
}

.maroan-rms-archive__trail-sep {
  color: #9ca3af;
}

.maroan-rms-archive__trail-current {
  color: #4b5563;
  font-weight: 700;
}

.maroan-rms-archive__byoubu-nav {
  margin-bottom: 0;
}

.maroan-rms-archive__quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 0.25rem;
}

.maroan-rms-archive__quick-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border: 1px solid #d7dece;
  border-radius: 999px;
  background: #fff;
  color: var(--color_htag, #3a4b05);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.maroan-rms-archive__quick-link:hover,
.maroan-rms-archive__quick-link:focus-visible {
  background: #f4f7ef;
  border-color: #b7c59f;
}

.maroan-rms-archive__quick-link.is-current {
  background: var(--color_main, #3a4b05);
  border-color: var(--color_main, #3a4b05);
  color: #fff;
}

.maroan-rms-archive__hub-footer {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #e8ebf0;
  text-align: center;
}

.maroan-rms-archive__hub-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.35rem;
  border: 1px solid var(--color_main, #3a4b05);
  border-radius: 999px;
  background: #fff;
  color: var(--color_main, #3a4b05);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.maroan-rms-archive__hub-back:hover,
.maroan-rms-archive__hub-back:focus-visible {
  background: var(--color_main, #3a4b05);
  color: #fff;
}

.maroan-rms-hub-faq {
  margin: 2rem 0 0;
}

.maroan-rms-hub-faq__title {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--color_htag, #3a4b05);
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  text-align: center;
}

.maroan-rms-hub-faq__list {
  display: grid;
  gap: 0.65rem;
}

.maroan-rms-hub-faq__item {
  border: 1px solid #e5e9df;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.maroan-rms-hub-faq__question {
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--color_htag, #3a4b05);
  cursor: pointer;
  list-style: none;
}

.maroan-rms-hub-faq__question::-webkit-details-marker {
  display: none;
}

.maroan-rms-hub-faq__answer {
  padding: 0 1rem 0.9rem;
  color: #555;
  line-height: 1.75;
  border-top: 1px solid #eef1ea;
}

.maroan-rms-hub-faq__answer p {
  margin: 0.75rem 0 0;
}

.maroan-rms-archive__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #f8faf5 0%, #fff 100%);
  border: 1px solid #e5e9df;
  border-radius: 10px;
}

.maroan-rms-archive__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.3;
  color: var(--color_htag, #3a4b05);
}

.maroan-rms-archive__count {
  margin: 0;
  color: #5f6b7a;
  font-size: 0.9rem;
  font-weight: 600;
}

.maroan-rms-archive__count-note {
  font-weight: 500;
  color: #7c8a9a;
}

.maroan-rms-archive__filters {
  margin-bottom: 1.1rem;
}

#maroan-rms-archive-results.is-loading,
#maroan-rms-archive-filters.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.maroan-rms-archive-filter {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
}

.maroan-rms-archive-filter__row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.maroan-rms-archive-filter__row--checks {
  margin: 0;
  padding: 0;
  border: 0;
}

.maroan-rms-archive-filter__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}

.maroan-rms-archive-filter__check {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
}

.maroan-rms-archive-filter__check input {
  margin-top: 0.15rem;
  accent-color: var(--color_main, #3a4b05);
}

.maroan-rms-archive-filter__check-label {
  line-height: 1.45;
}

.maroan-rms-archive-filter__check-count {
  color: #6b7280;
  font-size: 0.84rem;
}

.maroan-byoubu-archive__intro {
  margin-bottom: 1.25rem;
}

.maroan-rms-archive-filter__row--split {
  gap: 0.55rem;
}

.maroan-rms-archive-filter__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
}

.maroan-rms-archive-filter__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #374151;
}

.maroan-rms-archive-filter__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.maroan-rms-archive-filter__input {
  flex: 1 1 240px;
  min-width: min(100%, 240px);
  padding: 0.62rem 0.75rem;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-size: 0.92rem;
  line-height: 1.4;
}

.maroan-rms-archive-filter__input:focus {
  outline: 2px solid rgba(58, 75, 5, 0.25);
  border-color: #9ab08a;
}

.maroan-rms-archive-filter__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.1rem;
  border: 1px solid var(--color_main, #3a4b05);
  border-radius: 8px;
  background: var(--color_main, #3a4b05);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.maroan-rms-archive-filter__submit:hover {
  filter: brightness(1.05);
}

.maroan-rms-archive-filter__select {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.62rem 0.75rem;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-size: 0.92rem;
  line-height: 1.4;
}

.maroan-rms-archive-filter__select:focus {
  outline: 2px solid rgba(58, 75, 5, 0.25);
  border-color: #9ab08a;
}

.maroan-rms-archive-filter__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding-top: 0.15rem;
  border-top: 1px solid #eef2f6;
}

.maroan-rms-archive-filter__active {
  margin: 0;
  font-size: 0.82rem;
  color: #6b7280;
}

.maroan-rms-archive-filter__active strong {
  color: #374151;
}

.maroan-rms-archive-filter__sep {
  margin: 0 0.2rem;
}

.maroan-rms-archive-filter__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0 0.9rem;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #f8faf5;
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.maroan-rms-archive-filter__clear:hover {
  border-color: #b8c6b0;
  color: #1f2937;
}

@media (max-width: 767px) {
  .maroan-rms-archive-filter {
    gap: 0.65rem;
    padding: 0.8rem 0.85rem;
  }

  .maroan-rms-archive-filter__row {
    gap: 0.35rem;
  }

  .maroan-rms-archive-filter__row--split {
    gap: 0.45rem;
  }

  .maroan-rms-archive-filter__controls {
    width: 100%;
  }

  .maroan-rms-archive-filter__input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .maroan-rms-archive-filter__row {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }

  .maroan-rms-archive-filter__row--split {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .maroan-rms-archive-filter__field {
    flex: 1 1 0;
    width: auto;
  }

  .maroan-rms-archive-filter__label {
    flex: 0 0 8.5rem;
  }

  .maroan-rms-archive-filter__controls {
    flex: 1;
  }

  .maroan-rms-archive-filter__field {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }

  .maroan-rms-archive-filter__field .maroan-rms-archive-filter__label {
    flex: 0 0 7.5rem;
  }
}

.maroan-rms-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.maroan-rms-product-grid > .maroan-rms-product-card {
  margin: 0;
  padding: 0;
  list-style: none;
}

.maroan-rms-product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.maroan-rms-product-card__link:hover {
  border-color: #b8c6b0;
  box-shadow: 0 8px 20px rgba(58, 75, 5, 0.1);
  transform: translateY(-2px);
}

.maroan-rms-product-card__thumb {
  aspect-ratio: 3 / 4;
  background: #f6f8f4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.5rem;
}

.maroan-rms-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.maroan-rms-product-card__noimg {
  color: #9ca3af;
  font-size: 0.75rem;
}

.maroan-rms-product-card__body {
  padding: 0.7rem 0.8rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-height: 0;
}

.maroan-rms-product-card__title {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 700;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.maroan-rms-product-card__subtitle {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.maroan-rms-product-card__sku {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: #9ca3af;
  letter-spacing: 0.02em;
}

.maroan-rms-product-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.maroan-rms-product-card__price {
  font-size: 1rem;
  font-weight: 800;
  color: #9a3412;
  line-height: 1.2;
}

.maroan-rms-product-card__stock {
  font-size: 0.68rem;
  line-height: 1;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.maroan-rms-product-card__stock.is-in-stock {
  color: #166534;
  background: #ecfdf3;
}

.maroan-rms-product-card__stock.is-out-of-stock {
  color: #991b1b;
  background: #fef2f2;
}

.maroan-rms-archive__pagination {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e8ebf0;
}

.maroan-rms-archive__pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

.maroan-rms-archive__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0 0.55rem;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 0.88rem;
  text-decoration: none;
}

.maroan-rms-archive__pagination .page-numbers.current {
  background: var(--color_main, #3a4b05);
  border-color: var(--color_main, #3a4b05);
  color: #fff;
  font-weight: 700;
}

.maroan-rms-archive__pagination .page-numbers:hover {
  border-color: #b8c6b0;
  background: #f8faf5;
}

.maroan-rms-archive__empty {
  padding: 2rem 1.5rem;
  text-align: center;
  color: #6b7280;
  background: #f8f9fb;
  border-radius: 10px;
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .maroan-rms-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 960px) {
  .maroan-rms-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .maroan-rms-product-card__body {
    padding: 0.8rem 0.9rem 0.95rem;
  }

  .maroan-rms-product-card__title {
    font-size: 0.95rem;
  }
}

@media (min-width: 1200px) {
  .maroan-rms-product-grid {
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .maroan-rms-archive__header {
    padding: 0.85rem 0.9rem;
  }

  .maroan-rms-product-grid {
    gap: 0.65rem;
  }

  .maroan-rms-product-card__body {
    padding: 0.55rem 0.6rem 0.7rem;
  }

  .maroan-rms-product-card__title {
    font-size: 0.84rem;
  }

  .maroan-rms-product-card__subtitle {
    font-size: 0.76rem;
    -webkit-line-clamp: 1;
  }

  .maroan-rms-product-card__price {
    font-size: 0.92rem;
  }
}