.sustainability-pages {
  background: white;
  min-height: 100vh;
}

.page-title-section {
  max-width: 1200px;
  padding: 40px 20px 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  z-index: 1;
  position: absolute;
  top: 175px;
  left: 0px;
  width: fit-content;
  background-color: rgba(255, 255, 255, 0.8);
}

.page-title {
  font-family: "Inter", sans-serif;
  font-size: 89px;
  font-weight: 700;
  color: #2b39d5;
  line-height: 1.3;
  margin: 0;
}

.page-subtitle {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #4a4459;
  line-height: 26px;
  letter-spacing: 1.44px;
  margin: 0;
  align-self: flex-end;
  padding-bottom: 20px;
}

.intro-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 40px;
}

.intro-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: #4a4459;
  line-height: 45px;
  letter-spacing: 3px;
  margin: 0;
  max-width: 1200px;
  width: 100%;
  text-align: left;
}

.content-section {
  width: 100%;
  padding: 40px 0 100px;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.main-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.main-card-top {
  display: flex;
  gap: 30px;
}

.card-image {
  width: 100%;
  height: 284px;
  overflow: hidden;
  flex-shrink: 0;
}

.large-card-image {
  width: 100%;
  height: 284px;
  overflow: hidden;
  flex-shrink: 0;
}

.large-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.main-card-image {
  width: 100%;
  height: 284px;
  overflow: hidden;
  flex-shrink: 0;
}

.main-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-title {
  color: #4a4459;
  flex: 1;
  display: flex;
  font-family: "Noto Sans JP";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px;
}

.card-title p {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #4a4459;
  line-height: 28px;
  margin: 0;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-text {
  margin-top: 30px;
  white-space: pre-line;
}

.large-image {
  width: 800px;
  height: 136px;
  flex-shrink: 0;
  aspect-ratio: 100/17;
}

.small-image-grid {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 34px;
  margin-bottom: 25px;
}

.small-image-grid img {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  aspect-ratio: 1/1;
}

.text-description {
  margin: 0;
  padding: 0;
  white-space: unset;
}

.sub-card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #4a4459;
}

.sdgs-card-content {
  margin-bottom: 40px;
}

.card-content-accordion {
  display: none;
}

.card-content.is-open .card-content-accordion {
  display: flex;
  flex-direction: column;
}

.card-title-second {
  color: #4a4459;
  font-family: Inter;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  margin-top: 30px;
}

.sdgs-style {
  width: fit-content;
  font-family: "Noto Sans JP";
  font-size: 24px;
  line-height: 30px;
  color: #4a4459;
  border-bottom: 4px solid RGB(38, 189, 226);
  margin: 0;
}

.sdgs-title-second {
  margin-top: 10px;
  width: fit-content;
  border-bottom: 2px solid RGB(38, 189, 226);
  padding-bottom: 2px; /*  change it by client request */
}

.card-title-environment {
  color: #4a4459;
  font-family: Inter;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  border-bottom: 1px solid #395daa;
  width: fit-content;
}

.card-title-accordion {
  display: flex;
  justify-content: space-between;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #4a4459;
  line-height: 30px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #2b39d5;
  margin-bottom: 20px;
  cursor: pointer;
}

.card-title-accordion span svg {
  transition: transform 0.2s ease;
}

.card-content.is-open .card-title-accordion span svg {
  transform: rotate(180deg);
}

.card-text-second {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #4a4459;
  line-height: 28px;
  margin: 0;
}

.card-text-second-space {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #4a4459;
  line-height: 28px;
  margin: 0;
  white-space: pre-line;
}

.card-text-second-space span {
  border-bottom: 1px solid RGB(38, 189, 226);
}

.card-text-signature {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #4a4459;
  line-height: 28px;
  margin: 0;
  /* text-align: right; */
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.card-text-signature span {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.card-text-signature img {
  width: 242px;
  height: 61px;
}

.sub-card-text-second {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #4a4459;
  line-height: 28px;
  margin: 0;
  margin-bottom: 30px; /* added by client request  */
}

.sub-card-text {
  margin-bottom: 30px;
}

.card-description {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #4a4459;
  line-height: 28px;
  margin: 0;
}

.main-card-vertical .card-image {
  width: 100%;
  overflow: hidden;
}

.main-card-vertical .card-image img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
}

.main-card-vertical .card-content {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.main-card-vertical .card-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #4a4459;
  line-height: 30px;
  margin: 0;
}

.sdgs-title {
  width: fit-content;
  border-bottom: 4px solid RGB(38, 189, 226);
  padding-bottom: 2px; /*  change it by client request */
}

.main-card-vertical .card-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #4a4459;
  line-height: 28px;
  margin: 0;
}

.sidebar-nav {
  flex: 0 0 360px;
  width: 360px;
  background: transparent;
  padding: 0;
}

.sidebar-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #4a4459;
  line-height: 30px;
  margin: 0 0 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e3e5ff;
  position: relative;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 41px;
}

.sidebar-menu li {
  margin-bottom: 14px;
  position: relative;
}

.sidebar-menu li:first-child {
  margin-top: 16px;
}

.sidebar-menu li:last-child {
  margin-bottom: 0;
}

.sidebar-menu li.active::before {
  content: "•";
  position: absolute;
  left: -21px;
  color: #2b39d5;
  font-size: 18px;
  line-height: 40px;
}

.sidebar-menu li.active a {
  font-weight: 700;
  color: #2b39d5;
}

.sidebar-menu a {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #4a4459;
  line-height: 40px;
  letter-spacing: 1.44px;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.sidebar-menu a:hover {
  color: #2b39d5;
}

.cards-grid {
  margin-top: 200px;
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 37px;
}

.card-item {
  width: 100%;
  max-width: 374px;
  height: auto;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.25));
  justify-self: center;
  min-width: 0;
}

.card-item:hover {
  transform: translateY(-4px);
}

.card-footer {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  width: 100%;
  height: 90px;
  background: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.card-footer a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-footer svg {
  width: 20%;
}

.card-label {
  font-family: "Noto Sans JP";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px;
  color: #4a4459;
  width: 80%;
  text-align: center;
  margin-left: 50px;
}

.card-footer svg {
  flex-shrink: 0;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  grid-template-rows: auto auto auto;
  gap: 40px;
}

.detail-section {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.detail-image {
  width: 385px;
  height: 257px;
  overflow: hidden;
  flex-shrink: 0;
}

.iso-certificate {
  width: 100%;
  margin-top: 55px;
}

.certificate-row {
  display: flex;
  width: 100%;
  gap: 30px;
  margin-top: 68px;
}

.small-certificate-image {
  height: 255px;
  width: 180px;
  border: 1px solid #efefef;
  cursor: pointer;
}

html.nb-scroll-lock,
body.nb-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.nb-certificate-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  transition: background 0.28s ease;
}

.nb-certificate-viewer[hidden] {
  display: none;
}

.nb-certificate-viewer__dialog {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.nb-certificate-viewer--opening,
.nb-certificate-viewer--closing {
  background: rgba(0, 0, 0, 0);
}

.nb-certificate-viewer--closing .nb-certificate-viewer__topbar {
  opacity: 0;
}

.nb-certificate-viewer__topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  transition: opacity 0.2s ease;
}

.nb-certificate-viewer__counter {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.nb-certificate-viewer__controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nb-certificate-viewer__control {
  min-width: 0;
  height: auto;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.nb-certificate-viewer__control-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.nb-certificate-viewer__close {
  width: 24px;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nb-certificate-viewer__viewport {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nb-certificate-viewer__image-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 84px 94px 36px;
}

.nb-certificate-viewer__image {
  max-height: calc(100vh - 120px);
  max-width: min(92vw, 1500px);
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.16s ease;
  will-change: transform;
}

.nb-certificate-viewer__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 88px;
  border: 0;
  background: rgba(0, 0, 0, 0);
  color: #fff;
  cursor: pointer;
  font-size: 52px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.nb-certificate-viewer__nav--prev {
  left: 0;
}

.nb-certificate-viewer__nav--next {
  right: 0;
}

.nb-certificate-viewer__image-wrap--zoomed {
  cursor: grab;
  touch-action: none;
}

.nb-certificate-viewer__image-wrap--dragging {
  cursor: grabbing;
}

.nb-certificate-viewer--image-hidden .nb-certificate-viewer__image {
  visibility: hidden;
}

.nb-certificate-viewer__ghost {
  position: fixed;
  z-index: 10001;
  margin: 0;
  pointer-events: none;
  object-fit: contain;
  opacity: 1;
  transition:
    left 0.28s ease,
    top 0.28s ease,
    width 0.28s ease,
    height 0.28s ease,
    opacity 0.12s linear;
}

.nb-certificate-viewer__ghost--fadeout {
  opacity: 0;
}

.nb-certificate-viewer__image {
  user-select: none;
  -webkit-user-drag: none;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-text {
  flex: 1;
  display: flex;
  align-items: center;
}

.detail-text p {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 28px;
  color: #4a4459;
  margin: 0;
}

.detail-description {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  margin-bottom: 60px;
}

.detail-description p {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 28px;
  color: #4a4459;
  margin: 0;
}

.content-container .sidebar-nav {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  align-self: start;
}

.sustainability-pages .footer {
  margin-top: 0;
}

@media (max-width: 1200px) {
  .card-item {
    width: 100%;
    max-width: 274px;
    height: auto;
  }
}

@media (max-width: 1000px) {
  .content-wrapper .cards-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0px;
    gap: 24px;
  }
}

@media (min-width: 769px) and (max-width: 1061px) {
  .page-title-section {
    top: clamp(195px, calc(195px * (1 + 0.4 * (1061px / 100vw - 1))), 450px);
  }

  .page-title-section .page-title {
    font-size: 7vw;
  }
}

@media (max-width: 768px) {
  .page-title-section {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-left: 16px;
    padding: 20px 0;
  }

  .page-title {
    font-size: 30px;
  }

  .page-subtitle {
    font-size: 18px;
    align-self: flex-start;
    padding-bottom: 0;
  }

  .intro-wrapper {
    margin-left: 16px;
    margin-right: 16px;
  }

  .intro-text {
    font-size: 20px;
    line-height: 32px;
  }

  .content-section {
    padding: 20px 0 60px;
  }

  .content-wrapper {
    flex-direction: column;
    margin: 0 16px;
    gap: 30px;
    align-items: stretch;
  }

  .content-wrapper > * {
    width: 100%;
  }

  .main-content {
    gap: 30px;
    align-items: stretch;
    width: 100%;
  }

  .main-card {
    gap: 20px;
    width: 100%;
  }

  .main-card-top {
    flex-direction: column;
    gap: 20px;
  }

  .main-card-image {
    width: 100%;
    height: 200px;
  }

  .card-image {
    width: 100%;
    height: 200px;
  }

  .card-title {
    width: 100%;
  }

  .sdgs-title {
    width: fit-content;
  }

  .card-title p {
    font-size: 14px;
    line-height: 24px;
  }

  .card-title-second {
    font-size: 14px;
    line-height: 24px;
  }

  .card-text-second {
    font-size: 14px;
    line-height: 24px;
  }

  .sub-card-text-second {
    font-size: 14px;
    line-height: 24px;
  }

  .card-description {
    font-size: 14px;
    line-height: 24px;
  }

  .large-image {
    width: 100%;
    height: auto;
  }

  .small-image-grid {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .small-image-grid img {
    width: 70px;
    height: 70px;
  }

  .main-card-vertical .card-image {
    height: 200px;
  }

  .main-card-vertical .card-title {
    font-size: 20px;
  }

  .main-card-vertical .card-text {
    font-size: 14px;
    line-height: 24px;
  }

  .sidebar-nav {
    width: 100%;
    padding: 24px 16px;
  }

  .cards-grid {
    width: 100%;
    max-width: 374px;
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .card-item {
    width: 100%;
    height: auto;
  }

  .card-label {
    font-size: 16px;
  }

  .detail-section {
    flex-direction: column;
  }

  .detail-image {
    width: 100%;
    height: 200px;
  }

  .content-container {
    grid-template-columns: 1fr;
    margin: 0 16px;
  }

  .content-container .sidebar-nav {
    grid-column: 1 / 2;
    grid-row: auto;
  }

  .iso-certificate {
    min-width: 0;
  }

  .certificate-row {
    gap: 14px;
    flex-wrap: nowrap;
    margin-top: 28px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .small-certificate-image {
    width: 180px;
    height: 255px;
    flex: 0 0 auto;
    aspect-ratio: auto;
    scroll-snap-align: start;
  }

  .nb-certificate-viewer__topbar {
    padding: 12px;
  }

  .nb-certificate-viewer__counter {
    font-size: 18px;
  }

  .nb-certificate-viewer__control {
    min-width: 0;
    height: auto;
    font-size: 28px;
    padding: 0;
  }

  .nb-certificate-viewer__image-wrap {
    padding: 66px 56px 22px;
  }

  .nb-certificate-viewer__image {
    max-height: calc(100vh - 100px);
  }

  .nb-certificate-viewer__nav {
    width: 50px;
    font-size: 36px;
  }
}

@media (max-width: 414px) {
  .page-title-section {
    margin-left: 8px;
    margin-right: 8px;
    padding: 16px 0;
  }

  .page-title {
    font-size: 24px;
  }

  .page-subtitle {
    font-size: 16px;
  }

  .intro-wrapper {
    margin-left: 8px;
    margin-right: 8px;
  }

  .intro-text {
    font-size: 18px;
    line-height: 28px;
  }

  .content-wrapper {
    margin: 0 8px;
  }

  .main-card-image {
    height: 180px;
  }

  .card-image {
    height: 180px;
  }

  .sidebar-nav {
    padding: 20px 8px;
  }

  .card-item {
    width: 100%;
    height: auto;
  }

  .cards-grid {
    max-width: 100%;
    padding: 0 8px;
  }

  .content-container {
    margin: 0 8px;
  }

  .detail-image {
    height: 180px;
  }

  .small-certificate-image {
    width: 180px;
    height: 255px;
  }

  .nb-certificate-viewer__image-wrap {
    padding: 62px 44px 20px;
  }

  .nb-certificate-viewer__nav {
    width: 42px;
    font-size: 50px;
    color: #b4b4b4;
  }
}
