/* ========================================================================
Page Hero (shared across inner pages)
======================================================================== */
#page_hero {
  position: relative;
  padding-top: calc(var(--header-height) + 100px);
  padding-bottom: 120px;
  background-color: var(--clr-bg);
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  text-align: center;
}

#page_hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 29, 28, 0.55) 0%,
    rgba(9, 29, 28, 0.35) 100%
  );
  pointer-events: none;
}

.page_hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 80px, 900px);
  margin-inline: auto;
}

.page_hero__label {
  display: block;
  color: var(--clr-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page_hero__inner h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--clr-text);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

.page_hero__inner > p {
  color: var(--clr-text-muted);
  font-size: 0.9375rem;
  line-height: 1.85;
  max-width: 680px;
  margin-inline: auto;
}

/* ========================================================================
Page Hero: Background images per page
======================================================================== */

/* Company profile */
.page_hero--company {
  background-image: url('../images/company_main.jpg');
  background-image: -webkit-image-set(
    url('../images/company_main.webp') 1x,
    url('../images/company_main.jpg')  1x
  );
  background-image: image-set(
    url('../images/company_main.webp') type('image/webp'),
    url('../images/company_main.jpg')  type('image/jpeg')
  );
}

/* Business */
.page_hero--business {
  background-image: url('../images/business_main.jpg');
  background-image: -webkit-image-set(
    url('../images/business_main.webp') 1x,
    url('../images/business_main.jpg')  1x
  );
  background-image: image-set(
    url('../images/business_main.webp') type('image/webp'),
    url('../images/business_main.jpg')  type('image/jpeg')
  );
}

/* Sustainability */
.page_hero--sustainability {
  background-image: url('../images/sustainability_main.jpg');
  background-image: -webkit-image-set(
    url('../images/sustainability_main.webp') 1x,
    url('../images/sustainability_main.jpg')  1x
  );
  background-image: image-set(
    url('../images/sustainability_main.webp') type('image/webp'),
    url('../images/sustainability_main.jpg')  type('image/jpeg')
  );
}

/* ========================================================================
Responsive
======================================================================== */
@media (max-width: 900px) {
  #page_hero {
    padding-top: calc(var(--header-height) + 72px);
    padding-bottom: 96px;
  }

  .page_hero__inner {
    width: min(100% - 48px, 900px);
  }
}

@media (max-width: 767px) {
  #page_hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 72px;
  }

  .page_hero__inner {
    width: min(100% - 32px, 900px);
  }

  .page_hero__inner h1 {
    font-size: 1.875rem;
    margin-bottom: 20px;
  }

  .page_hero__inner > p {
    font-size: 0.875rem;
  }

  .page_hero__inner > p br {
    display: none;
  }
}

/* ========================================================================
Breadcrumb (shared across inner pages)
======================================================================== */
.breadcrumb {
  background-color: var(--clr-grey);
  padding: 12px 0;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  width: min(100% - 80px, 1280px);
  margin-inline: auto;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--clr-text-muted);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '›';
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 1rem;
  line-height: 1;
}

.breadcrumb__item a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color .3s ease;
}

.breadcrumb__item a .material-symbols-outlined {
  font-size: 1rem;
  line-height: 1;
}

.breadcrumb__item a:hover {
  color: var(--clr-text);
}

.breadcrumb__item:last-child {
  color: var(--clr-primary);
}

@media (max-width: 900px) {
  .breadcrumb__list {
    width: min(100% - 48px, 1280px);
  }
}

@media (max-width: 767px) {
  .breadcrumb__list {
    width: min(100% - 32px, 1280px);
  }
}

/* ========================================================================
Section: Related Links（下層ページ共通）
======================================================================== */
.sec_related {
  padding: 100px 0;
}

.sec_related .related_heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--clr-heading);
  text-align: center;
  margin-bottom: 48px;
}

.related_cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related_card {
  position: relative;
  display: block;
  height: 120px;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  background-color: var(--clr-grey);
}

.related_card picture,
.related_card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.related_card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(9, 29, 28, 1) 0%,
    rgba(9, 29, 28, 0.5) 20%,
    rgba(9, 29, 28, 0.2) 100%
  );
  transition: background .3s ease;
}

.related_card:hover::before {
  background: linear-gradient(
    160deg,
    rgba(9, 29, 28, 1) 0%,
    rgba(9, 29, 28, 0.6) 20%,
    rgba(9, 29, 28, 0.35) 100%
  );
}

.related_card__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.related_card__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text);
  line-height: 1.4;
}

.related_card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--clr-text);
  position: absolute;
  right: 24px;
  transition: transform .3s ease;
}

.related_card:hover .related_card__btn {
  transform: translateX(4px);
}

.related_card__btn .material-symbols-outlined {
  font-size: 1.125rem;
}

/* フランス語：PCサイズはテキストが長く矢印と重なるため左寄せ */
@media (min-width: 901px) {
  :lang(fr) .related_card__body {
    justify-content: flex-start;
    padding-right: 80px;
  }
}

@media (max-width: 900px) {
  .sec_related {
    padding: 80px 0;
  }

  .related_cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .sec_related {
    padding: 64px 0;
  }

  .related_cards {
    gap: 16px;
  }

  .related_card {
    height: 100px;
  }

  .related_card__body {
    justify-content: flex-start;
    padding-right: 80px;
  }
}
