.esg-page {
  padding-bottom: 4.5rem;
  background: #f5f8fa;
}

.esg-layout {
  width: min(1160px, calc(100% - 3rem));
  margin: 1.35rem auto 0;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1.35rem;
  align-items: start;
}

.esg-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  background: #fff;
  border: 1px solid #d7e4eb;
  border-radius: 0.4rem;
  padding: 0.45rem;
  box-shadow: 0 6px 18px rgba(32, 52, 68, 0.06);
}

.esg-group {
  margin-bottom: 0.45rem;
}

.esg-group__header {
  width: 100%;
  border: 0;
  background: #00a0bb;
  color: #fff;
  text-align: left;
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.72rem 2rem 0.72rem 0.85rem;
  position: relative;
  cursor: pointer;
}

.esg-group__header::after {
  content: "▾";
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
}

.esg-group:not(.is-open) .esg-group__header::after {
  content: "▸";
}

.esg-group__body {
  display: none;
  background: #fff;
  padding: 0.35rem 0.4rem 0.5rem;
}

.esg-group.is-open .esg-group__body {
  display: block;
}

.esg-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 0.98rem;
  color: #4c4c4c;
  padding: 0.36rem 0.28rem;
  line-height: 1.35;
  cursor: pointer;
}

.esg-item:hover,
.esg-item.is-active {
  color: #0089a4;
}

.esg-panel {
  display: none;
}

.esg-panel.is-active {
  display: block;
}

.esg-panel__title {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 2.2vw, 2.75rem);
  font-weight: 500;
  color: #2e2e2e;
  line-height: 1.2;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.esg-content {
  background: #fff;
  border: 1px solid #d7e4eb;
  border-radius: 0.5rem;
  padding: 1.2rem 1.2rem 1.5rem;
  box-shadow: 0 8px 24px rgba(32, 52, 68, 0.06);
}

.esg-panel p {
  margin: 0 0 1rem;
  color: #3e3e3e;
  font-size: 1rem;
  line-height: 1.62;
}

.esg-image {
  margin: 1rem 0 0;
}

.esg-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.3rem;
}

.esg-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.esg-table-wrap {
  overflow-x: auto;
}

.esg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.esg-table th {
  background: #00a8c2;
  color: #fff;
  text-align: left;
  font-size: 1.03rem;
  font-weight: 700;
  padding: 0.7rem 0.78rem;
}

.esg-table td {
  color: #3d3d3d;
  font-size: 1rem;
  padding: 0.66rem 0.78rem;
}

.esg-table tbody tr:nth-child(even) td {
  background: #e8eff2;
}

.esg-table a {
  color: #00a8c2;
  text-decoration: none;
  font-weight: 500;
}

.esg-table a:hover {
  text-decoration: underline;
}

.esg-fab,
.esg-drawer-backdrop {
  display: none;
}

@media (max-width: 980px) {
  .esg-layout {
    width: min(1160px, calc(100% - 0.9rem));
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .esg-sidebar {
    position: fixed;
    left: 0.6rem;
    right: 0.6rem;
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
    top: auto;
    z-index: 1202;
    max-height: min(78vh, 35rem);
    overflow-y: auto;
    margin: 0;
    border-radius: 0.8rem;
    padding: 0.5rem;
    transform: translateY(calc(100% + 1rem));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.26s ease, opacity 0.26s ease;
  }

  .esg-content {
    order: 1;
    padding: 0.95rem 0.78rem 1.05rem;
    border-radius: 0.55rem;
  }

  .esg-group__header {
    font-size: 0.97rem;
    padding: 0.65rem 1.9rem 0.65rem 0.72rem;
  }

  .esg-item {
    font-size: 0.93rem;
  }

  .esg-panel__title {
    font-size: clamp(1.45rem, 5.4vw, 2rem);
  }

  .esg-fab {
    display: inline-flex;
    position: fixed;
    left: 50%;
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
    z-index: 1203;
    transform: translateX(-50%);
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0 1.3rem;
    border: 0;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px rgba(24, 54, 77, 0.32);
    cursor: pointer;
  }

  .esg-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1201;
    background: rgba(15, 23, 42, 0.36);
  }

  body.esg-drawer-open .esg-drawer-backdrop {
    display: block;
  }

  body.esg-drawer-open .esg-sidebar {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.esg-drawer-open .esg-fab {
    background: #18364d;
  }

  .esg-table {
    min-width: 560px;
  }

  .esg-table th,
  .esg-table td {
    font-size: 0.92rem;
    padding: 0.58rem 0.62rem;
  }
}

@media (max-width: 700px) {
  .esg-image-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .esg-page {
    padding-bottom: 2.4rem;
  }

  .esg-layout {
    width: calc(100% - 0.55rem);
    margin-top: 0.65rem;
  }

  .esg-sidebar {
    left: 0.35rem;
    right: 0.35rem;
  }

  .esg-panel__title {
    font-size: clamp(1.28rem, 7.4vw, 1.7rem);
    margin-bottom: 0.72rem;
  }

  .esg-panel p {
    margin-bottom: 0.72rem;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .esg-image {
    margin-top: 0.72rem;
  }

  .esg-table {
    min-width: 500px;
  }
}
