/* =========================================================
   Company CSS
   - COMPANYページ固有のレイアウトとUI
   - v2: Heroは画像なし前提に最適化（構造は最小変更）
========================================================= */

.page-company {
  overflow-x: clip;
}

.page-company .site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
}

/* =========================
   Hero
========================= */
.company-hero {
  overflow: hidden;
  padding-top: clamp(112px, 10vw, 168px);
  padding-bottom: clamp(72px, 7vw, 112px);
}

.company-hero__layout {
  position: relative;
  display: block;
}

.company-hero__layout::after {
  content: "COMPANY";
  position: absolute;
  left: 0;
  bottom: -0.08em;
  z-index: 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-family-en);
  font-size: clamp(5.4rem, 12vw, 15rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.05em;
  line-height: 0.82;
  pointer-events: none;
  user-select: none;
}

.company-hero__content,
.company-hero__media {
  position: relative;
  z-index: 1;
}

.company-hero__content {
  max-width: 82rem;
}

.company-hero .section-heading {
  max-width: 80rem;
  margin-bottom: 0;
}

.company-hero .section-heading__eyebrow {
  color: var(--color-brand-blue);
}

.company-hero .section-heading__lead {
  max-width: 60rem;
}

.company-hero__intro {
  max-width: 58rem;
  margin-top: clamp(20px, 3vw, 32px);
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.05);
}

.company-hero__intro p {
  color: var(--color-text-muted);
}

.company-hero__media {
  display: none;
}

/* =========================
   MVV
========================= */
.company-mvv {
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 6vw, 92px);
  padding-bottom: clamp(72px, 7vw, 104px);
}

.company-mvv .bg-word {
  top: 1.2rem;
  left: clamp(12px, 2vw, 32px);
  z-index: 0;
  color: rgba(255, 255, 255, 0.62);
}

.company-mvv .section-heading,
.company-mvv__grid {
  position: relative;
  z-index: 1;
}

.company-mvv .section-heading__eyebrow {
  color: var(--color-brand-red);
}

.company-mvv__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.company-card {
  display: grid;
  align-content: start;
  gap: 1.6rem;
  min-height: 100%;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(17, 17, 17, 0.05);
}

.company-card--mvv {
  position: relative;
  overflow: hidden;
}

.company-card--mvv::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-brand);
}

.company-card__label {
  color: var(--color-text-subtle);
  font-family: var(--font-family-en);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
}

.company-card__number {
  color: rgba(17, 17, 17, 0.16);
  font-family: var(--font-family-en);
  font-size: clamp(3rem, 3.8vw, 4.6rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.04em;
  line-height: 1;
}

.company-card__title {
  font-size: clamp(2.2rem, 1.9rem + 0.4vw, 2.9rem);
  line-height: 1.25;
}

.company-card__text {
  color: var(--color-text-muted);
}

/* =========================
   CODE
========================= */
.company-code {
  padding-top: clamp(64px, 6vw, 92px);
  padding-bottom: clamp(72px, 7vw, 104px);
}

.company-code .section-heading__eyebrow {
  color: var(--color-brand-blue);
}

.company-code__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.company-card--code {
  position: relative;
}

.company-card--code::before {
  content: "";
  position: absolute;
  right: 2rem;
  top: 2rem;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 129, 204, 0.08), transparent 70%);
}

.company-card--code:nth-child(2)::before {
  background: radial-gradient(circle, rgba(230, 0, 19, 0.08), transparent 70%);
}

/* =========================
   Profile
========================= */
.company-profile {
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 6vw, 92px);
  padding-bottom: clamp(72px, 7vw, 112px);
}

.company-profile .bg-word {
  top: 1.2rem;
  left: clamp(12px, 2vw, 32px);
  z-index: 0;
  color: rgba(255, 255, 255, 0.62);
}

.company-profile .section-heading,
.company-profile__table-wrap {
  position: relative;
  z-index: 1;
}

.company-profile .section-heading__eyebrow {
  color: var(--color-brand-red);
}

.company-profile__table-wrap {
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.05);
}

.company-profile__table {
  width: 100%;
  border-collapse: collapse;
}

.company-profile__table th,
.company-profile__table td {
  padding: clamp(18px, 2vw, 24px) clamp(18px, 2.4vw, 28px);
  vertical-align: top;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.company-profile__table tr:first-child th,
.company-profile__table tr:first-child td {
  border-top: 0;
}

.company-profile__table th {
  width: 22rem;
  color: var(--color-text-subtle);
  font-family: var(--font-family-en);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  background: rgba(17, 17, 17, 0.02);
}

.company-profile__table td {
  color: var(--color-text);
}

.company-profile__services {
  display: grid;
  gap: 0.8rem;
}

.company-profile__services li {
  position: relative;
  padding-left: 1.4rem;
}

.company-profile__services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-blue);
}

/* =========================
   Shared next links
========================= */
.company-links {
  overflow: hidden;
}

.company-links .bg-word {
  color: rgba(255, 255, 255, 0.58);
}

.company-links .section-heading__eyebrow {
  color: var(--color-brand-blue);
}

.company-links .page-links__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================
   Responsive
========================= */
@media (max-width: 1199px) {
  .company-hero__layout::after {
    left: 0;
    bottom: -0.03em;
    font-size: clamp(5rem, 14vw, 10rem);
  }

  .company-mvv__grid,
  .company-code__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .company-hero {
    padding-top: 10rem;
    padding-bottom: 7.2rem;
  }

  .company-mvv,
  .company-code,
  .company-profile {
    padding-top: 6.4rem;
    padding-bottom: 7.2rem;
  }

  .company-links .page-links__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .company-hero {
    padding-top: 9.2rem;
    padding-bottom: 6.4rem;
  }

  .company-hero__intro,
  .company-card {
    padding: 2rem 1.6rem;
    border-radius: var(--radius-lg);
  }

  .company-profile__table,
  .company-profile__table tbody,
  .company-profile__table tr,
  .company-profile__table th,
  .company-profile__table td {
    display: block;
    width: 100%;
  }

  .company-profile__table tr {
    border-top: 1px solid rgba(17, 17, 17, 0.06);
  }

  .company-profile__table tr:first-child {
    border-top: 0;
  }

  .company-profile__table th,
  .company-profile__table td {
    border-top: 0;
    padding: 1.6rem 1.6rem 0;
  }

  .company-profile__table td {
    padding-top: 0.8rem;
    padding-bottom: 1.6rem;
  }

  .company-profile__table th {
    background: transparent;
  }

  .company-links .page-links__grid {
    grid-template-columns: 1fr;
  }
}
