/* Hero */
.about-hero {
  position: relative;
  padding: 80px 0;
  background: #f5f7ff;
  background-image: url("../img/about-hero-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  min-height: 300px;
  color: #ffffff;
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1;
}

.about-hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  z-index: 2;
}

.about-hero-title {
  font-family: "Abril Fatface", serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1px;
  color: #ffffff;
}

.about-hero-lead {
  font-family: "Maitree", serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 0px;
  color: #ffffff;
}

/* Shared section title */
.about-section-title {
  font-family: "Abril Fatface", serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin-top: 60px;
  margin-bottom: 24px;
}

/* Practical knowledge */
.about-practical {
  padding: 64px 0;
}

.about-practical-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 48px;
}

.about-practical-left,
.about-practical-right {
  flex: 1;
}

.about-practical-text {
  line-height: 1.6;
  margin-bottom: 16px;
}

.about-practical-image {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.about-practical-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Achievements */
.about-achievements {
  padding: 64px 0;
  background: transparent;
}

.about-achievements-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.about-achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.about-achievement-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0;
  padding: 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
}

.achievement-image {
  flex: 0 0 60%;
  max-width: 60%;
  margin: 0;
}

.achievement-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.achievement-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.achievement-title {
  font-family: "Abril Fatface", serif;
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 8px 0;
  text-align: left;
}

/* Disable text animation for achievement-title and achievement-text */
.achievement-title.text-animate .word,
.achievement-text.text-animate .word {
  white-space: normal !important;
  display: inline !important;
  opacity: 1 !important;
  transform: none !important;
}

.achievement-title.text-animate,
.achievement-text.text-animate {
  overflow: visible !important;
}

.achievement-text {
  font-size: 0.95rem;
  line-height: 1.3;
  margin: 0;
  text-align: left;
  padding-left: 0;
  padding-right: 0;
}

/* Highlights logos card */
.about-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.about-highlights-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  width: 80%;
  max-width: 80%;
  margin: 0 auto;
  aspect-ratio: 3 / 2;
  box-sizing: border-box;
}

.highlight-logo {
  padding: 0;
  border: none;
  text-align: center;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-logo img {
  width: 150px;
  height: 100px;
  max-width: 100%;
  object-fit: contain;
}

/* About FOURDIGIT (company section) */
.about-company {
  padding: 64px 0;
}

.about-company-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  gap: 48px;
}

.about-company-left,
.about-company-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.about-company-right {
  justify-content: flex-start;
}

.about-company-logo {
  margin-bottom: 12px;
}

.about-company-logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.about-company-logo-spacer {
  flex-shrink: 0;
  margin-left: 248px;
}

.about-company-logo-spacer .about-section-title {
  visibility: hidden;
  margin: 0;
  margin-bottom: 24px;
  padding: 0;
  height: auto;
}

.about-company-text-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.about-company-text {
  line-height: 1.6;
  margin-bottom: 16px;
  white-space: pre-line;
}

/* Client logos */
.about-client-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  column-gap: 10px;
  row-gap: 10px;
  width: 100%;
  aspect-ratio: 3 / 2;
  flex: 1;
  min-height: 0;
}

.client-logo {
  padding: 0;
  border: none;
  border-radius: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
}

.client-logo img {
  width: auto;
  height: 60px;
  max-width: 80%;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
  .about-hero-title {
    font-family: "Abril Fatface", serif;
  }

  .about-hero-lead {
    font-family: "Maitree", serif;
  }

  .about-section-title {
    font-family: "Abril Fatface", serif;
  }

  .achievement-title {
    font-family: "Abril Fatface", serif;
  }

  .about-hero {
    min-height: 250px;
    padding: 60px 0;
  }

  .about-practical-text,
  .about-company-text {
    padding-left: 16px;
    padding-right: 16px;
  }

  .achievement-text {
    padding-left: 0;
    padding-right: 0;
  }

  .about-practical-inner,
  .about-company-inner {
    flex-direction: column;
  }

  .about-company-logo-spacer {
    display: none;
  }

  .about-achievements-inner {
    padding: 0 16px;
  }

  .about-achievements-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-achievement-card {
    padding: 10px;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  /* ロゴカードは縦一列のまま */
  .about-achievement-card.about-logo-card {
    flex-direction: column !important;
    align-items: center;
  }

  .achievement-image {
    flex: 0 0 50%;
    max-width: 50%;
    margin: 0;
  }

  .achievement-content {
    flex: 1;
    text-align: left;
  }

  .achievement-title,
  .achievement-text {
    text-align: left !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .about-highlights-logos {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    aspect-ratio: 3 / 2;
  }

  .highlight-logo {
    padding: 0;
    border: none;
    background: transparent;
  }

  .highlight-logo img {
    max-width: 100%;
    height: 100px;
  }

  .about-client-logos {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    aspect-ratio: 3 / 2;
  }

  .client-logo {
    padding: 0;
    border: none;
    background: transparent;
  }

  .client-logo img {
    max-width: 80%;
    height: 60px;
  }
}
