.company-card__title {
  font-size: 1.25rem;
  line-height: 1.2;
}

.company-card {
  overflow: hidden;
  position: relative;
  padding-left: min(100px, max(20px, calc(100px + 50vw - 400px)));
}

.company-card__content {
  padding: 50px min(50px, max(20px, calc(50px + 50vw - 300px)));
  width: calc(100% + 20px);
  border-radius: 30px 0 0 30px;
  padding-bottom: 20px;
}

.company-card__content::before {
  display: none;
}

.company-info {
  margin-top: 20px;
}

.company-info__item {
  display: flex;
  flex-direction: row;
  padding: 20px 10px;
  border-top: 1px solid #d8d8d8;
}

.company-info__label {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  width: 70px;
  min-width: 70px;
  box-sizing: content-box;
  padding: 0 10px;
}

.company-info__value {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.company-info__value a:not(.certification__button) {
  color: var(--black);
  text-decoration: underline;
}

.company-info__value--accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.company-info__item .accordion__item .accordion__button {
  width: 100%;
  height: 40px;
  border: 1px solid var(--light-blue);
  border-left: 10px solid var(--light-blue);
  border-radius: 8px;
  background-color: var(--white);
  font-size: min(1rem, 4.27vw);
  line-height: 40px;
  font-weight: 700;
  text-align: left;
  padding-left: min(16px, max(6px, calc(16px + 50vw - 188.5px)));
  color: #000;
  display: block;
  text-decoration: none;
}

.accordion__content {
  position: relative;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--white);
  border-radius: 0 0 6px 6px;
}

.accordion__decor {
  width: 100%;
  position: absolute;
  height: 12px;
  top: 10px;
  left: 0;
}

.accordion__decor img {
  display: block;
  margin: 0 auto;
  height: 100%;
  width: auto;
  object-fit: contain;
}

.accordion__decor::before,
.accordion__decor::after {
  content: "";
  position: absolute;
  display: block;
  height: 1px;
  width: calc(50% - 6px);
  background-color: #707070;
  bottom: 0;
}

.accordion__decor::before {
  left: 0;
}

.accordion__decor::after {
  right: 0;
}

.accordion__content--active {
  max-height: 300px;
}

.accordion__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 34px;
  background-color: var(--white);
}

.accordion__list-item a {
  color: var(--black);
}

.company-info__value--office {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.office__media {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.office__image {
  width: 100%;
  aspect-ratio: 215 / 121;
  border-radius: 8px;
  object-fit: cover;
}

.office__map {
  width: 100%;
  aspect-ratio: 215 / 121;
  border-radius: 8px;
}

.certification__button {
  background: var(--white);
  color: var(--black);
  border: 1px solid #707070;
  border-radius: 14.5px;
  font-size: 1rem;
  width: 128px;
  height: 29px;
  line-height: 27px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  font-weight: 700;
  margin-top: 10px;
  text-align: center;
}

.certification__button--active {
  background: #333;
  color: white;
  width: 144px;
}

.certification-image {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  margin-top: 10px;
}

.certification-image--active {
  max-height: 600px;
}

.certification-image__content {
  width: 100%;
  margin: 0 auto;
  display: block;
}

.group-code {
  padding-left: min(100px, max(20px, calc(100px + 50vw - 400px)));
}

.group-code__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 50px;
  background-color: var(--white);
  border-radius: 0;
  z-index: 2;
  width: calc(100% + 20px);
  padding: 50px min(50px, max(20px, calc(50px + 50vw - 300px)));
}

.group-code__title {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 35px;
}

.group-code .link {
  width: 100%;
  max-width: 315px;
  height: 70px;
  border-radius: 35px;
  line-height: 1.25;
  align-items: flex-start;
  padding: 12px 0 14px;
}

.group-code .link::after {
  position: relative;
  top: 6px;
}

.company__governance_wrap {
  overflow-x: scroll;
  position: relative;
  z-index: 1;
}

.company__governance_wrap img {
  width: 200vw;
  max-width: 200vw;
}

@media (min-width: 768px) {
  .company-card__content {
    padding: 70px min(200px, max(100px, calc(200px + 50vw - 683px))) 30px 70px;
  }

  .company-card__title {
    font-size: 1.5rem;
    line-height: 1.45;
  }

  .company-info {
    margin-top: 70px;
  }

  .company-info__item {
    padding: 20px 23px;
  }

  .company-info__label {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    width: 96px;
    min-width: 96px;
    padding: 0 21px 0 23px;
  }

  .company-info__value {
    font-size: 1rem;
    line-height: 2;
  }

  .accordion__item {
    width: calc(33.33% - 16px);
    max-width: 264px;
  }

  .company-info__item .accordion__item .accordion__button {
    width: 100%;
    height: 60px;
    line-height: 60px;
    font-size: 1.125rem;
  }

  .company-info__value--accordion {
    max-width: 834px;
    flex-direction: row;
    width: 100%;
  }

  .company-info__value--office {
    width: 100%;
    max-width: 764px;
  }

  .office__media {
    flex-direction: row;
    gap: 28px;
    margin-top: 20px;
    width: 100%;
  }

  .office__image,
  .office__map {
    width: calc(50% - 14px);
    aspect-ratio: 368 / 207;
  }

  .certification__button {
    margin-top: 16px;
  }

  .certification-image {
    margin-top: 24px;
    width: 100%;
    max-width: 726px;
  }

  .certification-image__content {
    width: 100%;
    height: auto;
  }

  .group-code__wrapper {
    padding: 100px min(200px, max(100px, calc(200px + 50vw - 683px))) 100px 70px;
  }

  .group-code__content {
    max-width: 1018px;
  }

  .group-code__title {
    font-size: 1.25rem;
    line-height: 1.8125;
    margin-bottom: 30px;
  }

  .group-code .link {
    max-width: 456px;
    height: 48px;
    border-radius: 35px;
    line-height: 1.25;
    align-items: flex-start;
    padding: 12px 0 14px;
    margin-left: 0;
    margin-top: 30px;
  }

  .group-code .link::after {
    margin-left: 5px;
  }

  .company__governance_wrap {
    overflow-x: inherit;
  }

  .company__governance_wrap img {
    width: auto;
  }

  @media (min-width: 1367px) {
    .company-card__content {
      margin-left: calc(50vw - 683px);
      width: calc(100% - calc(50vw - 683px) + 20px);
    }

    .company-info {
      max-width: 1018px;
    }

    .group-code__wrapper {
      margin-left: calc(50vw - 683px);
      width: calc(100% - calc(50vw - 683px) + 20px);
    }
  }
}