/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.cart-btn, .account-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cart-btn:hover, .account-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* メインコンテンツ */
.product-page {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

/* パンくずナビ */
.breadcrumb {
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
    color: #999;
}

.current {
    color: #333;
    font-weight: 500;
}

/* 商品詳細レイアウト */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

/* 商品画像 */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.05);
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    object-fit: cover;
}

.thumbnail.active {
    border-color: #667eea;
}

.thumbnail:hover {
    border-color: #9ca3f5;
}

/* 商品情報 */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.bestseller {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.badge.new {
    background: linear-gradient(45deg, #00d2d3, #54a0ff);
    color: white;
}

.badge.organic {
    background: linear-gradient(45deg, #26de81, #20bf6b);
    color: white;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-top: -0.5rem;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars {
    display: flex;
    gap: 0.2rem;
}

.star {
    font-size: 1.2rem;
    color: #ddd;
}

.star.filled {
    color: #ffd700;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

/* 価格セクション */
.price-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e74c3c;
}

.original-price {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
}

.discount {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price-details {
    font-size: 0.9rem;
    color: #666;
}

.price-details p {
    margin-bottom: 0.3rem;
}

/* 購入セクション */
.purchase-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.qty-btn:hover {
    background: #5a6fd8;
}

.qty-input {
    border: none;
    padding: 0.5rem;
    width: 60px;
    text-align: center;
    font-size: 1rem;
    background: white;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.add-to-cart-btn, .buy-now-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn {
    background: #667eea;
    color: white;
}

.add-to-cart-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.buy-now-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.buy-now-btn:hover {
    background: linear-gradient(45deg, #ff5252, #ff3742);
    transform: translateY(-2px);
}

.wishlist-btn {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: #667eea;
    color: white;
}

/* 商品特徴 */
.product-features {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.product-features h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.features-list {
    list-style: none;
}

.features-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #26de81;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 詳細情報セクション */
.product-details {
    margin-top: 3rem;
}

.detail-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.detail-section h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.section-content {
    padding: 2rem;
}

.section-content h4 {
    margin: 1.5rem 0 1rem 0;
    color: #34495e;
    font-size: 1.1rem;
}

.section-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.section-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.section-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

/* 成分表示 */
.ingredients-list {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.safety-info h4 {
    color: #26de81;
}

.safety-info ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    list-style: none;
    margin-left: 0;
}

.safety-info li::before {
    content: '🛡️';
    margin-right: 0.5rem;
}

/* 使用方法 */
.usage-steps {
    margin-bottom: 2rem;
}

.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.step-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.usage-tips {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
}

.usage-tips h4 {
    color: white;
    margin-bottom: 1rem;
}

.usage-tips ul {
    list-style: none;
    margin-left: 0;
}

.usage-tips li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.usage-tips li::before {
    content: '💡';
    position: absolute;
    left: 0;
}

/* レビューセクション */
.review-summary {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-number {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
    font-size: 1.2rem;
}

.rating-count {
    color: #666;
    font-size: 0.95rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.review-rating {
    display: flex;
    gap: 0.1rem;
    font-size: 0.9rem;
}

.review-text {
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.load-more-reviews {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-top: 1rem;
}

.load-more-reviews:hover {
    transform: translateY(-2px);
}

/* フッター */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

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

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

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ecf0f1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .nav-menu {
        justify-content: center;
    }
    
    .nav-actions {
        justify-content: center;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .action-buttons {
        gap: 0.5rem;
    }
    
    .add-to-cart-btn, .buy-now-btn {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
}
