@charset "UTF-8";

.product-archive {
  --line-premium: #4C0061;
  --line-advanced: #01634A;
  --line-standard: #BA2C3C;
  color: #303338;
  background: #fff;
}

.product-archive__inner {
  width: min(calc(100% - 6rem), 124rem);
  margin: 0 auto;
  padding: clamp(8rem, 10vw, 14rem) 0 clamp(10rem, 12vw, 17rem);
}

.product-archive__header {
  margin-bottom: clamp(4rem, 5vw, 6.5rem);
}

.product-archive__header h1 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(3rem, 3.6vw, 5.2rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.product-brand-index {
  display: grid;
  gap: 3rem;
}

.product-line-bar-wrap {
  position: relative;
  isolation: isolate;
}

/* 黒い影 */
.product-line-bar-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0.18em;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  clip-path: polygon(0.8% 0, 100% 0, 99.2% 100%, 0 100%);
}

.product-brand-index__group h2,
.product-lineup__title {
  position: relative;
  z-index: 1;
  display: grid;
  box-sizing: border-box;
  min-height: 2.8rem;
  margin: 0;
  padding: 0.5em 2em 0.6em;
  color: #fff;
  font-family: "Source Han Sans JP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  background: var(--line-color);
  clip-path: polygon(0.8% 0, 100% 0, 99.2% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  place-items: center;
  
}

/* 内側の白いライン */
.product-brand-index__group h2::after,
.product-lineup__title::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0.18em;
  right: 0.18em;
  bottom: 0.18em;
  left: 0.18em;
  border: 1px solid rgba(255, 255, 255, 0.8);
  clip-path: polygon(0.7% 0, 100% 0, 99.3% 100%, 0 100%);
  pointer-events: none;
}

 

.product-brand-index__group--premium,
.product-lineup--premium {
  --line-color: #4C0061;
}

.product-brand-index__group--advanced,
.product-lineup--advanced {
  --line-color: #01634A;
}

.product-brand-index__group--standard,
.product-lineup--standard {
  --line-color: #BA2C3C;
}

.product-brand-index__group--handling,
.product-lineup--handling {
  --line-color: #454b52;
}



.product-brand-index__logos {
  display: flex;
  margin-top: 1.6rem;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.product-brand-index__logos a {
  display: grid;
  box-sizing: border-box;
  width: clamp(12rem, 13vw, 16.5rem);
  height: 5.6rem;
  padding: 0.8rem 1.5rem;
  overflow: hidden;
  color: #25292d;
  text-decoration: none;
  border: 0.1rem solid #c8cdd2;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 0.2rem 0.6rem rgb(21 31 44 / 9%);
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
  place-items: center;
}

.product-brand-index__logos img {
  width: auto;
  max-width: 92%;
  height: 3.2rem;
  max-height: 3.2rem;
  object-fit: contain;
}

.product-brand-index__logos span {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
}

.product-brand-index__logos a:hover,
.product-brand-index__logos a:focus-visible {
  border-color: var(--line-color);
  box-shadow: 0 0.7rem 1.8rem rgb(20 32 48 / 14%);
  transform: translateY(-0.3rem);
}

.product-brand-index__logos a:focus-visible,
.product-index-card > a:focus-visible {
  outline: 0.2rem solid #082b77;
  outline-offset: 0.4rem;
}

.product-lineups {
  display: grid;
  margin-top: clamp(8rem, 10vw, 14rem);
  gap: clamp(9rem, 11vw, 15rem);
}

.product-lineup__title {
  margin-bottom: clamp(5rem, 6vw, 8rem);
}

.product-brand-products {
  scroll-margin-top: 10rem;
}

.product-brand-products + .product-brand-products {
  margin-top: clamp(9rem, 10vw, 14rem);
}

.product-brand-products > h3 {
  margin: 0 0 clamp(3rem, 4vw, 5rem);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(2.8rem, 3.4vw, 4.6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: center;
}

.product-brand-products__heading a {
  display: inline-block;
  width: min(100%, 30rem);
  color: inherit;
}

.product-brand-products__heading img {
  display: block;
  width: min(100%, 30rem);
  height: clamp(3.6rem, 6vw, 7.2rem);
  object-fit: contain;
  margin-inline: auto;
}

.product-card-grid {
  display: grid;
  gap: clamp(5rem, 6vw, 8rem) clamp(2rem, 3vw, 4rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-index-card {
  min-width: 0;
}

.product-index-card > a {
  display: grid;
  color: inherit;
  text-decoration: none;
  gap: 1.4rem;
}

.product-index-card__image {
  display: grid;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
  place-items: center;
}

.product-index-card__image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  /*transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);*/
}

.product-index-card__image > span {
  color: #a0a5aa;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.product-index-card__logo {
  display: grid;
  height: 5.2rem;
  padding: 0 1rem;
  place-items: center;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-index-card__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 4.8rem;
  object-fit: contain;
}

/* Use the full logo area on the all-wheel index. */
.post-type-archive-product .product-index-card__logo img {
  width: 100%;
  height: 100%;
  max-height: none;
}

.product-index-card__logo h4 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.8rem, 1.8vw, 2.6rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

/*.product-index-card > a:hover .product-index-card__image > img,
.product-index-card > a:focus-visible .product-index-card__image > img {
  transform: scale(1.045);
}*/

.product-index-card > a:hover .product-index-card__logo,
.product-index-card > a:focus-visible .product-index-card__logo {
  transform: translateY(-0.25rem);
}

@media (max-width: 1024px) {
  .product-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .product-archive__inner {
    width: calc(100% - 3rem);
    padding: 7rem 0 9rem;
  }

  .product-archive__header {
    margin-bottom: 4rem;
  }

  .product-brand-index {
    gap: 2.5rem;
  }

  .product-brand-index__group h2,
  .product-lineup__title {
    min-height: 2.5rem;
    font-size: 1rem;
  }

  .product-brand-index__logos {
    margin-top: 1.2rem;
    gap: 0.8rem;
  }

  .product-brand-index__logos a {
    width: calc(33.333% - 0.6rem);
    height: 4.7rem;
    padding: 0.7rem 1rem;
  }

  .product-lineups {
    margin-top: 8rem;
    gap: 9rem;
  }

  .product-lineup__title {
    margin-bottom: 4rem;
  }

  .product-brand-products + .product-brand-products {
    margin-top: 8rem;
  }

  .product-brand-products > h3 {
    margin-bottom: 2.5rem;
    font-size: 2.8rem;
  }

  .product-card-grid {
    gap: 4.5rem 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-index-card > a {
    gap: 0.8rem;
  }

  .product-index-card__logo {
    height: 4rem;
    padding: 0 0.5rem;
  }

  .product-index-card__logo img {
    max-height: 3.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-brand-index__logos a,
  .product-index-card__image > img,
  .product-index-card__logo {
    transition: none;
  }
}

/* WEDS review 2026-11-24: consistent brand logo boxes and optional STAYER 2. */
.product-brand-index__logos img { width: 100%; height: 3.2rem; max-height: 3.2rem; object-fit: contain; }
/* Double the brand headings; keep index-button logos at their existing size. */
.product-brand-products__heading a { width: min(100%, 60rem); }
.product-brand-products__heading img { width: 100%; height: 12rem; max-width: 60rem; object-fit: contain; }
.product-lineup-more { margin-top: 6rem; border-top: 1px solid #d8dde3; padding-top: 2rem; }
.product-lineup-more > summary { width: fit-content; margin: 0 auto; padding: 1rem 3rem; border: 1px solid #c8cdd2; border-radius: 2rem; cursor: pointer; font-size: 1.6rem; }
.product-lineup-more > summary span { margin-left: 1rem; font-size: 1.3rem; }
.product-lineup-more[open] > summary { margin-bottom: 4rem; }
