@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

:root {
    /* Color Palette */
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    
    /* Playful Accents */
    --accent-green: #10b981;
    --accent-green-hover: #059669;
    --accent-blue: #0ea5e9;
    --accent-blue-hover: #0284c7;
    --accent-orange: #f97316;
    --accent-orange-light: #fff7ed;
    --accent-green-light: #ecfdf5;
    --accent-blue-light: #f0f9ff;
    
    --border-color: #e2e8f0;
    --border-focus: #10b981;
    
    /* Typography */
    --font-heading: 'Outfit', 'Noto Sans JP', sans-serif;
    --font-body: 'Inter', 'Noto Sans JP', sans-serif;
    
    /* Layout Tokens */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(148, 163, 184, 0.12);
    --shadow-lg: 0 10px 30px -4px rgba(148, 163, 184, 0.18);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-base: #0f172a;
        --bg-surface: #1e293b;
        --bg-surface-alt: #0f172a;
        --text-main: #f8fafc;
        --text-muted: #94a3b8;
        
        --border-color: #334155;
        --border-focus: #10b981;
        
        --accent-orange-light: rgba(249, 115, 22, 0.1);
        --accent-green-light: rgba(16, 185, 129, 0.1);
        --accent-blue-light: rgba(14, 165, 233, 0.1);
        
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.4);
        --shadow-lg: 0 10px 30px -4px rgba(15, 23, 42, 0.5);
    }
}

/* Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Skip to main content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--accent-green);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.2s;
    text-decoration: none;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* Structure Helpers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.25;
}

p {
    color: var(--text-muted);
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 99;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
    .site-header {
        background-color: rgba(30, 41, 59, 0.85);
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-main);
}

.logo i {
    font-size: 1.5rem;
    color: var(--accent-green);
}

.logo span {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
}

/* Nav Links */
.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--accent-green);
}

/* Hero Section */
.hero-section {
    padding: clamp(3rem, 8vh, 6rem) 0;
    text-align: center;
    background: radial-gradient(circle at center, var(--accent-blue-light), transparent);
}

.hero-tag {
    display: inline-block;
    background-color: var(--accent-green-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-green-hover);
    padding: 0.35rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(1.85rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 700px;
    margin: 0 auto;
}

/* Filters Layout */
.filter-section {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3.5rem;
    box-shadow: var(--shadow-md);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    min-width: 80px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.filter-btn.active {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
}

.filter-age-btn.active {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Product Card */
.product-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-img-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--bg-surface-alt);
    border-bottom: 1px solid var(--border-color);
}

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

.product-card:hover .product-img {
    transform: scale(1.05);
}

.card-top {
    padding: 1.5rem;
}

.card-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.badge.age {
    background-color: var(--accent-blue-light);
    color: var(--accent-blue-hover);
}

.badge.scene {
    background-color: var(--accent-green-light);
    color: var(--accent-green-hover);
}

.product-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.product-desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.card-bottom {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0.01);
}

.aff-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--accent-orange);
    color: white;
    text-decoration: none;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
    transition: background-color 0.2s, transform 0.2s;
}

.aff-link:hover {
    background-color: #ea580c;
    transform: translateY(-1px);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Comparison Section */
.comparison-section {
    margin-bottom: 5rem;
}

.table-wrapper {
    overflow-x: auto;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px;
}

.comp-table th, .comp-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.comp-table th {
    background-color: var(--bg-surface-alt);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
}

.comp-table tr:last-child td {
    border-bottom: none;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 6rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.faq-item h3 i {
    color: var(--accent-green);
}

.faq-item p {
    font-size: 0.95rem;
    padding-left: 1.5rem;
}

/* Footer */
.site-footer {
    background-color: #0d1527;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    color: #94a3b8;
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-info h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1.25rem 0;
    font-size: 0.8rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.breadcrumbs li::after {
    content: "/";
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.breadcrumbs li:last-child::after {
    content: "";
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--text-main);
}

.breadcrumbs li:last-child {
    color: var(--text-main);
}

/* Section Title Common */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1.85rem;
    margin-bottom: 0.5rem;
}
