/* Variables */
:root {
    --primary-navy: #1e2a5e;
    --secondary-silver: #c0c4cc;
    --background-white: #ffffff;
    --text-dark: #2d3748;
    --text-light: #4a5568;
    --accent-red: #ff4444;
    --accent-green: #48bb78;
    --accent-orange: #ed8936;
    --snow-white: #f7fafc;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-white);
    min-height: 100vh;
}

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

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

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-brand a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-navy);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--snow-white) 0%, var(--background-white) 100%);
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('https://images.pexels.com/photos/6249478/pexels-photo-6249478.jpeg?auto=compress&cs=tinysrgb&w=800&h=600&fit=crop') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Sections */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background: var(--snow-white);
}

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

h2 {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 3rem;
    line-height: 1.3;
}

.section-content.centered h2 {
    text-align: center;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: var(--background-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--snow-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon svg {
    width: 32px;
    height: 32px;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Store Rankings */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.store-card {
    background: var(--background-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    position: relative;
}

.store-badge {
    position: absolute;
    top: -8px;
    left: 20px;
    background: var(--primary-navy);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.store-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.delivery-time {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.stock-status {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 1rem;
}

.stock-status.in-stock {
    background: #c6f6d5;
    color: #22543d;
}

.stock-status.low-stock {
    background: #fed7cc;
    color: #c53030;
}

.cutoff-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.timer-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.timer {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-red);
}

/* Gift Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--background-white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.category-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

.category-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Delivery Tracking */
.tracking-dashboard {
    background: var(--background-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.prefecture-status {
    display: grid;
    gap: 1rem;
}

.prefecture-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--snow-white);
    border-radius: 8px;
}

.prefecture-name {
    font-weight: 600;
    color: var(--primary-navy);
}

.delivery-window {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.delivery-window.same-day {
    background: #c6f6d5;
    color: #22543d;
}

.delivery-window.next-day {
    background: #fbb6ce;
    color: #702459;
}

.cutoff-time {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--background-white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--snow-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.6;
}

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

.product-card {
    background: var(--background-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.product-image {
    height: 200px;
    background: var(--snow-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
}

.image-placeholder {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.product-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.product-btn {
    display: inline-block;
    background: var(--primary-navy);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.product-btn:hover {
    background: #162248;
}

/* Contacts */
.contacts {
    padding: 4rem 0;
}

.contacts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--snow-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: white;
    padding: 2.5rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo-icon {
    width: 32px;
    height: 32px;
}

.footer-brand .brand-name {
    color: white;
    font-size: 1.25rem;
}

.footer-brand p {
    color: var(--secondary-silver);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

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

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

.footer-column a {
    color: var(--secondary-silver);
    text-decoration: none;
    font-size: 0.95rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(192, 196, 204, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--secondary-silver);
    font-size: 0.875rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--snow-white) 0%, var(--background-white) 100%);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 3rem 0;
}

.content-section.alternate {
    background: var(--snow-white);
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.content-block.centered {
    text-align: center;
}

.content-block h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 2rem;
    text-align: left;
}

.content-block.centered h2 {
    text-align: center;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.content-block p:last-child {
    margin-bottom: 0;
}

/* Policy sections */
.policy-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    text-align: left;
}

.policy-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.policy-section p:last-child {
    margin-bottom: 0;
}

/* About page specific styles */
.about-illustration {
    max-width: 400px;
    margin: 0 auto 2rem;
}

.about-illustration svg {
    width: 100%;
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero::before {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .prefecture-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 2rem 0;
    }
    
    .content-block h2 {
        font-size: 1.75rem;
    }
    
    .content-block p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    .steps-grid,
    .categories-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .content-block {
        padding: 0 1rem;
    }
}