html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    background-color: #fff;
    color: #333;
    margin: 0;
}

.font-myeongjo {
    font-family: 'Nanum Myeongjo', serif;
}

.text-accent {
    color: #846a50;
}

.hero-kicker {
    letter-spacing: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-kicker {
    letter-spacing: 4px;
    font-size: 0.8rem;
}

.about-link {
    color: #846a50;
    border-bottom: 2px solid #846a50;
    padding-bottom: 3px;
}

.about-img-tall {
    height: 350px;
}

.about-img-short {
    height: 250px;
}

.offset-column {
    margin-top: 80px;
}

.gem-icon-box {
    background-color: #2c2520;
}

.footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    margin-bottom: 25px;
}

.user-menu-toggle {
    cursor: pointer;
}

.hidden-section {
    display: none;
}

.section-about {
    background-color: #fdfaf7;
}

.stat-card-light {
    background: #f4f1ec;
}

.stat-number-dark {
    color: #2c2520;
}

.navbar {
    transition: all 0.4s ease-in-out;
    padding: 25px 0;
    z-index: 1000;
}

.navbar-brand,
.nav-link {
    color: white !important;
    transition: 0.3s;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        padding: 15px;
    }
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0 !important;
}

.navbar-scrolled .navbar-brand,
.navbar-scrolled .nav-link {
    color: #333 !important;
}

.navbar-scrolled .navbar-toggler i {
    color: #333 !important;
}

.section-padding {
    padding: 120px 0;
}

.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/static/images/bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: white;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.title-large {
    font-size: 6rem;
    font-weight: 800;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -2px;
}

.stat-card {
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: none;
}

.about-img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.service-card {
    position: relative;
    border: none;
    border-radius: 25px;
    overflow: hidden;
    height: 500px;
    color: white;
    transition: 0.4s;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: 0.4s;
}

.service-card:hover img {
    filter: brightness(0.85);
    transform: scale(1.05);
}

.service-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
}

.service-description {
    margin-top: 10px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem;
    line-height: 1.6;
}

.command-card {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    background: white;
    padding: 35px;
    height: 100%;
}

.command-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
}

.command-box {
    background-color: #f1f3f5;
    padding: 18px 20px;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    color: #2c2520;
    word-break: break-all;
}

.modal-content {
    border-radius: 25px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.form-control {
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 15px;
    background-color: #fcfcfc;
}

.form-control:focus {
    border-color: #2c2520;
    box-shadow: none;
    background-color: #fff;
}

.btn-dark {
    background-color: #2c2520;
    border: none;
    border-radius: 12px;
    padding: 15px;
    transition: 0.3s;
}

.btn-dark:hover {
    background-color: #000;
}

.auth-switch-text {
    cursor: pointer;
}

.form-feedback-text {
    min-height: 24px;
    font-size: 0.92rem;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
}

.form-feedback-text.error {
    color: #dc3545;
}

.form-feedback-text.success {
    color: #198754;
}

.footer-section {
    background-color: #1a1a1a !important;
    padding: 80px 0 40px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: 0.3s;
}

.footer-link:hover {
    color: #fff;
}

.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.custom-toast {
    border-radius: 15px;
}


/* 새 쿠폰 알림 */
.coupon-user-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.coupon-nav-dot {
    position: absolute;
    top: -3px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #ff5a5f;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.18);
}

.coupon-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ff5a5f;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.coupon-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    border-radius: 12px;
    background: #fff8e7;
    margin: 4px 0;
}

.coupon-dropdown-item:hover {
    background: #fff1c7;
}

.coupon-notice-card {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 2100;
    width: min(390px, calc(100vw - 32px));
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(240, 205, 115, 0.85);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    display: flex;
    gap: 16px;
    animation: couponNoticeIn 0.45s ease both;
}

.coupon-notice-hide {
    animation: couponNoticeOut 0.25s ease both;
}

.coupon-notice-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f8f9fa;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coupon-notice-close:hover {
    background: #ececec;
    color: #222;
}

.coupon-notice-icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff4c2, #ffe066);
    color: #7a5b16;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    box-shadow: 0 10px 24px rgba(240, 205, 115, 0.35);
}

.coupon-notice-content {
    min-width: 0;
    padding-right: 22px;
}

.coupon-notice-kicker {
    color: #c28700;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.coupon-notice-content h5 {
    margin: 0 0 8px;
    color: #2c2520;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.coupon-notice-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.55;
    word-break: keep-all;
}

.coupon-notice-benefit {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff8e7;
    color: #c92a2a;
    font-size: 0.9rem;
    font-weight: 900;
}

.coupon-notice-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

@keyframes couponNoticeIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes couponNoticeOut {
    to {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
}

.faq-list .faq-item {
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 18px 20px;
    background: #fcfcfc;
}

.faq-question {
    font-weight: 800;
    color: #2c2520;
    margin-bottom: 8px;
}

.faq-answer {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #ffffff;
        border-radius: 16px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

    .navbar-collapse .nav-link {
        color: #2c2520 !important;
        font-weight: 700;
        padding: 12px 10px;
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-collapse .dropdown-menu {
        background-color: #fdfaf7;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 10px;
        margin-top: 5px;
        margin-bottom: 15px;
    }

    .navbar-collapse .dropdown-item {
        padding: 12px 15px;
        border-radius: 8px;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .navbar-collapse .dropdown-item:active {
        background-color: #f4f1ec;
    }

    .navbar-collapse .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .navbar-collapse .btn-outline-light {
        color: #2c2520 !important;
        border-color: #2c2520 !important;
        width: 100%;
        margin-top: 10px;
    }

    .navbar-collapse .btn-outline-light:active {
        background-color: #2c2520 !important;
        color: #ffffff !important;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 90px 0;
    }

    .title-large {
        font-size: 3.2rem;
        letter-spacing: -1px;
    }

    .hero-kicker {
        letter-spacing: 6px;
        font-size: 0.95rem;
    }

    .hero-section .fs-2 {
        font-size: 1.2rem !important;
    }

    .offset-column {
        margin-top: 0;
    }

    .about-img-tall,
    .about-img-short {
        height: 220px;
    }

    .command-card {
        padding: 24px;
    }

    .command-box {
        font-size: 1rem;
        padding: 16px;
    }

    .toast-container {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 576px) {
    .coupon-notice-card {
        left: 16px;
        right: 16px;
        bottom: 18px;
        width: auto;
        padding: 18px;
    }

    .coupon-notice-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 16px;
    }

    .coupon-notice-content {
        padding-right: 18px;
    }
}

/* 브랜드 소개 페이지 */
.brand-intro-hero {
    min-height: 58vh;
    display: flex;
    align-items: center;
    color: #ffffff;
    background-image: linear-gradient(rgba(18, 14, 10, 0.68), rgba(18, 14, 10, 0.68)), url('/static/images/bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 160px 0 90px;
}

.brand-intro-hero-content {
    max-width: 920px;
}

.brand-page-kicker {
    letter-spacing: 8px;
    font-size: 0.82rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.78);
}

.brand-page-title {
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    text-shadow: 2px 2px 24px rgba(0, 0, 0, 0.35);
    margin-bottom: 24px;
}

.brand-page-subtitle {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
    word-break: keep-all;
}

.brand-story-section {
    background: #fdfaf7;
}

.brand-message-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #f0e8de;
    box-shadow: 0 14px 35px rgba(132, 106, 80, 0.08);
    color: #5d4b3b;
    line-height: 1.8;
    font-weight: 700;
    word-break: keep-all;
}

.brand-message-box i {
    font-size: 1.8rem;
    color: #846a50;
    flex-shrink: 0;
}

.brand-value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.brand-value-card {
    min-height: 240px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid rgba(132, 106, 80, 0.1);
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.04);
    transition: 0.3s ease;
}

.brand-value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.08);
}

.brand-value-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: #f4f1ec;
    color: #846a50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    margin-bottom: 22px;
}

.brand-value-card h3 {
    font-size: 1.35rem;
    font-weight: 900;
    color: #2c2520;
    margin-bottom: 12px;
}

.brand-value-card p {
    margin: 0;
    color: #777;
    line-height: 1.75;
    word-break: keep-all;
}

.organization-section {
    background: #ffffff;
}

.org-chart-wrap {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.org-node {
    background: #ffffff;
    border: 1px solid #eee7de;
    border-radius: 28px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.055);
}

.org-node h3 {
    color: #2c2520;
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.org-node p {
    color: #777;
    line-height: 1.65;
    margin: 0;
    word-break: keep-all;
}

.org-node-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 22px;
    background: #2c2520;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.org-node-top {
    max-width: 360px;
    margin: 0 auto;
    background: linear-gradient(135deg, #2c2520, #4a3829);
    color: #ffffff;
    border: none;
}

.org-node-top h3,
.org-node-top p {
    color: #ffffff;
}

.org-node-top .org-node-icon {
    background: rgba(255, 255, 255, 0.15);
}

.org-node-main {
    max-width: 460px;
    margin: 0 auto;
    background: #fdfaf7;
}

.org-connector {
    background: #d7c6b4;
    margin: 0 auto;
}

.org-connector-vertical {
    width: 2px;
    height: 44px;
}

.org-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    position: relative;
}

.org-team-grid::before {
    content: '';
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    top: -22px;
    height: 2px;
    background: #d7c6b4;
}

.org-team-node {
    min-height: 245px;
    position: relative;
}

.org-team-node::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 22px;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: #d7c6b4;
}

.org-note {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding: 18px 22px;
    border-radius: 18px;
    background: #f8f5f0;
    color: #6f5a46;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    text-align: center;
    word-break: keep-all;
}

.brand-cta-section {
    padding: 90px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #2c2520, #5b4736);
}

.brand-cta-section h2 {
    font-size: 2.4rem;
}

@media (max-width: 991px) {
    .brand-value-grid,
    .org-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .org-team-grid::before {
        display: none;
    }

    .org-team-node::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .brand-intro-hero {
        min-height: 48vh;
        padding: 130px 0 70px;
    }

    .brand-page-kicker {
        letter-spacing: 5px;
    }

    .brand-page-subtitle {
        font-size: 1.05rem;
    }

    .brand-value-grid,
    .org-team-grid {
        grid-template-columns: 1fr;
    }

    .brand-value-card,
    .org-node {
        padding: 24px;
    }

    .brand-cta-section h2 {
        font-size: 1.9rem;
    }
}


/* DB 연동 조직도 추가 스타일 */
.org-top-grid,
.org-headquarter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
    justify-content: center;
    gap: 18px;
}

.org-team-grid-dynamic {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.org-member-dept {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: #f4f1ec;
    color: #846a50;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.org-node-top .org-member-dept {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.org-member-position {
    color: #846a50;
    font-weight: 900;
    margin-top: -4px;
    margin-bottom: 10px;
}

.org-node-top .org-member-position,
.org-node-top .org-member-role {
    color: rgba(255, 255, 255, 0.9);
}

.org-member-role {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff8e7;
    color: #9b6a18;
    font-size: 0.84rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.org-empty-box {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 28px;
    border: 1px dashed #d7c6b4;
    border-radius: 30px;
    background: #fdfaf7;
    text-align: center;
}

.org-empty-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 22px;
    border-radius: 24px;
    background: #2c2520;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.org-empty-box h3 {
    font-weight: 900;
    color: #2c2520;
    margin-bottom: 10px;
}

.org-empty-box p {
    margin: 0;
    color: #777;
    line-height: 1.7;
    word-break: keep-all;
}

@media (max-width: 991px) {
    .org-team-grid-dynamic::before,
    .org-team-grid-dynamic .org-team-node::before {
        display: none;
    }
}


/* 쉬운 조직도: 위치 선택형 카드 레이아웃 */
.org-family-wrap {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.org-family-card {
    background: #ffffff;
    border: 1px solid #eee7de;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.055);
}

.org-family-hq {
    grid-row: span 2;
    background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
}

.org-family-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f0ebe4;
}

.org-family-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: #2c2520;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex: 0 0 auto;
}

.org-family-header h3 {
    margin: 0 0 7px;
    font-family: 'Nanum Myeongjo', serif;
    font-weight: 900;
    color: #2c2520;
    letter-spacing: -0.5px;
}

.org-family-header p {
    margin: 0;
    color: #777;
    line-height: 1.65;
    word-break: keep-all;
}

.org-slot-stack {
    display: grid;
    gap: 16px;
}

.org-slot-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.org-slot-title {
    border-radius: 18px;
    background: #f8f5f0;
    color: #6f5a46;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 16px 10px;
    min-height: 118px;
}

.org-slot-title i {
    font-size: 1.35rem;
}

.org-member-list {
    display: grid;
    gap: 12px;
}

.org-person-card {
    border: 1px solid #f0ebe4;
    border-radius: 20px;
    background: #fff;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-height: 118px;
}

.org-person-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #2c2520;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.org-person-body {
    min-width: 0;
}

.org-person-name {
    color: #2c2520;
    font-size: 1.08rem;
    font-weight: 900;
    margin-bottom: 4px;
    word-break: break-word;
}

.org-person-position {
    color: #846a50;
    font-weight: 800;
    margin-bottom: 8px;
}

.org-person-card p {
    margin: 8px 0 0;
    color: #777;
    font-size: 0.95rem;
    line-height: 1.65;
    word-break: keep-all;
}

.org-family-restaurant .org-family-icon,
.org-family-restaurant .org-person-avatar {
    background: #6f5a46;
}

.org-family-pawnshop .org-family-icon,
.org-family-pawnshop .org-person-avatar {
    background: #25324a;
}

.org-family-artshop .org-family-icon,
.org-family-artshop .org-person-avatar {
    background: #5c3d62;
}

@media (max-width: 991px) {
    .org-family-wrap {
        grid-template-columns: 1fr;
    }

    .org-family-hq {
        grid-row: auto;
    }
}

@media (max-width: 576px) {
    .org-family-card {
        padding: 22px;
        border-radius: 24px;
    }

    .org-family-header {
        flex-direction: column;
    }

    .org-slot-row {
        grid-template-columns: 1fr;
    }

    .org-slot-title {
        min-height: auto;
        flex-direction: row;
        justify-content: flex-start;
        padding: 13px 16px;
    }

    .org-person-card {
        min-height: auto;
    }
}
