/* =========================
   COMPANY PAGE BASE
========================= */

body.company-page {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  color: #111111;
}

/* =========================
   COMPANY HEADER
========================= */

body.company-page header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.company-page header .menu-btn {
  color: #111111 !important;
}

@media (min-width: 1101px) {
  body.company-page header nav ul li a {
    color: #111111 !important;
    text-shadow: none;
  }

  body.company-page header nav ul li a.active {
    color: #111111 !important;
    font-weight: 500;
  }
}

/* =========================
   COMPANY COMMON
========================= */

.company-overview-page a {
  color: inherit;
  text-decoration: none;
}

.company-overview-page ul {
  list-style: none;
}

.company-container {
  width: min(1320px, calc(100% - 120px));
  margin: 0 auto;
}

.company-overview-page {
  width: 100%;
  height: 100vh;
  height: 100dvh;

  overflow-x: hidden;
  overflow-y: auto;

  scroll-behavior: smooth;
  scroll-snap-type: y proximity;

  -ms-overflow-style: none;
  scrollbar-width: none;
}

.company-overview-page::-webkit-scrollbar {
  display: none;
}

.company-intro-page,
.company-history-page,
.company-info-page,
.company-location-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;

  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* =========================
   FIRST PAGE
========================= */

.company-intro-page {
  position: relative;

  display: grid;
  grid-template-rows: 66vh 34vh;
  grid-template-rows: 66dvh 34dvh;

  height: 100vh;
  height: 100dvh;

  background: #ffffff;
}

.company-video-section {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding-top: 0;

  background: #000000;
}

.video-box {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
  overflow: hidden;

  background: #000000;
}

.company-gif {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.company-hero {
  position: relative;

  display: flex;
  align-items: flex-start;

  min-height: 0;
  padding: 34px 0 56px;

  background: #ffffff;
}

.company-hero-inner {
  width: min(1320px, calc(100% - 60px));
  margin-left: 30px;

  text-align: left;
}

.company-hero h1 {
  max-width: 850px;
  margin-bottom: 16px;

  color: #111111;
  font-size: clamp(30px, 2.3vw, 40px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -1.4px;
}

.company-hero-description {
  max-width: 760px;

  color: #555555;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.5px;

  word-break: keep-all;
}

.company-scroll-arrow {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 50;

  color: #000000;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;

  transform: translateX(-50%);
  animation: company-arrow-up-down 1.5s infinite;
}

@keyframes company-arrow-up-down {
  0% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 10px);
  }

  100% {
    transform: translate(-50%, 0);
  }
}

/* =========================
   HISTORY
========================= */

.company-history-page {
  display: flex;
  flex-direction: column;

  padding-top: clamp(88px, 12vh, 200px);

  background: #ffffff;
  color: #111111;
}

.company-history-image {
  flex-shrink: 0;

  width: 100%;
  height: clamp(220px, 35vh, 450px);
  overflow: hidden;

  background: #d9d9d9;
}

.company-history-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.company-history-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;

  width: min(1320px, calc(100% - 120px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.company-history-title {
  color: #111111;
  font-size: 35px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -1.5px;
}

.company-timeline {
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 42px;

  margin-top: 34px;
}

.company-timeline-row {
  position: relative;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
}

/* 연혁이 4개일 때 2개 / 2개 배치 */
.company-timeline.company-timeline-count-4 .company-timeline-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-timeline-row .company-timeline-line {
  position: absolute;
  top: 5px;
  left: 0;

  width: 100%;
  height: 2px;

  background: #d00000;
}

.company-timeline-item {
  position: relative;
  padding-top: 19px;
}

.company-timeline-dot {
  position: absolute;
  top: 0;
  left: 0;

  width: 11px;
  height: 11px;

  border-radius: 50%;
  background: #d00000;
}

.company-timeline-item h3 {
  margin-bottom: 10px;

  color: #111111;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.6px;
}

.company-timeline-item li {
  margin-bottom: 8px;

  color: #222222;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.45px;

  word-break: keep-all;
}

/* =========================
   INFO / PARTNER / CERTIFICATE
========================= */

.company-info-page {
  padding: clamp(96px, 12vh, 200px) 0 clamp(48px, 6vh, 80px);

  background: #ffffff;
  color: #111111;
}

.company-info-layout {
  width: min(1440px, calc(100% - 120px));
  margin: 0 auto;
}

.company-info-section,
.company-partner-section,
.company-certificate-section {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.company-info-section-title {
  padding-top: 4px;

  color: #111111;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1.5px;
}

.company-info-content {
  width: min(900px, 100%);
  margin: 0 auto;
}

.company-info-table {
  width: 100%;
  border-top: 1px solid #cfcfcf;
}

.company-info-row {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);

  min-height: 50px;
  border-bottom: 1px solid #cfcfcf;
}

.company-info-row dt {
  display: flex;
  align-items: center;

  padding: 0 35px;

  background: #f5f5f5;
  color: #777777;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.company-info-row dd {
  display: flex;
  align-items: center;

  padding: 8px 30px;

  color: #222222;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.35px;
}

.company-brochure-cell {
  flex-wrap: nowrap;
  gap: 7px;
  white-space: nowrap;
}

.company-brochure-download {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;
}

.company-brochure-download img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

.company-brochure-download:hover {
  opacity: 0.65;
}

.company-partner-section {
  margin-top: 70px;
}

.company-partner-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  width: 100%;
  min-height: 88px;
  padding-left: clamp(20px, 10vw, 200px);
  gap: clamp(32px, 10vw, 200px);
}

.company-partner-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  height: 88px;
}

.company-partner-logo-kaeri {
  width: 200px;
}

.company-partner-logo-hanbat {
  width: 270px;
}

.company-partner-logo img {
  display: block;

  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 140px;

  object-fit: contain;
  object-position: left center;
}

.company-certificate-section {
  margin-top: 90px;
}

.company-certificate-content {
  width: 100%;
}

.company-certificate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 62px);

  width: min(1000px, 100%);
  margin: 0 auto;
}

.company-certificate-card {
  display: flex;
  align-items: center;
  justify-content: center;

  aspect-ratio: 0.69 / 1;
  overflow: hidden;

  background: #dddddd;
}

.company-certificate-card img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  background: #ffffff;
}

/* =========================
   LOCATION
========================= */

.company-location-page {
  min-height: auto;
  height: auto;
  padding: clamp(96px, 12vh, 160px) 0 60px;

  background: #ffffff;
}

.company-location-inner {
  width: min(1200px, calc(100% - 120px));
  margin: 0 auto;
}

.company-location-title {
  color: #111111;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -1.5px;
  text-align: center;
}

.company-map {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: clamp(320px, 50vh, 560px);
  min-height: 0;
  margin-top: clamp(40px, 8vh, 100px);
  overflow: hidden;

  background: #d9d9d9;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1280px) {
  .company-info-layout {
    width: calc(100% - 80px);
  }

  .company-certificate-grid {
    gap: 30px;
  }

  .company-partner-content {
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .company-info-section,
  .company-partner-section,
  .company-certificate-section {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .company-certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(680px, 100%);
  }
}

@media (max-width: 900px) {
  body.company-page {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .company-overview-page {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .company-intro-page,
  .company-history-page,
  .company-info-page,
  .company-location-page {
    min-height: 0;
    height: auto;

    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .company-intro-page {
    display: block;
  }

  .company-video-section {
    height: 620px;
    padding-top: 64px;
  }

  .company-hero {
    min-height: 190px;
    padding: 42px 0;
  }

  .company-hero-inner,
  .company-history-inner {
    width: calc(100% - 40px);
  }

  .company-hero h1 {
    font-size: 20px;
    line-height: 1.55;
  }

  .company-hero-description {
    font-size: 20px;
    line-height: 1.65;
  }

  .company-history-page {
    padding-top: 64px;
  }

  .company-history-image {
    height: 160px;
  }

  .company-history-inner {
    margin-right: 20px;
    margin-left: 20px;
    text-align: left;
  }

  .company-history-title {
    font-size: 19px;
  }

  .company-timeline {
    display: block;
    margin-top: 30px;
    padding-left: 26px;
  }

  .company-timeline::before {
    content: "";

    position: absolute;
    top: 6px;
    left: 5px;

    width: 2px;
    height: calc(100% - 35px);

    background: #d00000;
  }

  .company-timeline-row {
    display: block;
  }

  .company-timeline-row .company-timeline-line {
    display: none;
  }

  .company-timeline-item {
    padding: 0 0 33px;
  }

  .company-timeline-dot {
    top: 2px;
    left: -26px;
  }

  .company-timeline-item h3 {
    font-size: 18px;
  }

  .company-timeline-item li {
    font-size: 12px;
  }
}

@media (max-width: 700px) {
  .company-info-page {
    padding: 96px 20px 60px;
  }

  .company-info-layout {
    width: 100%;
  }

  .company-info-section,
  .company-partner-section,
  .company-certificate-section {
    display: block;
  }

  .company-info-section-title {
    margin-bottom: 18px;
    font-size: 22px;
  }

  .company-info-row {
    grid-template-columns: 115px minmax(0, 1fr);
  }

  .company-info-row dt {
    padding: 0 16px;
    font-size: 11px;
  }

  .company-info-row dd {
    padding: 10px 15px;
    font-size: 11px;
  }

  .company-partner-section {
    margin-top: 42px;
  }

  .company-partner-content {
    flex-wrap: wrap;
    gap: 24px;
    padding-left: 0;
  }

  .company-partner-logo-kaeri,
  .company-partner-logo-hanbat {
    width: min(100%, 220px);
  }

  .company-certificate-section {
    margin-top: 70px;
  }

  .company-certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin-top: 0;
  }

  .company-location-page {
    padding: 105px 20px 60px;
  }

  .company-location-inner {
    width: 100%;
  }

  .company-location-title {
    font-size: 24px;
  }

  .company-map {
    height: 420px;
    min-height: 0;
    margin-top: 30px;
  }
}

/* 회사 정보 표: 영어 전환 시 공간 보정 */
.company-info-content {
  width: min(1080px, 100%);
}

.company-info-row {
  grid-template-columns: 155px minmax(0, 1fr);
}

.company-info-row dt {
  padding: 0 24px;
}

.company-info-row dd {
  min-width: 0;
}

.company-brochure-cell {
  gap: 8px;
  white-space: normal;
}

.company-brochure-text {
  display: inline;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .company-info-row {
    grid-template-columns: 125px minmax(0, 1fr);
  }

  .company-info-row dt {
    padding: 0 14px;
  }
}

.company-brochure-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: inherit;
  text-decoration: none;
}

.company-brochure-link:hover {
  opacity: 0.7;
}
