.brand {
  color: #333;
  position: relative;
}

.brand__content {
  overflow: hidden;
  /* height: 0; */
  transition: height 1s ease;
}

.brand-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 0;
}

.brand-list img {
  max-width: 100%;
  height: auto;
}

.brand__content.is-open {
  max-height: none;
}

.brand-list__item.is-hidden,
.brand-detail.is-hidden {
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

.brand-card {
  text-align: center;
  padding-bottom: 16px;
  position: relative;
}
.brand-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleY(0.5);
  background-color: #C2C2C2;
}

.brand-card__name__en {
  font-size: 2rem;
}

.brand-card__image {
  margin-top: 20px;
}

.brand-btn {
  display: block;
  margin: 0 auto;
  width: 240px;
  max-width: 100%;
  color: #333;
  background-color: #fff;
  border: 1px solid #C2C2C2;
  padding: 16px;
  margin-top: 24px;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .brand-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .brand-card__name__kana {
    font-size: 1rem;
  }

  .brand-card__name__en {
    font-size: 1.2rem;
  }

  .brand-card__image {
    margin-top: 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.brand-area__title {
  scroll-margin-top: 100px;
}

@media screen and (max-width: 767px) {
  .brand-area__title {
    scroll-margin-top: 30px;
  }
}