/* =====================================================
   법무법인 강현 공식홈페이지 리뉴얼 CSS
   File : /css/kanghyun.css
===================================================== */

/* ===========================
   Reset
=========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #222;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul,
ol {
    list-style: none;
}

/* ===========================
   Common
=========================== */
:root {
    --kh-navy: #0d2340;
    --kh-deep: #091726;
    --kh-gold: #c9a86a;
    --kh-beige: #f7f3ee;
    --kh-ivory: #fbf8f3;
    --kh-line: #e7e1d8;
    --kh-text: #222;
    --kh-gray: #666;
}

.kh-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.kh-section {
    padding: 110px 0;
}

.kh-section-head {
    margin-bottom: 48px;
    text-align: center;
}

.kh-label {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--kh-gold);
}

.kh-section-head h2,
.kh-cta h2 {
    font-size: 42px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--kh-navy);
}

.kh-section-head p,
.kh-cta p {
    margin-top: 14px;
    font-size: 18px;
    color: var(--kh-gray);
}

.kh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    transition: .25s ease;
}

.kh-btn.gold {
    color: #111;
    background: var(--kh-gold);
}

.kh-btn.navy {
    color: #fff;
    background: var(--kh-navy);
}

.kh-btn.line {
    color: #fff;
    border: 1px solid rgba(255,255,255,.55);
}

.kh-btn:hover {
    transform: translateY(-2px);
}

/* ===========================
   Header
=========================== */
.kh-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    height: 90px;
    border-bottom: 1px solid rgba(13,35,64,.08);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    transition: .25s ease;
}

.kh-header.is-scroll {
    height: 82px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.kh-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 34px;
}

.kh-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 14px;
    min-width: 250px;
}

.kh-logo img {
    width: auto;
    height: 50px;
}

.kh-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.kh-logo-text em {
    margin-bottom: 5px;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    color: #8c8c8c;
}

.kh-logo-text strong {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--kh-navy);
}

/* ===========================
   Navigation
=========================== */
.kh-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    height: 100%;
}

.kh-gnb {
    display: flex;
    align-items: center;
    height: 100%;
}

.kh-gnb > li {
    position: relative;
    height: 100%;
}

.kh-gnb > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2933;
    white-space: nowrap;
    transition: .2s ease;
}

.kh-gnb > li:hover > a {
    color: var(--kh-gold);
}

.kh-sub {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 190px;
    padding: 14px 0;
    border: 1px solid rgba(13,35,64,.08);
    border-radius: 0 0 16px 16px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: .2s ease;
}

.kh-gnb > li:hover .kh-sub {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.kh-sub a {
    display: block;
    padding: 9px 20px;
    font-size: 15px;
    color: #333;
    white-space: nowrap;
}

.kh-sub a:hover {
    color: var(--kh-navy);
    background: var(--kh-ivory);
}

.kh-header-call {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
    line-height: 1.15;
}

.kh-header-call span {
    font-size: 12px;
    color: #777;
}

.kh-header-call b {
    margin-top: 4px;
    font-size: 20px;
    color: var(--kh-navy);
}

.kh-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
}

.kh-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background: var(--kh-navy);
}

/* ===========================
   Main Visual
=========================== */
.kh-hero {
    position: relative;
    overflow: hidden;
}

.kh-hero-slide {
    position: relative;
    min-height: 780px;
}

.kh-hero-bg {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.kh-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9,23,38,.86) 0%, rgba(9,23,38,.56) 43%, rgba(9,23,38,.12) 100%);
}

/* ===========================
   Hero Content Layout Fix
=========================== */

/* ===========================
   Main Visual Text Fix
=========================== */

.kh-hero-content {
    position: relative;
    z-index: 1;
    min-height: 780px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.kh-hero-kicker {
    display: block;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .22em;
    color: var(--kh-gold) !important;
}

.kh-hero h2,
.kh-hero-content h2 {
    display: block;
    max-width: 760px;
    margin: 0;
    font-size: 64px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.05em;
    color: #fff !important;
    white-space: pre-line;
}

.kh-hero p,
.kh-hero-content p {
    display: block;
    max-width: 800px;
    margin-top: 24px;
    font-size: 21px;
    line-height: 1.7;
    color: rgba(255,255,255,.85) !important;
}

.kh-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
}

.kh-hero-contact {
    display: flex;
    gap: 28px;
    margin-top: 40px;
    color: #fff;
}

.kh-hero-contact span {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,.62);
}

.kh-hero-contact b {
    display: block;
    margin-top: 3px;
    font-size: 22px;
}

.kh-swiper-control {
    position: absolute;
    left: 50%;
    bottom: 38px;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    padding: 0 24px;
    transform: translateX(-50%);
}

.kh-swiper-control .swiper-pagination {
    position: static;
    text-align: left;
}

.kh-swiper-control .swiper-pagination-bullet {
    width: 38px;
    height: 4px;
    border-radius: 0;
    background: rgba(255,255,255,.5);
    opacity: 1;
}

.kh-swiper-control .swiper-pagination-bullet-active {
    background: var(--kh-gold);
}

/* ===========================
   About
=========================== */
.kh-about {
    background: #fff;
}

.kh-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.kh-about-img {
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: url("/new_img/about.jpg") center/cover no-repeat, var(--kh-beige);
}

.kh-about-card {
    padding: 50px;
    border: 1px solid var(--kh-line);
    border-radius: 28px;
    background: var(--kh-ivory);
}

.kh-about-card h2 {
    font-size: 40px;
    line-height: 1.25;
    color: var(--kh-navy);
}

.kh-about-card p {
    margin-top: 20px;
    font-size: 18px;
    color: #555;
}

.kh-info-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
    margin-top: 30px;
}

.kh-info-list li {
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff;
    color: #333;
}

/* ===========================
   Service
   주요 업무분야 카드형 6개 영역
=========================== */
.kh-service {
    background:
        radial-gradient(circle at 8% 12%, rgba(201,168,106,.16) 0, rgba(201,168,106,0) 32%),
        linear-gradient(180deg, #fbf8f3 0%, #f1e7d8 100%);
}

.kh-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.kh-service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201,168,106,.42);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(13,35,64,.10);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.kh-service-card:hover {
    transform: translateY(-7px);
    border-color: rgba(201,168,106,.75);
    box-shadow: 0 26px 60px rgba(13,35,64,.16);
}

.kh-service-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e8dfd2;
}

.kh-service-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9,23,38,0) 30%, rgba(9,23,38,.38) 100%);
}

.kh-service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.kh-service-card:hover .kh-service-thumb img {
    transform: scale(1.06);
}

.kh-service-body {
    position: relative;
    padding: 30px;
}

.kh-service-body::before {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(201,168,106,.10);
    pointer-events: none;
}

.kh-service-body em {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 14px;
    font-style: normal;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .16em;
    color: var(--kh-gold);
}

.kh-service-body h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 13px;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 800;
    color: var(--kh-navy);
}

.kh-service-body p {
    position: relative;
    z-index: 1;
    min-height: 78px;
    color: #666;
}

.kh-service-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.kh-service-phone,
.kh-service-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    transition: .22s ease;
}

.kh-service-phone {
    color: var(--kh-navy);
    background: #f0e2c8;
}

.kh-service-phone:hover {
    color: #111;
    background: var(--kh-gold);
}

.kh-service-go {
    color: #fff;
    background: var(--kh-navy);
}

.kh-service-go:hover {
    background: #18385f;
}

/* ===========================
Representative Attorneys
=========================== */

.kh-attorney{
background:#fff;
}

.kh-attorney-list{
display:flex;
flex-direction:column;
gap:40px;
}

.kh-attorney-card{
display:grid;
grid-template-columns:340px 1fr;
gap:40px;
padding:40px;
border:1px solid var(--kh-line);
border-radius:28px;
background:#fff;
box-shadow:0 15px 35px rgba(13,35,64,.06);
}

.kh-attorney-photo{
    overflow:hidden;
    border-radius:20px;
    height:350px;
}

.kh-attorney-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:top;
}

.kh-attorney-info h3{
margin-bottom:20px;
font-size:32px;
font-weight:800;
color:var(--kh-navy);
}

.kh-attorney-info ul{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px 30px;
    list-style:none;
}

.kh-attorney-info li{
    position:relative;
    padding-left:18px;
    margin:0;
    line-height:1.6;
    color:#555;
}

.kh-attorney-info li:before{
    content:"";
    position:absolute;
    left:0;
    top:10px;
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--kh-gold);
}

@media (max-width:900px){
    .kh-attorney-card{
        grid-template-columns:1fr;
    }
}

/* ===========================
   Process
=========================== */
.kh-process {
    background: #f2e8da;
}

.kh-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.kh-process-card {
    padding: 34px 26px;
    border-top: 3px solid var(--kh-gold);
    border-radius: 20px;
    background: var(--kh-ivory);
}

.kh-process-card b {
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--kh-gold);
}

.kh-process-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
    color: var(--kh-navy);
}

.kh-process-card p {
    color: #666;
}

/* ===========================
   Strength
=========================== */
.kh-strength-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.kh-strength-card {
    padding: 34px 30px;
    border: 1px solid var(--kh-line);
    border-radius: 24px;
    background: #fff;
}

.kh-strength-card h3 {
    margin-bottom: 10px;
    font-size: 24px;
    color: var(--kh-navy);
}

.kh-strength-card p {
    color: #666;
}

/* ===========================
   Location
=========================== */
.kh-location {
    background: var(--kh-ivory);
}

.kh-location-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
    align-items: stretch;
}

.kh-map {
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
}

.kh-location-info {
    position: relative;
    overflow: hidden;
    padding: 42px;
    border-radius: 24px;
    background: #fff;
}

.kh-location-info:before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/new_img/location_bd.jpg") center / cover no-repeat;
    opacity: .36;
    z-index: 0;
}

.kh-location-info > * {
    position: relative;
    z-index: 1;
}


.kh-location-info h3 {
    color: var(--kh-navy);
    font-size:28px;
}

.kh-location-info dt {
    color: var(--kh-navy);
}

.kh-location-info p {
    color: #333;
    font-size: 18px;
    font-weight:500;
}

.kh-location-info dd {
    color: #333;
}

.kh-location-info dl {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px 0;
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid var(--kh-line);
    font-size:18px;
    font-weight:700;
}


.root_daum_roughmap .cont {
    display: none !important;
}

/* ===========================
   CTA
=========================== */
.kh-cta {
    padding: 82px 0;
    background: linear-gradient(135deg, #f4ead8 0%, #fff8ef 52%, #e9d6b7 100%);
}

.kh-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.kh-cta h2 {
    font-size: 40px;
}

.kh-cta .kh-btn.line {
    color: var(--kh-navy);
    border-color: rgba(13,35,64,.35);
}

/* ===========================
   Footer
=========================== */
.kh-footer {
    padding: 64px 0 76px;
    color: rgba(255,255,255,.72);
    background: var(--kh-deep);
}

.kh-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.kh-footer-logo {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.kh-footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.kh-footer-links a {
    font-size: 15px;
    color: rgba(255,255,255,.78);
}

.kh-footer-info {
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.9;
}

.kh-footer-info b {
    color: #fff;
}

.kh-copy {
    margin-top: 26px;
    font-size: 14px;
    color: rgba(255,255,255,.45);
}

.kh-floating {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kh-floating a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: var(--kh-navy);
    box-shadow: 0 10px 24px rgba(0,0,0,.2);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 1400px) {
    .kh-wrap {
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .kh-header {
        height: 84px;
    }

    .kh-logo {
        min-width: auto;
    }

    .kh-logo img {
        height: 58px;
    }

    .kh-logo-text strong {
        font-size: 24px;
    }

    .kh-nav {
        position: fixed;
        top: 84px;
        left: 0;
        right: 0;
        display: none;
        height: auto;
        padding: 18px 24px 28px;
        border-top: 1px solid var(--kh-line);
        background: #fff;
        box-shadow: 0 18px 28px rgba(0,0,0,.08);
    }

    .kh-header.is-open .kh-nav {
        display: block;
    }

    .kh-gnb {
        display: block;
        height: auto;
    }

    .kh-gnb > li {
        height: auto;
        border-bottom: 1px solid #eee;
    }

    .kh-gnb > li > a {
        height: auto;
        padding: 14px 0;
        font-size: 18px;
    }

    .kh-sub {
        position: static;
        min-width: 0;
        padding: 0 0 12px 12px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .kh-sub a {
        padding: 6px 0;
    }

    .kh-header-call {
        margin-left: auto;
    }

    .kh-menu-btn {
        display: block;
    }

    .kh-hero h2 {
        font-size: 54px;
    }

    .kh-service-grid,
    .kh-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kh-case-grid,
    .kh-strength-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .kh-section {
        padding: 78px 0;
    }

    .kh-section-head h2,
    .kh-cta h2 {
        font-size: 32px;
    }

    .kh-hero-slide,
    .kh-hero-content {
        min-height: 660px;
    }

    .kh-hero h2 {
        font-size: 42px;
    }

    .kh-hero p {
        font-size: 18px;
    }

    .kh-about-grid,
    .kh-location-grid {
        grid-template-columns: 1fr;
    }

    .kh-cta-inner {
        display: block;
        text-align: center;
    }

    .kh-cta-actions {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .kh-wrap {
        padding: 0 18px;
    }

    .kh-header {
        height: 74px;
    }

    .kh-header.is-scroll {
        height: 74px;
    }

    .kh-logo img {
        height: 48px;
    }

    .kh-logo-text em {
        display: none;
    }

    .kh-logo-text strong {
        font-size: 20px;
    }

    .kh-header-call {
        display: none;
    }

    .kh-nav {
        top: 74px;
        height: calc(100vh - 74px);        
    }

    .kh-hero-slide,
    .kh-hero-content {
        min-height: 600px;
    }

    .kh-hero h2 {
        font-size: 34px;
    }

    .kh-hero-contact {
        display: block;
    }

    .kh-hero-contact > div + div {
        margin-top: 14px;
    }

    .kh-hero-actions,
    .kh-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .kh-service-grid,
    .kh-case-grid,
    .kh-process-grid,
    .kh-strength-grid,
    .kh-info-list {
        grid-template-columns: 1fr;
    }

    .kh-about-card,
    .kh-location-info {
        padding: 30px 22px;
    }

    .kh-footer-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .kh-floating {
        right: 14px;
        bottom: 14px;
    }

    .kh-floating a {
        width: 50px;
        height: 50px;
    }
}


/* ===========================
   Service Responsive
   주요 업무분야 카드 반응형 보정
=========================== */
@media (max-width: 1200px) {
    .kh-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .kh-service-grid {
        grid-template-columns: 1fr;
    }

    .kh-service-body {
        padding: 26px 22px;
    }

    .kh-service-body p {
        min-height: auto;
    }

    .kh-hero-bg {
        background-position-x: 85% !important;
    }

    .kh-service-actions {
        flex-direction: column;
    }

    .kh-service-phone,
    .kh-service-go {
        width: 100%;
    }

}

/* ===========================
   모바일 서브메뉴 아코디언형
=========================== */
@media (max-width: 900px) {
    .kh-header-inner {
        justify-content: space-between;
    }
    .kh-gnb > li > .kh-sub {
        display: none;
    }

    .kh-gnb > li.open > .kh-sub {
        display: block;
        transform: translate(0%, 0);
    }

    .kh-gnb > li > a {
        position: relative;
    }

    .kh-gnb > li:has(.kh-sub) > a::after {
        content: "+";
        position: absolute;
        right: 20px;
        font-size: 22px;
        font-weight: 300;
    }

    .kh-gnb > li.open > a::after {
        content: "−";
    }
}