
/* ===== BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Pretendard', sans-serif;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: #fff;
  color: #333;
}

body {
  background-color: #ffffff;
  color: #333;
}



/* ===== BASE ===== */
.logo {
  position: static;       /* ✅ absolute 제거 */
  margin-left: 1rem;      /* ✅ 약간 좌측 여백 */
}

.logo img {
  width: 70px;
  height: auto;
  display: block;
}

.logo a {
  display: block;
  width: 100%;
  height: 100%;
}



/* ===== BASE ===== */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 1rem;
  width: 100%;
  background-color: white;
  position: absolute;
  z-index: 1000;
  top: 0;
  left: 0;
  height: auto;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  gap: 50px;
  font-size: 1.05rem;
  justify-content: center;
  flex: 1;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: bold;
  padding-bottom: 4px;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #0062ff;
}

.nav-links a.active {
  color: #0062ff;             /* 원하는 강조 색상 */
  font-weight: bold;
}

/* ===== BASE ===== */
body.home header {
  background: url('jpg/lifestyle-people-living-camping.jpg') center/cover no-repeat;
  height: 85vh;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 4rem 1rem 2rem;
  position: relative;
  z-index: 1;
}

header {
  background: none;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
  margin-top: 10rem;
}

header p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

header a.btn {
  padding: 0.6rem 1.2rem;
  background-color: rgba(255,255,255,0.1);
  border: 1px solid white;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
}



/* ===== BASE ===== */
.sub-header {
  background: none;
  background-color: #003B7A !important;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  margin-top: 80px;
}

.sub-header h1 {
  font-size: 2.5rem;
}



/* ===== BASE ===== */
.main-boxes {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.box {
  background: white;
  flex: 1;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  min-height: 200px;
}

.box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #222;
}

.box p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}



/* ===== BASE ===== */

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background-color: white;
  display: block;
}

body.sub-page .menu-toggle span {
  background-color: #222;
}

body.sub-page .menu-toggle {
  display: flex;
}

body.sub-page .nav-links a {
  color: #222;
}

body.sub-page .nav-links a::after {
  background-color: #222;
}

body.sub-page .navbar {
  background-color: white;
}


/* ===== BASE ===== */

.about_image_row {
  display: flex;
  justify-content: center;
  margin: 1rem auto;
  flex-wrap: wrap;
}

.about_image {
  width: 50% !important;
  border-radius: 0;
}



/* ===== BASE ===== */
.tech_left_column {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  margin-left: -30px;
  background: white;
  border-right: 2px solid #ccc;
  padding: 1.2rem 1rem;
  z-index: 100;
}

.tech_left_column ul {
  list-style-type: none;
  padding: 0;
}

.tech_left_column ul li {
  margin-bottom: 1.5rem;
  border-left: 4px solid #0077cc;
  padding-left: 1rem;
}

.tech_left_column ul li a {
  text-decoration: none;
  font-size: 1rem;
  display: inline-block;  /* 잘못된 inline-block flex 수정 */
  color: #333;
  white-space: nowrap;
}

.tech_left_column ul li.active a {
  text-decoration: underline;
  color: #0077cc;
  font-weight: bold;
}


/* ===== BASE ===== */
.tech_left_column ul li a.anodizing {
  background-color: white;
  color: #1565c0;
  font-weight: bold;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}

.tech_left_column ul li a.armate {
  background-color: white;
  color: #ef6c00;
  font-weight: bold;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}

.tech_left_column ul li a.press {
  background-color: white;
  color: #1a1a1a;
  font-weight: bold;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}


/* ===== BASE ===== */
.content {
  padding: 3rem 1.5rem;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}


.content p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.content img {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  display: block;
  border-radius: 12px;
}

.tech-page .content {
  max-width: 1400px;
  width: 100%;
}

.tech_container {
  position: relative;
  max-width: none;
  width: 100%;
}

.right_column {
  padding-left: 200px; /* ✅ 이게 적용되어야 메뉴와 안 겹침 */
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}




/* ===== BASE ===== */
.right_column .inner-content {
  max-width: 1000px;
  margin: 0 auto;
}



/* ===== BASE ===== */
.tech_image_row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: max-content;
}

.tech_image_scroll {
  overflow-x: auto;
}

.tech_image {
  width: 280px;
  border-radius: 12px;
  flex-shrink: 0;
}


/* ===== BASE ===== */

.tech_image {
  width: 23%;
  height: auto;
  border-radius: 12px;
}

.tech_thumbnails {
  margin-top: 2rem;
}

.tech_thumbnails h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.thumbnail_row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.thumbnail_row img {
  width: 180px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


/* ===== BASE ===== */

.anodizing-header {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.anodizing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: white;
}

.anodizing-table th,
.anodizing-table td {
  border: 1px solid #ccc;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

.anodizing-table th {
  background-color: #f0f0f0;
}

.process-flow {
  width: 100%;
  margin: 2rem 0;
  text-align: center;
}

.application-images {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1rem;
}

.application-images img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.application-images .image-box {
  flex: 1;
  text-align: center;
  font-size: 0.9rem;
  color: #444;
}

.anodizing_flow {
  width: 120%;
  height: auto;
}

.anodizing-block h3 {
  margin-bottom: 1.5rem;
}

.anodizing-block p,
.anodizing-block table,
.anodizing-block img {
  margin-top: 0;
}



/* ===== BASE ===== */
.anodizing-header {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.anodizing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: white;
}

.anodizing-table th,
.anodizing-table td {
  border: 1px solid #ccc;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

.anodizing-table th {
  background-color: #f0f0f0;
}

.process-flow {
  width: 100%;
  margin: 2rem 0;
  text-align: center;
}

.application-images {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1rem;
}

.application-images img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.application-images .image-box {
  flex: 1;
  text-align: center;
  font-size: 0.9rem;
  color: #444;
}

.anodizing_flow {
  width: 120%;
  height: auto;
  
}


/* ===== BASE ===== */


/* ===== BASE ===== */
.carousel-container {
  width: 100%;
  max-width: 1000px;
  margin-left: 0;
  margin-right:0;
  overflow: hidden;
  position: relative;
  }


/* ===== BASE ===== */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}


/* ===== BASE ===== */
.carousel-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  max-height: 500px;
}


/* ===== BASE ===== */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.4);
  border: none;
  font-size: 2.5rem;
  color: #333;
  cursor: pointer;
  z-index: 100;
  padding: 0.4rem 0.7rem;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn.left {
  left: 15px;
}

.carousel-btn.right {
  right: 15px;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.6);
}

.carousel-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}


/* ===== BASE ===== */
.footer {
  background-color: white;
  color: #003B7A;
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ===== Contact ===== */

.contact-intro {
  margin-bottom: 1rem;
}

.contact-content {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-form label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  transition: border 0.3s, box-shadow 0.3s;
  margin-bottom: 0.8rem;
  margin-top: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007BFF;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
  outline: none;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  background-color: #f4f7fb;
}

.contact-info p {
  margin: 0.3rem 0;
  line-height: 1.7;
}

.contact-info strong {
  font-weight: 700;
  color: #003B7A;
}


/* ===== BASE ===== */
.highlight-box {
  background-color: #f0f4f9;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.highlight-box h2 {
  font-size: 1.8rem;
  color: #003B7A;
  margin-bottom: 0.5rem;
}

.highlight-box p {
  font-size: 1.1rem;
  color: #555;
}

/* ===== TECH COMPARE GRID ===== */
.tech-compare-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.tech-compare-grid .tech-block {
  flex: 1 1 48%;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tech-compare-grid .tech-block h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: 003b7a;
  margin-bottom: 0.5rem;
}
.tech-compare-grid .tech-block h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
  color: #003B7A;
}

.tech-compare-grid .tech-block ul {
  padding-left: none;
  list-style-position: inside;
  color: #003b7a;
  margin-left: 0;
}


/* ===== BASE ===== */
.tech-cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tech-cards .card {
  background: #fff;
  flex: 1 1 45%;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.tech-cards .card h3 {
  font-size: 1.4rem;
  color: #003B7A;
  margin-bottom: 0.6rem;
}

.tech-cards .card p {
  font-size: 0.95rem;
  color: #555;
}


/* ===== BASE ===== */
.process-section {
  margin-bottom: 2rem;
}

.process-section h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  color: #003B7A;
}

.process-section ul {
  padding-left: 1.2rem;
  list-style: disc;
  color: #444;
  margin-top: 0.5rem;
}


/* ===== benefits ===== */
/* ✅ 전체 장점 컨테이너 */
.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 8px 0 0 0; /* 간격 조정 */
  padding: 0;
  list-style: none;
  width: 100%;
}

/* ✅ 섹션 제목 가운데 정렬 */
.benefits + h3,
.benefits h3 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: none; /* 간격 축소 */
}

/* ✅ 개별 박스 스타일 */
.benefit-box {
  position: relative;
  overflow: hidden;
  flex: 1 1 45%;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  background: none;
  min-height: 120px;
  isolation: isolate;
}

/* ✅ 이미지 배경 */
.benefit-box.speed::before {
  background-image: url('jpg/speed.jpg');
}
.benefit-box.precision::before {
  background-image: url('jpg/precision.jpg');
}
.benefit-box.senior::before {
  background-image: url('jpg/senior.jpg');
}
.benefit-box.high::before {
  background-image: url('jpg/high.jpg');
}

.benefit-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.92);
  z-index: 0;
}

/* ✅ 텍스트 계층: 파란 그라데이션 + 흰 텍스트 */
.benefit-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1rem;
  background: linear-gradient(to top, rgba(0, 109, 255, 0.9), rgba(0, 109, 255, 0));
  color: #cef4ff;
  font-weight: 700;
  font-size: 1rem;
  z-index: 2;
  text-align: left;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* ===== BASE ===== */
.application ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.application ul li {
  background: #f7f9fb;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  flex: 1 1 45%;
  color: #333;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba;
}



/* ===== FLAT BUTTON STYLES ===== */
.btn-flat {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  background-color: #00b0ff; /* Default */
  border: none;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.btn-flat:hover {
  background-color: #0091ea; /* Hover */
}

.btn-flat:active {
  background-color: #2962ff; /* Active */
}

.btn-flat:disabled {
  background-color: #b2ebf2;
  color: #00bcd4;
  cursor: not-allowed;
}


/* ===== BASE ===== */
@media (max-width: 768px) {
  .navbar{
    padding: 15px 0;
  }

  section.content {
    padding-top: 10px;
  }

  .tech_left_column ul li {
    margin: 0.2rem 0;
  }
/* ===== BASE ===== */
  .main-boxes .box {
    display: none;
  }

  .logo {
    display: block;
    margin-left: 1rem;
    width: 120px;
    height: auto;
    position: static;
    z-index: 999;
  }

  .nav-wrapper {
    display: flex;
    justify-content: space-between;  /* 로고 왼쪽, 햄버거 오른쪽 */
    align-items: center;
    width: 100%;
    padding: 0;
  }

  .no-scroll {
    overflow: hidden;
    height: 100vh;
  }


/* ===== BASE ===== */
  .menu-toggle {
    display: flex;                  /* 기본적으로 보이게 */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;                  /* 메뉴보다 위에 있도록 */
    margin-right: 1rem;
  }


/* ===== BASE ===== */
  .menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #000;         /* 보기 쉽게 검정색 */
    display: block;
  }


/* ===== BASE ===== */
  .nav-links {
    display: none;                  /* 기본적으로 숨김 */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);  /* 반투명한 배경 */
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    z-index: 1000;
  }

  .nav-links a {
    color: #fff;
    z-index: 1001;
    position: relative;
  }


/* ===== BASE ===== */
  .nav-links.active {
    display: flex;
  }




/* ===== BASE ===== */
  header h1 {
    font-size: 1.6rem;
    margin-top: 6rem;
  }

  header p {
    font-size: 0.95rem;
  }


/* ===== BASE ===== */
  .main-boxes {
    flex-direction: column;
    padding: 1.5rem;
  }

  .box {
    margin-bottom: 1rem;
  }


/* ===== BASE ===== */
  .sub-header {
    height: 140px;
    padding: 0.5rem 0;
  }
  
  .sub-header h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }


/* ===== BASE ===== */
  .content h2 {
    font-size: 1.5rem;
  }

  .content p {
    font-size: 0.95rem;
  }


/* ===== BASE ===== */
  .tech_container {
    display: flex;
    flex-direction: column;
  }

  .tech_left_column {
    position: static;   /* ✅ 고정 위치 제거 */
    width: 100%;
    margin-left: 0;
    margin-top: 0;
    order: 1;
    background: none;
    border: none;
    box-shadow: none;
  }

  .right_column {
    width: 100%;
    order: 2;
    padding-left: 0;
  }

  .tech_left_column ul.side-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.5rem 0;
  }

  .tech_left_column ul.side-menu li {
    flex: 0 0 auto;
    display: flex;
    border-left: none;
    padding-left: 0;
  }

  .tech_left_column ul.side-menu li a {
    font-size: 0.75rem;
    padding: 0.1rem 0.1rem;
    white-space: nowrap;
    display: inline-block;
    background-color: #f5f5f5;
    border-radius: 6px;
    text-align: center;
    min-width: 80px;
    width: max-content;
    min-width: auto;
    flex-shrink: 1;
  }

  .tech_left_column ul.side-menu li a.active {
    background-color: #005bac;
    color: white;
    font-weight: 600;
    border: none;               /* ✅ 좌우 bar 제거 */
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}