*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}
html{
  scroll-behavior:smooth;
}
body{
  font-family:'Pretendard', sans-serif;
  color:#222;
  line-height:1.6;
  background:#fff;
  overflow-x:hidden;
}
img{
  width:100%;
  display:block;
}
a{
  text-decoration:none;
  color:inherit;
}
li{
  list-style:none;
}
.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}
/* HEADER */
header{
  width:100%;
  background:#fff;
  border-bottom:1px solid #eee;
  position:sticky;
  top:0;
  z-index:1000;
}
.header-inner {
  min-height: 80px;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap; /* 화면 최소화 시에도 줄바꿈 방지 */
}
.logo-box {
  flex-shrink: 1;
  min-width: 0;
}
.logo-box img {
  max-width: 260px;
  width: 100%;
  height: auto;
}
/* 햄버거 버튼 */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: background-color 0.2s ease;
  z-index: 1001;
  flex-shrink: 0; /* 화면이 좁아져도 버튼 크기 축소 방지 */
  margin-left: auto; /* 항상 헤더 우측 고정 */
}

.hamburger-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #222;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* 햄버거 버튼 클릭 애니메이션 (X 변형) */
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 사이드바 오버레이 (딤 배경) */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 1999;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 사이드바 드로어 (우측 슬라이드) */
.sidebar-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-drawer.active {
  transform: translateX(0);
}

body.sidebar-open {
  overflow: hidden;
}

/* 사이드바 헤더 */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eeeeee;
  background-color: #fafafa;
}

.sidebar-logo img {
  width: 170px;
  height: auto;
}

.sidebar-close-btn {
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #555;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
}

.sidebar-close-btn:hover {
  background-color: #e0e0e0;
  color: #111;
}

/* 사이드바 내비게이션 & 아코디언 */
.sidebar-nav {
  padding: 10px 0;
}

.sidebar-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu-item {
  border-bottom: 1px solid #f2f2f2;
}

.sidebar-menu-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: transparent;
  border: none;
  font-size: 17px;
  font-weight: 700;
  color: #222;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s, color 0.2s;
}

.sidebar-menu-btn:hover {
  background-color: #f8f9fa;
  color: #0056b3;
}

.sidebar-menu-btn .arrow-icon {
  font-size: 14px;
  color: #888;
  transition: transform 0.3s ease;
}

.sidebar-menu-item.active .sidebar-menu-btn .arrow-icon {
  transform: rotate(90deg);
  color: #0056b3;
}

.sidebar-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #f8f9fa;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}

.sidebar-menu-item.active .sidebar-submenu {
  max-height: 300px;
  opacity: 1;
  padding: 8px 0;
}

.sidebar-submenu li a {
  display: block;
  padding: 12px 24px 12px 36px;
  font-size: 15px;
  color: #555;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.sidebar-submenu li a:hover {
  color: #0056b3;
  background-color: #e9ecef;
  font-weight: 600;
}
/* GNB */
.gnb {
  margin-left: 350px;
}
.gnb > ul{
  display:flex;
  gap:25px;
}
.gnb > ul > li{
  position:relative;
}
.gnb > ul > li > a{
  display:block;
  padding:30px 10px;
  font-size:18px;
  font-weight:700;
}
.sub-menu{
  position:absolute;
  top:100%;
  left:0;
  width:180px;
  background:#fff;
  border:1px solid #eee;
  box-shadow:0 5px 15px rgba(0,0,0,0.1);
  opacity:0;
  visibility:hidden;
  transition:0.3s;
}
.sub-menu li a{
  display:block;
  padding:12px 15px;
  font-size:15px;
}
.sub-menu li:hover{
  background:#f5f5f5;
}
.gnb > ul > li:hover .sub-menu{
  opacity:1;
  visibility:visible;
}

/* SLIDER */
.section-2 { 
    height: 200px; 
    overflow: hidden; 
    position: relative; 
    background: white; 
}

.slide-item { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    font-size: 2rem;
    opacity: 0; /* 기본 상태 투명 */
    transition: opacity 1.5s ease-in-out; 
   }  /* 1.5초 동안 서서히 나타남 */

 .slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-item.active { 
    opacity: 1;
    z-index: 10; 
}

/* 슬라이드 텍스트 오버레이 (하단 중앙 위치 & Option 1 스르륵 애니메이션) */
.slide-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 15px);
  z-index: 20;
  width: max-content;
  max-width: 95%;
  padding: 8px 30px;
  background: rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
  pointer-events: none;
}

.slide-caption .caption-text {
  color: #ffffff;
  font-size: 3.0rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}

/* 활성화된 슬라이드에서 문구가 서서히 떠오르며 나타남 */
.slide-item.active .slide-caption {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 하단 우측 위치 변형 (safe1.jpg 등) */
.slide-caption.bottom-right {
  left: auto;
  right: 30px;
  transform: translate(0, 15px);
}

.slide-item.active .slide-caption.bottom-right {
  transform: translate(0, 0);
}
/* PROMO & CUSTOMER CENTER SECTION */
.promo-section {
  padding: 50px 0;
}

.promo-wrapper {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 45px 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.promo-header {
  text-align: center;
  margin-bottom: 35px;
}

.promo-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.promo-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.promo-subtitle {
  font-size: 16px;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  word-break: keep-all;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.promo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.promo-card.primary-card {
  border: 2px solid #0284c7;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.primary-card .icon-box {
  background: #0284c7;
  color: #ffffff;
}

.card-tag {
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  display: block;
  margin-bottom: 2px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.card-body {
  flex-grow: 1;
  margin-bottom: 22px;
}

.phone-number-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.phone-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.phone-val {
  font-size: 16px;
  font-weight: 800;
  color: #0284c7;
  text-decoration: none;
}

.phone-item.emergency {
  background: #fffbebfb;
  border-color: #fde68a;
}

.phone-item.emergency .phone-label {
  color: #b45309;
}

.phone-item.emergency .phone-val {
  color: #d97706;
}

.info-detail {
  margin-bottom: 8px;
}

.info-label {
  font-size: 13px;
  color: #64748b;
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.info-value {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
}

.info-value.mail-link {
  color: #0284c7;
  word-break: break-all;
  font-size: 17px;
  text-decoration: none;
}

.info-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  word-break: keep-all;
  margin-top: 6px;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.primary-btn {
  background: #0284c7;
  color: #ffffff;
}

.primary-btn:hover {
  background: #0369a1;
}

.outline-btn {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.outline-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* SECTION 4 */
.section-4{
  padding-bottom:80px;
}
.section-4 .title{
  text-align:center;
  margin-bottom:20px;
  font-size:32px;
}
/* 현장 안전점검 활동 섹션 설명 문구 확대 */
.section-4 .section-desc {
  font-size: 20px;
  font-weight: 500;
  color: #334155;
  line-height: 1.7;
  max-width: 850px;
  margin: 0 auto 35px auto;
}

/* 현장 안전점검 활동 무한 좌->우 티커 스크롤 */
.safety-ticker-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 15px 0;
  margin: 0 auto;
  /* 양 끝 부드러운 페이드 효과 */
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.safety-ticker-track {
  display: flex;
  width: max-content;
  gap: 20px;
  /* 왼쪽에서 오른쪽으로 연속 흐르는 애니메이션 */
  animation: tickerScrollRight 38s linear infinite;
  will-change: transform;
}

/* 마우스 호버 시 카드 시각 효과 */

.ticker-card {
  flex: 0 0 350px;
  height: 235px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.ticker-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.16);
  border-color: #cbd5e1;
}

.ticker-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 왼쪽에서 오른쪽(Left to Right) 연속 흐름 무한 애니메이션 */
@keyframes tickerScrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* 현장 활동 사진 확대 모달 (라이트박스) */
.photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.photo-modal.active {
  opacity: 1;
  visibility: visible;
}

.photo-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.photo-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  z-index: 10000;
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.photo-modal.active .photo-modal-content {
  transform: scale(1);
}

.photo-modal-content img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 14px;
}

.photo-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: background 0.2s ease, transform 0.2s ease;
}

.photo-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}
/* FOOTER */
footer{
  background:#2c3e50;
  color:#fff;
  padding:50px 20px;
  text-align:center;
}
.footer-brand {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
  letter-spacing: -0.3px;
}
.info p{
  font-size: 15.5px;
  line-height: 1.8;
  opacity: 0.95;
}
.partners{
  margin:25px 0 25px 0;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}
.partner-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 6px;
  padding: 5px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.partner-item img {
  height: 29px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}
.partner-item:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
  background: #ffffff;
}
.copy{
  font-size:14px;
  opacity:0.8;
}
/* TABLET & notebook */
.section-2 {
  height: 450px;
} /* 위 코드를 6.28 추가했음 */
@media (max-width:1200px){
  .section-2{ /* 기존 .wrapper 오기를 6.28 실제 클래스명으로 수정 */
    height:420px;
  }
  .gnb > ul{
    gap:10px;
  }
  .gnb > ul > li > a{
    font-size:16px;
    padding:25px 8px;
  }
  .promo-grid {
    gap: 16px;
  }
}
/* MOBILE */
@media (max-width:768px){
  .header-inner{
    min-height:70px;
    padding:10px 0;
  }
  .logo-box img{
    max-width:200px;
    width:100%;
  }
  .gnb{
    display:none !important;
  }
  .gnb > ul{
    flex-direction:column;
    gap:0;
    margin-top:10px;
  }
  .gnb > ul > li{
    width:100%;
    border-top:1px solid #eee;
  }
  .gnb > ul > li > a{
    padding:15px;
    font-size:16px;
  }
  .sub-menu{
    position:static;
    width:100%;
    opacity:1;
    visibility:visible;
    display:none;
    border:none;
    box-shadow:none;
    background:#f8f8f8;
  }
  .sub-menu li a{
    padding:12px 20px;
  }
  .gnb > ul > li.open .sub-menu{
    display:block;
  }
  .section-2{ 
    height:260px;
  }
  .slide-caption {
    bottom: 12px;
    padding: 6px 18px;
    border-radius: 20px;
  }
  .slide-caption.bottom-right {
    right: 15px;
  }
  .slide-caption .caption-text {
    font-size: 1.8rem;
  }
  .promo-section {
    padding: 35px 0;
  }
  .promo-wrapper {
    padding: 30px 20px;
  }
  .promo-title {
    font-size: 22px;
  }
  .promo-subtitle {
    font-size: 14px;
  }
  .promo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section-4 .section-desc {
    font-size: 16.5px;
    margin-bottom: 25px;
  }
  .ticker-card {
    flex: 0 0 260px;
    height: 175px;
    border-radius: 12px;
  }
  .safety-ticker-track {
    gap: 14px;
    animation-duration: 28s;
  }
  .section-4 .title{
    font-size:26px;
  }
}
/* SMALL MOBILE */
@media (max-width:480px){
  .container{
    padding:0 15px;
  }
  .logo-box img{
    max-width:170px;
    width:100%;
  }
  .section-2{
    height:220px;
  }
  .promo-wrapper {
    padding: 24px 16px;
  }
  .promo-title {
    font-size: 20px;
  }
  .card-title {
    font-size: 16px;
  }
  .section-4 .title{
    font-size:22px;
  }
  .safety-box{
    height:180px;
    font-size:18px;
  }
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #0369a1;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.5);
  transform: translateY(-4px);
}

.back-to-top:active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  .footer-brand {
    font-size: 19px;
  }
  .info p {
    font-size: 14px;
  }
  .partners {
    gap: 6px;
  }
  .partner-item {
    padding: 3px 6px;
    border-radius: 5px;
  }
  .partner-item img {
    height: 22px;
  }
}