body {
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 60px 0 0; /* 헤더 높이만큼 상단 패딩 추가 */
    background: #fff;
    color: #333;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}
.jp-logo {
    font-size: 35px;
    font-weight: 900;
    font-family: 'Arial Black', 'Noto Sans JP', sans-serif;
    letter-spacing: -2px;
    color: #111;
    transform: skewX(-5deg);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

nav {
    flex-shrink: 0;
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
    overflow: hidden;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

nav ul li {
    text-align: center;
}

nav ul li a {
    font-weight: bold;
    color: #006400;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #228B22;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
}
.bar {
    width: 25px;
    height: 3px;
    background-color: #006400;
    margin: 4px 0;
}

.banner-title {
    position: relative;
    width: 100%;
    height: 500px;
    background: url('../img/banner_img.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* margin-top: 60px; - body padding-top으로 대체 */
}

.banner-text h1 {
    color: #fff;
    font-size: 60px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.toptxt1, .toptxt2 {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.toptxt1 {
    margin-bottom: 10px;
}

.hero {
    background: #e6f0df;
    text-align: center;
    padding: 40px 20px;
}
.hero h2 {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1em;
    line-height: 1.6;
}

.section {
    padding: 50px 20px;
    max-width: 960px;
    margin: auto;
    text-align: center;
}
.section h2 {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.product-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.product-feature img {
    max-width: 200px;
    margin-top: 20px;
}
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.feature-left {
    flex: 1;
    min-width: 250px;
    text-align: left;
}
.feature-block {
    margin-bottom: 30px;
}

.lineup {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    padding: 20px;
}

.lineup-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lineup-item img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.lineup-item p {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}
/* 라인업 이미지에 마우스 오버 효과 */
.lineup-link img {
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    display: block;
    max-width: 150px; /* 크기 조절 가능 */
    margin: 0 auto;
}

/* 오버 시 효과 */
.lineup-link:hover img {
    transform: scale(1.05); /* 살짝 확대 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* 그림자 효과 */
    opacity: 0.9; /* 투명도 */
}
.section img {
    max-width: 100%;
    height: auto;
}

.section-button {
    display: inline-block;
    margin-top: 30px;
    background: #006400;
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
}
.section-button:hover {
    background: #228B22;
}

.related-products {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.related-products img {
    width: 100px;
}
.site-footer {
    background: #f9f9f9;
    padding: 30px 20px;
    text-align: center;
    font-size: 14px;
    color: #444;
    line-height: 1.8;
}

.site-footer .footer-top {
    margin-bottom: 10px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.site-footer .footer-info,
.site-footer .footer-links {
    margin-bottom: 5px;
}

.site-footer a {
    color: #444;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* 플로팅 광고 배너 스타일 */
.floating-ad-container {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 160px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 999;
    /* 모바일에서는 기본적으로 숨김 */
    display: none; 
}

/* 데스크톱에서만 보이도록 미디어 쿼리 설정 */
@media (min-width: 1024px) {
    .floating-ad-container {
        display: block; /* 1024px 이상에서 보임 */
    }
    /* main-container 마진 조정 (광고 배너 겹치지 않게) */
    .main-container {
        margin-right: calc(auto + 180px); /* 960px + (20px 마진 + 160px 배너 + 20px 마진) */
    }
}

/* 광고 배너 내부 스타일 */
.floating-ad-container .ad-item {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}
.floating-ad-container .ad-item:last-child {
    border-bottom: none;
}
.floating-ad-container .ad-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 5px;
}
.floating-ad-container .ad-item p {
    font-size: 0.75rem;
    line-height: 1.3;
    color: #666;
    margin-bottom: 0;
}
.floating-ad-container .ad-item a {
    color: #e60012;
    text-decoration: none;
    font-weight: 600;
}
.floating-ad-container .ad-item a:hover {
    text-decoration: underline;
}
.floating-ad-container .ad-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

/* 미디어 쿼리 (모바일) */
@media (max-width: 768px) {
    .banner-title {
        height: 300px;
    }
    .banner-title h1 {
        font-size: 36px;
        padding: 10px;
    }
    nav ul {
        display: none;
        flex-direction: column;
        background: #fff;
        position: fixed;
        top: 60px;
        right: 0;
        width: 220px;
        max-width: 90%;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        border-radius: 10px 0 0 10px;
        z-index: 1001;
    }
    nav ul.active {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
}
