/* Base font and color settings */
body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #FFFFFF;
    color: #333333;
    line-height: 1.6;
    padding-bottom: 0;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Header style */
.header {
    background-color: transparent;
    color: #333333;
    padding: 20px 40px;
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* Header style change on scroll */
.header.scrolled {
    background-color: #152678;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #799add;
}
 
.header.scrolled .site-logo-text {
    color: #ffffff;
}

.site-logo {
    max-height: 50px;
    width: auto;
}

/* Desktop navigation style */
.main-nav {
    display: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav .nav-link {
    display: block;
    padding: 5px 0;
    color: #333333;
    font-weight: 600;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: #799add;
    border-radius: 3px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-nav .nav-link:hover::after,
.main-nav .active::after {
    transform: scaleX(1);
}

.header.scrolled .main-nav .nav-link {
    color: #ffffff;
}
 
.header.scrolled .main-nav .nav-link:hover::after {
    background-color: #799add;
}

/* Hamburger menu button */
.hamburger-button {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: background-color 0.3s ease;
}

.hamburger-button div {
    width: 100%;
    height: 3px;
    background-color: #333333;
    border-radius: 2px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

.hamburger-button.open div:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger-button.open div:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-button.open div:nth-child(3) {
    transform: rotate(-45deg);
}

/* Hamburger menu color change on scroll */
.header.scrolled .hamburger-button div {
    background-color: #ffffff;
}

/* Mobile navigation overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Mobile navigation menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 250px;
    height: 100%;
    background-color: #152678;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 0;
    color: white;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-header {
    padding: 20px;
    background-color: #152678;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.mobile-nav ul {
    flex-direction: column;
    padding: 20px;
    list-style: none;
}

.mobile-nav .nav-link {
    padding: 15px 10px;
    border-bottom: 1px solid #799add;
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.mobile-nav .active {
    background-color: #799add;
    color: #ffffff;
    font-weight: 600;
}

.mobile-nav .nav-link:last-child {
    border-bottom: none;
}

.mobile-nav .nav-link:hover {
    background-color: #799add;
    color: #ffffff;
}

/* Main Hero section */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #eeeeee 100%);
    color: #152678;
    text-align: center;
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    transition: background 0.5s ease, color 0.5s ease;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/bg_ohta.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 0;
}

.hero-section h1 {
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.6rem;
    font-weight: 500;
    color: #4B5563;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    background-color: #152678;
    color: #FFFFFF;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 30px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: #799add;
    color: #FFFFFF;
}
 
/* Alternating Background Colors */
.bg-white { background-color: #FFFFFF; color: #152678; }
.bg-gray { background-color: #EEEEEE; color: #1A1A1A; }
.bg-gray h2, .bg-gray h3 { color: #152678; }
.bg-gray p { color: #333333; }
.bg-gray .recommended-section-heading-en { color: #799add; }
.bg-gray .recommended-list li { color: #333333; }
.bg-gray .recommended-list li .check-icon svg path { fill: #152678; }


.feature-grid,
.ingredients-grid,
.lineup-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}
 
.feature-item,
.product-item {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease, color 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-item img {
    width: auto;
    max-height: 200px;
    object-fit: contain;
}

.product-item img {
    max-width: 350px;
    height: auto;
    margin-bottom: 20px;
}

.feature-item:hover,
.product-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.feature-item h3,
.ingredient-item h3,
.product-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #152678;
    margin-bottom: 10px;
    transition: color 0.5s ease;
}

.feature-item p,
.ingredient-item p,
.product-item p {
    font-size: 1rem;
    color: #4B5563;
    line-height: 1.6;
    transition: color 0.5s ease;
}

/* Common section title style */
.section-heading {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    padding-top: 20px;
    position: relative;
    color: inherit;
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background-color: #799add;
    border-radius: 3px;
    transition: background-color 0.5s ease;
}

.section-text-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Other section padding adjustments */
section:not(.hero-section) {
    padding: 60px 40px;
}

.recommended-section-heading-en {
    font-size: 3.5rem;
    font-weight: 900;
    color: #799add;
    margin-bottom: 10px;
    line-height: 1;
    transition: color 0.5s ease;
    text-align: center; /* Ensures this title is also centered */
}

.recommended-section .section-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #152678;
    margin-bottom: 30px;
    padding-top: 0;
    transition: color 0.5s ease;
    text-align: center; /* Explicitly set to center */
}

.recommended-section .section-heading::after {
    background-color: #799add;
}

/* Recommended list style */
.recommended-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; /* Keep list left-aligned */
    display: inline-block; /* Center the entire list block */
}

.recommended-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #333333;
    transition: color 0.5s ease;
}

/* Fix checkmark and text separation on mobile */
.recommended-list li strong {
    display: inline;
}

.recommended-list li span {
    display: inline-flex;
    align-items: center;
}

.recommended-list li .check-icon {
    font-size: 1.2rem;
    color: #799add;
    margin-right: 10px;
    line-height: 1.5;
    flex-shrink: 0;
    transition: color 0.5s ease;
}

.recommended-list li strong {
    font-weight: 700;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, #ffffff 0%, #eeeeee 100%);
    color: #152678;
    padding: 60px 40px;
    text-align: center;
    transition: background 0.5s ease, color 0.5s ease;
}

.cta-section .section-heading {
    color: #152678;
    padding-top: 0;
    transition: color 0.5s ease;
}

.cta-section .section-heading::after {
    background-color: #799add;
}

/* Footer style */
footer {
    text-align: center;
    padding: 25px 40px;
    color: #D4DEEA;
    font-size: 0.85rem;
    border-top: 1px solid #D4DEEA;
    margin-top: 0;
    background-color: #FFFFFF;
    position: relative;
    z-index: 998;
    transition: background-color 0.5s ease, border-top 0.5s ease, color 0.5s ease;
}

/* Media query adjustments */
@media (max-width: 767px) {
    .header {
        padding: 15px 20px;
    }

    .hero-section {
        padding: 80px 20px;
        padding-top: 80px;
    }
    
    /* FIX: 모바일에서 히어로 섹션 배경 이미지 변경 */
    .hero-section::before {
        background-image: url('../image/bg_mohta.png');
        background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
        opacity: 0.5;
    }

    .hero-section h1 {
        font-size: 3.2rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .section-heading {
        font-size: 2.2rem;
    }

    /* 모바일 상품 라인업 스타일 재정의 */
    .lineup-grid {
        display: flex;
        flex-direction: column;
        align-items: center; /* 아이템들을 중앙에 정렬 */
        gap: 20px;
        margin-top: 40px;
        width: 100%;
        box-sizing: border-box; 
    }
    
    .product-item {
        width: 100%; /* 아이템 너비를 100%로 설정하여 1열로 만듦 */
        max-width: 350px;
        flex-shrink: 0; /* 아이템이 절대 줄어들지 않도록 설정 */
        display: flex; /* 내부 요소 정렬을 위해 추가 */
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-item img {
        width: 100%; /* 이미지 너비를 아이템에 맞게 100%로 설정 */
        height: auto;
        max-width: 350px; /* 이미지 최대 너비 제한 */
    }

    .recommended-section-heading-en {
        font-size: 2.5rem;
    }

    .recommended-section .section-heading {
        font-size: 1.8rem;
    }

    .recommended-list {
        max-width: 90%;
    }

    .recommended-list li {
        font-size: 1.05rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .recommended-list li .check-icon {
        font-size: 0.95rem;
        margin-right: 8px;
        padding-top: 2px;
    }

    .recommended-section .section-text-container {
        max-width: 90%;
    }
    
    /* 상품 라인업 섹션의 애니메이션 비활성화 */
    .lineup-section.fade-in-on-scroll {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }

    /* Always show hamburger menu on mobile */
    .main-nav {
        display: none;
    }

    .hamburger-button {
        display: flex;
    }
}

@media (min-width: 768px) {
    .header {
        padding: 20px 40px;
    }

    /* On desktop, keep menu regardless of scroll */
    .main-nav {
        display: flex;
    }

    .hamburger-button {
        display: none;
    }

    .feature-grid,
    .ingredients-grid,
    .lineup-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    .lineup-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
    .product-item {
      width: auto;
      max-width: none;
    }
    .features-section .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
}
 
/* New scroll animation classes */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}
/* ======================================================= */
/* 💡 [Apple Style] 오타이산 최적화 CTA & PC 토스트 */
/* ======================================================= */

/* [공통] 모바일 플로팅 카드 */
#fixedCtaWrap.fixed-bottom-cta-wrap {
    position: fixed !important;
    bottom: 20px !important;
    left: 15px !important;
    right: 15px !important;
    width: calc(100% - 30px) !important;
    height: 75px !important;
    z-index: 10000 !important;
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    display: none; /* JS 제어 */
    align-items: center !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    transform: translateY(120%) !important;
    opacity: 0 !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#fixedCtaWrap.fixed-bottom-cta-wrap.visible {
    display: flex !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto;
}

/* [PC 전용] 스마트 토스트 팝업 */
.toast-popup {
    position: fixed !important; 
    bottom: 30px !important;
    right: 30px !important;
    width: 300px !important;
    height: auto !important;
    z-index: 100000 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 20px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-popup.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* 내부 공통 레이아웃 */
.product-image-box {
    width: 50px !important;
    height: 50px !important;
    background-color: #fff !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;    /* 수직 중앙 */
    justify-content: center !important; /* 수평 중앙 */
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.product-cta-image {
    max-width: 90% !important;
    max-height: 90% !important;
    object-fit: contain !important;
}

.text-info-box {
    flex-grow: 1 !important;
    padding: 0 12px !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    min-width: 0 !important;
}

.cta-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.cta-subtitle {
    font-size: 12px !important;
    color: #1a5196 !important; /* 오타이산 블루 포인트 */
    font-weight: 500 !important;
    margin-top: 3px !important;
    white-space: nowrap !important;
}

/* 모바일 전용 캡슐 버튼 */
.fixed-cta-button-new {
    background-color: #1d1d1f !important;
    color: #fff !important;
    padding: 0 15px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    width: 85px !important;
}

.cta-subtitle::after {
    content: ' →';
    transition: transform 0.3s ease;
}

.toast-popup:hover .cta-subtitle::after {
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .toast-popup { display: none !important; }
}
@media (min-width: 768px) {
    #fixedCtaWrap.fixed-bottom-cta-wrap { display: none !important; }
}