/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Indigo Ivory Palette */
    --primary-color: #4F46E5;
    --primary-dark: #3730A3;
    --secondary-color: #F8F7F4;
    --accent-color: #059669;
    --text-dark: #1F2937;
    --text-medium: #4B5563;
    --text-light: #6B7280;
    --border-color: #E5E7EB;
    --background-light: #FEFEFE;
    --sumi-ink: #2D3748;
    --cedar-texture: #D4B896;
    
    /* Typography */
    --font-primary: 'Noto Sans JP', 'Yu Gothic UI', 'Meiryo', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;
    --line-height-heading: 1.4;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    unicode-bidi: embed;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: var(--line-height-heading);
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 500; }

p {
    margin-bottom: var(--space-sm);
    color: var(--text-medium);
}

/* Centered sections */
.centered-section {
    text-align: center;
}

.centered-section .container {
    text-align: center;
}

.centered-section .section-title {
    text-align: center;
}

/* Header */
.header {
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-md) 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo {
    width: 48px;
    height: 48px;
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sumi-ink);
    text-decoration: none;
    margin: 0;
}

.brand-name a {
    text-decoration: none;
    color: inherit;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--background-light) 100%);
    padding: var(--space-xxl) 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--sumi-ink);
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: var(--space-xl);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-dark);
    font-weight: 500;
}

.feature-icon {
    color: var(--primary-color);
}

/* Section Styles */
section {
    padding: var(--space-xxl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--sumi-ink);
}

/* Featured Preview */
.featured-preview {
    background-color: var(--background-light);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.preview-item {
    text-align: center;
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: white;
}

.preview-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: var(--space-md);
    border: 1px dashed var(--border-color);
}

/* About Mission */
.about-mission {
    background-color: var(--secondary-color);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-text {
    font-size: 1.125rem;
    color: var(--text-medium);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.service-item {
    text-align: center;
    padding: var(--space-lg);
}

.service-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: var(--space-md);
    border: 1px solid var(--border-color);
}

.service-icon {
    color: var(--accent-color);
    margin-bottom: var(--space-md);
}

.service-item svg.service-icon {
    width: 120px;
    height: 80px;
    margin-bottom: var(--space-md);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: white;
    padding: var(--space-sm);
}

/* Categories */
.categories {
    background-color: var(--secondary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.category-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.category-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.category-item h3 {
    padding: var(--space-md);
    text-align: center;
    color: var(--sumi-ink);
}

.category-item svg.category-icon {
    width: 100%;
    height: 150px;
    border-radius: 8px 8px 0 0;
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

/* Product Icons */
.product-icon {
    width: 100%;
    height: 180px;
    border-radius: 6px;
    margin-bottom: var(--space-md);
    border: 1px solid var(--border-color);
    background-color: var(--secondary-color);
}
/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.product-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--space-lg);
    text-align: center;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: var(--space-md);
    border: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: var(--space-sm) 0;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: var(--space-sm);
    font-family: var(--font-primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* B2B Section */
.b2b {
    background-color: var(--secondary-color);
}

.b2b-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.b2b-text ul {
    list-style: none;
    padding-left: var(--space-md);
}

.b2b-text li {
    position: relative;
    margin-bottom: var(--space-xs);
    color: var(--text-medium);
}

.b2b-text li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.b2b-image {
    width: 100%;
    height: 280px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--secondary-color);
}

/* Subscription */
.subscription-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.subscription-image {
    width: 100%;
    height: 280px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--secondary-color);
}

.subscription-plans {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.plan {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: var(--space-md);
    text-align: center;
    flex: 1;
}

.plan h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

/* Why Choose Us */
.why-choose {
    background-color: var(--secondary-color);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.reason-item {
    background-color: white;
    padding: var(--space-lg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.reason-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: var(--space-md);
    border: 1px solid var(--border-color);
}

.reason-icon {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.reason-item h3 {
    color: var(--sumi-ink);
    margin-bottom: var(--space-sm);
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-xxl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-icon {
    color: var(--primary-color);
    margin-top: var(--space-xs);
}

.contact-item h3 {
    color: var(--sumi-ink);
    margin-bottom: var(--space-xs);
}

.contact-item p {
    color: var(--text-medium);
    margin: 0;
}

.contact-hours {
    background-color: var(--secondary-color);
    padding: var(--space-lg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-hours h3 {
    color: var(--sumi-ink);
    margin-bottom: var(--space-md);
}

/* Footer */
.footer {
    background-color: var(--sumi-ink);
    color: white;
    padding: var(--space-xxl) 0 var(--space-lg) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h4 {
    color: white;
    margin-bottom: var(--space-md);
}

.footer-section p {
    color: #CBD5E0;
    margin-bottom: var(--space-xs);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

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

.footer-section a {
    color: #CBD5E0;
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid #4A5568;
    padding-top: var(--space-md);
    text-align: center;
}

.footer-bottom p {
    color: #9CA3AF;
    margin: 0;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--sumi-ink);
    color: white;
    padding: var(--space-md);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text p {
    margin: 0;
    color: #CBD5E0;
    font-size: 0.9rem;
}

.cookie-banner-text a {
    color: white;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.cookie-btn {
    padding: var(--space-xs) var(--space-md);
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-primary);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cookie-btn-accept {
    background-color: var(--primary-color);
    color: white;
}

.cookie-btn-accept:hover {
    background-color: var(--primary-dark);
}

.cookie-btn-decline {
    background-color: transparent;
    color: #CBD5E0;
    border: 1px solid #4A5568;
}

.cookie-btn-decline:hover {
    background-color: #4A5568;
    color: white;
}

.cookie-btn-customize {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-btn-customize:hover {
    background-color: white;
    color: var(--sumi-ink);
}

.cookie-btn-save {
    background-color: var(--accent-color);
    color: white;
}

.cookie-btn-save:hover {
    background-color: #047857;
}

.cookie-btn-cancel {
    background-color: transparent;
    color: #CBD5E0;
    border: 1px solid #4A5568;
}

.cookie-btn-cancel:hover {
    background-color: #4A5568;
    color: white;
}

/* Cookie Settings */
.cookie-settings {
    background-color: #374151;
    border-top: 1px solid #4A5568;
    padding: var(--space-lg);
    margin-top: var(--space-md);
}

.cookie-settings-content h3 {
    color: white;
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
}

.cookie-category {
    margin-bottom: var(--space-lg);
}

.cookie-toggle {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    cursor: pointer;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 50px;
    height: 24px;
    background-color: #6B7280;
    border-radius: 12px;
    position: relative;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(26px);
}

.cookie-toggle input[type="checkbox"]:disabled + .toggle-slider {
    background-color: var(--accent-color);
    opacity: 0.7;
}

.cookie-info strong {
    color: white;
    display: block;
    margin-bottom: var(--space-xs);
}

.cookie-info p {
    color: #CBD5E0;
    font-size: 0.9rem;
    margin: 0;
}

.cookie-settings-buttons {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-features {
        gap: var(--space-md);
    }
    
    .feature {
        font-size: 0.9rem;
    }
    
    .b2b-content,
    .subscription-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .subscription-plans {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    section {
        padding: var(--space-lg) 0;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        justify-content: center;
    }
    
    .cookie-settings-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .products-grid,
    .services-grid,
    .categories-grid,
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-settings-buttons .cookie-btn {
        flex: 1;
    }
}