/* ============================================================
   Business Activities page overrides
   Shared main-content and side-navigation components are defined in:
   /css/sustainability-components.css
   This page has no side navigation, so env-layout is full width
   (matching how materiality/index.html's sidebar-less sections
   use the full container width).
   ============================================================ */
/* サイドバーありの2カラムレイアウトは sustainability-components.css のデフォルトを使用 */

/* Match materiality.css's .mat-lead__text, which spans the full
   container width rather than the narrower default env-lead__text. */
.env-lead__text {
  max-width: var(--max-w);
}

/* FV: same dark-bottom gradient as message.css uses on the
   トップメッセージ (president) page's FV. */
.fv::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10, 20, 15, 0.55) 0%,
    rgba(10, 20, 15, 0.44) 10%,
    rgba(10, 20, 15, 0.32) 22%,
    rgba(10, 20, 15, 0.21) 34%,
    rgba(10, 20, 15, 0.12) 46%,
    rgba(10, 20, 15, 0.065) 58%,
    rgba(10, 20, 15, 0.028) 70%,
    rgba(10, 20, 15, 0.011) 82%,
    rgba(10, 20, 15, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.fv__text {
  z-index: 2;
}

/* ------------------------------------------------------------
   Business activity sections
   ------------------------------------------------------------ */
.biz-section:last-child {
  padding-bottom: 64px;
}

.biz-section__heading {
  margin: 0 0 28px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.biz-cards {
  display: flex;
  flex-direction: column;
}

.biz-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.biz-card + .biz-card {
  margin-top: 40px;
}

.biz-card__body {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 24px;
}

.biz-card__body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  background: var(--border);
}

.biz-card__title {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.biz-card__text {
  margin: 0 0 1em;
  color: var(--text);
  font-size: 15px;
  line-height: 2;
}

.biz-card__text:last-of-type {
  margin-bottom: 0;
}

.biz-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--red) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.biz-card__arrow {
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  transform: rotate(45deg);
}

.biz-card--vertical {
  flex-direction: column;
  gap: 24px;
}

.biz-card--vertical .biz-card__media {
  flex: 0 0 auto;
  width: 100%;
}

.biz-card--vertical .biz-card__media img {
  aspect-ratio: 16 / 9;
}

.biz-card__media {
  flex: 0 0 340px;
  width: 340px;
}

.biz-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ------------------------------------------------------------
   Related materiality box
   ------------------------------------------------------------ */
.biz-materiality {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 32px 0 0;
  padding: 22px 24px;
  background: #F5F5F5;
}

.biz-materiality__label {
  flex: 0 0 150px;
  color: var(--text-sub);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

.biz-materiality__list {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 8px;
  margin: 0;
}

.biz-materiality__row {
  display: flex;
  gap: 16px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.biz-materiality__code {
  flex: 0 0 auto;
  font-weight: 700;
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  .biz-section:last-child {
    padding-bottom: 48px;
  }

  .biz-section__heading {
    font-size: 19px;
  }

  .biz-card {
    flex-direction: column;
  }

  .biz-card__media {
    width: 100%;
    flex: none;
    order: -1;
  }

  .biz-materiality {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px 20px;
  }

  .biz-materiality__label {
    flex: 0 0 auto;
    padding-bottom: 4px;
  }

  .biz-materiality__label-br {
    display: none;
  }
}

