.performance-section1 {
    position: relative;
    width: 100%;
    overflow: hidden;
    text-align: left;
    color: white;
}

.performance-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 핵심: cover 방식으로 배경처럼 */
    z-index: 0;
    display: block;
}

.performance-section1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.performance-section1-inner {
    position: relative; /* 텍스트가 오버레이 위로 올라오도록 */
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 160px 50px 120px;
}

.performance-title {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 24px;
    letter-spacing: -2.2px;
}

.performance-subtitle {
    font-size: 20px;
    font-weight: 500;
    opacity: 0.9;
}


.performance-section2 {
    background-color: #FFF6EC;
    padding: 100px 20px 10px;
    text-align: center;
}

.performance-section2-inner {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

/* 2) 흰 카드(wrapper) 스타일 + 위로 살짝 올려서 겹침 */
.performance-section2-card {
    position: relative;
    top: -180px; /* 겹침 높이 (디자인에 맞춰 조절) */
    margin: 0 auto; /* 가로 중앙 정렬 */
    max-width: 1440px; /* 콘텐츠 폭 제한 */
    background: #ffffff; /* 카드 배경 */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 100px 100px; /* 기존 패딩 그대로 */
    z-index: 2; /* 아래 섹션 위로 올라오도록 */
}


.performance-section2-title,
.performance-section3-title,
.performance-section4-title{
    font-size: 30px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.performance-section2-subtitle,
.performance-section3-subtitle,
.performance-section4-subtitle,
.performance-section5-subtitle {
    display: inline-block;
    background-color: #ffe478;
    color: #000;
    font-size: 20px;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 10px;
}


.sales-average-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 80px;
    flex-wrap: wrap;
}

.sales-average-box {
    padding: 30px 40px;
    border-radius: 20px;
    background-color: #fff;
    text-align: center;
    min-width: 280px;
    border: 2px solid #ddd;
}

.sales-average-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #000;
}

.sales-average-amount {
    font-size: 28px;
    font-weight: 700;
    color: #000;
}

.sales-average-diff {
    margin-top: 5px;
    font-size: 16px;
    color: red;
    font-weight: 500;
}

/* 색상 테마별 테두리 */
.sales-average-box.yellow {
    border-color: #FFD53D;
}

.sales-average-box.green {
    border-color: #41BA34;
}

.sales-average-box.orange {
    border-color: #FF7A00;
}

.performance-section3 {
    background-color: #FFF6EC;
    padding: 150px 20px 100px;
    text-align: center;
}

.performance-section3-inner {
    max-width: 1440px;
    margin: 0 auto;
}

.monthly-bar-chart {
    width: 100%;
    max-width: 1250px;
    margin: 60px auto 40px;
}

#monthlyAverageChart {
    /* 원하는 높이(px 또는 %)를 지정 */
    height: 300px;
    /* width도 필요시 지정 가능 */
    width: 100%;
}

.monthly-stats {
    display: flex;
    justify-content: center;
    /*gap: 80px;*/
    flex-wrap: wrap;
    margin-top: 50px;
}

.stat-title {
    font-size: 20px;
    font-weight: 400;
    color: #000;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 30px;
    font-weight: 600;
    color: #000;
}

.monthly-footnote {
    margin-top: 40px;
    font-size: 14px;
    color: #888;
}

/* 각 stat에 flex 비율 부여 */
.stat {
    flex: 1;
    text-align: center;
    position: relative;
}

/* 마지막 요소에는 분할선 불필요 */
.stat:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10%; /* 위 아래 여백 조정 */
    bottom: 10%;
    right: 0;
    width: 1px;
    background: #ccc; /* 선 색상 */
}


.performance-section4 {
    background-color: #fff;
    padding: 150px 20px;
}

.performance-section4-inner {
    display: flex;
    max-width: 1440px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 40px;
}

.desktop-only {display: block;}
.mobile-only {display: none;}

.donut-chart-wrap {
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    padding-top: 105px;
    display: flex;
    justify-content: center; /* 가로 중앙 정렬 */
}

.donut-chart-layer {

    position: relative;
    width: 440px;
    height: 440px;
}

.donut-chart-layer canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#donutChartBack {
    z-index: 1;
}

#donutChartFront {
    z-index: 2;
    transform: scale(1.12); /* 바깥쪽 삐져나오게 확대 */
}

.donut-label-card {
    position: absolute;
    top: 20px;
    right: -40px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    z-index: 10;
}

.donut-label-card .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #FF7A00;
    border-radius: 50%;
    margin-right: 6px;
}

.donut-label-card b {
    color: #FF7A00;
    font-size: 18px;
}

.multi-store-info {
    flex: 1;
    min-width: 320px;
    max-width: 600px;
}

.performance-section4-title {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.performance-section4-subtitle {
    background: #ffe478;
    display: inline-block;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 20px;
}

.multi-store-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;

    padding: 0; /* UL 기본 패딩 리셋 */
}

.multi-store-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.multi-store-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    max-width: 300px;
}

.multi-store-left .icon-wrap {
    background: #f0f0f0;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.multi-store-left img {
    width: 24px;
    height: 24px;
}

.multi-store-left strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.multi-store-left span {
    display: block;
    font-size: 14px;
    color: #888;
    margin-top: 4px;
}

.multi-store-right {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    border-left: 1px solid #ddd;
    padding-left: 24px;
    margin-left: 24px;
    flex: 1;
}


.performance-section5 {
    background-color: #fff;
    padding: 150px 20px 100px;
    text-align: left;
}

.performance-section5-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
    align-items: flex-start;
    justify-content: space-between;
}

.performance-section5-title {
    font-size: 30px;
    font-weight: 700;
    color: #000;
    margin-bottom: -5px;
    letter-spacing: -1px;
}

/* 왼쪽 콘텐츠: 타이틀 + 카드 */
.section5-content {
    flex: 1;
    min-width: 360px;
}

/* 카드 그리드: 2열, 마지막 카드 좌측 */
.section5-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(360px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    gap: 20px;
    width: 75%;
    align-items: center;
}

.icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon.bg-blue {
    background-color: #E9F4FF;
}

.icon.bg-green {
    background-color: #E5FFF2;
}

.icon.bg-yellow {
    background-color: #FFF7DF;
}

.icon.bg-red {
    background-color: #FEE9E9;
}

.icon.bg-purple {
    background-color: #F0EFFF;
}

.icon img {
    width: 30px;
    height: 30px;
}

.content .title {
    font-size: 18px;
    font-weight: 400;
    color: #000;
    margin-bottom: 4px;
}

.content .value {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 4px;
}

.value.txt-blue {
    color: #0053A6
}

.value.txt-green {
    color: #00A653
}

.value.txt-yellow {
    color: #A57C00
}

.value.txt-red {
    color: #BA0000
}

.value.txt-purple {
    color: #2219C7
}

.content .subtitle {
    font-size: 14px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

.section5-image {
    flex: 1;
    min-width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch; /* 부모의 align-items: stretch 활성화 */
}

.section5-image img {
    width: 100%;
    height: 100%; /* inner 높이에 맞춤 */
    object-fit: cover;
    display: block;
}