@charset "UTF-8";

.b-brand-archive {
  color: #24272b;
  background: #fff;
}

.b-brand-lineup {
  width: min(calc(100% - 6rem), 124rem);
  min-height: 60vh;
  margin: 0 auto;
  padding: clamp(9rem, 11vw, 15rem) 0 clamp(10rem, 12vw, 17rem);
}

.b-brand-lineup__heading {
  display: flex;
  margin: 0 auto clamp(6rem, 7vw, 9rem);
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 4vw, 6rem);
}

.b-brand-lineup__brand-logo {
  display: grid;
  width: clamp(18rem, 25vw, 34rem);
  /*height: clamp(8rem, 10vw, 13rem);*/
  place-items: center;
}

.b-brand-lineup__brand-logo img {
  display: block;
  width: 100%;
  max-width: 100%;
   height: auto;
  /*height: 100%;
  object-fit: contain;*/
}

.b-brand-lineup__heading h1 {
  margin: 0;
  color: #33373b;
  font-family: "Source Han Sans JP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: clamp(2.2rem, 2.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.35;
  white-space: nowrap;
}

.b-brand-products {
  display: grid;
  gap: clamp(4rem, 5vw, 7rem) clamp(1.8rem, 2.6vw, 4rem);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.b-brand-product-card {
  min-width: 0;
}

.b-brand-product-card__link {
  display: grid;
  color: inherit;
  text-decoration: none;
  gap: 1.2rem;
  grid-template-rows: auto minmax(4.2rem, auto);
}

.b-brand-product-card__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
  place-items: center;
}

.b-brand-product-card__visual img {
  display: block;
  width: 90%;
  height: 90%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.b-brand-product-card__visual span {
  color: #9a9da1;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}

.b-brand-product-card__logo {
  display: grid;
  min-height: 4.2rem;
  padding: 0 0.6rem;
  place-items: start center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.b-brand-product-card__logo img {
  display: block;
  width: 100%;
  height: 5.2rem;
  object-fit: contain;
}

.b-brand-product-card__logo h2 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.6rem, 1.5vw, 2.3rem);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.b-brand-product-card__link:hover .b-brand-product-card__visual img,
.b-brand-product-card__link:focus-visible .b-brand-product-card__visual img {
  transform: scale(1.045);
}

.b-brand-product-card__link:hover .b-brand-product-card__logo,
.b-brand-product-card__link:focus-visible .b-brand-product-card__logo {
  transform: translateY(-0.35rem);
}

.b-brand-product-card__link:focus-visible {
  outline: 2px solid #082b77;
  outline-offset: 0.8rem;
}

.b-brand-lineup__empty {
  margin: 6rem 0;
  color: #747980;
  font-size: 1.6rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .b-brand-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .b-brand-lineup {
    width: min(calc(100% - 3rem), 124rem);
    padding: 7rem 0 9rem;
  }

  .b-brand-lineup__heading {
    margin-bottom: 5rem;
    flex-direction: column;
    gap: 1.8rem;
  }

  .b-brand-lineup__brand-logo {
    width: min(64vw, 27rem);
    height: 9rem;
  }

  .b-brand-lineup__heading h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
    white-space: normal;
  }

  .b-brand-products {
    gap: 4rem 1.6rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .b-brand-product-card__link {
    gap: 0.8rem;
  }

  .b-brand-product-card__logo {
    min-height: 3.5rem;
  }

  .b-brand-product-card__logo img {
    height: 4.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b-brand-product-card__visual img,
  .b-brand-product-card__logo {
    transition: none;
  }
}


/* Common discontinued-model destination on every brand lineup. */
.b-brand-lineup__discontinued { margin:clamp(3rem,4vw,5rem) 0 0; text-align:center; }
.b-brand-lineup__discontinued-link { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; max-width:100%; min-height:50px; padding:10px 24px; border:2px solid #98a7b9; border-radius:999px; background:#fff; color:#71808a; font-size:18px; font-weight:700; line-height:1.4; text-align:center; text-decoration:none; overflow-wrap:anywhere; }
.b-brand-lineup__discontinued-link:hover { background:#f4f6f8; }
.b-brand-lineup__discontinued-link:focus-visible { outline:2px solid #71808a; outline-offset:3px; }

/* Space the child-brand buttons and separate them from the wheel grid. */
.term-casual-wheels nav.b-brand-lineup__discontinued {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 16px);
  margin-bottom: clamp(32px, 4vw, 56px);
}
