.section-2 {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0;
  background-color: #fff;
  width: 100%;
}

.section2-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.about-container {
  width: 80%;
  display: flex;
  flex-direction: row;
  gap: 1.875rem;
  padding: 1.875rem;
  justify-content: flex-end;
}
.about-text-container {
  display: grid;
  grid-gap: 1.5rem;
  align-items: start;
  flex: auto;
}
.about-text-container pre {
  grid-column: 1;
  overflow-x: hidden;
  white-space: pre-line;
}
.about-text-container img {
  grid-column: 2;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.about-image-container {
  flex: 0 0 auto;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
  padding: 5rem 3.125rem 9.375rem 0rem;
  justify-content: flex-start;
  overflow: hidden;
}

.preserved-text {
  font-family: "yugothib-500";
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 2.5;
  color: #000000;
  letter-spacing: 10%;
  white-space: pre;
  word-break: normal;
}
.about-text-lg {
  display: block;
}
.about-text-sp {
  display: none;
}
.about-description-image {
  width: 100% !important;
  max-width: 30rem !important;
}

.about-description-image-sp {
  width: 100% !important;
  max-width: 18rem !important;
  display: block !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}
.about-bottom-text {
  color: #000000;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 16%;
  line-height: 1;
}
.about-image {
  position: relative;
  padding: 1.25rem;
  height: 23.125rem;
}
.about-image img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.logo2-container {
  width: 100%;
}

.logo2 {
  width: 30%;
}

@media screen and (max-width: 950px) {
  .logo2 {
    width: 12.5rem;
  }
  .about-image-container {
    display: none;
  }
  .about-text-container {
    width: 100%;
    align-items: center;
    flex: 1;
    max-width: 100%;
  }
  .about-container {
    align-items: center;
    justify-content: center;
  }
  .section2-content {
    align-items: center;
  }
}
@media screen and (max-width: 768px) {
  .about-logo-box {
    height: 6.25rem;
  }
  .preserved-text {
    font-size: 0.875rem;
    white-space: pre-wrap;
    word-break: normal;
    overflow-x: hidden;
  }
  .about-bottom-text {
    font-size: 1.5625rem;
  }
  .about-text-container {
    padding: 0 !important;
    width: 90%;
  }
  .about-container {
    width: 100%;
  }
  .section-2 {
    padding: 1.25rem 1.875rem;
  }
  .about-text-container {
    grid-template-columns: 1fr;
  }

  .about-text-container pre,
  .about-text-container img {
    grid-column: 1;
  }
}
@media screen and (max-width: 470px) {
  .about-text-container {
    width: 100%;
  }
  .section2-content {
    padding: 0;
  }
}
@media screen and (max-width: 400px) {
  .about-text-lg {
    display: none;
  }
  .about-text-sp {
    display: block;
  }
  .preserved-text {
    white-space: pre-wrap;
    word-wrap: break-word;
  }
  .about-container {
    padding: 0;
  }
}
@media screen and (min-width: 1920px) {
  .about-logo-box {
    height: 12.5rem;
  }
  .preserved-text {
    font-size: 1.25rem;
  }
  .about-bottom-text {
    font-size: 2.1875rem;
  }
  .about-container {
    width: 80%;
    margin-right: 3%;
  }
  .about-image {
    height: 26.25rem;
  }

  .logo2-container {
    padding: 9.375rem 0rem !important;
  }
  .about-image-container {
    padding: 6.25rem 0rem 15.625rem 0rem;
  }
}

/* Styles for QHD / 2K screens */
@media (min-width: 2560px) {
  .about-logo-box {
    height: 14.375rem;
    margin: 3.125rem 0rem 5rem 0rem;
  }
  .preserved-text {
    font-size: 1.5rem;
  }
  .about-bottom-text {
    font-size: 2.625rem;
  }
  .about-image {
    height: 31.875rem;
  }

  .logo2-container {
    padding: 9.375rem 0rem !important;
  }
  .about-image-container {
    padding: 9.375rem 0rem 18.75rem 0rem;
  }
  .about-description-image {
    max-width: 35rem !important;
  }
}
/* Styles for 4K and above */
@media (min-width: 3840px) {
  .about-logo-box {
    height: 15.625rem;
    margin: 3.125rem 0rem 6.25rem 0rem;
  }
  .section-2 {
    margin: 6.25rem 0rem;
  }
  .preserved-text {
    font-size: 2rem;
  }
  .about-bottom-text {
    font-size: 3.5625rem;
  }
  .about-image {
    height: 43.75rem;
  }
  .about-image-container {
    min-width: 30%;
  }
  .about-text-container {
    flex: 0 0 40%;
  }
  .about-description-image {
    max-width: 40rem !important;
  }
}

/*  Desktop & Mobile display rules */
.about-text-lg {
  display: block; /* show desktop */
}
.about-text-sp {
  display: none; /* hide on desktop */
}

/* Mobile stacked content only */
@media screen and (max-width: 950px) {
  .about-text-lg {
    display: none; /* hide on mobile */
  }
  .about-text-sp {
    display: block; /* show on mobile */
  }

  .about-mobile-only {
    display: block !important;
    width: 100%;
    flex: none;
  }

  .about-mobile-only pre {
    white-space: pre-wrap;
    word-break: break-word;
  }

  .about-mobile-only img {
    width: 100%;
    height: auto;
    margin: 1rem auto;
    display: block;
  }

  .about-mobile-only .about-bottom-text {
    display: block;
    margin-top: 1rem;
    font-size: 1.5625rem;
  }
  .section-2,
  .section2-content {
    padding-left: 0 !important;
    padding-right: 15px !important;
  }
}

/* Desktop hides mobile-only version */
@media screen and (min-width: 951px) {
  .about-mobile-only {
    display: none !important;
  }
}
