/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本スタイル */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f3f3f3;
}

/* ヘッダー */
header {
    background: #232f3e;
    color: white;
    padding: 0;
}

.header-top {
    background: #131921;
    padding: 0.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff9900;
    margin-right: 2rem;
}

.search-container {
    flex: 1;
    display: flex;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-button {
    background: #febd69;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.header-link:hover {
    color: #ff9900;
}

.cart-icon {
    font-size: 1.2rem;
    color: #ff9900;
}

/* ナビゲーション */
.nav {
    background: #232f3e;
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.nav ul li a:hover {
    color: #ff9900;
}

/* メインコンテンツ */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: #ff9900;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s;
    font-weight: bold;
}

.cta-button:hover {
    background: #e68900;
}

/* カテゴリセクション */
.categories-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #232f3e;
    border-bottom: 2px solid #ff9900;
    padding-bottom: 0.5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.category-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ff9900;
}

/* 商品セクション */
.products-section {
    margin-bottom: 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 1rem;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #232f3e;
    font-weight: bold;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #B12704;
    margin-bottom: 0.5rem;
}

.product-rating {
    color: #ff9900;
    margin-bottom: 1rem;
}

.add-to-cart {
    background: #ffd814;
    color: #333;
    border: 1px solid #FCD200;
    padding: 0.8rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
    font-weight: bold;
}

.add-to-cart:hover {
    background: #f7ca00;
}

.buy-now {
    background: #ff9900;
    color: white;
    border: 1px solid #ff9900;
    padding: 0.8rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
    transition: background 0.3s;
    font-weight: bold;
}

.buy-now:hover {
    background: #e68900;
}

/* フッター */
footer {
    background: #232f3e;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ff9900;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: #ff9900;
}

.footer-bottom {
    background: #131921;
    color: #ddd;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* カートバッジ */
.cart-badge {
    background: #ff9900;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    position: absolute;
    top: -5px;
    right: -5px;
}

.cart-icon-container {
    position: relative;
}

/* 通知 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff9900;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.product-card {
    animation: fadeIn 0.6s ease-out;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-container {
        width: 100%;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
} /* Cache busting */
