:root {
    --navy: #003153;
}

@font-face {
    font-family: "NanumSquareAc";
    font-weight: 400;
    src: url(/fonts/NanumSquareAcR.eot);
    src:
        local("☺"),
        url(/fonts/NanumSquareAcR.eot?#iefix) format("embedded-opentype"),
        url(/fonts/NanumSquareAcR.woff2) format("woff2"),
        url(/fonts/NanumSquareAcR.woff) format("woff"),
        url(/fonts/NanumSquareAcR.ttf) format("truetype");
}
@font-face {
    font-family: "NanumSquareAc";
    font-weight: 700;
    src: url(/fonts/NanumSquareAcB.eot);
    src:
        local("☺"),
        url(/fonts/NanumSquareAcB.eot?#iefix) format("embedded-opentype"),
        url(/fonts/NanumSquareAcB.woff2) format("woff2"),
        url(/fonts/NanumSquareAcB.woff) format("woff"),
        url(/fonts/NanumSquareAcB.ttf) format("truetype");
}
@font-face {
    font-family: "NanumSquareAc";
    font-weight: 800;
    src: url(/fonts/NanumSquareAcEB.eot);
    src:
        local("☺"),
        url(/fonts/NanumSquareAcEB.eot?#iefix) format("embedded-opentype"),
        url(/fonts/NanumSquareAcEB.woff2) format("woff2"),
        url(/fonts/NanumSquareAcEB.woff) format("woff"),
        url(/fonts/NanumSquareAcEB.ttf) format("truetype");
}
@font-face {
    font-family: "NanumSquareAc";
    font-weight: 300;
    src: url(/fonts/NanumSquareAcL.eot);
    src:
        local("☺"),
        url(/fonts/NanumSquareAcL.eot?#iefix) format("embedded-opentype"),
        url(/fonts/NanumSquareAcL.woff2) format("woff2"),
        url(/fonts/NanumSquareAcL.woff) format("woff"),
        url(/fonts/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 {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100vh;
    display: block;
}

.bg-video-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 3s ease-in-out,
        visibility 0s 3s;
    z-index: 0;
}

.bg-video-content.active {
    opacity: 1;
    visibility: visible;
    transition:
        opacity 3s ease-in-out,
        visibility 0s 0s;
    z-index: 1;
}

.bg-Vimages {
    position: relative;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 0;
    display: block; /* Mobile default: show images */
}

.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;
    line-height: 1.35;
    text-align: left;
    font-weight: 800;
    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.45),
        2px 2px 8px rgba(0, 0, 0, 0.72);
    letter-spacing: 0.06em;
    animation: fadeInLeft 1s ease-in-out forwards;
    z-index: 10;
}

.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("/images/bg1.webp") no-repeat center / cover;
}

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

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

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

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

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

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

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

.bg9 {
    background: url("/images/bg9.webp") 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: 3vw;
    height: 3.5rem;
    width: auto;
    max-width: 70vw;
    object-fit: contain;
}

.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 {
    position: relative;
    height: 100%;
    margin: 1vh 1vh 1vh 5vh;
    border-bottom: 1px solid #ccc;
}

#side-menu .mobile-menu-row {
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
}

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

.mobile-lang {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.mobile-lang:hover {
    opacity: 0.7;
}

.mobile-lang.active {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.dropdown-title {
    text-decoration: none;
    color: black;
    font-size: 1.1rem;
    display: block;
    flex: 1 1 auto;
    order: 1;
    padding: 0.4rem 0;
}

.dropdown-btn {
    width: 44px; /* 권장 최소 터치 타겟(모바일 UX) */
    height: 44px;
    margin-left: auto;
    flex: 0 0 auto;
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    border-radius: 10px;
}

.dropdown-btn::before {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-5px) rotate(45deg);
    transition: transform 0.2s ease;
}

.dropdown-btn[aria-expanded="true"]::before {
    transform: rotate(-135deg);
}

.dropdown-btn:focus-visible,
.dropdown-title:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
    border-radius: 4px;
}

.mobile-menu-row .dropdown-btn[aria-expanded="true"],
.mobile-menu-row .dropdown-btn[aria-expanded="true"] + .dropdown-title {
    color: var(--navy);
    font-weight: 700;
}

.dropdown {
    padding-top: 0.35rem;
    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 > a {
    padding: 0.5rem 0 0.5rem 3vw;
    display: block;
    width: 100%;
    color: black;
    text-decoration: none;
    line-height: 1.35;
}

@media (hover: hover) and (pointer: fine) {
    .dropdown > li > a:hover {
        background-color: #0030534b;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dropdown-btn::before {
        transition: none;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lang-change {
    display: none;
}

.banner-div {
    position: fixed;
    right: 0;
    bottom: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 7rem;
    border-radius: 1rem 0 0 1rem;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    background: #ffffff;
}

.banner {
    width: 100%;
    box-sizing: border-box;
    min-height: 7rem;
    padding: 0.9rem 0.9rem 0.75rem 0.55rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    text-decoration: none;
    text-align: center;
    transition:
        background-color 0.22s ease,
        color 0.22s ease;
    position: relative;
    cursor: pointer;
}

.banner:hover {
    background: rgba(10, 43, 69, 0.04);
}

.banner:active {
    background: rgba(10, 43, 69, 0.08);
}

.banner-primary {
    background: linear-gradient(180deg, #2d638e 0%, #29587d 100%);
}

.banner-primary .banner-label {
    color: rgba(255, 255, 255, 0.92);
}

.banner-primary .banner-icon-wrap {
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 8px 18px rgba(7, 29, 46, 0.22);
}

.banner-primary:hover {
    background: linear-gradient(180deg, #356f9d 0%, #2b5e86 100%);
}

.banner-icon-wrap {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner img {
    width: 2.15rem;
    height: 2.15rem;
    object-fit: contain;
}

#banner-chat img {
    width: 2.55rem;
    height: 2.55rem;
}

.banner-label {
    color: #102030;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: break-word;
    width: 100%;
    display: block;
    white-space: normal;
}

.banner-icon-badge {
    color: #03c75a;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    -webkit-text-stroke: 2px #03c75a;
    text-shadow:
        1px 0 #03c75a,
        -1px 0 #03c75a,
        0 1px #03c75a,
        0 -1px #03c75a;
}

/*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: 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: 90vw;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.attorney-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.attorney-card-info {
    padding: 1rem 0.75rem 0.9rem;
    border-top: 1px solid #f1f1f1;
}

.attorney-card-name {
    margin: 0;
    font-family: "Nanum Myeongjo", serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
}

.attorney-card-title {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    line-height: 1.4;
}

.attorney-desc-mobile {
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    box-sizing: border-box;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
}

.attorney-name {
    font-family: "Nanum Myeongjo", serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #000;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.attorney-name-sub {
    font-family: "Nanum Myeongjo", serif;
    font-weight: 400;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.4;
}

.attorney-desc-text {
    font-size: 1rem;
    margin-top: 0;
    color: #333;
    overflow-wrap: break-word;
    line-height: 1.7;
    padding-left: 0;
}

.attorney-detail {
    width: 90vw;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 0;
}
.attorney-detail-title {
    color: #000;
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 5vh;
    margin-bottom: 2vh;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000;
    letter-spacing: -0.02em;
}
.attorney-detail-text {
    font-size: 1.05rem;
    font-weight: 400;
    margin-left: 0;
    line-height: 1.9;
    color: #333;
    padding: 1rem 0;
}

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

.detail-attorney {
    display: none;
}

.attorney-detail-container {
    padding: 0;
    background-color: transparent;
}
/* 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;
}

/* 뉴스레터 정책 링크 스타일 */
.stb_form_policy .stb_form_modal_open_btn,
a.stb_form_modal_open_btn,
#stb_form_modal_open.stb_form_modal_open_btn {
    color: #0066cc !important;
    text-decoration: underline !important;
    cursor: pointer;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font: inherit;
    display: inline;
}

.stb_form_policy .stb_form_modal_open_btn:hover,
a.stb_form_modal_open_btn:hover,
#stb_form_modal_open.stb_form_modal_open_btn:hover {
    color: #0052a3 !important;
    text-decoration: underline !important;
}

.stb_form_policy .stb_form_modal_open_btn:focus,
a.stb_form_modal_open_btn:focus,
#stb_form_modal_open.stb_form_modal_open_btn:focus {
    outline: 2px solid #0066cc !important;
    outline-offset: 2px;
}
/*newsletter end*/

/* footer start */
footer {
    font-family: "Pretendard", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 3vw;
    background-color: #ffffff;
    color: #333333;
    width: 100%;
}

.footer-container {
    padding: 0 3vw;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.footer-left {
    border-right: 2px solid #e0e0e0;
    padding-right: 50px;
}

.footer-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000080;
}

.footer-slogan {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.footer-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000080;
}

.footer-content {
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-contact a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-contact a:hover {
    color: #000080;
}

.footer-copyright {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 1.5vw;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    color: #888888;
}

@media (max-width: 1024px) {
    .banner-div {
        bottom: 1.5rem;
        right: 1rem;
        width: auto;
        flex-direction: column;
        gap: 0.8rem;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0;
        padding: 0;
        transform: none;
        top: auto;
        left: auto;
        overflow: visible !important;
    }

    .banner {
        width: 3.5rem;
        height: 3.5rem;
        min-height: auto;
        border-radius: 50% !important;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        padding: 0;
        justify-content: center;
    }

    .banner-primary {
        background: linear-gradient(180deg, #2d638e 0%, #29587d 100%);
    }

    .banner-icon-wrap {
        width: 2.2rem;
        height: 2.2rem;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .banner img {
        width: 1.8rem;
        height: 1.8rem;
    }

    #banner-chat img {
        width: 2.1rem;
        height: 2.1rem;
    }

    .banner-label {
        display: none;
    }

    .banner-icon-badge {
        font-size: 1.8rem;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        text-shadow: none;
        -webkit-text-stroke: 1.5px #03c75a;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-title {
        font-size: 1.5rem;
    }

    .footer-left {
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
        padding-right: 0;
        padding-bottom: 30px;
    }

    .footer-right {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-copyright {
        font-size: 0.8rem;
    }
}
/* footer end */

/* pc size */
@media (min-width: 1025px) {
    .site-header {
        justify-content: center;
    }

    .logo-link {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        height: 100%;
        position: absolute;
        left: 0;
    }

    .logo {
        display: inline-block;
        margin: 0 0 0 2vw;
        height: 5rem;
        width: auto;
        align-content: center;
    }

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

    .menu {
        position: relative;
        margin: 0 auto;
        display: block;
        height: 100%;
        text-align: center;
        width: min(68rem, calc(100vw - 22rem));
    }

    .menu-list {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        gap: 0.4rem;
        margin: 0;
        padding: 0;
        height: 100%;
        list-style: none;
    }

    .menu-item {
        display: flex;
        align-items: stretch;
        height: 100%;
        position: relative;
    }

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

    .menu-link {
        position: relative;
        flex-wrap: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        font-size: 1.28rem;
        font-weight: 700;
        text-decoration: none;
        height: 100%;
        color: white;
        letter-spacing: -0.01em;
        transition:
            background-color 0.22s ease,
            color 0.22s ease;
    }

    .menu-link span {
        display: inline-flex;
        align-items: center;
        min-height: 5rem;
        padding: 0 0.5rem;
        white-space: nowrap;
    }

    .menu-item:hover > .menu-link,
    .menu-item:focus-within > .menu-link {
        background-color: rgba(255, 255, 255, 0.14);
    }

    .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        min-width: 100%;
        box-sizing: border-box;
        display: block;
        padding: 0.45rem 0;
        margin: 0;
        list-style: none;
        z-index: 999;
        background-color: rgba(255, 255, 255, 0.98);
        border-radius: 0 0 1rem 1rem;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-0.5rem);
        pointer-events: none;
        transition:
            opacity 0.24s ease,
            transform 0.24s ease,
            visibility 0.24s ease;
    }

    .menu-item.has-submenu:hover > .submenu,
    .menu-item.has-submenu:focus-within > .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .submenu > li + li {
        border-top: 1px solid rgba(0, 49, 83, 0.08);
    }

    .submenu > li > a {
        min-height: 2.6rem;
        padding: 0.5rem 0.85rem;
        color: #1f2d3d;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.98rem;
        text-decoration: none;
        line-height: 1.3;
        transition:
            background-color 0.2s ease,
            color 0.2s ease;
    }

    .submenu > li > a:hover,
    .submenu > li > a:focus-visible {
        background-color: rgba(0, 49, 83, 0.06);
        color: var(--navy);
    }

    .mobile-menu {
        display: none;
    }

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

    .lang-toggle-btn {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }

    .lang-toggle-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .lang-toggle-btn:focus {
        outline: none;
        box-shadow: none;
    }

    #langIcon {
        height: 1.6rem;
        width: 1.6rem;
        filter: invert(1);
        display: block;
    }

    .lang-dropdown {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 100%;
        display: none;
        background: #ffffff;
        min-width: 9rem;
        border-radius: 0 0 6px 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        overflow: hidden;
        z-index: 999;
    }

    .lang-dropdown a {
        color: #333;
        padding: 0.75rem 1rem;
        text-decoration: none;
        display: block;
        text-align: center;
        transition: background-color 0.2s ease;
        font-size: 0.95rem;
    }

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

    .lang-dropdown a.active {
        background-color: var(--navy, #003153);
        color: white;
        font-weight: 500;
    }

    /*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(4, 1fr);
        width: 70vw;
    }
    .attorney {
        display: flex;
    }
    .attorney-mobile {
        display: none;
    }
    .attorney-desc {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 2rem 0;
        border-bottom: 1px solid #e0e0e0;
    }
    .attorney-desc-text {
        line-height: 1.8;
        font-size: 1.1rem;
        color: #333;
        padding: 0;
        margin-top: 0.5rem;
    }
    .attorney-desc-mobile {
        display: none;
    }
    .mobile_attorney-name {
        display: none;
    }
    .detail-attorney {
        display: flex;
        flex-direction: column;
        width: 320px;
        min-width: 320px;
        height: fit-content;
        position: sticky;
        top: 7rem;
    }
    .detail-attorney .attorney-img {
        margin-bottom: 2rem;
        width: 100%;
    }
    .attorney-name {
        width: 100%;
        font-weight: 700;
        font-size: 2rem;
        text-align: left;
        line-height: 1.3;
        color: #000;
        margin-bottom: 0.5rem;
        letter-spacing: -0.02em;
    }
    .attorney-name-sub {
        font-weight: 400;
        font-size: 1.3rem;
        text-align: left;
        color: #666;
        margin-bottom: 2rem;
        line-height: 1.4;
    }
    .attorney-detail-container {
        display: flex;
        flex-direction: row;
        gap: 5rem;
        padding: 4rem 5rem;
        max-width: 1400px;
        margin: 0 auto;
        background-color: transparent;
    }
    .attorney-detail {
        flex: 1;
        max-width: 800px;
    }
    .attorney-detail-title {
        color: #000;
        font-size: 1.8rem;
        font-weight: 700;
        margin-top: 4rem;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #000;
        letter-spacing: -0.02em;
    }
    .attorney-detail-title:first-child {
        margin-top: 0;
    }
    .attorney-detail-text {
        font-size: 1.1rem;
        font-weight: 400;
        margin-left: 0;
        line-height: 1.9;
        color: #333;
        padding: 1rem 0;
    }

    /*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*/
}
