.page-hero--company {
  background:
    linear-gradient(rgba(3, 23, 48, 0.42), rgba(3, 23, 48, 0.42)),
    url("../images/company/subheader.png") center / cover no-repeat;
}

.company-page {
  background: #ffffff;
}

.company-section {
  padding: 128px 24px 144px;
}

.company-section--muted {
  background: var(--color-soft);
}

.company-section--center .section-heading {
  text-align: center;
}

.partner-network {
  display: block;
  width: min(100%, var(--layout-max));
  margin: 56px auto 0;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(18, 18, 18, 0.06);
}

.partner-network img {
  display: block;
  width: 100%;
  height: auto;
}

.company-overview__intro {
  display: grid;
  gap: 52px;
  width: min(100%, var(--layout-max));
  margin: 56px auto 0;
  text-align: left;
}

.company-overview__visual-card {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #121212;
}

.company-overview__visual-card::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(4, 18, 35, 0.28);
  content: "";
}

.company-overview__visual-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1396 / 320;
  object-fit: cover;
}

.company-overview__visual-copy {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: calc(100% - 48px);
  color: #ffffff;
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  transform: translate(-50%, -50%);
}

.company-overview__lead,
.company-philosophy {
  display: grid;
  gap: 22px;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.company-overview__lead h3,
.company-philosophy h3 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.8;
}

.company-overview__lead h3 span {
  display: block;
  color: var(--color-blue);
}

.company-overview__lead p,
.company-philosophy p {
  margin: 0;
  color: var(--color-body);
  font-size: 16px;
  line-height: 1.8;
}

.company-philosophy h3 {
  font-size: clamp(19px, 2.1vw, 24px);
}

.company-philosophy {
  width: 100%;
}

.company-philosophy p {
  width: 100%;
}

.company-location-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  width: min(100%, var(--layout-max));
  margin: 56px auto 0;
  text-align: left;
}

.company-location-panel {
  display: grid;
  align-content: center;
  margin: 0;
  padding: 12px 32px;
  border: 1px solid #e3e7ec;
  background: #ffffff;
}

.company-location-panel__row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  border-bottom: 1px solid #e9edf1;
}

.company-location-panel__row:last-of-type {
  border-bottom: 0;
}

.company-location-panel dt,
.company-location-panel dd {
  margin: 0;
}

.company-location-panel dt {
  color: var(--color-blue);
  font-size: 14px;
  font-weight: 700;
}

.company-location-panel dd,
.company-location-panel a {
  color: var(--color-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.company-location-panel button {
  min-width: 52px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #cad2dc;
  background: #ffffff;
  color: var(--color-body);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.company-location-panel button:hover,
.company-location-panel button:focus-visible {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.company-location-panel__status {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--color-blue);
  font-size: 13px;
}

.company-location-map {
  display: grid;
  place-items: center;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid #dce2e9;
  background: #eef2f6;
}

/* 카카오맵 퍼가기 이미지는 고정 크기라 컨테이너 폭에 맞춰 잘라 넣습니다. */
.company-location-map:has(.company-location-map__canvas) {
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: stretch;
}

.company-location-map__canvas {
  display: block;
  overflow: hidden;
  min-height: 0;
}

.company-location-map__canvas img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-location-map__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid #dce2e9;
  background: #f9f9f9;
  font-size: 13px;
}

.company-location-map__bar a {
  color: var(--color-body);
  font-weight: 700;
}

.company-location-map__bar a:last-child {
  color: var(--color-blue);
}

.company-location-map__fallback {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
}

.company-location-map__fallback strong {
  color: var(--color-ink);
  font-size: 16px;
}

.company-location-map__fallback p {
  margin: 0;
  color: var(--color-body);
  line-height: 1.6;
}

.company-location-map__fallback a {
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--color-blue);
  font-weight: 700;
}

.company-section--intro {
  display: grid;
  justify-items: center;
  gap: 52px;
  min-height: 780px;
  text-align: center;
}

.company-section--intro > strong {
  color: var(--color-blue);
  font-size: clamp(22px, 3.2vw, 29px);
  line-height: 1.75;
}

.company-intro__message {
  display: grid;
  gap: 28px;
  width: min(100%, 1120px);
  color: var(--color-ink);
  font-size: 18px;
  line-height: 1.7;
}

.company-intro__term {
  white-space: nowrap;
}

.company-intro__message p,
.company-section--intro b {
  margin: 0;
}

.company-section--intro b {
  font-size: 19px;
}

.company-history__chapters {
  display: grid;
  gap: 120px;
  width: min(100%, 1120px);
  margin: 72px auto 0;
}

.company-history__chapter {
  position: relative;
  isolation: isolate;
}

.company-history__chapter::before {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42%;
  background: #edf4fb;
  content: "";
}

.company-history__chapter-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 52px;
  text-align: left;
}

.company-history__chapter-heading p,
.company-history__chapter-heading h3 {
  margin: 0;
}

.company-history__chapter-heading p {
  color: var(--color-blue);
  font-size: 15px;
  font-weight: 700;
}

.company-history__chapter-heading h3 {
  color: var(--color-ink);
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.4;
  word-break: keep-all;
}

.company-history__steps {
  display: grid;
  grid-template-columns: repeat(var(--history-columns), minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  margin: 0;
  padding: 0 28px 48px;
  list-style: none;
}

.company-history__steps--single {
  grid-template-columns: minmax(0, 560px);
}

.company-history__step {
  padding-bottom: calc(var(--history-step) * 34px);
}

.company-history__card {
  --history-accent: #0b5dac;

  position: relative;
  display: grid;
  align-content: start;
  gap: 11px;
  min-height: 260px;
  padding: 24px 18px 22px 22px;
  border: 1px solid #e4e8ed;
  border-left: 5px solid var(--history-accent);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 34, 55, 0.08);
  text-align: left;
}

.company-history__card--purple {
  --history-accent: #6957a6;
}

.company-history__card--teal {
  --history-accent: #15999a;
}

.company-history__card--orange {
  --history-accent: #ec8442;
}

.company-history__card--pink {
  --history-accent: #d35783;
}

.company-history__card time {
  color: var(--history-accent);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.company-history__card > span {
  color: var(--history-accent);
  font-size: 12px;
  font-weight: 700;
}

.company-history__card h4 {
  min-height: 48px;
  margin: 0;
  color: var(--color-ink);
  font-size: 17px;
  line-height: 1.45;
  word-break: keep-all;
}

.company-history__card p {
  margin: 0;
  color: var(--color-body);
  font-size: 14px;
  line-height: 1.8;
  word-break: keep-all;
}

.company-history__closing {
  margin: -18px 28px 0;
  padding: 0 0 34px;
  color: var(--color-blue);
  font-size: 18px;
  font-weight: 700;
  text-align: right;
}

.company-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: min(100%, var(--layout-max));
  margin: 72px auto 0;
}

.company-cert-card {
  display: grid;
  gap: 22px;
  min-height: 300px;
  padding: 26px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 12px 28px rgba(18, 18, 18, 0.06);
}

.company-cert-card__image {
  display: grid;
  place-items: center;
  min-height: 250px;
  margin: 0;
  padding: 24px;
}

.company-cert-card__image img {
  display: block;
  width: min(100%, 214px);
  max-height: 300px;
  object-fit: contain;
}

.company-cert-card strong {
  color: var(--color-body);
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .company-section {
    padding: 80px 20px;
  }

  .company-overview__intro {
    gap: 36px;
    margin-top: 40px;
  }

  .company-overview__visual-card img {
    min-height: 180px;
  }

  .company-overview__visual-copy {
    width: calc(100% - 32px);
    font-size: 16px;
  }

  .company-intro__desktop-break {
    display: none;
  }

  .company-location-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-location-panel {
    padding: 8px 20px;
  }

  .company-location-panel__row {
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 72px;
  }

  .company-location-map {
    min-height: 320px;
  }

  /* 좁은 화면에서 잘라 넣으면 지도 좌우가 크게 잘려 나가므로
     원본 비율을 그대로 유지합니다. */
  .company-location-map:has(.company-location-map__canvas) {
    min-height: 0;
  }

  .company-location-map__canvas img {
    height: auto;
    aspect-ratio: 638 / 358;
    object-fit: contain;
  }

  .company-location-map__bar {
    padding: 8px 12px;
  }

  .company-history__chapters {
    display: grid;
    gap: 76px;
    margin-top: 52px;
  }

  .company-history__chapter-heading {
    margin-bottom: 32px;
  }

  .company-history__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 0 16px 32px;
  }

  .company-history__steps--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-history__step {
    padding-bottom: 0;
  }

  .company-history__card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px 18px;
    min-height: 0;
    padding: 22px 20px;
  }

  .company-history__card time {
    grid-row: 1 / span 3;
    font-size: 24px;
  }

  .company-history__card > span,
  .company-history__card h4,
  .company-history__card p {
    grid-column: 2;
  }

  .company-history__card h4 {
    min-height: 0;
  }

  .company-history__closing {
    margin: 0 16px;
    padding-bottom: 28px;
  }

  .company-cert-grid {
    grid-template-columns: 1fr;
  }
}
