/* Coffee Stand SAMI - Awwwards-level Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Outfit:wght@300;500;700&family=Shippori+Mincho:wght@400;700&display=swap');

:root {
    --primary-color: #1a1412;
    /* 漆黒に近いブラウン */
    --secondary-color: #f7f3f0;
    /* 柔らかなオフホワイト */
    --accent-color: #8d775f;
    /* 洗練されたブロンズ/オーク */
    --text-color: #2c2420;
    --text-muted: #6b5e58;
    --background-color: #ffffff;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --transition-base: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.brand-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

.serif-font {
    font-family: 'Shippori Mincho', serif;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-base);
    padding: 1.5rem 0;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

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

.logo {
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: var(--transition-base);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--primary-color);
    overflow: hidden;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transform: scale(1.1);
    transition: 10s ease-out;
}

.hero:hover .hero-bg {
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero-content h1 span {
    display: block;
    transform: translateY(110%);
    animation: revealText 1.2s var(--transition-base) forwards;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.5s var(--transition-base) forwards;
    color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes revealText {
    to {
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xl) 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Utils */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 3rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(141, 119, 95, 0.2);
}

/* Product Grid & Cards */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.product-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 0;
    /* Modern minimal look */
    transition: var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1.2;
    background: #f0ebe8;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-base);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: var(--transition-base);
}

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

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

.product-info {
    text-align: left;
    padding: 0 0.5rem;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-info .description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-text {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 2px;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: var(--transition-base);
}

.product-card:hover .btn-text::after {
    transform: scaleX(1);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-switch a {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.4;
    transition: var(--transition-fast);
}

.lang-switch a.active {
    opacity: 1;
    font-weight: 700;
}

.lang-switch a:hover {
    opacity: 1;
}

.lang-divider {
    font-size: 0.7rem;
    opacity: 0.3;
    user-select: none;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 2rem;
    }

    .nav-links {
        display: none;
        /* Mobile navigation would go here */
    }

    .container {
        padding: var(--spacing-lg) 2rem;
    }
}