* {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

html,
body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-thumb {
  width: 8px;
  border-radius: 20px;
  background-color: #1d1d1d;
}

.js [data-fade] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 1s ease;
}

.js [data-fade].fade-up-visible {
  opacity: 1;
  transform: translateY(0);
}

.js.no-fade-motion [data-fade] {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-fade] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

nav {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    position: fixed;
    display: flex;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    z-index: 999;
}

nav > .nav-container {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav.list {
    border-bottom: 1px solid #F5F5F5;
}

nav .items {
    color: #000;
    font-size: 1.2em;
    font-weight: 600;
}

nav .logo-text {
    color: #000;
    font-size: 1.25em;
    font-weight: 700;
}

nav.detail {
    background-color: #fff;
}

nav.detail img {
    filter: none;
}

nav.detail .items {
    color: #000;
}

nav.detail .logo-text {
    color: #000;
}

nav.detail .active .items {
    color: #000;
}

nav.scrolled {
    width: 100%;
    max-width: none;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-bottom: none;
    z-index: 999;
}

nav.scrolled .items {
    color: #000;
}

nav.scrolled .logo-text {
    color: #000;
}

nav.detail.scrolled img {
    filter: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 3px;
    transition: all 0.3s ease;
}

nav.detail .hamburger span {
    background-color: #000;
}

nav.scrolled .hamburger span {
    background-color: #000;
}

.hamburger.active span {
    background: #000 !important;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    gap: 1em;
}


footer {
    width: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 0;
}

footer > .footerContent {
    width: 80%;
    padding: 20px 0;
}

footer > .footerContent > .mainContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer > .footerContent > .mainContent > .left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

footer > .footerContent > .mainContent > .left > p {
    color: #606060;
}

footer > .footerContent > .mainContent > .left > .headLin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

footer > .footerContent > .mainContent > .left > .headLin p {
    color: #fff;
}

footer > .footerContent > .mainContent > .left > .headLin > img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

footer > .footerContent > .mainContent > .left > .headLin > img.rotate {
    transform: rotate(180deg);
}

footer > .footerContent > .underContent {
    height: 0;
    padding: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

footer > .footerContent > .underContent.show {
    height: 136px;
    padding: 20px 0;
}

footer > .footerContent > .underContent > p {
    color: #fff;
    line-height: 2;
    margin: 0;
}

.container {
    padding: 6em 0;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
}

.contents > article {
    display: block;
    margin: 5em 0;
}

.contents > article:first-child {
    margin-top: 0;
    padding-top: 5em;
}

.list-heading {
    margin: 0;
    padding-top: 3em;
    font-size: 2.25em;
}

.content_head {
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
}

.content_head > img {
    margin-right: 1em;
    max-width: 30px;
    border-radius: 50%;
}

.content_body > img {
    border: 1px solid #F5F5F5;
    margin-bottom: 1em;
    width: 100%;
}

.content_thumbnail {
    aspect-ratio: 1 / 1;
    border: 1px solid #F5F5F5;
    margin-bottom: 1em;
}

.content_thumbnail > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.content_body > h2 {
    margin: 0 0 0.5em;
    font-weight: 700;
}

.content_desc {
    line-height: 1.5em;
    margin-bottom: 1em;
}

.content_footer {
    width: 100%;
}

.content_footer > .btn.btn-primary {
    width: 100%;
    padding: 0.8em 1em;
    border-radius: 5em;
    background-color: var(--main-color, #542F6B);
    color: #fff;
    border: none;
    display: block;
    text-align: center;
    box-sizing: border-box;
    font-size: 1.1em;
}

.content_footer > .btn.btn-primary:hover {
    background-color: #8d43bb;
}

.more-btn > a {
    display: block;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0.75em 1em;
    border: 1px solid var(--main-color, #542F6B);
    border-radius: 5em;
    color: var(--main-color, #542F6B);
    text-align: center;
    font-weight: 600;
}

.detail_head {
    background-color: var(--main-color, #542F6B);
    padding: 12em 0 2em;
    text-align: center;
    color: #fff;
}

.detail_head > h1 {
    font-size: 3em;
    word-break: keep-all;
    width: 90%;
    margin: 0 auto;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em 1.25em;
    margin: 1.25em auto 0;
    padding: 0 5%;
}

.detail_content {
    margin: 3em auto;
    width: 80%;
    max-width: 900px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.detail_content * {
    max-width: 100%;
    box-sizing: border-box;
}

.detail_content img,
.detail_content video {
    max-width: 100%;
    height: auto;
}

.detail_content iframe  {
    max-width: 100%;
}


.map_container {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.map_container > div:nth-child(2) {
    display : none;
}

/* Fixed Contact Icons */
.fixed-contact-icons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.contact-icon {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

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

/* Tenant quick menu */
.quick-menu {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 998;
    max-width: calc(100vw - 40px);
}

.quick-menu__list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quick-menu__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    min-height: 52px;
    max-width: min(260px, calc(100vw - 40px));
    padding: 5px 14px 5px 6px;
    border: 1px solid rgba(var(--main-color-rgb, 84, 47, 107), 0.18);
    border-radius: 999px;
    background: oklch(98% 0.006 315 / 0.97);
    box-shadow: 0 6px 20px oklch(20% 0.02 315 / 0.16);
    color: oklch(25% 0.018 315);
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.2;
    transition:
        transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-menu__link:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--main-color-rgb, 84, 47, 107), 0.42);
    box-shadow: 0 9px 26px oklch(20% 0.02 315 / 0.2);
}

.quick-menu__link:focus-visible {
    outline: 3px solid rgba(var(--main-color-rgb, 84, 47, 107), 0.42);
    outline-offset: 3px;
}

.quick-menu__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
}

.quick-menu__title {
    min-width: 0;
    max-width: 18ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.root_daum_roughmap {
    margin: 0 auto !important;
    display: flex;
    flex-direction: column;
}

.root_daum_roughmap .wrap_map {
    width: 100% !important;
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.5em;
    }

    p {
        margin: 0.5em 0;
        font-size: 0.9em;
    }

    .content_body > h2 {
        font-size: 1.3em;
    }

    .detail_head > h1 {
        font-size: 2em;
    }

    .content_desc {
        line-height: 1.2em;
    }

    .detail_content > p > iframe {
        max-width: 100%;
        height: auto;
    }

    .detail_content > p > img {
        max-width: 100%;
        height: auto;
    }

    .fixed-contact-icons {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .quick-menu {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        max-width: calc(100vw - 28px);
    }

    .quick-menu__list {
        gap: 8px;
    }

    .quick-menu__link {
        min-height: 48px;
        max-width: calc(100vw - 28px);
        padding: 4px 12px 4px 5px;
        font-size: 0.85rem;
    }

    .quick-menu__icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .quick-menu__title {
        max-width: 15ch;
    }

    /* Mobile Navigation: no-JS가 기본 inline, JS일 때만 drawer */
    .nav-menu {
        flex: 1;
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-left: 1em;
        font-size: 0.85em;
    }

    .js .hamburger {
        display: flex;
    }

    .js .nav-menu {
        margin-left: 0;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 0;
        padding-right: 10%;
        gap: 2em;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .js .nav-menu.active {
        right: 0;
    }

    .js .nav-menu .items {
        width: 100%;
        padding-left: 15%;
        font-size: 1.5em;
        color: #000;
        font-weight: 600;
        transition: padding-left 0.3s ease;
    }

    .js .nav-menu .items:hover {
        padding-left: 18%;
    }

    /* Footer responsive styles */
    footer > .footerContent {
        width: 90%;
    }

    footer > .footerContent > .mainContent {
        flex-direction: column;
        align-items: flex-start;
    }

    footer > .footerContent > .mainContent > .left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }

    footer > .footerContent > .mainContent > .left > p {
        font-size: 0.75em;
        line-height: 1.4;
    }

    footer > .footerContent > .mainContent > .left > .headLin {
        width: 100%;
        justify-content: flex-start;
    }

    footer > .footerContent > .mainContent > .left > .headLin p {
        font-size: 0.9em;
    }

    footer > .footerContent > .underContent.show {
        height: auto;
        min-height: 136px;
    }

    footer > .footerContent > .underContent > p {
        font-size: 0.85em;
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quick-menu__link {
        transition: none;
    }
}

@media (max-width: 479px) {
    .fixed-contact-icons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .logo {
        width: 150px;
    }

    .contents > article:first-child {
        margin-top: 0;
        padding-top: 2em;
    }

    .detail_head {
        padding: 8em 0 2em;
    }
}
