.section-header {
  font-feature-settings: 'palt';

  h2 {
    font-size: 36px;
    margin-bottom: 0.8em;
    display: flex;
    gap: 8px;
    font-family: var(--font-en);

    > img {
      align-self: center;
      position: relative;
      top: -8px;
    }

    + p {
      line-height: 2;
      font-size: 15px;
      letter-spacing: 0.03em;
      line-height: 2.2;
      -webkit-text-stroke-color: var(--mti-black, #001E40);
      -webkit-text-stroke-width: 0.15px;
    }
  }
  @media screen and (max-width: 767px) {
    h2 {
      align-items: flex-end;

      > .section-header__label {
        flex: 0 0 auto;
        inline-size: min-content;
        line-height: 1.15;
      }

      > img {
        flex: 0 0 auto;
        align-self: flex-end;
        top: 0;
        margin-bottom: 0.1em;
      }
    }
  }
  @media screen and (min-width: 768px) {
    &.section-header--padded {
      padding-inline: 20px;
    }

    &.section-header--padded-large {
      padding-inline: 150px;
    }

    h2 {
      font-size: 38px;
    }
  }

  @media screen and (min-width: 1024px) {
    &.section-header--padded {
      padding-inline: 40px;
    }

    &.section-header--padded-large {
      padding-inline: 60px;
    }

    h2 {
      font-size: 44px;
    }
  }
}

.page-section--sdx-intro {
  @media screen and (min-width: 768px) {
    padding-block: 110px;
  }
}

/* Social Design Intro */
.social-design-intro {
  color: var(--color-primary);
  width: min(100%, 840px);
  margin-inline: auto;

  .social-design-intro__header {
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 30px;

    @media screen and (min-width: 768px) {
      font-size: 36px;
      margin-bottom: 40px;
    }
  }

  .social-design-intro__content {
    line-height: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    -webkit-text-stroke-color: var(--mti-black, #001E40);
    -webkit-text-stroke-width: 0.15px;

    @media screen and (min-width: 768px) {
      gap: 40px;
      font-size: 15px;
      line-height: 2.2;
      letter-spacing: 0.03em;
    }

    .en {
      font-weight: 400;
    }
  }
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 58px;
  margin: 58px auto 0;
    max-width: 968px;
}

.impact-grid__as-of {
  margin-top: 24px;
  color: #fff;
  text-align: right;
  font-size: 12px;

  .en {
    font-weight: 400;
  }
}

.impact-card {
  background-color: #fff;
  padding: 24px;
  display: grid;
  grid-template-columns: subgrid;
  grid-row: span 3;
  color: var(--color-primary);
  text-align: center;
  gap: 21px;

  .impact-card__header {
    background-color: var(--color-primary);
    padding: 16px;

    h3 {
      font-size: 18px;
      color: #fff;
      display: flex;
      flex-flow: column;
      gap: 4px;
      letter-spacing: 0.1em;

      small {
        font-size: 0.76em;
      }
      > * {
        display: block;
      }
    }
  }

  .impact-card__number {
    display: flex;
    flex-flow: column;
    gap: 4px;
    font-weight: 700;

    .number {
      font-family: var(--font-en);
      font-size: 40px;
      font-variant-numeric: tabular-nums;
      @media screen and (min-width: 768px) {
        font-size: 60px;
      }
    }

    .unit {
      small {
        font-size: 0.76em;
      }
    }
  }

  .impact-card__description {
    font-size: 14px;
    line-height: 1.7;
    font-weight: 700;

    small {
      display: block;
      font-size: 0.8em;
    }
  }

  &.impact-card--link {
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: none;
    transition:
      box-shadow 0.2s ease,
      transform 0.2s ease;

    &:hover {
      box-shadow: 0 8px 20px rgb(0 30 64 / 16%);
      transform: translateY(-2px);
    }

    &:focus-visible {
      outline: 3px solid #fff;
      outline-offset: 4px;
    }

    @media (prefers-reduced-motion: reduce) {
      transition: none;

      &:hover {
        transform: none;
      }
    }
  }
}

/* Insight */
.insight-intro {
  font-size: 15px;
  letter-spacing: 0.03em;
  line-height: 2.2;
  -webkit-text-stroke-color: var(--mti-black, #001E40);
  -webkit-text-stroke-width: 0.15px;

  > *:not(:last-child) {
    margin-bottom: 33px;
  }

  @media screen and (min-width: 768px) {
    padding-inline: 20px;
  }

  @media screen and (min-width: 1024px) {
    padding-inline: 40px;
  }
}

.insight-slider {
  margin: 90px 0;
  .swiper-slide {
    width: max-content;
    @media screen and (min-width: 768px) {
      width: 375px;
    }
  }

  .insight-slider__control {
    padding: 48px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    .swiper-pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;

      .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background-color: #dfe2e5;
        cursor: pointer;
        transition: opacity 0.3s ease;

        &.swiper-pagination-bullet-active {
          background-color: var(--color-primary);
        }
      }
    }

    .swiper-button-prev,
    .swiper-button-next {
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.15s ease;

      &.swiper-button-disabled {
        visibility: hidden;
        pointer-events: none;
      }

      svg {
        width: 12px;
        height: 12px;
      }
    }
  }
}

.insight-card {
  position: relative;
  display: block;
  container-type: inline-size;

  .insight-card__badge {
    position: absolute;
    top: 16px;
    right: 0;
    z-index: 1;
    background-color: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1;
    padding: 6px 6px 6px 7px;

    @media screen and (min-width: 768px) {
      top: 20px;
      font-size: 12px;
      padding: 6px 6px 6px 7px;
    }
  }

  .insight-card__img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 375 / 510;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    &::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, #000, transparent);
      opacity: 0.5;
      transition: opacity 0.6s ease;
    }

    &:hover {
      &::after {
        opacity: 0.75;
      }
    }
  }

  .insight-card__overlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: clamp(18px, 6.4cqi, 24px);
    color: #fff;
    font-feature-settings: 'palt';

    .insight-title {
      font-weight: 700;
      font-size: clamp(18px, 7.8cqi, 28px);
      line-height: 1.7;
      margin-bottom: 0.5em;
      letter-spacing: 0.04em;
    }

    .insight-info {
      display: flex;
      align-items: center;
      gap: clamp(10px, 4.2667cqi, 16px);

      h4 {
        font-size: clamp(8px, 3.6667cqi, 11px);
        display: flex;
        flex-direction: column;
        gap: clamp(2px, 1.0667cqi, 4px);
        margin: 0;
        font-weight: 400;
        align-items: flex-end;
      }
    }

    .signature img {
      width: clamp(var(--signature-min-width), var(--signature-width), var(--signature-max-width));
      height: auto;
      flex: none;
    }
  }

  &.insight-card--coming-soon {
    width: 100%;
    pointer-events: none;

    .insight-card__img::after {
      content: none;
    }

    .insight-card__img img {
      object-position: center;
    }
  }
}

.contents-inner {
  padding-inline: 24px;
  @media screen and (min-width: 768px) {
    padding-inline: 106px;
  }
}
.insight-card--image-only {
  .insight-card__img::after {
    display: none;
  }
}
