/*공통스타일*/
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

header {
    display: flex;
    background-color: #005bac; /* 파란색 전체 채우기 */
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* 패딩 조정 */
}

.logo-text {
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: 1.8em; /* 로고 폰트 크기 조정 */
    padding: 0; /* 헤더 패딩으로 인해 여기서는 0으로 설정 */
    text-decoration: none;
}

nav {
    display: flex;
    justify-content: center;
    background-color: #FFFFFF;
    flex-wrap: wrap;
}

nav a {
    color: #005bac;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-weight: bold;
    border-right: 1px solid #005bac;
}

nav a:last-child {
    border-right: none;
}

nav a:hover {
    background-color: #0069B0;
    color: white;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* 이미지 비율 유지하며 공간 채우기 */
}

.content-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 4px;
    background-color: white;
    border-radius: 2px;
}

footer {
    background-color: #0B9444;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
}

/*index섹션*/
.main-title {
    position: relative;
    background-image: url('../img/top_img.png');
    background-size: cover;
    background-position: center;
    height: 250px; /* 기본 높이 유지 */
    overflow: hidden;
}

.main-title-text {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: 4.5em;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.section-title {
    font-size: 40px;
    font-weight: bold;
    color: #2e8b00;
    /* 녹색 */
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
}

.product-container {
    display: flex;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.product {
    max-width: 220px;
}

.product img {
    width: 100%;
    height: auto; /* 비율 유지를 위해 auto로 변경 */
    object-fit: contain; /* 이미지가 찌그러지지 않고 비율을 유지하도록 */
}

.product-name {
    margin-top: 20px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #005bac;
    text-align: center;
}

.button-wrap {
    margin: 50px 0 50px;
    text-align: center;
    text-decoration: none;
}

.btn {
    background-color: #0033cc;
    color: white;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 40px;
    cursor: pointer;
}

a.btn {
    text-decoration: none;
}

.btn:hover {
    background-color: #0022aa;
}

.sharopas-section {
    background-color: #f5fdf9;
    padding: 60px 20px;
}

.sharopas-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.sharopas-title {
    font-size: 40px;
    color: #2c7a7b;
    margin-bottom: 20px;
}

.sharopas-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

.sharopas-image {
    margin-top: 30px;
    max-width: 350px;
    border-radius: 12px;
}

.section-text {
    font-size: 1.5em;
    color: #333;
    font-weight: bold;
}

.sharonpas-section {
    background-color: #fffff;
    padding: 40px 20px;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
}

.sharonpas-section h2 {
    font-size: 40px;
    color: #2a6f48;
    margin-bottom: 20px;
}

.sharonpas-section .price-info {
    font-size: 18px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

.sharonpas-section .desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.sharonpas-section .detail-button:hover {
    background-color: #1e5034;
}

.recommend-section {
    background-color: #f0fdf4;
    /* 연한 연두색 (샤론파스 느낌) */
    padding: 3rem 1rem;
}

.recommend-container {
    max-width: 768px;
    margin: 0 auto;
    text-align: center;
}

.recommend-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #0033cc;
    margin-bottom: 2rem;
}

.recommend-list {
    list-style: none;
    padding: 0;
    text-align: center;
    font-size: 1.125rem;
    color: #1f2937;
    /* 중간 회색 */
    line-height: 2;
}

/* 샤론파스 성분 및 효과 섹션 스타일 */
.ingredients-effects-section {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.ingredients-effects-section h2 {
    font-size: 40px;
    color: #2a6f48;
    margin-bottom: 20px;
}

.ingredients-effects-content {
    max-width: 800px;
    margin: 0 auto;
}

.ingredients-effects-heading {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.ingredients-effects-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.ingredients-effects-list {
    list-style: none;
    /* 기본 리스트 마커 제거 */
    padding: 0;
    margin: 20px 0;
    text-align: left;
    display: inline-block;
    /* 리스트를 중앙 정렬하기 위해 */
}

.ingredients-effects-list li {
    background-color: #fff;
    margin-bottom: 10px;
    padding: 12px 15px;
    border-left: 5px solid #007bff;
    /* 강조를 위한 왼쪽 테두리 */
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: 1em;
    color: #444;
}

.ingredients-effects-list li strong {
    color: #0056b3;
    /* 성분명 강조 색상 */
}

/*info섹션*/
.lineup-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.salonpas-lineup {
    padding: 60px 20px;
    background-color: #fff;
    font-family: 'Noto Sans KR', sans-serif;
}

.product-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    width: 200px;
    padding: 16px;
    background-color: #fafafa;
}

.product-card img {
    max-width: 100%;
    height: auto;
}

.product-title {
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    color: #005bac;
}

.product-details {
    max-width: 800px;
    margin: 0 auto;
}

.detail-block {
    margin-bottom: 50px;
    border-top: 2px solid #007bff;
}

.detail-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;

}

.detail-block p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: center;
}


/*price섹션*/
.product2-section {
    background-color: #f5faff;
    padding: 40px 0;
}

.product2-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.product2-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 40px;
}

.product2-card 카베진 직구 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #007bff;
}

.product2-card p {
    margin: 10px 0;
    line-height: 1.6;
}

.price-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    font-size: 14px;
}

.price-table th,
.price-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.price-table thead th {
    background-color: #007bff;
    color: white;
}


/*qna섹션*/
.faq-section {
    background-color: #f0fdf9;
    padding: 60px 20px;
    font-family: 'Pretendard', sans-serif;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: #009879;
    margin-bottom: 40px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background-color: #ffffff;
    border-left: 5px solid #009879;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: #009879;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 16px;
    color: #4b5563;
    /* Tailwind gray-700 */
    line-height: 1.6;
}

/*recomend섹션*/
.recommend-section {
    background-color: #e6f6f1;
    padding: 60px 20px;
    font-family: 'Pretendard', sans-serif;
}

.recommend-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.recommend-title {
    font-size: 40px;
    color: #009879;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.4;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.recommend-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s;
}

.recommend-card:hover {
    transform: translateY(-4px);
}

.recommend-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.recommend-text {
    padding: 16px;
    font-size: 4-px;
    color: #333;
    font-weight: 500;
}

/*shop섹션*/
* p {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
}

.buy-section {
    background-color: #F1F1F1;
    padding: 3rem 1rem;
    text-align: center;
}

.buy-section h2 {
    font-size: 40px;
    color: #005bac;
    border-radius: 12px;
}

.buy-container {
    max-width: 1000px;
    margin: 0 auto;
}

.buy-channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.channel-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    width: 280px;
    text-align: center;
}

.channel-card img {
    max-width: 150px;
    margin-bottom: 15px;
}

.notes-section {
    background-color: #f0fdf4;
    /* 연한 연두색 (샤론파스 느낌) */
    padding: 3rem 1rem;
}

.notes-channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 0px;
}

.buy-notes {
    margin-top: 0px;
    text-align: left;
}

.buy-notes h4 {
    text-align: center;
    font-size: 40px;
    color: #0B9444;
}

.buy-notes ul {
    list-style: disc;
    padding-left: 20px;
}

/* 기존 미디어 쿼리 수정 및 추가 */
@media (max-width: 768px) {
    header {
        padding: 8px 15px; /* 헤더 패딩 줄이기 */
    }

    .logo-text {
        font-size: 1.4em; /* 로고 폰트 크기 줄이기 */
    }

    .main-title {
        height: 200px; /* 배너 높이 줄이기 */
    }

    .main-title-text {
        font-size: 3.5em; /* 배너 텍스트 크기 줄이기 */
        top: 30%; /* 텍스트 위치 조정 */
    }

    .section-title {
        font-size: 35px;
    }

    .product-container {
        gap: 50px;
    }

    .product {
        max-width: 180px;
    }

    .product-name {
        font-size: 1.2rem;
    }

    .btn {
        padding: 12px 18px;
        font-size: 1.1rem;
    }

    .sharopas-title,
    .faq-title,
    .recommend-title,
    .buy-section h2,
    .buy-notes h4 {
        font-size: 35px;
    }

    .sharopas-description {
        font-size: 1em;
    }

    .product2-card h2 {
        font-size: 1.3rem;
    }

    .faq-question {
        font-size: 17px;
    }

    .faq-answer {
        font-size: 15px;
    }

    .recommend-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .recommend-img {
        height: 240px;
    }

    .channel-card {
        width: 250px;
    }
}

/* 햄버거 메뉴 및 이미지 비율 문제를 해결하기 위한 수정 */
@media (max-width: 600px) {
    .product img {
        width: 100%;
        height: auto; /* 고정된 높이를 제거하고 비율 유지 */
        object-fit: contain;
    }

    .product-card {
        width: 100px; /* 적절한 값으로 재조정 */
        height: auto; /* 비율 유지를 위해 auto로 변경 */
    }

    .product-card img {
      height: 120px;
      object-fit: contain;
    }

    .product-title {
        font-size: 13px;
    }

    .section-title {
        font-size: 30px; /* 더 줄이기 */
    }

    .main-title {
        height: 150px; /* 모바일에서 배너 높이 더 줄이기 */
    }

    .main-title-text {
        font-size: 2.5em; /* 모바일에서 배너 텍스트 크기 더 줄이기 */
        top: 50%; /* 중앙으로 이동 */
        transform: translate(-50%, -50%); /* 정확한 중앙 정렬 */
    }

    .menu-toggle {
        display: flex; /* 햄버거 메뉴를 항상 보이도록 설정 */
    }

    nav.menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        text-align: left; /* 메뉴 텍스트 정렬 */
    }

    nav.menu.show {
        display: flex;
    }

    nav.menu a {
        padding: 15px;
        color: #005bac;
        font-weight: bold;
        border-bottom: 0px solid #eee;
    }

    nav.menu a:hover {
        background-color: #005bac;
        color: white;
    }

    /* 샤론파스 직구 섹션 모바일 조정 */
    .sharonpas-direct-buy-section h1 {
        font-size: 1.8em;
        margin-bottom: 8px;
    }

    .sharonpas-direct-buy-section h2 {
        font-size: 1.2em;
        margin-bottom: 20px;
    }

    .link-grid {
        grid-template-columns: 1fr; /* 모바일에서 한 줄에 하나씩 */
        gap: 10px;
    }

    .direct-buy-link {
        font-size: 1em;
        min-height: 50px;
        padding: 10px;
    }

    .sharopas-title,
    .faq-title,
    .recommend-title,
    .buy-section h2,
    .buy-notes h4 {
        font-size: 30px;
    }

    .sharopas-description {
        font-size: 0.9em;
    }

    .product2-card h2 {
        font-size: 1.2rem;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq-answer {
        font-size: 14px;
    }

    .recommend-grid {
        grid-template-columns: 1fr;
    }

    .recommend-img {
        height: 200px;
        object-fit: cover;
    }

    .channel-card {
        width: 100%; /* 모바일에서 카드 너비 100% */
    }
}

@media (max-width: 480px) {
    header {
        padding: 5px 10px;
    }

    .logo-text {
        font-size: 1.2em;
    }

    .main-title {
        height: 120px;
    }

    .main-title-text {
        font-size: 2em;
    }
}