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

.page-title-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0 30px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.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;
}

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

.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;
}

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

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

.card-title {
  flex: 1;
  display: flex;
}

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

.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;
}

.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(2, 0.3fr);
  gap: 37px;
}

.card-item {
  width: 374px;
  height: 374px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.25));
}

.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;
}

.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: 274px;
    height: 274px;
  }
}

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

@media (max-width: 768px) {
  .page-title-section {
    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;
  }

  .main-content {
    gap: 30px;
    align-items: center;
  }

  .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%;
  }

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

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

  .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;
  }
}

@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;
  }
}
