:root {
    --primary-color: #8A1C14; /* Deep Red for premium feel */
    --secondary-color: #D4AF37; /* Metallic Gold */
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #F9F8F6;
    --bg-white: #FFFFFF;
    --rakuten-color: #BF0000;
    --amazon-color: #FF9900;
    --yahoo-color: #FF0033;
    --border-color: #E6E2D8;
    --font-heading: 'Playfair Display', 'Noto Serif JP', serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* Header */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.global-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.global-nav a {
    font-weight: bold;
    color: var(--text-main);
    font-size: 0.95rem;
}

.global-nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(249,248,246,0.9), rgba(212,175,55,0.1)), url('https://images.unsplash.com/photo-1555507036-ab1f4038808a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title .en {
    display: block;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-title .ja {
    display: block;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-desc {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(138, 28, 20, 0.3);
}

.btn-primary:hover {
    background-color: #6D1610;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 28, 20, 0.4);
}

/* Ads Placeholder */
.ad-space {
    max-width: 728px;
    margin: 40px auto;
    text-align: center;
}

.ad-placeholder {
    background-color: #eaeaea;
    color: #999;
    padding: 30px;
    border: 1px dashed #ccc;
    font-size: 0.9rem;
}

/* Sections */
.main-content {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title .en {
    display: block;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-title .ja {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title .ja::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Keywords */
.keywords-section {
    margin-bottom: 40px;
}

.keyword-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
}

.keyword-tags a {
    display: block;
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.keyword-tags a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #FFF5F5;
}

/* Ranking Post Cards */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-card {
    display: flex;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.rank-badge {
    position: absolute;
    top: 0; left: 0;
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 10;
    border-bottom-right-radius: 8px;
}

.rank-1 .rank-badge { background: linear-gradient(135deg, #D4AF37, #F3E5AB); color: #8A1C14; }
.rank-2 .rank-badge { background: linear-gradient(135deg, #C0C0C0, #E8E8E8); color: #333; }
.rank-3 .rank-badge { background: linear-gradient(135deg, #CD7F32, #F4A460); color: #fff; }

.product-image {
    width: 40%;
    min-width: 300px;
    background: #f0f0f0;
}

.img-placeholder {
    height: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
    background: url('https://images.unsplash.com/photo-1559314809-0d155014e29e?w=800&q=80') center/cover;
}
.rank-2 .img-placeholder { background: url('https://images.unsplash.com/photo-1603048297172-c92544798d5e?w=800&q=80') center/cover; }
.rank-3 .img-placeholder { background: url('https://images.unsplash.com/photo-1594921935515-b7470650d4f3?w=800&q=80') center/cover; }

.product-info {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-desc {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.product-meta .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-main);
}

.product-meta .rating {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Affiliate Buttons */
.affiliate-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.affiliate-links a {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
    color: white;
    min-width: 120px;
}

.btn-rakuten { background-color: var(--rakuten-color); }
.btn-amazon { background-color: var(--amazon-color); }
.btn-yahoo { background-color: var(--yahoo-color); }

.affiliate-links a:hover {
    filter: brightness(1.1);
}

/* Comparison Table */
.comparison-section {
    margin-top: 60px;
}

.table-wrapper {
    overflow-x: auto;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th, .comparison-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: normal;
}

.comparison-table tr:hover {
    background-color: #fcfbf9;
}

/* Footer */
.site-footer {
    background-color: #2b2b2b;
    color: #e0e0e0;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.footer-links h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .global-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title .ja {
        font-size: 1.8rem;
    }
    
    .product-card {
        flex-direction: column;
    }
    
    .product-image {
        width: 100%;
        min-width: 100%;
    }
    
    .rank-badge {
        border-radius: 0 0 8px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
