﻿/* 10-28 코어 CSS 최적화: 메인 섹션 규칙(파트너 · 솔루션 · 성공 사례 · 프로세스 · 공지/문의)은 main-<이름>.css 로 나눴다.
   그 섹션이 메인에 있을 때만 이 파일 바로 뒤에 붙는다(inc/css-modules.php). 섹션 규칙은 그 파일에서 고친다. */
/* DWO2 — 메인(프론트) 페이지 전용 */
/* =========================================================
   Hero
   ========================================================= */
.dw-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(120deg, color-mix(in srgb,var(--dw-navy) 70%,#000) 0%, var(--dw-navy) 55%, var(--dw-primary) 100%);
}

/* Slider */
.dw-hero-slider { position: relative; }
.dw-hero-track { position: relative; }
.dw-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    /* 넘어갈 때 빈 바탕(그라데이션)이 비치지 않게: 나가는 슬라이드는 새 슬라이드가 다 덮을 때까지(.7s) 그대로 두었다가 한 번에 숨긴다 (10-20) */
    z-index: 1;
    transition: opacity 0s linear .7s, visibility 0s linear .7s;
    background: var(--dw-navy, #1a1a1a);
}
.dw-hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transition: opacity .7s ease, visibility 0s;
    display: flex;
    align-items: stretch;
    /* PC: 커스터마이저 값(--dw-hero-height-pc) 우선, 없으면 헤더 제외 전체 화면 */
    min-height: var(--dw-hero-height-pc, calc(100vh - var(--dw-header-h,74px)));
}
/*
 * 메인은 헤더가 투명 오버레이라 히어로가 화면 전체를 차지한다.
 * 단 커스터마이저에서 'PC 히어로 높이'를 지정하면 그 값이 우선한다.
 * (이 규칙이 변수를 무시하면 높이 설정이 아예 먹지 않으므로 반드시 var() 유지)
 */
body.dw-front .dw-hero-slide.is-active {
    min-height: var(--dw-hero-height-pc, 100vh);
    min-height: var(--dw-hero-height-pc, 100dvh);
}
/*
 * 10-30 전환 때 글자 튐 수정(doorweb 15:59 · 법률2 1.4.19 방식, 측정 #233).
 * 예전: 활성 장만 relative+flex, 나머지는 absolute 맨 위 → 장이 is-active 를 잃는 순간 나가는 장 글이 히어로 맨 위로 튀었다(최대 618px).
 * 지금: 모든 장을 한 칸(grid-area 1/1)에 겹치고 활성 여부와 관계없이 같은 레이아웃 → 칸 높이 = 가장 큰 장(글 상자 높이 고정),
 * 나가는 장 글은 제자리에서 투명도만, 들어오는 장 글은 투명도 + 6px(아래 dw-hero-in).
 */
.dw-hero-slider > .dw-hero-track { display: grid; grid-template-columns: 100%; }
.dw-hero-track > .dw-hero-slide { grid-area: 1 / 1; position: relative; inset: auto; display: flex; min-width: 0; }

.dw-hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .4;
}
picture.dw-hero-bg {
    display: block;
    opacity: 1;
}
img.dw-hero-bg,
picture.dw-hero-bg .dw-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dw-hero-bg.is-cover { opacity: 1; }
.dw-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    flex: 1;
    /* PC 히어로 높이를 낮게 잡으면(760px 미만) 투명 헤더 밑으로 글자가 숨지 않게 --dw-hero-pad-top 이 들어온다(customizer.php) */
    padding: var(--dw-hero-pad-top, 0px) 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    box-sizing: border-box;
}
/* 861~1440px: 콘텐츠 폭(1260)보다 화면이 좁으면 글자가 화면 끝 · 좌우 화살표에 붙는다 — 화살표 자리만큼 띄운다 */
@media (min-width: 861px) and (max-width: 1440px) {
    .dw-front .dw-hero-inner { padding-left: 84px; padding-right: 84px; }
}
.dw-hero-content { max-width: none; width: 100%; }
.dw-hero-content > h1,
.dw-hero-content > h2.dw-hero-title,
.dw-hero-content > .dw-hero-sub,
.dw-hero-content > .dw-hero-actions {
    max-width: 560px;
}

/* 화면 전환 시 위에서부터 순차 노출 */
.dw-hero-slide:not(.is-active) .dw-hero-content > h1,
.dw-hero-slide:not(.is-active) .dw-hero-content > h2.dw-hero-title,
.dw-hero-slide:not(.is-active) .dw-hero-sub,
.dw-hero-slide:not(.is-active) .dw-hero-actions .dw-btn,
.dw-hero-slide:not(.is-active) .dw-quicklink {
    opacity: 0;
    transform: none; /* 10-30: 22px 내려앉던 것 — 나가는 장은 투명도만 */
    transition: opacity .3s ease;
    animation: none;
}
.dw-hero-slide.is-active .dw-hero-content > h1,
.dw-hero-slide.is-active .dw-hero-content > h2.dw-hero-title,
.dw-hero-slide.is-active .dw-hero-sub,
.dw-hero-slide.is-active .dw-hero-actions .dw-btn,
.dw-hero-slide.is-active .dw-quicklink {
    animation: dw-hero-in .55s ease both;
}
.dw-hero-slide.is-active .dw-hero-content > h1,
.dw-hero-slide.is-active .dw-hero-content > h2.dw-hero-title { animation-delay: 0s; }
.dw-hero-slide.is-active .dw-hero-sub { animation-delay: .12s; }
.dw-hero-slide.is-active .dw-hero-actions .dw-btn:nth-child(1) { animation-delay: .24s; }
.dw-hero-slide.is-active .dw-hero-actions .dw-btn:nth-child(2) { animation-delay: .34s; }
.dw-hero-slide.is-active .dw-quicklink:nth-child(1) { animation-delay: .46s; }
.dw-hero-slide.is-active .dw-quicklink:nth-child(2) { animation-delay: .56s; }
.dw-hero-slide.is-active .dw-quicklink:nth-child(3) { animation-delay: .66s; }
.dw-hero-slide.is-active .dw-quicklink:nth-child(4) { animation-delay: .76s; }
.dw-hero-slide.is-active .dw-quicklink:nth-child(5) { animation-delay: .86s; }
.dw-hero-slide.is-active .dw-quicklink:nth-child(6) { animation-delay: .96s; }

@keyframes dw-hero-in {
    from { opacity: 0; transform: translateY(6px); } /* 10-30: 22 → 6px(최대 8px 기준) */
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .dw-hero-slide:not(.is-active) .dw-hero-content > h1,
    .dw-hero-slide:not(.is-active) .dw-hero-content > h2.dw-hero-title,
    .dw-hero-slide:not(.is-active) .dw-hero-sub,
    .dw-hero-slide:not(.is-active) .dw-hero-actions .dw-btn,
    .dw-hero-slide:not(.is-active) .dw-quicklink,
    .dw-hero-slide.is-active .dw-hero-content > h1,
    .dw-hero-slide.is-active .dw-hero-content > h2.dw-hero-title,
    .dw-hero-slide.is-active .dw-hero-sub,
    .dw-hero-slide.is-active .dw-hero-actions .dw-btn,
    .dw-hero-slide.is-active .dw-quicklink {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Arrows */
.dw-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 52px; height: 52px;
    border-radius: 50%;
    /* 밝은 사진 위에서도 보이도록 어두운 반투명 + 흰 테두리 */
    border: 1px solid rgba(255,255,255,.55);
    background: rgba(10,18,35,.38);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    color: #fff;
    cursor: pointer;
    display: grid; place-items: center;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.dw-hero-nav:hover {
    background: rgba(10,18,35,.62);
    border-color: #fff;
}
.dw-hero-nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
.dw-hero-prev { left: 26px; }
.dw-hero-next { right: 26px; }

/* Dots — 48×48px 터치 영역 (시각 dot는 ::before) */
.dw-hero-dots {
    position: absolute;
    left: 0; right: 0; bottom: 28px;
    z-index: 6;
    display: flex; justify-content: center; align-items: center; gap: 4px;
}
.dw-hero-dot {
    height: 48px;
    width: 24px;
    margin: 0;
    border: none; padding: 0;
    background: transparent;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
/* 실제로 보이는 점 — 버튼은 터치 영역(48px)만 담당 */
.dw-hero-dot::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.45);
    box-shadow: 0 1px 4px rgba(0,0,0,.35);
    transition: width .25s ease, background .25s ease;
}
.dw-hero-dot:hover::before { background: rgba(255,255,255,.8); }
.dw-hero-dot.is-active::before {
    width: 26px;
    background: #fff;
}
.dw-hero-dot.is-active { width: 44px; }
/* 일시정지 · 재생 (main.js 가 점 줄 끝에 넣는다) */
.dw-hero-pause {
    width: 36px; height: 36px; margin-left: 8px; padding: 0;
    border: 1px solid rgba(255,255,255,.55); border-radius: 50%;
    background: rgba(10,18,35,.38); color: #fff;
    display: inline-grid; place-items: center; cursor: pointer; flex-shrink: 0;
    position: relative;
}
.dw-hero-pause::after { content: ""; position: absolute; inset: -6px; }
.dw-hero-pause:hover { background: rgba(10,18,35,.62); border-color: #fff; }
.dw-hero-pause:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.dw-hero-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 24px;
}
@media (prefers-reduced-motion: reduce) {
    .dw-hero-dot::before { transition: none; }
}
.dw-hero h1,
.dw-hero h2.dw-hero-title {
    color: #fff;
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.22;
    letter-spacing: -1px;
    margin-bottom: 22px;
}
.dw-hero h1 .dw-accent,
.dw-hero h2.dw-hero-title .dw-accent { color: var(--dw-accent-on-dark); }
.dw-hero-sub { color: rgba(255,255,255,.85); font-size: 18px; margin-bottom: 34px; line-height: 1.7; }
.dw-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 0; }

/* Quick links — 버튼 바로 아래, 왼쪽 순차 배열, 흰색 가독성 */
.dw-hero .dw-quicklinks {
    position: relative;
    z-index: 5;
    width: 100%;
    margin-top: 36px;
    margin-bottom: 0;
}
.dw-quicklinks-grid {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px 0;
    padding: 0;
}
@media (min-width: 1025px) {
    .dw-quicklinks-grid.dw-cols-1,
    .dw-quicklinks-grid.dw-cols-2,
    .dw-quicklinks-grid.dw-cols-3,
    .dw-quicklinks-grid.dw-cols-4 { display: flex; }
}
.dw-quicklink {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: 8px;
    padding: 12px 28px 12px 0;
    margin-right: 28px;
    border-radius: 0;
    transition: opacity .2s ease;
    position: relative;
    min-height: 48px;
    min-width: 0;
    flex: 0 0 auto;
}
.dw-quicklink:last-child {
    margin-right: 0;
    padding-right: 0;
}
.dw-quicklink:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: rgba(255,255,255,.15);
}
.dw-quicklink:hover { background: transparent; opacity: .85; }
.dw-quicklink-ico {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: transparent;
    color: #fff;
    display: grid;
    place-items: center;
}
.dw-quicklink-ico svg { width: 26px; height: 26px; stroke: currentColor; }
.dw-quicklink-title {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}
.dw-quicklink-sub {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,.78);
    line-height: 1.45;
}

/* =========================================================
   Sections
   ========================================================= */
.dw-section { padding: 20px 0; }
.dw-section-head { text-align: center; margin-bottom: 40px; }
.dw-section-head h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.dw-section-head p { color: var(--dw-muted); font-size: 16px; }

/* Partners banner */

/* Slider mode — infinite marquee */
@keyframes dw-partners-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Solutions grid */

/* Success stories */


/* Why choose us */

/* Info duo: notice + inquiry */



/* =========================================================
   Responsive — Main
   ========================================================= */
@media (max-width: 1024px) {
    .dw-quicklinks-grid { display: flex; }
    .dw-quicklink:nth-child(2)::after { display: block; }
    }

@media (max-width: 860px) {
                                                            /* 고정형: 휴대폰에서 두 칸씩(한 줄에 하나씩 길게 쌓이지 않게), 간격은 최대 16px */
            }

@media (max-width: 620px) {
    .dw-quicklinks-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px 0;
        position: relative;
        border-radius: 0;
        padding: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }
    .dw-quicklink {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        gap: 6px;
        padding: 12px 20px 12px 0;
        margin-right: 20px;
        border-radius: 0;
        width: auto;
        min-width: 0;
        min-height: 48px;
        flex: 0 0 auto;
    }
    .dw-quicklink::after { display: block !important; }
    .dw-quicklink:not(:last-child) { border-bottom: none; }

    /* 모바일에서도 왼쪽 순차 — 십자 구분선 비활성 */
    .dw-quicklinks-grid.dw-cols-4::before,
    .dw-quicklinks-grid.dw-cols-3::before,
    .dw-quicklinks-grid.dw-cols-4::after,
    .dw-quicklinks-grid.dw-cols-3::after,
    .dw-quicklinks-grid.dw-cols-2::after {
        display: none;
    }
                        /* 모바일: 헤더(74px) + 슬라이더 = 100vh(주소창 대응 dvh) */
    .dw-hero-slide.is-active { min-height: calc(100dvh - var(--dw-header-h,74px)); }
    .dw-hero-inner { padding: 40px 65px 24px !important; gap: 28px; }
    .dw-hero-nav { width: 48px; height: 48px; }
    .dw-hero-prev { left: 10px; }
    .dw-hero-next { right: 10px; }
    .dw-hero-dots { bottom: 28px; }
    .dw-hero .dw-quicklinks {
        margin-top: 28px;
        margin-bottom: 0;
    }
    }
@media (max-width: 480px) {
                            .dw-hero-nav {
        display:none;
    }
    .dw-hero-inner { padding: 10px 15px 64px !important; gap: 28px; }
    .dw-front .dw-hero-dots{
        bottom:0;
    }
}

/* =========================================================
   히어로 슬라이더 전환효과 (커스터마이저: 슬라이드 전환효과)
   .dw-hero-fx-* 는 슬라이더 래퍼에 붙는다.
   'slide' 는 main.js 가 transform 으로 처리하므로 CSS 규칙 없음.
   ========================================================= */

/* 줌 인 — 들어오는 슬라이드가 살짝 커졌다 제자리로 */
.dw-hero-fx-zoom .dw-hero-slide .dw-hero-bg {
    transform: scale(1.12);
    transition: transform 1.1s cubic-bezier(.22, .61, .36, 1);
}
.dw-hero-fx-zoom .dw-hero-slide.is-active .dw-hero-bg {
    transform: scale(1);
}

/* 켄번스 — 활성 슬라이드 배경이 천천히 확대·이동 */
@keyframes dw-kenburns {
    0%   { transform: scale(1) translate3d(0, 0, 0); }
    100% { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); }
}
.dw-hero-fx-kenburns .dw-hero-slide.is-active .dw-hero-bg {
    animation: dw-kenburns 12s ease-out forwards;
}

/* 슬라이드 움직임: 줌(기본, 10-30 doorweb) — 사진 슬라이드 각 장이 보이는 동안 1 → 1.06 ease-out(켄 번스 약하게).
   body.dw-slide-zoom = 사용자 정의하기 「슬라이드 움직임」 줌, .is-motion = main.js 가 첫 그림 뒤에 붙임(첫 장도 움직이게),
   --dw-slide-dur = 넘김 간격. 나가는 장은 페이드(.7s)가 끝난 뒤 1 로 돌아간다. 전환효과 줌 인 · 켄번스 · 동영상 메인이면 안 씀. */
body.dw-slide-zoom .dw-hero-slider.is-motion:not(.dw-hero-fx-zoom):not(.dw-hero-fx-kenburns) picture.dw-hero-bg { overflow: hidden; }
body.dw-slide-zoom .dw-hero-slider.is-motion:not(.dw-hero-fx-zoom):not(.dw-hero-fx-kenburns) .dw-hero-slide > img.dw-hero-bg,
body.dw-slide-zoom .dw-hero-slider.is-motion:not(.dw-hero-fx-zoom):not(.dw-hero-fx-kenburns) .dw-hero-slide > div.dw-hero-bg,
body.dw-slide-zoom .dw-hero-slider.is-motion:not(.dw-hero-fx-zoom):not(.dw-hero-fx-kenburns) picture.dw-hero-bg .dw-hero-bg-img {
    transform: scale(1);
    transition: transform 0s linear .75s;
    will-change: transform;
}
body.dw-slide-zoom .dw-hero-slider.is-motion:not(.dw-hero-fx-zoom):not(.dw-hero-fx-kenburns) .dw-hero-slide.is-active > img.dw-hero-bg,
body.dw-slide-zoom .dw-hero-slider.is-motion:not(.dw-hero-fx-zoom):not(.dw-hero-fx-kenburns) .dw-hero-slide.is-active > div.dw-hero-bg,
body.dw-slide-zoom .dw-hero-slider.is-motion:not(.dw-hero-fx-zoom):not(.dw-hero-fx-kenburns) .dw-hero-slide.is-active picture.dw-hero-bg .dw-hero-bg-img {
    transform: scale(1.06);
    transition: transform var(--dw-slide-dur, 5s) cubic-bezier(.25, .46, .45, .94);
}
@media (prefers-reduced-motion: reduce) {
    body.dw-slide-zoom .dw-hero-slider .dw-hero-slide .dw-hero-bg,
    body.dw-slide-zoom .dw-hero-slider .dw-hero-slide .dw-hero-bg-img { transform: none !important; transition: none !important; }
}

/* 아래에서 위로 — 들어오는 슬라이드가 떠오르며 나타남 */
.dw-hero-fx-up .dw-hero-slide {
    transform: translateY(8px); /* 10-30: 28 → 8px(전환 튐 기준) */
    transition: opacity 0s linear .7s, visibility 0s linear .7s, transform 0s linear .7s; /* 나가는 슬라이드는 덮일 때까지 그대로 */
}
.dw-hero-fx-up .dw-hero-slide.is-active {
    transform: translateY(0);
    transition: opacity .7s ease, visibility 0s, transform .7s cubic-bezier(.22, .61, .36, 1);
}

/* 블러 페이드 */
.dw-hero-fx-blur .dw-hero-slide .dw-hero-bg {
    filter: blur(14px);
    transition: filter .9s ease;
}
.dw-hero-fx-blur .dw-hero-slide.is-active .dw-hero-bg {
    filter: blur(0);
}

/* 모션 최소화 설정을 켠 사용자에게는 전환효과를 끈다 */
@media (prefers-reduced-motion: reduce) {
    .dw-hero-fx-zoom .dw-hero-slide .dw-hero-bg,
    .dw-hero-fx-blur .dw-hero-slide .dw-hero-bg,
    .dw-hero-fx-up .dw-hero-slide {
        transition: none;
        transform: none;
        filter: none;
    }
    .dw-hero-fx-kenburns .dw-hero-slide.is-active .dw-hero-bg {
        animation: none;
    }
}

