/* 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Pretendard', sans-serif;
    background-color: #fffdf8;
    color: #333;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
ul {
    list-style: none;
}

/* Header 영역 */
.header {
    background-color: #f3ede8;
    color: #5c3b1e;
    padding: 2rem 1rem 1rem;
    text-align: center;
    border-bottom: 1px solid #ddd0c6;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header h1 {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* 기본 웹 화면 스타일 */
.container nav {
    display: block;
}

/* 모바일 버전 화면 스타일 */
.mobile {
    display: none;
}
.mobile-menu-icon {
    display: block;
    position: absolute;
    top: 30px;
    left: 30px;
    color: #000000;
    background: none;
    border: none;
    cursor: pointer;
}

.header nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.header nav ul li a {
    font-size: 0.95rem;
    color: #5c3b1e;
    padding: 6px 10px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border 0.3s ease;
}
.header nav ul li a:hover {
    border-bottom: 2px solid #5c3b1e;
}

/* Bakery Sections 영역 */
.bakery-section {
    padding: 60px 5% 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.bakery-section article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 30px;
}

.layout-row {
    flex-direction: row;
}
.layout-row-reverse {
    flex-direction: row-reverse;
}
.layout-column {
    flex-direction: column;
}
.layout-column-reverse {
    flex-direction: column-reverse;
}

.img-item {
    flex: 1;
}

.img-item img {
    max-height: 500px; /* 또는 250px 등 원하는 크기로 조정 */
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.bakery-section article > div:last-child {
    flex: 1;
    text-align: center;
    padding: 0 10px;
    max-width: 480px;
    margin: 0 auto;
}

article h2 {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #3d2b1f;
}
article p,
article span {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: #4d4d4d;
}
article span {
    color: #c0292b;
    font-weight: bold;
}

/* Fade-up animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer 영역 */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}
.footer ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.footer p {
    font-size: 0.9rem;
}

/* mobile 메뉴 */
.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #f4f4f4;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 100;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid #ddd;
}

.mobile-nav ul li a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: #333;
}

.mobile-nav ul li a:hover {
    background-color: #ddd;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 50;
}

/* 반응형 영역 */
@media (max-width: 1024px) {
    .bakery-section article {
        flex-direction: column !important;
        gap: 20px;
    }
    .img-item,
    .bakery-section article > div:last-child {
        width: 100%;
    }
    .container nav {
        display: none; /* 웹 네비게이션 숨기기 */
    }

    .mobile {
        display: block; /* 모바일 메뉴 활성화 */
    }
    .mobile nav {
        display: none;
    }
    .mobile-menu-icon {
        display: block;
    }

    .container nav {
        display: none;
    }
}
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.6rem;
    }
    .header nav ul {
        flex-direction: column;
        gap: 10px;
    }
}
@media (max-width: 480px) {
    article h2 {
        font-size: 1.3rem;
    }
    article p {
        font-size: 0.95rem;
    }
    .footer p {
        font-size: 0.8rem;
    }
}
