/* ═══ Company Page — extends pg-* base classes ═══ */

/* Video Hero override */
.co-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About (What We Do) — matches original row-reverse layout */
.co-about-wrapper {
  max-width: 100%;
  padding: 0;
}

.co-about-layout {
  display: flex;
  flex-direction: row-reverse;
  gap: 0;
  align-items: stretch;
}

.co-about-text-col {
  flex: 1;
  padding: 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.co-about-text-col h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0 0 20px;
}

.co-about-text-col p {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--color-text-light);
  margin-bottom: 15px;
}

.co-about-cards-col {
  flex: 0 0 40%;
  display: flex;
  flex-direction: row;
  gap: 0;
}

.co-about-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  flex: 1;
}

.co-about-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.co-about-card:hover img {
  transform: scale(1.05);
}

.co-about-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 20px 24px;
}

.co-about-card-overlay span {
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: 700;
}

/* What Sets Us Apart — uses shared card-grid-section now */

/* Company Profile (会社概要) */
.co-profile {
  background: var(--color-white);
}

.co-profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.co-profile-table-wrap {
  overflow-x: auto;
}

.co-profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-md);
}

.co-profile-table th,
.co-profile-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.co-profile-table th {
  font-weight: 600;
  color: var(--color-text-dark);
  white-space: nowrap;
  width: 130px;
}

.co-profile-table td {
  color: var(--color-text-light);
}

.co-profile-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.co-profile-link:hover {
  opacity: 0.7;
}

.co-profile-map {
  min-height: 360px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.co-profile-map iframe {
  flex: 1;
}

.co-profile-map iframe {
  display: block;
}

@media (max-width: 1024px) {
  .co-profile-layout {
    grid-template-columns: 1fr;
  }

  .co-profile-map {
    min-height: 300px;
  }
}

/* Leadership / Team — full-width cards with hover detail */
.co-leadership {
  background: var(--color-white);
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.co-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 16px;
}

.co-team-grid.co-team-count-3 {
  grid-template-columns: repeat(3, 1fr);
}

.co-team-grid.co-team-count-5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1024px) and (min-width: 769px) {
  .co-team-grid.co-team-count-5 {
    grid-template-columns: repeat(6, 1fr);
  }

  .co-team-grid.co-team-count-5 .co-team-card:nth-child(-n+3) {
    grid-column: span 2;
  }

  .co-team-grid.co-team-count-5 .co-team-card:nth-child(n+4) {
    grid-column: span 3;
  }
}

.co-team-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.co-team-photo {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.co-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.co-team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 33, 43, .7) 0%, transparent 50%);
}

.co-team-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: var(--color-white);
  z-index: 1;
}

.co-team-info h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--color-white);
}

.co-team-info .co-team-position {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .8);
  margin: 0;
}

.co-team-detail {
  position: absolute;
  inset: 0;
  background: rgba(26, 33, 43, .92);
  color: var(--color-white);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.co-team-card:hover .co-team-detail {
  opacity: 1;
}

.co-team-detail h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--color-white);
}

.co-team-detail .co-team-position {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .8);
  font-weight: 600;
  margin: 0 0 16px;
}

.co-team-detail .co-team-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .85);
  margin: 0;
  line-height: 1.65;
}

.co-center-cta {
  text-align: center;
  margin-top: 32px;
}

/* Certifications */
.co-certifications {
  background: var(--color-white);
}

.co-certs-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.co-cert-card {
  text-align: center;
  text-decoration: none;
  padding: 16px;
  transition: transform var(--transition-normal);
}

.co-cert-card:hover {
  transform: translateY(-3px);
}

.co-cert-card img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.co-cert-card p {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .co-team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .co-team-photo {
    height: 320px;
  }

  .co-about-layout {
    flex-direction: column;
  }

  .co-about-text-col {
    padding: 40px 24px;
  }

  .co-about-cards-col {
    flex: none;
    width: 100%;
    height: 250px;
  }

  .co-about-card img {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .co-team-grid {
    grid-template-columns: 1fr;
  }

  .co-team-grid.co-team-count-5 {
    grid-template-columns: 1fr;
  }

  .co-team-grid.co-team-count-5 .co-team-card:nth-child(-n+3),
  .co-team-grid.co-team-count-5 .co-team-card:nth-child(n+4) {
    grid-column: span 1;
  }

  .co-team-photo {
    height: 350px;
  }
}