@charset "utf-8";

/* ==================================================
   PRODUCTS ARCHIVE
   /products/
================================================== */

/* ===== Head ===== */
.sl-products-head {
  text-align: center;
  padding: 60px 0 40px;
}

.sl-products-head__title {
  font-size: 32px;
  font-weight: 700;
  color: #0b1b3a;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.sl-products-head__title .is-accent {
  color: #0b1b3a; /* デザインに合わせて黒/紺系に統一、必要なら変更 */
}

.sl-products-head__lead {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

/* =========================
   Filter UI
========================= */
.sl-products-filter {
  margin: 0 auto 40px;
}

.sl-products-filter__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sl-products-filter__row {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
}

.sl-products-filter__row:first-child {
  border-top: 1px solid #ddd;
}

.sl-products-filter__label {
  width: 120px;
  flex: 0 0 120px;
  font-weight: 700;
  color: #0b1b3a;
  font-size: 16px;
}

.sl-products-filter__buttons {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sl-filter-btn {
  appearance: none;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 4px; /* 丸みを抑える */
  cursor: pointer;
  line-height: 1.5;
  transition: all .2s ease;
}

.sl-filter-btn:hover {
  border-color: #0f2f6b;
  color: #0f2f6b;
}

.sl-filter-btn.is-active {
  background: #0f2f6b;
  border-color: #0f2f6b;
  color: #fff;
}

.sl-products-filter__noscript {
  margin: 12px 0 0;
  font-size: 13px;
  color: #64748b;
}

/* =========================
   List Area
========================= */
.sl-products-list-area {
  margin: 0 auto;
}

.sl-products-list-area__inner {
  max-width: 1040px; /* デザインに合わせて少し幅を制限 */
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Grid ===== */
.sl-item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px; /* 隙間を調整 */
}

/* ===== Card ===== */
.sl-item-card {
  background: #fff;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .2s ease;
  position: relative;
}

.sl-item-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
}

/* image */
.sl-item-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* 比率維持 */
  background: #f0f0f0;
  overflow: hidden;
}

.sl-item-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* オレンジの斜めライン装飾 (左下) */
/*
.sl-item-card__thumb::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 12px;
  width: 120px;
  height: 8px;
  background: #ea5514;
  transform: rotate(-25deg);
  transform-origin: bottom left;
  z-index: 1;
  pointer-events: none;
}
*/

/* badge (右下固定) */
.sl-item-card__badge {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  z-index: 2;
  border-radius: 0; /* 角丸なし */
}

/* sale status colors */
.sl-item-card__badge.is-sale-available { background: #FF8C42; } /* 濃紺 */
.sl-item-card__badge.is-sale-soldout   { background: #333; }

/* rental status colors */
.sl-item-card__badge.is-rental-available { background: #2d4f85; } /* デザインに近い青 */
.sl-item-card__badge.is-rental-busy      { background: #c0392b; } /* デザインに近い赤 */

/* body */
.sl-item-card__body {
  padding: 20px 20px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sl-item-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  margin: 0 0 15px;
}

/* spec */
.sl-item-card__spec {
  margin: 0 0 15px;
  display: grid;
  gap: 8px;
  font-size: 13px; /* 少し小さめに */
}

.sl-item-card__spec > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: baseline;
}

.sl-item-card__spec dt {
  font-weight: 700;
  color: #555;
  white-space: nowrap;
}

.sl-item-card__spec dt::after {
  content: "：";
}

.sl-item-card__spec dd {
  margin: 0;
  color: #111;
  font-weight: 700;
}

/* cta (右寄せリンク) */
.sl-item-card__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* 右寄せ */
  gap: 5px;
  font-weight: 700;
  color: #444; /* 文字はダークグレー */
  font-size: 13px;
  text-decoration: none;
  padding-top: 10px;
}

.sl-item-card__cta:hover {
  text-decoration: underline;
  color: #000;
}

.sl-item-card__cta-icon {
  display: inline-block;
  color: #c0392b; /* 矢印は赤 */
  font-weight: 900;
  font-family: sans-serif;
  transform: translateY(-1px);
}

/* ===== Empty ===== */
.sl-empty {
  text-align: center;
  padding: 40px 0 10px;
  color: #64748b;
  font-weight: 700;
}

/* ===== Pagination ===== */
.sl-products-archive .sl-pagination,
.sl-products .sl-pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.sl-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 4px;
  background: #1d3461; /* 通常時の背景 */
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: opacity .2s;
}

.sl-pagination .page-numbers.current {
  background: #fff; /* カレントは白背景に青文字など反転させるか、デザイン次第 */
  background: #122446; /* デザイン画像：濃い青のアクティブ */
  /* 画像を見ると、アクティブが濃紺、他は少し薄いか、あるいは白抜き？
     画像では「1」が濃紺背景、「2」「3」も同じ四角。
     ここではメインカラーで統一し、ホバーで変化させます */
}
.sl-pagination a.page-numbers {
  background: #fff;
  color: #1d3461;
  border: 1px solid #1d3461;
}

.sl-pagination .page-numbers.current {
  background: #1d3461;
  color: #fff;
  border: 1px solid #1d3461;
}

.sl-pagination a.page-numbers:hover {
  background: #1d3461;
  color: #fff;
}

.sl-pagination .prev,
.sl-pagination .next {
  font-family: sans-serif;
  background: transparent !important;
  color: #1d3461 !important;
  border: none !important;
  font-size: 20px;
}

/* ===== CTA (Bottom Box) ===== */
.sl-under-cta {
  padding: 80px 20px;
  background: #f4f4f4; /* ベース背景 */
}

.sl-under-cta__inner {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid #1e3566; /* 青い枠線 */
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sl-under-cta__lead {
  font-size: 18px;
  font-weight: 700;
  color: #0f2f6b;
  margin-bottom: 24px;
}

.sl-under-cta__btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.sl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 50px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  transition: opacity .2s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.sl-btn:hover {
  opacity: 0.9;
}

.sl-btn--primary {
  background: #1d3461; /* 濃紺 */
}

.sl-btn--accent {
  background: #e67e22; /* オレンジ */
}


/* =========================
   Responsive
========================= */
@media (max-width: 1024px) {
  .sl-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .sl-products-archive,
  .sl-products {
    padding-bottom: 60px;
  }
  .sl-products-head{
    padding: 60px 20px 40px;;
  }
  .sl-products-head__lead {
    text-align: left;
  }

  .sl-products-filter__row {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .sl-products-filter__label {
    width: auto;
    flex-basis: auto;
  }

  .sl-item-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sl-under-cta__btns {
    flex-direction: column;
    align-items: center;
  }
}