:root {
    --navy: #003153;
}

@font-face {
    font-family: "NanumSquareAc";
    font-weight: 400;
    src: url("");
    src: local("☺"), url("") format("embedded-opentype"), url("NanumSquareAcR.woff2") format("woff2"), url("NanumSquareAcR.woff") format("woff"),
        url("NanumSquareAcR.ttf") format("truetype");
}
@font-face {
    font-family: "NanumSquareAc";
    font-weight: 700;
    src: url("");
    src: local("☺"), url("") format("embedded-opentype"), url("NanumSquareAcB.woff2") format("woff2"), url("NanumSquareAcB.woff") format("woff"),
        url("NanumSquareAcB.ttf") format("truetype");
}
@font-face {
    font-family: "NanumSquareAc";
    font-weight: 800;
    src: url("");
    src: local("☺"), url("") format("embedded-opentype"), url("NanumSquareAcEB.woff2") format("woff2"), url("NanumSquareAcEB.woff") format("woff"),
        url("NanumSquareAcEB.ttf") format("truetype");
}
@font-face {
    font-family: "NanumSquareAc";
    font-weight: 300;
    src: url("");
    src: local("☺"), url("") format("embedded-opentype"), url("NanumSquareAcL.woff2") format("woff2"), url("NanumSquareAcL.woff") format("woff"),
        url("NanumSquareAcL.ttf") format("truetype");
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate(-50px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

@keyframes dropdownAnimation {
    0% {
        opacity: 0;
        transform: translateY(-1.25rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* default is mobile size */

html,
body {
    font-family: "NanumSquareAc";
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-size: 16px;
}

header {
    align-items: center;
    z-index: 999;
    position: fixed;
    height: 5rem;
    width: 100%;
    background-color: var(--navy);
    display: flex;
}

section {
    width: 100vw;
    position: relative;
    overflow: hidden;
}

.footer {
    width: 100%;
}

.bg-video {
    z-index: -1;
    width: 100%;
    height: 100vh;
}

.bg-video-content {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

.bg-Vimages {
    position: relative;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
}

.bg-Vimage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.bg-Vimage.active {
    opacity: 1;
    transform: scale(1);
}

.slogan {
    position: absolute;
    top: 50%;
    left: 5%;
    max-width: 60%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 1.5rem;
    text-align: left;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
    animation: fadeInLeft 1s ease-in-out forwards;
    z-index: 1;
}

.bg-image-crop {
    z-index: -1;
    height: 40vh;
    width: 100vw;
    overflow: hidden;
}

.bg-image {
    background-size: cover;
    height: 40vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    contain: paint;
    background-position: center;
}

.bg1 {
    background: url("") no-repeat center / cover;
}

.bg2 {
    background: url("") no-repeat center / cover;
}

.bg3 {
    background: url("") no-repeat center / cover;
}

.bg4 {
    background: url("") no-repeat center / cover;
}

.bg5 {
    background: url("") no-repeat center / cover;
}

.bg6 {
    background: url("") no-repeat center / cover;
}

.bg7 {
    background: url("") no-repeat center / cover;
}

.bg8 {
    background: url("") no-repeat center / cover;
}

.bg9 {
    background: url("") no-repeat center / cover;
}

.bg-title {
    padding: 0 2vw;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 2.5rem;
    font-weight: 500;
    margin-top: 10vh;
}

.logo {
    display: inline-block;
    margin-left: 1vw;
    margin-top: 1vh;
    width: 15vh;
}

.menu {
    display: none;
}

.mobile-menu {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#hamburger {
    display: none;
}

#hamburger + label {
    position: fixed;
    display: block;
    width: 4vh;
    height: 3vh;
    cursor: pointer;
    right: 20px;
    z-index: 2;
}

#hamburger + label > span {
    position: absolute;
    width: 100%;
    height: 5px;
    background: white;
    border-radius: 5px;
    transition: all 300ms;
}

#hamburger:checked + label > span:nth-child(1) {
    top: 50%;
    transform: translate(0, -50%) rotate(45deg);
}

#hamburger + label > span:nth-child(2) {
    top: 50%;
    transform: translate(0, -50%);
}

#hamburger:checked + label > span:nth-child(2) {
    opacity: 0;
}

#hamburger + label > span:nth-child(3) {
    bottom: 0;
}

#hamburger:checked + label > span:nth-child(3) {
    top: 50%;
    transform: translate(0, -50%) rotate(-45deg);
}

#side-menu {
    position: fixed;
    width: 100vw;
    height: 100%;
    background-color: white;
    right: -100vw;
    transition: all 300ms;
    z-index: 1;
    top: 0;
    padding: 60px 20px 20px 0;
    box-sizing: border-box;
}

#hamburger:checked + label + #side-menu {
    right: 0;
}

#side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#side-menu > ul > li {
    height: 100%;
    margin: 1vh 1vh 1vh 5vh;
    border-bottom: 1px solid #ccc;
}

#side-menu > ul > li > label {
    text-decoration: none;
    color: black;
}

#lang-menu {
    padding-left: 5vw;
    top: 0px;
    width: 100%;
    height: 8vh;
    display: flex;
    flex-direction: row;
    gap: 3vw;
    align-items: center;
    background-color: var(--navy);
    z-index: 1000;
    position: absolute;
}

.mobile-lang {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

.dropdown-title {
    text-decoration: none;
    color: black;
    font-size: 1.1rem;
    display: block;
}

.dropdown-label {
    height: 4vh;
    display: inline-block;
    margin-bottom: 1vh;
    line-height: 4vh;
}

.dropdown-btn,
.dropdown-title {
    vertical-align: middle;
    font-size: 1.5rem;
}

.dropdown {
    padding-top: 10vh;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    background-color: rgba(0, 0, 0, 0.1);
    padding-left: 1vh;
}

.dropdown > li {
    width: 100%;
    display: block;
}

.dropdown > li :hover {
    background-color: #0030534b;
}

.dropdown > li > a {
    padding-left: 3vw;
    display: block;
    height: 5vh;
    width: 100%;
    color: black;
    text-decoration: none;
    line-height: 5vh;
}

input[type="checkbox"].dropdown-toggle {
    display: none;
}

input[type="checkbox"].dropdown-toggle + label + .dropdown-btn::before {
    content: "▼";
    float: right;
    margin-right: 10px;
}

input[type="checkbox"].dropdown-toggle:checked + label + .dropdown-btn::before {
    content: "▲";
}

input[type="checkbox"].dropdown-toggle:checked ~ .dropdown {
    max-height: 500px; /* or an appropriate max height for the content */
    opacity: 1;
}

.lang-change {
    display: none;
}

.banner-div {
    display: flex;
    flex-direction: column;
    position: fixed;
    border-radius: 10px;
    background-color: white;
    width: 40px;
    padding: 10px;
    bottom: 5%;
    right: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    z-index: 100;
    text-align: center;
}

.banner {
    margin-top: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.banner > img {
    width: 100%;
}

.banner > p {
    margin: 0;
    font-size: 0.8rem;
    color: black;
    word-break: keep-all;
}

/*about start*/
.about-content {
    display: flex;
    flex-direction: column;
    width: 100vw;
    align-items: center;
}

.about-text {
    width: 60%;
    font-size: 1.1rem;
}

/*about end*/

/*history start*/
.history_timeline {
    position: relative;
    margin: 50px auto;
    padding: 20px 0;
    max-width: 800px;
}

.history_timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: #ddd;
    transform: translateX(-50%);
}

.history_timeline_item {
    display: flex;
    margin: 20px 0;
    position: relative;
}

.history_timeline_item:nth-child(odd) {
    flex-direction: row-reverse;
}

.history_timeline_content {
    margin: 0 20px;
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    width: calc(50% - 30px);
}

.history_timeline_content h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 800;
}

.history_timeline_content p {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    line-height: 1.5;
}
/*history end*/

/*location start*/
#map {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 80%;
    margin: 0 auto;
}

#map-description {
    width: 70%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#map-description-address {
    width: 80%;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
}

#map-description-etc {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    width: 80%;
}

#how-to-come {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

.location-picto {
    width: 1.3rem;
    height: auto;
    align-content: center;
    margin-right: 1.1rem;
}

.how-to-come-1 {
    display: flex;
    margin-left: 10vw;
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 800;
    text-align: left;
    align-items: center;
}
.how-to-come-2 {
    margin-left: 20%;
    font-size: 1.1rem;
    text-align: left;
    align-items: center;
}
.how-to-come-3 {
    margin-left: 20%;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 0;
    align-items: center;
}
/*location end*/

/*practice-areas start*/

.mobile_practice-areas-container {
    display: block;
}

.practice-areas-container {
    display: none;
}

.practice-areas {
    display: none;
}

.mobile-dropdown {
    position: relative;
    display: flex;
    width: 90%;
    margin: 20px auto;
    justify-content: center;
    align-items: center;
}

.mobile-dropdown.mobile_open::after {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-dropdown_content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    height: 800px;
}

.mobile-dropdown_content > a {
    color: black;
    padding: 0 16px;
    text-decoration: none;
    display: block;
    height: 6vh;
    line-height: 6vh;
}

.mobile-dropdown_content a:hover {
    background-color: #f1f1f1;
}

.practice-area-detail {
    list-style-type: disc;
    padding-left: 0;
}
.practice-area-detail > li {
    margin-left: 20px;
}

#mobile-area-content {
    line-height: 1.6;
    font-size: 1rem;
}

.mobile-dropdown-btn {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--navy);
    color: white;
    border: none;
    border-radius: 5px;
    text-align: left;
    font-size: 1rem;
    position: relative;
    cursor: pointer;
}

.dropdown-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.mobile-dropdown-btn::after {
    content: "▼";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.mobile-dropdown.active .mobile-dropdown-btn::after {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.mobile-dropdown.active .mobile-dropdown-content {
    display: block;
}

.mobile-dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mobile-dropdown-content a:last-child {
    border-bottom: none;
}

.mobile-dropdown-content a:hover {
    background-color: #f5f5f5;
}

.mobile-content {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/*practice-areas end*/

/* attorney start */
.attorneys {
    width: 90vw;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35%, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.attorney {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* 내부 요소가 부모 너비를 채우도록 */
    width: 100%;
    border-radius: 8px; /* 카드 모서리 둥글게 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 그림자 효과 */
    background-color: #fff; /* 카드 배경색 */
    overflow: hidden; /* 이미지 비율 유지 시 넘치는 부분 숨김 */
    box-sizing: border-box;
    cursor: pointer; /* 클릭 가능 표시 */
    transition: box-shadow 0.3s ease-in-out, opacity 0.2s ease-in-out; /* 부드러운 효과 */
    padding: 0.5rem;
}

.attorney:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 호버 시 그림자 진하게 */
    opacity: 0.9;
}

.attorney-img-container {
    width: 100%;
    aspect-ratio: 3/4; /* 이미지 비율 유지 */
}

.attorney-mobile {
    width: 70vw;
    margin: 0 auto;
}

.attorney-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 비율 유지하며 컨테이너 덮도록 자름 */
    display: block; /* 이미지 아래 여백 제거 */
}

.attorney-desc-mobile {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
}

.attorney-name {
    font-family: "Nanum Myeongjo", serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.attorney-name-sub {
    font-family: "Nanum Myeongjo", serif;
    font-weight: 700;
    font-size: 0.8rem;
    margin-top: 0;
    color: #777;
}

.attorney-desc-text {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: #555;
    overflow-wrap: break-word;
}

.attorney-detail {
    width: 70vw;
    margin: 0 auto;
}
.attorney-detail-title {
    color: var(--navy);
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 8vh;
    margin-bottom: 2vh;
}
.attorney-detail-text {
    font-size: 0.9rem;
    font-weight: 200;
    margin-left: 3vw;
}

.attorney-desc {
    display: none; /* 모바일 우선 */
}

.detail-attorney {
    display: none;
}
/* attorney end */

/*whats_new & deals_cases start*/
#board_div {
    position: relative;
    margin: 5vh 3vw;
    height: 120vh;
}
#board {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
}
/*whats_new & deals_cases end*/

/*newsletter start*/
#newsletter {
    padding: 5vh 10vw;
}
/*newsletter end*/

/* pc size */
@media (min-width: 1025px) {
    .logo {
        display: inline-block;
        margin: 0 0 0 2vw;
        height: 3rem;
        width: auto;
        align-content: center;
    }

    .bg-title {
        font-size: 4rem;
    }

    .menu {
        position: relative;
        margin-left: 5%;
        margin-right: 5vw;
        display: inline-block;
        height: 100%;
        text-align: center;
        width: 68%;
    }

    .menu-background {
        top: 5rem;
        display: none;
        position: absolute;
        width: 100%;
        height: 16rem;
        background-color: white;
        z-index: 0;
    }

    .menu ul {
        display: flex;
        font-size: 0;
        margin: 0;
        padding: 0;
        background-color: transparent;
        height: 100%;
    }

    .menu > ul > li {
        list-style: none;
        width: 25%;
        height: 100%;
        padding: 0;
        position: relative;
    }

    .menu ul > li > a:visited {
        text-decoration: none;
    }

    .menu ul > li:hover > a {
        background-color: rgba(0, 0, 0, 0.2);
        width: 100%;
    }

    .menu:hover .menu-background {
        display: block;
        animation: dropdownAnimation 0.5s ease-out forwards;
    }

    .menu:hover ul ul {
        display: block;
        animation: dropdownAnimation 0.5s ease-out forwards;
    }

    .menu > ul > li > ul {
        background-color: transparent;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: auto;
        box-sizing: border-box;
        display: none;
        padding: 0;
        margin: 0;
        z-index: 999;
    }

    .menu ul > li > a {
        flex-wrap: nowrap;
        display: block;
        text-align: center;
        font-size: 1.4rem;
        text-decoration: none;
        height: 100%;
        color: white;
        align-content: center;
    }

    .menu ul > li > ul > li {
        list-style: none;
    }

    .menu ul > li > ul > li > a {
        height: 4rem;
        color: black;
        display: block;
        font-size: 1.2rem;
        text-decoration: none;
        align-content: center;
    }

    .mobile-menu {
        display: none;
    }

    .banner-div {
        width: 80px;
    }

    .banner > p {
        font-size: 0.8rem;
    }

    .lang-change {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 5vw;
        height: 100%;
    }

    #langIcon {
        height: 30%;
        right: 3vw;
        filter: invert(1);
        font-size: 1.4rem;
    }

    #langIcon:hover {
        cursor: pointer;
    }

    .lang-dropdown {
        right: 3vw;
        position: absolute;
        left: 50%;
        top: 5rem;
        transform: translateX(-50%);
        display: none;
        background-color: #f9f9f9;
        min-width: 8vw;
        text-align: center;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .lang-dropdown a {
        color: black;
        padding: 1vh;
        text-decoration: none;
        display: block;
    }

    .lang-dropdown a:hover {
        background-color: #ddd;
    }

    /*about start*/
    .about-text {
        font-size: 1.1rem;
    }
    /*about end*/

    /* location start */
    #map {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    #map-description {
        width: 90%;
    }

    #map-description-address {
        font-size: 1.5rem;
        font-weight: 400;
        width: 50%;
        text-align: left;
    }

    #map-description-etc {
        font-size: 1.5rem;
        font-weight: 400;
        text-align: left;
        width: 80%;
        margin-left: 30%;
    }

    #how-to-come {
        width: 70%;
        margin-left: 15%;
    }
    .location-picto {
        width: 1.7rem;
        height: auto;
        align-content: center;
        margin-right: 1.5rem;
    }
    .how-to-come-1 {
        color: var(--navy);
        font-size: 1.5rem;
        text-align: left;
    }
    .how-to-come-2 {
        font-size: 1.5rem;
        font-weight: 400;
        text-align: left;
    }
    .how-to-come-3 {
        font-size: 1.5rem;
        text-align: left;
        margin-bottom: 0;
    }
    /*location end*/

    .practice-areas-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 2rem;
        max-width: 1200px;
        margin: 0 auto;
        background-color: #ffffff;
    }

    .mobile_practice-areas-container {
        display: none;
    }

    .practice-areas-menu {
        width: 25%;
        margin-right: 2rem;
        background-color: #f8f9fa;
        border-left: 3px solid var(--navy);
        padding: 1.1rem;
    }

    .practice-areas-list {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .practice-areas-list li {
        margin-bottom: 0.5rem;
    }

    .practice-areas-list a {
        display: block;
        padding: 0.8rem 1.1rem;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
    }

    .practice-areas-list a:hover,
    .practice-areas-list a.active {
        background-color: #e6e6e6;
        color: var(--navy);
        border-left: 3px solid var(--navy);
    }

    .practice-area-description {
        width: 70%;
        background-color: #ffffff;
        padding: 0 2rem;
    }

    .practice-area-name {
        color: var(--navy);
        font-size: 2rem;
        margin-bottom: 1.1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--navy);
    }

    .practice-area-content {
        font-size: 1.1rem;
        line-height: 1.6;
        color: #333;
    }
    .attorneys {
        grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
        width: 70vw;
    }
    .attorney {
        display: flex;
    }
    .attorney-mobile {
        display: none;
    }
    .attorney-desc {
        display: flex;
        flex-direction: column;
        line-height: 50%;
        width: 100%;
    }
    .attorney-desc-text {
        line-height: 1;
        font-size: 1.1rem;
    }
    .attorney-desc-mobile {
        display: none;
    }
    .mobile_attorney-name {
        display: none;
    }
    .detail-attorney {
        display: flex;
        flex-direction: column;
        width: 40%;
        height: 100%;
    }
    .attorney-name {
        width: 100%;
        font-weight: 700;
        font-size: 1.5rem;
        text-align: left;
        line-height: 1.5;
    }
    .attorney-name-sub {
        font-weight: 700;
        font-size: 1.2rem;
        text-align: left;
    }
    .attorney-detail-container {
        display: flex;
        flex-direction: row;
        gap: 2rem;
        padding: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    .attorney-detail {
        margin-left: 10%;
    }
    .attorney-detail-title {
        color: var(--navy);
        font-size: 2.5rem;
        font-weight: 400;
        margin-top: 8vh;
        margin-bottom: 2vh;
    }
    .attorney-detail-text {
        font-size: 1.25rem;
        font-weight: 200;
        margin-left: 3vw;
    }

    /*whats_new & deals_cases start*/
    #board_div {
        position: relative;
        margin: 5rem 15rem;
        height: 120rem;
    }
    #board {
        position: absolute;
        width: 100%;
        height: 100%;
        border: none;
    }
    /*whats_new & deals_cases end*/

    /*newsletter start*/
    #newsletter {
        padding: 5rem 20rem;
    }
    /*newsletter end*/
}
