@import url("./company.css");

/* Public 오시는 길 — Figma 133:1264 */

.company-location {
  padding: clamp(72px, 7.29vw, 140px) 0 clamp(88px, 8.85vw, 170px);
  background-color: #fff;
}

.company-location__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 4.17vw, 80px);
  width: min(100%, 1390px);
  margin-inline: auto;
}

.company-location__title {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(28px, 2.08vw, 40px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #191919;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.company-location__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.company-location__map-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.company-location__map {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: clamp(220px, 26.5vw, 509px);
  overflow: hidden;
  border-radius: clamp(16px, 1.25vw, 24px);
  background-color: #ece7df;
  aspect-ratio: 1290 / 509;
}

.company-location__iframe,
.company-location__map-link {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
}

.company-location__map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-location__external {
  align-self: flex-end;
  color: #464646;
  font-size: clamp(14px, 0.83vw, 16px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.company-location__external:hover,
.company-location__external:focus-visible {
  color: #191919;
}

.company-location__table {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  border: 1px solid #e9e9e9;
  border-bottom: 0;
  box-sizing: border-box;
}

.company-location__row {
  display: grid;
  grid-template-columns: minmax(120px, 236px) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  border-bottom: 1px solid #e9e9e9;
}

.company-location__term,
.company-location__desc {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 20px;
  min-height: 60px;
  box-sizing: border-box;
  font-size: clamp(15px, 0.94vw, 18px);
  line-height: 1.2;
  color: #464646;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.company-location__term {
  justify-content: center;
  background-color: #f6f6f6;
  font-weight: 600;
  text-align: center;
}

.company-location__term--email {
  letter-spacing: 0.35em;
}

.company-location__desc {
  justify-content: flex-start;
  background-color: #fff;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.company-location__link {
  color: inherit;
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.company-location__link:hover,
.company-location__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .company-location__content {
    gap: 28px;
  }

  .company-location__map {
    border-radius: 16px;
    min-height: 240px;
    aspect-ratio: 16 / 10;
  }

  .company-location__external {
    align-self: flex-start;
  }

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

  .company-location__term,
  .company-location__desc {
    justify-content: center;
    min-height: 0;
    padding: 18px 16px;
    text-align: center;
  }

  .company-location__term {
    letter-spacing: normal;
    padding-top: 18px;
    padding-bottom: 6px;
  }

  .company-location__term--email {
    letter-spacing: 0.2em;
  }

  .company-location__desc {
    padding-top: 12px;
    padding-bottom: 20px;
  }

  .company-location__link--tel {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
