/* 
  메인 화면 전용 스타일
  파일: main_sj.css
*/

/* 히어로 섹션 */
.hero-section_sj {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #5b89f4 0%, #2a5886 55%, #4299cd 75%, #005cbf 100%);
  position: relative;
  color: var(--white_sj);
  text-align: left;
  overflow: hidden;
}

h1.hero-title_sj, .hero-title_sj {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif !important;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-size: 2.5rem;
}
.hero-title_sj span.text-primary_sj {
  font-size: 5rem;
  display: inline-block;
  margin-bottom: 5px;
  color: var(--accent-color_sj) !important;
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .hero-section_sj { min-height: auto; padding: 100px 0 60px; text-align: center; }
  h1.hero-title_sj, .hero-title_sj { font-size: 1.8rem !important; line-height: 1.3; }
  .hero-title_sj span.text-primary_sj { font-size: 1.4em; white-space: normal; display: block; margin-bottom: 5px; }
  .hero-desc_sj { font-size: 1rem !important; margin-bottom: 30px !important; padding: 0 10px; word-break: keep-all; }
  .hero-badge_sj { font-size: .8rem; padding: 6px 12px; margin-bottom: 15px; }
  .hero-btns_sj { flex-direction: column; align-items: center; gap: 15px !important; width: 100%; }
  .btn-custom_sj { width: 100%; max-width: 300px; padding: 12px 20px; font-size: .95rem; }
  .hero-slider-wrap_sj { margin-top: 40px; transform: none !important; }
}

.hero-badge_sj {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  color: var(--accent-color_sj);
}

/* 캔버스 레이어 및 컨텐츠 레이어 */
.hero-canvas_sj { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; opacity: .6; }
.hero-content_sj { position: relative; z-index: 2; }

/* 제품 이미지 슬라이드 */
.hero-product-slider_sj { position: relative; width: 100%; height: 400px; display: flex; align-items: center; justify-content: center; perspective: 1000px; }
.hero-product-item_sj { position: absolute; max-width: 80%; max-height: 100%; opacity: 0; transform: translateX(50px) rotateY(-10deg); transition: all 1s cubic-bezier(0.4,0,0.2,1); }
.hero-product-item_sj.active_sj { opacity: 1; transform: translateX(0) rotateY(0); }
.hero-product-item_sj.exit_sj { opacity: 0; transform: translateX(-50px) rotateY(10deg); }

/* 히어로 등장 애니메이션 */
.hero-subtitle_sj { font-size: 1.25rem; opacity: .9; margin-bottom: 40px; max-width: 600px; border-left: 4px solid var(--accent-color_sj); padding-left: 20px; animation: fadeInUp_sj 1s ease-out .3s forwards; opacity: 0; }
.hero-btns_sj { animation: fadeInUp_sj 1s ease-out .6s forwards; opacity: 0; }
@keyframes fadeInUp_sj { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* 스크롤 유도 */
.scroll-down_sj { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); text-align: center; color: var(--white_sj); opacity: .8; animation: bounce_sj 2s infinite; cursor: pointer; z-index: 1000; }
.scroll-down_sj i { font-size: 1.5rem; display: block; }
@keyframes bounce_sj { 0%,20%,50%,80%,100% { transform: translateY(0) translateX(-50%);} 40% { transform: translateY(-10px) translateX(-50%);} 60% { transform: translateY(-5px) translateX(-50%);} }

/*------------------------------------------------------------------------------------------------------
메인비주얼 (조선백자연구소 스타일 - 우아하고 세련된 슬라이드)
---------------------------------------------------------------------------------------------------------*/
.visual_img {
    overflow: hidden;
}
.visual_img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0.28) 75%, rgba(0, 0, 0, 0.44) 100%);
    z-index: 1;
}

.carousel {
    position: relative;
}

/* 슬라이드 이미지 비율 유지 및 꽉 차게 */
.carousel-inner > .carousel-item {
    height: 600px; /* PC 기본 높이 지정 */
    background-color: #000; /* 이미지 로드 전 배경색 */
}

.carousel-inner > .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지가 비율을 유지하며 컨테이너에 꽉 차도록 */
    opacity: 0.85; /* 이미지 위에 텍스트가 잘 보이도록 약간의 투명도 부여 */
    transition: transform 6s ease; /* 서서히 줌인되는 효과를 위한 트랜지션 */
}

/* 슬라이드가 활성화되었을 때 서서히 줌인되는 켄번스(Ken Burns) 효과 */
.carousel-item.active img {
    transform: scale(1.05);
}

/* ==========================================================
   [메인 카피 (텍스트) 영역 디자인]
   조선백자 슬라이드
   ========================================================== */
/* 메인 비주얼(Hero) 영역의 스타일을 지정합니다. 화면 전체 높이를 차지하도록 합니다. */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 90px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
    z-index: 0;
}

.hero-section.hero-section-carousel::before,
.hero-section.hero-section-carousel::after {
    content: none;
    display: none;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}

.hero-carousel .carousel-item {
    position: relative;
}

/* 부드러운 페이드(크로스페이드) 전환을 위해 전환 시간을 늘립니다 */
.hero-carousel.carousel-fade .carousel-item {
    transition: opacity 1.2s ease-in-out;
}

.hero-carousel .carousel-item > a {
    display: block;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-section .hero-carousel-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
    transform: scale(1);
    will-change: transform;
}

@keyframes heroZoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.hero-carousel .carousel-item.active .hero-carousel-image,
.hero-carousel .carousel-item-next .hero-carousel-image,
.hero-carousel .carousel-item-prev .hero-carousel-image {
    animation: heroZoomIn 6s ease-out forwards;
}

.hero-section-carousel .hero-carousel .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-section-carousel .hero-carousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0px, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 64px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 64px);
    opacity: 0.28;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

.hero-section .carousel-caption.hero-caption {
    position: absolute;
    inset: 0;
    padding: 0;
    margin: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    text-align: left;
    pointer-events: none;
}

.hero-section-carousel .carousel-caption.hero-caption {
    z-index: 4;
    pointer-events: none;
}

.hero-section .carousel-caption.hero-caption .hero-container {
    pointer-events: auto;
}

.hero-section .carousel-indicators {
    z-index: 3;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    z-index: 5;
}

.hero-section-carousel .carousel-indicators,
.hero-section-carousel .carousel-control-prev,
.hero-section-carousel .carousel-control-next,
.hero-section-carousel .hero-scroll {
    z-index: 6;
    pointer-events: auto;
}

.visual_btn {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
}

.visual_btn .varrow {
    position: relative;
    height: 100%;
    pointer-events: none;
}

.visual_btn .carousel-control-prev,
.visual_btn .carousel-control-next {
    pointer-events: auto;
    z-index: 10;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0px, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 64px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 64px);
    opacity: 0.28;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.22);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 0.92rem;
}

.hero-title {
    margin-top: 16px;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-size: clamp(40px, 4.6vw, 74px);
}

.hero-title-accent {
    color: #f5c000;
}

.hero-lead {
    max-width: 42rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-stat {
    min-width: 170px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.hero-stat-value {
    font-weight: 900;
    letter-spacing: -0.01em;
}

.hero-stat-label {
    margin-top: 4px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
    z-index: 2;
}

.hero-scroll:focus-visible,
.hero-scroll:hover {
    color: rgba(255, 255, 255, 0.95);
}

.hero-scroll-text {
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
}

.hero-scroll-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: heroScrollBounce 1.35s ease-in-out infinite;
}

@keyframes heroScrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.9; }
    50% { transform: rotate(45deg) translate(0, 6px); opacity: 0.55; }
}

/*-----------------------------------------------------------------------------
생산실적
-----------------------------------------------------------------------------*/
/* 카운터 */
.counter-box_sj { background-color: var(--primary-color_sj); padding: 60px 20px; text-align: center; color: var(--white_sj); transition: var(--transition-base_sj); }
.counter-number_sj { display: block; font-size: 3.5rem; font-weight: 800; color: var(--accent-color_sj); margin-bottom: 10px; line-height: 1.1; word-break: normal; }
    @media (max-width: 768px) {
    .counter-number_sj { font-size: 2.5rem; word-break: break-all; line-height: 1.2; }
    .counter-number_sj[data-count_sj="12000000"] { font-size: 2rem; }
    }
.counter-text_sj { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.lang-secondary_sj { font-size: .5em; opacity: .6; margin-left: .5rem; letter-spacing: .06em; }

.lang-secondary_sj { font-size: .5em; opacity: .6; margin-left: .5rem; letter-spacing: .06em; }
.lang-secondary_sj { display: block; margin-top: 6px; font-size: .78em; font-weight: 500; opacity: .75; letter-spacing: .08em; }

/*-----------------------------------------------------------------------------
핵심 경쟁력
-----------------------------------------------------------------------------*/
/* 카드(제품 소개 등) */
.custom-card_sj { border: none; border-radius: 0; overflow: hidden; transition: var(--transition-base_sj); background: var(--white_sj); box-shadow: 0 5px 15px rgba(0,0,0,.05); }
.custom-card_sj:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,.1); }
.card-image_sj { height: 300px; overflow: hidden; position: relative; }
.card-image_sj::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.3); transition: background .3s ease; }
.custom-card_sj:hover .card-image_sj::after { background: rgba(0,0,0,0); }
.card-image_sj img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-body_sj { padding: 30px; }
.card-title_sj { margin-bottom: 15px; color: var(--primary-color_sj); }

.card-icon_sj { width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(0,51,102,.18); background: rgba(0,51,102,.06); color: var(--primary-color_sj); margin-bottom: 18px; }

/*-----------------------------------------------------------------------------
제품
-----------------------------------------------------------------------------*/
/* 배너 */
.banner-item_sj { position: relative; height: 350px; overflow: hidden; cursor: pointer; }
.banner-img_sj { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.banner-overlay_sj { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.1)); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; color: var(--white_sj); transition: background .4s; }
.banner-item_sj:hover .banner-img_sj { transform: scale(1.1); }
.banner-item_sj:hover .banner-overlay_sj { background: linear-gradient(to top, rgba(0,51,102,.9), rgba(0,51,102,.3)); }
.banner-title_sj { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; }
.banner-desc_sj { font-size: .95rem; opacity: .8; margin-bottom: 20px; transform: translateY(20px); transition: all .4s; }
.banner-link_sj { display: inline-block; color: var(--accent-color_sj); font-weight: 700; text-decoration: none; transform: translateY(20px); opacity: 0; transition: all .4s .1s; }
.banner-item_sj:hover .banner-desc_sj, .banner-item_sj:hover .banner-link_sj { transform: translateY(0); opacity: 1; }

/*-----------------------------------------------------------------------------
파트너쉽
-----------------------------------------------------------------------------*/
/* CTA */
.cta-section_sj { position: relative; padding: 120px 0; overflow: hidden; background-color: #001f3f; text-align: center; }
.cta-section_sj h2 { word-break: keep-all !important; word-wrap: normal !important; }
.cta-bg_sj { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, #004080 0%, #001f3f 60%); animation: pulseBg_sj 10s infinite alternate; z-index: 1; }
@keyframes pulseBg_sj { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.1); opacity: 1; } }
.cta-badge_sj { font-size: .85rem; font-weight: 700; letter-spacing: 2px; color: var(--accent-color_sj); border: 1px solid var(--accent-color_sj); padding: 8px 16px; border-radius: 50px; background: rgba(255,204,0,.1); }
.btn-cta_sj { display: inline-flex; align-items: center; justify-content: center; padding: 18px 40px; font-weight: 700; text-transform: uppercase; text-decoration: none; border-radius: 50px; transition: all .3s ease; min-width: 220px; }
.btn-primary_sj { background: var(--accent-color_sj); color: #000; border: 2px solid var(--accent-color_sj); }
.btn-primary_sj:hover { background: #e6b800; border-color: #e6b800; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,204,0,.2); }
.btn-outline-light_sj { background: transparent; color: var(--white_sj); border: 2px solid rgba(255,255,255,.3); }
.btn-outline-light_sj:hover { border-color: var(--white_sj); background: rgba(255,255,255,.1); transform: translateY(-3px); }