/* BASIC css start */
@import url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroB.woff');
@import url('https://webfontworld.github.io/andromeda/AndromedaGothic.css');

@font-face {
    font-family: 'SBAggroB';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroB.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: white;
    color: #4a3f35;
    line-height: 1.6;
}
/* 유의사항 */
.notice-wrap {
    margin: 40px auto 0;
    max-width: 800px;
}

.notice-trigger {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notice-trigger:hover {
}

.notice-icon {
    width: 18px;
    height: 18px;
    background: #666;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 8px;
}

.notice-text {
    font-size: 14px;
    color: #666;
    flex: 1;
}

.arrow-icon {
    color: #666;
    transition: transform 0.3s ease;
}

.notice-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.notice-inner {
    padding: 20px;
}

.notice-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.notice-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.notice-desc:last-child {
    margin-bottom: 0;
}

/* 활성화 상태 스타일 */
.notice-trigger.active {
}

.notice-trigger.active .notice-icon {
    background: #333;
}

@media screen and (max-width: 768px) {
    .notice-wrap {
        margin: 30px 20px 0;
    }
    
    .notice-trigger {
        padding: 12px 15px;
    }
    
    .notice-inner {
        padding: 15px;
    }
}

/* 타이틀 폰트 적용 */
.main-title,
.sub-title,
.question-title,
.result-title,
.result-keyword,
.child-name,
.question-text {
    font-family: 'SBAggroB';
    transform: rotate(0.04deg);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.test-container {
    background-color: #f9f5f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(74, 63, 53, 0.1);
    min-height: 800px;
    display: flex;
    flex-direction: column;
    margin: 20px 0;
}

.intro-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.intro-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.sub-title {
    font-size: 24px;
    color: #8b7355;
    margin-bottom: 10px;
    font-weight: 500;
}

.main-title {
    font-size: 36px;
    color: #4a3f35;
    margin-bottom: 30px;
    font-weight: 700;
}

.intro-image {
    margin: 30px 0;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.name-input-container {
    margin: 30px 0;
}

#childName {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0d6c8;
    border-radius: 12px;
    font-size: 18px;
    text-align: center;
    transition: all 0.3s ease;
}

#childName:focus {
    outline: none;
    border-color: #8b7355;
}

.start-button {
    width: 100%;
    padding: 15px;
    background-color: #8b7355;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-button:hover {
    background-color: #6b5a45;
}

.progress-bar {
    height: 6px;
    background-color: #e0d6c8;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #8b7355;
    width: 0%;
    transition: width 0.3s ease;
}

.question-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
}

.question-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
}

.question-title {
    font-size: 20px;
    color: #4a3f35;
    font-weight: 700;
    margin-bottom: 20px;
}

.question-text {
    font-size: 25px;
    line-height: 1.6;
    font-weight: 500;
    margin: 0;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.option {
    background-color: white;
    padding: 15px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.option:hover {
    color: white;
    background-color: #6b5a45;
}

.option.selected {
    color: white;
    background-color: #8b7355;
}

.result-container {
    text-align: center;
    padding: 30px 0;
}

.result-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(74, 63, 53, 0.1);
}

.child-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

.result-title {
    font-size: 48px;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

.result-keyword {
    display: block;
    font-size: 24px;
    color: #8b7355;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.result-image {
    text-align: center;
}

.result-description {
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* 특징 그래프 스타일 */
.result-traits {
    margin-bottom: 30px;
    padding: 0;
}

.result-traits h3 {
    font-size: 24px;
    color: #4a3f35;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.traits-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.traits-list li {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
}

.trait-label {
    flex: 0 0 70px;
    text-align: left;
}

.trait-bar-container {
    flex: 1;
    height: 12px;
    background: #f0e6d9;
    border-radius: 6px;
    overflow: hidden;
}

.trait-bar {
    height: 100%;
    background: #8b7355;
    border-radius: 6px;
    transition: width 0.8s ease;
}

/* 성향별 타이틀 색상 */
.result-card[data-type="A"] .result-title {
    color: #6d9f53;
}

.result-card[data-type="B"] .result-title {
    color: #e06944;
}

.result-card[data-type="C"] .result-title {
    color: #ff8c00;
}

.result-card[data-type="D"] .result-title {
    color: #e78053;
}

.coupon-section {
    margin-top: 30px;
}

.coupon-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #333;
}

.coupon-button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.coupon-button:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

/* 버튼 스타일 */
.btn-view-items {
    width: 100%;
    padding: 15px;
    background: #8b7355;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-view-items:hover {
    background: #6b5a45;
}

.btn-retake {
    width: 100%;
    padding: 15px;
    background: white;
    color: #8b7355;
    border: 2px solid #8b7355;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-retake:hover {
    background: #f9f5f0;
}

/* 공유 버튼 스타일 */
.share-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-share-icon {
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.btn-share-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 추천 섹션 스타일 */
.recommendation-section {
    margin-top: 40px;
    border-top: 1px solid #e0d6c8;
    padding-top: 40px;
}

.action-buttons {
    margin-top: 40px;
    border-top: 1px solid #e0d6c8;
    padding-top: 40px;
}

.coupon-section {
    margin-bottom: 30px;
}

.coupon-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #4a3f35;
}

.coupon-image {
    max-width: 100%;
    height: auto;
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .test-container {
        padding: 20px;
        min-height: 700px;
    }
    
    .sub-title {
        font-size: 20px;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    .option {
        padding: 15px;
        font-size: 16px;
    }
    
    .question-content {
        min-height: 500px;
        gap: 30px;
    }
    
    .btn-view-items, .btn-retake {
        font-size: 16px;
        padding: 12px;
    }
    
    .btn-share-icon {
        width: 40px;
        height: 40px;
    }
}

/* 공통 스타일 */
.page-content {
    width: 100%;
    margin: 0 auto;
}

.page-content > * {
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
}

/* 섹션 공통 스타일 */
.section {
    margin: 0;
    padding: 60px 0;
    text-align: center;
    position: relative;
    scroll-margin-top: 52px;
}

.section:not(.main-visual) {
    border-bottom: 1px solid #eee;
}

/* 섹션별 배경색 */
.benefits {
    background-color: white;
}

.time-sale {
    background-color: #fffdf9;
}

.ranking {
    background-color: white;
}

.first-purchase {
    background-color: #fffdf9;
}

.personality {
    background-color: white;
}

.gift {
    background-color: #fffdf9;
}

/* 섹션 내부 여백 조정 */
.benefit-wrap,
.time-sale .sale-sections,
.ranking .ranking-list,
.first-purchase .benefit-list,
.personality .content-wrap,
.gift .content-wrap {
    max-width: 1200px;
    margin: 40px auto;0px;
    padding: 0 40px;
}

/* 섹션 타이틀 스타일 수정 */
.section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
}
.section p {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}

/* 반응형 대응 */
@media screen and (max-width: 768px) {
    .section {
        padding: 40px 0;
        scroll-margin-top: 48px;
    }

    .section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .section-nav {
        height: 48px;
    }

    .section-nav ul {
        width: max-content;
        padding: 0 20px;
    }

    .section-nav li {
        flex: 0 0 auto;
    }

    .ranking-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 섹션 네비게이션 */
.section-nav {
    border-bottom: 1px solid #eee;
    background: #fff;
    margin: 0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 52px;
}

.section-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1200px;
    height: 100%;
}

.section-nav li {
    flex: 1;
    max-width: 200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    color: #666;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    height: 100%;
    width: 100%;
}

.section-nav li.active a {
    color: #fe6529;
    font-weight: 700;
}

.section-nav li.active a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fe6529;
}

/* 메인 비주얼 */
.main-visual {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
    scroll-margin-top: 0;
}

.main-visual .visual-image {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
}

.main-visual .visual-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.main-visual .visual-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 1;
}

.main-visual .visual-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.main-visual .visual-content p {
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 쿠폰 혜택 */
.benefit-wrap {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 40px;
    padding: 0 15px;
    flex-wrap: nowrap;
    justify-content: center;
}

.benefit-box {
    width: 500px;
    padding: 20px;
    background: #60b0c9;
    border-radius: 10px;
    color: white;
}

.coupon-info {
    text-align: left;
}

.coupon-info strong {
    display: block;
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: normal;
}

.coupon-info .price {
    font-size: 22px;
    font-weight: 700;
    margin: 5px 0;
    color: white;
}

.coupon-pack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

.coupon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #60b0c9;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.coupon-item .discount {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: white;
    margin-bottom: 0;
}

.coupon-item .condition {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

.button-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.button-wrap .button {
    background: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
    min-width: auto;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.button-wrap .button:hover {
    background: none;
    color: white;
}


/* 타임세일 */
.timer-wrap {
    margin: 20px 0 30px;
}

#saleTimer {
    font-size: 20px;
    font-weight: 500;
    color: #666;
    margin: 20px 0 30px;
}

#saleTimer span {
    color: #fd6526;
    font-size: 38px;
    font-weight: 700;
    margin: 0 3px;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 30px;
}

.product-item {
    flex: 0 1 280px;
    position: relative;
}

.product-image {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    text-align: center;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}
.product-info p3{
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}
.original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.sale-price {
    font-size: 22px;
    font-weight: 700;
    color: #fd6526;
    margin-bottom: 15px;
}

.product-info .button {
    display: inline-block;
    background: #393939;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.product-info .button:hover {
    background: #222222;
}

@media screen and (max-width: 768px) {
    .product-list {
        gap: 30px;
        padding: 0 20px;
    }
    
    .product-item {
        flex: 0 1 45%;
    }
    
    .product-info h3 {
        font-size: 18px;
    }
}
   
@media screen and (max-width: 480px) {
    .product-item {
        flex: 0 1 100%;
    }
}

/* 베스트 랭킹 */
.ranking-list {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px;
}

.ranking-item {
    position: relative;
    width: 100%;
}

.rank-number {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    height: 50px;
    background: #60b0c9;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    z-index: 1;
}

.ranking-item .product-image {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.ranking-item .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-item .product-info {
    text-align: center;
    padding: 0;
}

.ranking-item .product-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

@media screen and (max-width: 768px) {
    .ranking-list {
        gap: 30px;
        padding: 0 20px;
    }
    
    .ranking-item {
        flex: 0 1 45%;
    }
    
    .rank-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .ranking-item .product-info h3 {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .ranking-item {
        flex: 0 1 100%;
    }
}

/* 첫구매 혜택 */
.first-purchase {
    background-color: #fffdf9;
}

.first-purchase-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.first-purchase-products .product-item {
    position: relative;
    width: 100%;
}

.first-purchase-products .product-image {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.first-purchase-products .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.first-purchase-products .product-info {
    text-align: center;
    padding: 0;
}

.first-purchase-products .product-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

.first-purchase .button-wrap {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.first-purchase .button {
    display: inline-block;
    background: #393939;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
    min-width: 200px;
}

.first-purchase .button.welcome-deal {
    background: #fff;
    color: #393939;
    border: 2px solid #393939;
}

.first-purchase .button:hover {
    background: #222222;
}

.first-purchase .button.welcome-deal:hover {
    background: #f5f5f5;
}

@media screen and (max-width: 768px) {
    .first-purchase-products {
        gap: 30px;
        padding: 0 20px;
    }
    
    .first-purchase-products .product-info h3 {
        font-size: 18px;
    }

    .first-purchase .button-wrap {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .first-purchase .button {
        width: 100%;
        max-width: 280px;
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .first-purchase-products {
        grid-template-columns: 1fr;
    }
}

/* 친구추천 이벤트 */
.recommend-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.recommend-box {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
}

.notice {
    font-size: 14px;
    color: #999;
    margin-top: 20px;
}

/* 선물하기 */
.gift {
    padding: 60px 0;
}

/* 성향 테스트 */
.personality {
    padding: 80px 0;
}

.personality .section-desc {
    font-size: 18px;
    color: #666;
    margin: 20px 0 40px;
}

.personality .button-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.personality .test-button {
    display: inline-block;
    background: #393939;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.personality .test-button:hover {
    background: #222222;
}

.gift p {
    font-size: 18px;
    color: #666;
    margin-top: 20px;
}

.first-purchase .button-wrap {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.first-purchase .button {
    display: inline-block;
    background: #393939;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.first-purchase .button.welcome-deal {
    background: #fff;
    color: #393939;
    border: 2px solid #393939;
}

.first-purchase .button:hover {
    background: #222222;
}

.first-purchase .button.welcome-deal:hover {
    background: #f5f5f5;
}

.gift .button-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.gift .button {
    display: inline-block;
    background: #393939;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.gift .button:hover {
    background: #222222;
}

/* 반응형 대응 */
@media screen and (max-width: 768px) {
    .first-purchase .button-wrap {
        flex-direction: column;
        gap: 10px;
    }
    
    .first-purchase .button,
    .gift .button {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    .timer-wrap {
        margin: 15px 0 25px;
    }

    #saleTimer {
        font-size: 16px;
        margin: 15px 0 25px;
    }

    #saleTimer span {
        font-size: 28px;
    }
}
/* BASIC css end */

