/* 기본 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    background: #f7f4f1;
    color: #222;
    line-height: 1.7;
}

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

ul {
    list-style: none;
}

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

#wrap {
    min-height: 100vh;
    background: #fff;
}

.header-inner,
.footer-inner,
#content-frame {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

#header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ece7e2;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 82px;
    gap: 20px;
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#nav ul {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 15px;
    color: #444;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#nav a:hover {
    background: #f3ece6;
    color: #111;
    transform: translateY(-1px);
}

#nav a.is-active {
    background: #222;
    color: #fff;
}

#content-frame {
    padding: 48px 0 90px;
    min-height: calc(100vh - 160px);
}

#footer {
    border-top: 1px solid #ece7e2;
    background: #fbfaf8;
}

.footer-inner {
    padding: 24px 0;
    color: #777;
    font-size: 14px;
    text-align: center;
}

.page,
.brand-page {
    animation: fadeUp 0.28s ease;
}

.page h2 {
    font-size: 40px;
    line-height: 1.3;
    margin-bottom: 18px;
}

.page p {
    font-size: 17px;
    color: #555;
}

/* 메인 페이지 */
.home-hero {
    padding: 40px 0 34px;
    text-align: center;
}

.home-hero .eyebrow {
    font-size: 13px;
    letter-spacing: 0.18em;
    color: #8c7f73;
    margin-bottom: 14px;
}

.home-hero h2 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.22;
    margin-bottom: 16px;
}

.home-hero p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
    color: #5f5852;
}

.dynamic-banner-container {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.banner-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #f3ede7;
    min-height: 420px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.05));
}

.banner-card .banner-copy {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    color: #fff;
}

.banner-card .banner-copy strong {
    display: block;
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.banner-card .banner-copy span {
    font-size: 15px;
    opacity: 0.92;
}

.banner-card:hover img {
    transform: scale(1.05);
}

/* 브랜드 페이지 */
.brand-hero {
    padding: 12px 0 48px;
    text-align: center;
    border-bottom: 1px solid #ece7e2;
    margin-bottom: 54px;
}

.brand-hero-sub {
    font-size: 13px;
    letter-spacing: 0.16em;
    color: #8c7f73;
    margin-bottom: 14px;
}

.brand-hero h2 {
    font-size: clamp(32px, 4.5vw, 52px);
    line-height: 1.3;
    margin-bottom: 18px;
}

.brand-hero-desc {
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
    color: #5f5852;
}

.brand-content {
    display: flex;
    flex-direction: column;
    gap: 76px;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 44px;
}

.brand-section.image-left {
    flex-direction: row;
}

.brand-section.image-right {
    flex-direction: row-reverse;
}

.brand-image {
    flex: 0 0 40%;
}

.brand-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.10);
}

.brand-text {
    flex: 1;
}

.brand-text h3 {
    font-size: 30px;
    line-height: 1.4;
    margin-bottom: 18px;
}

.brand-text p {
    font-size: 17px;
    line-height: 1.95;
    color: #555;
    word-break: keep-all;
}

/* 일반 페이지 섹션 */
.content-block {
    padding: 28px 0;
    border-bottom: 1px solid #f0ebe6;
}

.content-block:last-child {
    border-bottom: 0;
}

.content-block h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.content-block p,
.content-block li {
    font-size: 16px;
    color: #555;
}

.content-block ul {
    display: grid;
    gap: 8px;
    padding-left: 18px;
    list-style: disc;
}

.gallery-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gallery-card {
    overflow: hidden;
    border-radius: 20px;
    background: #f6f0ea;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.gallery-card p {
    padding: 16px 18px 18px;
    font-size: 15px;
}

.contact-box {
    margin-top: 24px;
    padding: 28px;
    border-radius: 24px;
    background: #faf6f2;
    border: 1px solid #eee5de;
}

.contact-box p + p {
    margin-top: 10px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .header-inner {
        flex-direction: column;
        justify-content: center;
        padding: 16px 0;
    }

    .dynamic-banner-container,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .brand-section,
    .brand-section.image-left,
    .brand-section.image-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .brand-image,
    .brand-text {
        width: 100%;
        flex: none;
    }
}

@media (max-width: 640px) {
    #content-frame {
        width: min(100% - 28px, 1180px);
        padding: 34px 0 72px;
    }

    .page h2,
    .brand-hero h2 {
        font-size: 30px;
    }

    .home-hero p,
    .brand-hero-desc,
    .page p,
    .brand-text p {
        font-size: 16px;
    }

    .banner-card {
        min-height: 320px;
    }
}

/* 기존 사이트 운영 링크를 반영한 보조 링크 바 */
.utility-bar {
    border-top: 1px solid #f1ebe5;
    border-bottom: 1px solid #f1ebe5;
    background: #fbfaf8;
}

.utility-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.utility-inner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3ece6;
    color: #5f5852;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.utility-inner a:hover {
    background: #ece2d8;
    transform: translateY(-1px);
}

.logo span {
    color: #877cd8;
}

.home-links-block {
    margin-top: 48px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.quick-link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 84px;
    padding: 18px;
    border-radius: 18px;
    background: #faf6f2;
    border: 1px solid #eee5de;
    font-size: 16px;
    color: #444;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-link-card:hover {
    background: #f3ece6;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    text-align: left;
}

.footer-card {
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #eee5de;
}

.footer-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
    color: #222;
}

.footer-card p {
    font-size: 15px;
    color: #555;
}

.footer-card p + p {
    margin-top: 8px;
}

.footer-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.footer-list li {
    display: flex;
    gap: 10px;
    font-size: 15px;
    color: #555;
    align-items: flex-start;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f3ece6;
    color: #444;
}

.footer-bottom-info {
    padding-top: 18px;
    padding-bottom: 28px;
}

.footer-bottom-info p {
    margin-top: 6px;
    font-size: 14px;
    color: #666;
}

.footer-bottom-info a {
    color: #3b5fc9;
    font-weight: 700;
}

.copyright {
    margin-top: 16px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #222;
    color: #fff;
}

.contact-action {
    margin-top: 18px;
}

@media (max-width: 960px) {
    .utility-inner,
    .quick-links-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .utility-inner {
        width: min(1180px, calc(100% - 28px));
    }

    .footer-grid {
        display: grid;
    }
}
