/* ==================================================
   PAGE PRODUCT
   商品一覧ページ専用CSS（T-born準拠）
================================================== */


/* ===============================
   ANCHOR NAV（素材リンク）
=============================== */

.p-archive__anchorNav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 40px;

  font-size: 13px;        /* ← 小さめ */
  line-height: 1;
}

.p-archive__anchorLabel {
  color: #666;
  white-space: nowrap;
}

.p-archive__anchorLinks {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;      /* ← 絶対に折り返さない */
}

.p-archive__anchorLink {
  color: #000;
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}


.p-archive__anchorLink:hover {
  border-bottom-color: #000;
}


/* ===============================
   SECTION
=============================== */

.p-archive__section {
  margin-bottom: 72px;
}

.p-archive__sectionTitle {
  position: relative;
  padding-left: 0.5rem;
  font-size: 1.1rem;
  font-weight: 500; /* ← bold から 500 へ */
  line-height: 1.2;
  border-left: 3.5px solid #e5e5e5;
  display: inline-block;
  margin-bottom: 0.5rem;
  text-align: left;
}


/* ===============================
   PRODUCT GRID（6列）
=============================== */

.p-archive__products {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  padding: 20px 0;
}

/* PRODUCT CARD（枠の本体） */
.p-archive__productItem {
  width: calc((100% - 100px) / 6);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  text-align: center;

  border-radius: 4px;
}

/* 中身リンク */
.p-archive__productItem a {
  display: block;
  text-decoration: none;
  color: #000;
}

/* hover */
.p-archive__productItem:hover {
  box-shadow: none;
}




/* ===============================
   IMAGE
=============================== */

.p-archive__productImage {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 正方形 */
  overflow: hidden;
}

.p-archive__productImage img {
  position: absolute;
  inset: 0;              /* ← ここがポイント：一回り小さく */
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* hover グレーオーバーレイ */
.p-archive__productImage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.04);
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 1; /* ← 追加 */
}

/* VIEW MORE テキスト */
.p-archive__productImage::before {
  content: 'VIEW MORE';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 2; /* ← 追加（必須） */
}

/* hover */
.p-archive__productItem:hover .p-archive__productImage::after {
  opacity: 1;
}

.p-archive__productItem:hover .p-archive__productImage::before {
  opacity: 1;
}



/* ===============================
   PRODUCT NAME
=============================== */

.p-archive__productName {
  margin: 5px 0px 0;
  padding: 0 0;
  text-align: center;
  line-height: 1.5;
  color: #000;
font-size: clamp(12px, 1.2vw, 13px);
  word-break: break-word;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

height: 80px;

}


/* ===============================
   RESPONSIVE
=============================== */

/* Tablet */
@media screen and (max-width: 1024px) {

  .p-archive__productItem {
    width: calc((100% - 40px) / 3); /* 3列 */
    text-align: left;
  }

  .p-archive__productName {
    font-size: clamp(11px, 2.5vw, 15px);
    height: 80px;
    text-align: left;
  }

  .p-archive__productImage img {
    inset: 10%;
    width: 80%;
    height: 80%;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {

  .p-archive__anchorNav {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
  }

  .p-archive__productItem {
    width: calc((100% - 20px) / 2); /* 2列 */
  }

  .p-archive__productName {
    margin: 10px 2px 0;
    font-size: clamp(11px, 4vw, 14px);
    height: 70px;
    text-align: center;
  }

  .p-archive__productImage img {
    inset: 12%;
    width: 76%;
    height: 76%;
  }
}
