body {
  background-color: var(--color-white);
}

.intro-section {
  margin-top: 5rem;

  @media (width <= 767px) {
    margin-top: 0;
  }
}

.intro-section-fv-grid {
  display: grid;
  grid-template: 'main fv' / auto 30%;
  gap: 10%;

  @media (width <= 767px) {
    grid-template:
      'fv'
      'main'
      / auto;
    gap: 2rem;
  }

  .fv-image-container {
    grid-area: fv;
    width: 100%;
    height: 100%;
    max-height: 715px;
    margin: auto;
  }

  .intro-section-main {
    grid-area: main;
    margin: 3.75rem 0;
    text-align: left;

    @media (width <= 767px) {
      margin: 0;
    }
  }
}

.fv {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.intro-section-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
}

.intro-section-title {
  font-size: clamp(2.5rem, 1.643rem + 4.29vw, 5.5rem);
  font-weight: 700;
  line-height: 1.14;

  :is(html[lang='ja'], html[lang='jp']) :is(&:not(.en-label)) {
    font-size: clamp(2.25rem, 1.75rem + 2.5vw, 4rem);
  }
}

.intro-section-description {
  margin-top: 2rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.intro-section-link {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  line-height: 1.5;
  color: var(--color-link);
  text-decoration: underline;

  svg {
    width: 24px;

    path {
      fill: var(--color-link);
      transition: fill 0.3s ease;
    }
  }

  &:hover {
    svg {
      path {
        fill: var(--color-accent);
      }
    }
  }
}

.intro-section-theme {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  margin: 5rem 0 7.5rem;

  @media (width <= 767px) {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2.5rem 0 3.75rem;
  }
}

.intro-section-theme-item {
  display: grid;
  grid-template:
    'icon'
    'title'
    'description'
    / 1fr;
  gap: 1.5rem;
  padding: 0 1.5rem;

  &:nth-child(2) {
    border-right: 1px dotted var(--color-gray);
    border-left: 1px dotted var(--color-gray);
  }

  @media (width <= 767px) {
    --padding: 1.5rem;

    grid-template:
      'icon title'
      'icon description'
      / auto 1fr;
    gap: 1rem;

    &:nth-child(1) {
      padding: 0 0 var(--padding) 0;
    }

    &:nth-child(2) {
      padding: var(--padding) 0;
      border-top: 1px dotted var(--color-gray);
      border-right: none;
      border-bottom: 1px dotted var(--color-gray);
      border-left: none;
    }

    &:nth-child(3) {
      padding: var(--padding) 0 0 0;
    }
  }

  .intro-section-theme-icon {
    grid-area: icon;
    width: 120px;
    height: 120px;
    margin: auto;

    @media (width <= 767px) {
      width: 106px;
      height: 106px;
    }
  }

  .intro-section-theme-title {
    grid-area: title;
    font-size: clamp(1.875rem, 1.554rem + 1.61vw, 3rem);
    font-weight: 700;
    text-align: center;

    :is(html[lang='ja'], html[lang='jp']) :is(&:not(.en-label)) {
      font-size: clamp(1.75rem, 1.536rem + 1.07vw, 2.5rem);
    }

    @media (768px <= width <= 1200px) {
      font-size: clamp(1.5rem, -0.278rem + 3.7vw, 2.5rem);

      :is(html[lang='ja'], html[lang='jp']) :is(&:not(.en-label)) {
        font-size: clamp(1.25rem, 1.036rem + 1.07vw, 2rem);
      }
    }

    @media (width <= 767px) {
      text-align: left;
    }
  }

  .intro-section-theme-description {
    grid-area: description;
    font-size: clamp(0.875rem, 0.839rem + 0.18vw, 1rem);
    line-height: 1.5;
    text-align: left;
    letter-spacing: 0;
  }
}

.esg-section {
  padding: 7.5rem 0;
  background-color: var(--color-gray-bg);

  @media (width <= 767px) {
    padding: 3.75rem 0;
  }
}

.esg-section-title {
  font-size: clamp(1.875rem, 1.554rem + 1.61vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;

  :is(html[lang='ja'], html[lang='jp']) :is(&:not(.en-label)) {
    font-size: clamp(1.75rem, 1.536rem + 1.07vw, 2.5rem);
  }

  @media (768px <= width <= 1200px) {
    font-size: 30px;

    :is(html[lang='ja'], html[lang='jp']) :is(&:not(.en-label)) {
      font-size: 24px;
    }
  }
}

.tab-content {
  margin-top: 3rem;

  @media (width <= 767px) {
    margin-top: 1.75rem;
  }

  .tab-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    animation: fade-in 0.5s ease-in-out;

    &[hidden] {
      display: none;
    }

    @media (width <= 767px) {
      gap: 1.875rem;
    }
  }
}

.esg-section-grid {
  display: grid;
  grid-template:
    'title tab'
    'main main' / 1fr auto;
  width: 83.3%;
  max-width: 1200px;
  margin: auto;

  @media (width <= 767px) {
    grid-template:
      'title'
      'tab'
      'main' / 1fr;
    gap: 1.5rem;
    width: 100%;
  }

  .esg-section-title {
    grid-area: title;

    @media (width <= 767px) {
      text-align: center;
    }
  }

  .tab-navigation {
    grid-area: tab;
    align-self: flex-end;

    @media (width <= 767px) {
      position: sticky;
      top: 68px;
      z-index: 5;
      border-bottom: 1px solid rgb(126 144 153 / 20%);
    }
  }

  .tab-content {
    grid-area: main;

    @media (width <= 767px) {
      width: 91.5%;
      margin: auto;
    }
  }
}

.tab-navigation-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  background-color: var(--color-gray-bg);

  li {
    padding-right: 0.25rem;
    border-right: 1px dotted var(--color-gray);

    &:first-child {
      padding-left: 0.25rem;
      border-left: 1px dotted var(--color-gray);
    }
  }

  @media (width <= 767px) {
    li {
      margin-bottom: 4px;

      &:first-child {
        padding-left: 0;
        border-left: none;
      }

      &:last-child {
        padding-right: 0;
        border-right: none;
      }
    }
  }
}

.tab-navigation-button {
  width: 100%;
  min-width: 100px;
  font-family: var(--font-en);
  font-size: clamp(0.75rem, 0.679rem + 0.36vw, 1rem);
  font-weight: 700;
  line-height: 1.5;
  color: #e0aec2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
  background-color: transparent;
  border: none;
  transition: all 0.3s ease-in-out;

  @media (768px <= width <= 1200px) {
    min-width: 70px;
    font-size: 12px;
  }

  @media (width <= 767px) {
    min-width: 80px;
    line-height: 1.2;
  }

  &:hover {
    color: var(--color-accent);
  }

  &[tabindex='0'] {
    color: var(--color-accent);
  }
}

.tab-content-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.content-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.content-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;

  &.static {
    grid-template-columns: repeat(3, 1fr);

    @media (width <= 767px) {
      grid-template-columns: 1fr;
    }
  }
}

.content-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;

  &.static {
    grid-template-columns: repeat(4, 1fr);

    @media (width <= 767px) {
      grid-template-columns: 1fr;
    }
  }
}

.content-grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;

  @media (width <= 767px) {
    &:has(.has-icon) {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
  }
}

.esg-section-card-body {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;

  &.row-2 {
    grid-template-rows: repeat(2, 1fr);
  }
}

.esg-section-card-title {
  font-size: 1.5rem;
  font-weight: 700;

  &.pc-only-tac {
    @media (768px <= width) {
      text-align: center;
    }
  }
}

.esg-section-description {
  font-size: 1rem;
  line-height: 1.5;
}

.esg-section-card {
  --border-radius: 12px;

  display: grid;
  align-self: start;
  height: 100%;
  background-color: var(--color-white);
  border-radius: var(--border-radius);

  &.has-image {
    grid-template-rows: auto 1fr;
  }

  &.has-icon {
    grid-template-rows: auto 1fr;

    @media (width <= 767px) {
      grid-template-rows: 1fr;
      grid-template-columns: auto 1fr;
    }

    .esg-section-card-body {
      grid-template-rows: 120px 1fr;
      gap: 0.25rem;

      @media (width <= 767px) {
        grid-template-rows: auto;
      }
    }
  }

  &.fit-content {
    height: fit-content;
  }

  &.number-card {
    display: grid;
    grid-template-columns: min-content auto;
    padding: 1rem;

    .number {
      margin-right: 0.5rem;
      font-family: var(--font-en);
      font-size: 1.5rem;
      font-weight: 700;
    }
  }

  &.with-link {
    transition: all 0.3s ease-in-out;

    &:hover {
      box-shadow: var(--shadow);

      /* 上書きしないと戻るときにtransitionによるちらつきが発生するため */
      transition: all 2s;

      .esg-section-card-title,
      .esg-section-description {
        color: var(--color-black);
      }

      .arrow-circle {
        fill: var(--color-accent);
        stroke: var(--color-accent);
      }

      .arrow-path {
        stroke: var(--color-white);
      }
    }
  }
}

.esg-section-card-image {
  width: 100%;
  object-fit: cover;
  object-position: center center;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.esg-section-card-icon {
  width: 100px;
  aspect-ratio: 1 / 1;
  margin: auto;

  @media (width <= 767px) {
    width: 74px;
  }
}

.esg-section-card-subtitle {
  font-size: 1rem;
  font-weight: 600;
}

.material-topics-list {
  margin-left: 1.5em;
  font-size: 1rem;
  list-style: disc;
}

.esg-section-description-container {
  display: flex;
  gap: 4px;
  height: fit-content;

  .arrow-button-svg {
    align-self: center;
    width: 12px;
    min-width: 12px;
    height: 12px;
    vertical-align: middle;
    color: var(--color-accent);
  }
}

.external-section {
  padding: 7.5rem 0;

  @media (width <= 767px) {
    padding: 3.75rem 0;
  }
}

.external-section-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-accent);
  letter-spacing: 0;
}

.external-section-image-container {
  display: flex;
  gap: 1.5rem;
}

.external-section-image {
  &.cdp {
    width: 200px;
    height: auto;
  }

  &.sbt {
    width: 349px;
    height: auto;
  }

  @media (width <= 767px) {
    &.cdp {
      width: 100px;
    }

    &.sbt {
      width: 174px;
    }
  }
}

.esg-report-section {
  padding: 7.5rem 0;
  background-color: var(--color-gray-bg);

  @media (width <= 767px) {
    padding: 3.75rem 0;
  }
}

.esg-report-section-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-accent);
  letter-spacing: 0;
}

.esg-report-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;

  @media (width <= 767px) {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

.esg-report-card {
  display: grid;
  grid-template-areas: 'overlay';
  place-items: center;
  container-type: inline-size;
  overflow: hidden;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.3s ease-in-out;

  .esg-report-bg {
    grid-area: overlay;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease-in-out;
  }

  .content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-area: overlay;
    place-items: center;
    font-family: var(--font-en);
    font-style: italic;
    color: var(--color-white);

    .logo {
      width: 17cqw;
      aspect-ratio: 1 / 1;
      margin-bottom: 4px;
    }

    .year {
      font-size: 13cqw;
      font-weight: 700;
      line-height: 1;
    }

    .report {
      display: flex;
      gap: 4px;
      align-items: center;
      font-size: 4cqw;
      line-height: 1.2;
      letter-spacing: 0.01em;
    }
  }

  &:hover {
    .esg-report-bg {
      transform: scale(1.03);
    }
  }
}

.policy-section {
  padding: 7.5rem 0;

  @media (width <= 767px) {
    padding: 3.75rem 0;
  }
}

.policy-section-title {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-accent);
  letter-spacing: 0;
}

.policy-section-sub {
  margin-top: -1rem;
  font-size: clamp(0.875rem, 0.839rem + 0.18vw, 1rem);
  line-height: 1.5;
  color: var(--color-accent);
}

.policy-section-description {
  margin-top: 1.5rem;
  font-size: clamp(0.875rem, 0.839rem + 0.18vw, 1rem);
  line-height: 1.5;
}

.policy-section .base-wrapper {
  width: 100%;
}

.esg-link-block {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 200px;
  margin-top: 5rem;
  overflow: hidden;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease-in-out;

  @media (width <= 767px) {
    margin-top: 2.5rem;
  }

  .grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: all 0.3s ease-in-out;
  }

  .grid-content {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-white);
    transition: color 0.3s ease-in-out;

    @media (width <= 767px) {
      flex-direction: column-reverse;
    }
  }

  &:hover {
    .grid-bg {
      transform: scale(1.03);
    }
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    filter: blur(1px);
    scale: 0.98;
  }

  to {
    opacity: 1;
    filter: blur(0);
    scale: 1;
  }
}
