/* ============================================
   BRANDS PAGE - Specific Styles
   BEM prefix: em-brands__
   ============================================ */

/* --- Page Header (Hero) --- */
.em-page-header {
  position: relative;
  height: 525px;
  padding: 192px 128px 96px;
  color: var(--em-white);
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url('../images/hero/hero-bg.webp') 50% 50% / cover no-repeat;
}

.em-page-header .em-container {
  padding: 0;
}

.em-page-header__title {
  font-family: var(--em-font-en);
  font-size: 72px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 72px;
  color: var(--em-white);
  margin-bottom: 24px;
}

.em-page-header__subtitle {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 44.8px;
  color: var(--em-white);
}

/* --- Breadcrumb (hidden on brands, same as original) --- */
.em-breadcrumb {
  display: none;
}

/* --- Intro Section (YOUR AUDIO JOURNEY) --- */
.em-brands__intro {
  padding: 96px 128px;
  background: var(--em-offwhite);
  text-align: center;
}

.em-brands__intro .em-container,
.em-brands__section .em-container {
  padding: 0;
  max-width: none;
}

.em-brands__intro-title {
  font-family: var(--em-font-en);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 64px;
  margin-bottom: 24px;
  color: var(--em-black);
}

.em-brands__intro-lead {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 44.8px;
  margin-bottom: 48px;
  color: var(--em-black);
}

.em-brands__intro-body {
  max-width: 1184px;
  margin: 0 auto;
}

.em-brands__intro-body p {
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  letter-spacing: 0.8px;
  color: var(--em-black);
  text-align: center;
  margin-bottom: 24px;
}

.em-brands__intro-body p:last-child {
  margin-bottom: 0;
}

/* --- Category Sections --- */
.em-brands__section {
  padding: 96px 128px;
  background: var(--em-offwhite);
}

.em-brands__section--light {
  background: var(--em-offwhite);
}

.em-brands__section--alt {
  background: var(--em-offwhite);
}

.em-brands__section-title {
  font-family: var(--em-font-en);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 67.2px;
  color: var(--em-blue);
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 0;
}

.em-brands__section-title::after {
  display: none;
}

/* --- Section Intro Text --- */
.em-brands__section-intro {
  max-width: 654px;
  margin: 0 auto 96px;
  text-align: center;
}

.em-brands__section-intro p {
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  letter-spacing: 0.8px;
  color: var(--em-black);
}

/* --- Numbered Blocks (01. 02.) --- */
.em-brands__numbered-blocks {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-bottom: 96px;
  padding-bottom: 0;
  border-bottom: none;
}

.em-brands__numbered-block {
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: flex-start;
  position: relative;
  justify-content: center;
}

.em-brands__numbered-block--reverse {
  flex-direction: row-reverse;
}

.em-brands__numbered-image {
  width: 595px;
  height: 420px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--em-blue);
}

.em-brands__numbered-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-brands__numbered-content {
  width: 349px;
  flex-shrink: 0;
  padding-top: 48px;
}

.em-brands__numbered-label {
  display: block;
  font-family: var(--em-font-en);
  font-size: 20px;
  font-weight: 600;
  color: var(--em-blue);
  opacity: 1;
  line-height: 28px;
  margin-bottom: 12px;
}

.em-brands__numbered-title {
  font-family: var(--em-font-jp);
  font-size: 24px;
  font-weight: 600;
  line-height: 33.6px;
  letter-spacing: normal;
  margin-bottom: 16px;
  color: var(--em-black);
}

.em-brands__numbered-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  letter-spacing: 0.8px;
  color: var(--em-black);
  margin-bottom: 16px;
}

.em-brands__numbered-text:last-child {
  margin-bottom: 0;
}

/* --- Brand List --- */

.em-brands__list-title {
  font-family: var(--em-font-en);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 50.4px;
  color: var(--em-blue);
  text-align: center;
  margin-bottom: 48px;
}

/* --- Brand Card Grid (4 columns) --- */
.em-brands__list {
  text-align: center;
}

.em-brands__card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 220px));
  gap: 24px;
  justify-content: center;
  margin-bottom: 48px;
}

/* --- Brand Card (vertical: image top + text bottom) --- */
.em-brands__card {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  border-radius: 0;
  overflow: visible;
  background: var(--em-white);
  border: none;
  transition: none;
}

.em-brands__card:hover {
  box-shadow: none;
  transform: none;
}

.em-brands__card:last-child {
  margin-bottom: 0;
}

.em-brands__card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--em-white);
  padding: 16px;
  height: 100px;
  min-height: auto;
}

.em-brands__card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Brand logo link */
.em-brands__card-image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.em-brands__card-image a img {
  transition: opacity 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

.em-brands__card-image a:hover img {
  opacity: 0.7;
}

.em-brands__card-body {
  padding: 16px;
}

.em-brands__card-name {
  font-family: var(--em-font-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  margin-bottom: 8px;
  color: var(--em-text);
}

.em-brands__card-name a {
  color: var(--em-text);
  transition: color var(--em-transition);
}

.em-brands__card-name a:hover {
  color: var(--em-blue);
  opacity: 1;
}

.em-brands__card-tagline {
  font-size: 15px;
  font-weight: 700;
  color: var(--em-text);
  margin-bottom: 8px;
  line-height: 1.6;
}

.em-brands__card-desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--em-gray);
}

/* --- Back Link --- */
.em-brands__back-link {
  margin-top: 48px;
  padding-top: 32px;
  border-top: none;
  text-align: center;
}

.em-brands__back-link .em-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--em-black);
  color: var(--em-white);
  padding: 12px 48px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.em-brands__back-link .em-cta-link .material-icons {
  font-size: 18px;
}

/* ============================================
   RESPONSIVE - Tablet
   ============================================ */
@media (max-width: 1023px) {
  .em-brands__intro {
    padding: 64px 48px;
  }

  .em-brands__section {
    padding: 64px 48px;
  }

  .em-brands__numbered-block,
  .em-brands__numbered-block--reverse {
    flex-direction: column;
  }

  .em-brands__numbered-image {
    width: 100%;
    height: 300px;
  }

  .em-brands__numbered-content {
    width: 100%;
  }

  .em-brands__card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ============================================
   RESPONSIVE - Mobile
   ============================================ */
@media (max-width: 767px) {
  /* Issue #306: BRANDS 見出しが大きすぎてレイアウト崩れ。他ページヘッダーと揃える (40px) */
  .em-page-header {
    padding: calc(var(--em-header-height) + 48px) 24px 32px;
    height: auto;
  }

  .em-page-header__title {
    font-size: 40px;
    line-height: 44px;
  }

  .em-page-header__subtitle {
    font-size: 18px;
    line-height: 28px;
    letter-spacing: normal;
  }

  .em-brands__intro {
    padding: 48px 24px;
  }

  .em-brands__intro-title {
    font-size: 32px;
    line-height: 40px;
  }

  .em-brands__intro-lead {
    font-size: 18px;
    line-height: 28px;
  }

  .em-brands__section {
    padding: 48px 24px;
  }

  .em-brands__section-title {
    font-size: 28px;
    line-height: 36px;
  }

  .em-brands__numbered-image {
    height: 200px;
  }

  .em-brands__card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .em-brands__card-image {
    width: 100%;
  }

  .em-brands__list-title {
    font-size: 24px;
  }
}
