
html, body {
  height: 100%;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background-color: white;
  color: #000;
}

img {
  display: block;
  max-width: 100%;
}

.btn {
  cursor: pointer;
  font-weight: bold;
  border: none;
}

.nav-logo {
  position: absolute;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 25px;
  object-fit: contain;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: center; /* 메뉴 중앙 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 40px;
  background: white;
  border-bottom: 1px solid #e5e5e5;
  z-index: 1000;
  box-sizing: border-box;
  gap: 0; 
}

.navigation-menu {
  display: flex;
  align-items: center;
  gap: 27px;
}

.navigation-menu a {
  font-size: 14px;
  font-weight: bold;
  color: black;
  margin: 0;
  cursor: pointer;
  text-decoration: none; /* 밑줄 제거 */
}

.collaboration-btn {
  position: absolute;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background-color: #163877;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

 /*그림 나비 살펴보기 버튼*/
.primary-btn { 
  background-color: #163877;
  color: white;
  padding: 0.65rem 3rem;
  border-radius: 0.25rem;
}

 /*회사 소개 버튼*/
.secondary-btn {
  background-color: transparent;
  color: #163877;
  padding: 0.75rem 3rem;
  border: 2px solid #163877;
  border-radius: 0.25rem;
}

.primary-btn, 
.secondary-btn,
.collaboration-btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(0);
}

/* 그림나비 살펴보기 버튼 애니메이션 */
.primary-btn:hover {
  transform: translateY(-2px) scale(1.01); 
  box-shadow: 0 10px 20px rgba(22, 56, 119, 0.3); 
}

.secondary-btn:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: #163877;
  box-shadow: 0 10px 20px rgba(22, 56, 119, 0.25);
  background-color: rgba(22, 56, 119, 0.1);
}
.collaboration-btn:hover{
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 10px 20px rgba(22, 56, 119, 0.3); 
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  width: 100%;
  padding: 1.25rem;
  margin: 0 auto;
}

.slogan {
  text-align: center;
  padding: 8rem 1.25rem;
  max-width: 1300px;
  margin: 0 auto;
}

.slogan h1 {
  font-size: 80px;
  font-weight: 600;
  margin: 0; 
}

.slogan h2 {
  font-size: 96px;
  font-weight: 799;
  margin-top: 0;
  line-height: 1; 
  background: linear-gradient(to right, #163877, #a0c4ff);
  background-clip: text;  
  -webkit-background-clip: text;  /* 배경을 글자 안으로 넣기 */
  -webkit-text-fill-color: transparent; /* 글자 색상 투명하게 */
}

.slogan p {
  font-size: 28px;
  font-weight: 300;
  margin-top: 1rem;
}

.slogan-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem; 
}

.slogan-buttons a {
  text-decoration: none;
}

.intro-cards-section {
  text-align: center;  
  margin-top: -2rem;      
  margin-bottom: 0;         
}

.slogan-subtitle {
  font-size: 35px;
  font-weight: 650;
}

.intro-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 1rem 1.25rem;
  max-width: 1300px;
  margin: 0 auto;
}

.card {
  width: 438px;
  padding: 1.25rem;
  border: 1px solid #000;
  border-radius: 1rem;
}

/*설립 목적*/
.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.card-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 0.75rem; 
}

.card-header img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.card-body p {
  margin: 0.5rem 0;
  text-align: left;
}

.label {
  font-weight: 300; /*얇게 */
}

.value {
  font-weight: 500; /*굵게*/
}

.card-text {
  font-weight: 350;
  font-size: 1.09rem;
  text-align: left;
}

.features {
  max-width: 1300px;
  padding: 5rem 1.25rem;
  margin: 0 auto;
  text-align: center;
}

/*특장점*/
.features h2 {
  font-size: 2.05rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.feature-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.feature-card {
  width: 270px;
  justify-content: space-between; /* 좌우 균등 간격 */
  flex-wrap: nowrap;              /* 한 줄로 고정 */
  border: 1px solid #000;
  border-radius: 1rem;
  padding: 3rem 1.5rem; 
  text-align: left; 
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 570;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
}
.feature-icon {
  width: 32px;
  height: 32px;
  
}

.history {
  max-width: 1300px;
  padding: 3rem 0.1rem;
  padding-left: 4rem;
  background-color: #F4F7FE;
  border-radius: 1rem;
  margin: 0 auto;
  text-align: left;
  margin-bottom: 3rem;
}

.history-header {
  display: flex;
  align-items: center;
  gap: 0.75rem; 
}

/*주요연혁 글자 조정*/
.history-header h2 {
  margin: 0;
  line-height: 1;    
  position: relative;
  top: 16px;           
}

.history h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.history-grid .year {
  font-weight: 600;
  font-size: 1.2rem;  
  margin-bottom: 0.01rem; 
}
.history-grid div p:not(.year) {
  font-size: 1.1rem;    
  font-weight: 400;    
  margin: 0.1;          
}

.more-info {
  text-align: center;
  padding: 5rem 1.25rem;
  background: linear-gradient(to right, #d3dfff, #f4f5ff, #d3dfff);
}

.more-info h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 0rem;
}

.more-info p {
  font-size: 1.7rem;
  font-weight: 300;
  margin-bottom: 2.7rem;
  margin-top: 0.5rem;
}

/*문의하기 버튼*/
.more-info .btn.primary-btn {
  padding: 0.77rem 4.5rem;
}

/*마지막 그리드*/
.footer {
  background-color: #143f82; 
  color: white;
  padding: 50px 20px 20px;
  font-weight: 300;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}

.logo-img {
  width: 20px;
  height: auto;
  margin-bottom: 0px;
  margin-top: 1px;
}

.footer-desc {
  font-size: 17px;
  font-weight: 380;
  line-height: 1.5;
}

.footer-links h3,
.footer-contact h3 {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 300;
  font-size: 15px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-contact p {
  font-weight: 300;
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 1200px;
  margin: 20px auto 0;
  padding-top: 15px;
  font-size: 13px;
  text-align: left;
  color: rgba(255, 255, 255, 0.7);
}

.hamburger{
  display: none;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: absolute;
  right: 40px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #000;
  border-radius: 2px;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: -330px;
  width: 260px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  gap: 25px;
  transition: 0.3s ease;
  z-index: 9999;
}
.mobile-menu a {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: black;
}

/* 패널 오픈 상태 */
.mobile-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 1rem 1rem 1rem;
}

.mobile-menu-close {
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}

/*반응형*/
@media (max-width: 768px) {

  .navigation {
    padding: 10px 15px;
    height: auto;
    justify-content: space-between; 
  }

  .nav-logo {
    position: static;
  }

  .slogan {
    padding: 5rem 1rem;
  }

  .slogan h1 {
    font-size: 38px;
  }

  .slogan h2 {
    font-size: 48px;
  }

  .slogan p {
    font-size: 18px;
  }

  .slogan-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    padding: 0.8rem 0;
    font-size: 16px;
  }

  /* 소개 카드 */
  .intro-cards {
    flex-direction: column;
    padding: 0 1rem;
  }

  .card {
    width: 90%;
  }

  /* 특장점 */
  .feature-cards {
    flex-direction: column;
  }

  .feature-card {
    width: 90%;
    padding: 2rem 1rem;
  }

  /* 연혁 */
  .history {
    padding: 2rem 1rem;
  }

  .history-grid {
    grid-template-columns: 1fr;
  }

  .history-grid .year {
    font-size: 1.1rem;
  }

  .more-info h2 {
    font-size: 30px;
  }

  .more-info p {
    font-size: 1.2rem;
  }

  .more-info .btn.primary-btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 18px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-section {
    margin-bottom: 20px;
  }

  .footer-bottom {
    text-align: center;
  }

  .navigation-menu {
    display: none;
  }

  /* 협업 버튼 숨김 */
  .collaboration-btn {
    display: none;
  }

  /* 햄버거 버튼 활성화 */
  .hamburger {
    display: flex;
  }

  html, body {
    overflow-x: hidden; /* 좌우 스크롤 제거 */
  }

  * {
    box-sizing: border-box; /* 패딩 포함 폭 계산 */
  }

  .card, .feature-card, .history {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
}