/* ProteinAI - 写真から栄養分析 */

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

body {
    line-height: 1.6;
    color: #374151;
}

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

/* Navigation Buttons */
.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.nav-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #374151;
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.nav-button-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.nav-button-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.nav-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.6);
}

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

.grid-auto-fit-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .grid-auto-fit {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid-auto-fit-small {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .hero-bg h2 {
        font-size: 2.5rem !important;
    }
    
    .hero-bg p {
        font-size: 1.1rem !important;
    }
    
    .nav-button {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .hero-bg {
        padding: 80px 0 !important;
    }
    
    .hero-bg h2 {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .hero-bg .flex-col {
        gap: 16px;
    }
    
    .cta-button {
        padding: 12px 24px !important;
        font-size: 16px !important;
    }
}

/* Utility Classes */
.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-white {
    background-color: #ffffff;
}

.bg-gray-800 {
    background-color: #1f2937;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-white {
    color: #ffffff;
}

.text-green-600 {
    color: #16a34a;
}

.text-green-400 {
    color: #4ade80;
}

.text-green-300 {
    color: #86efac;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-16 {
    margin-top: 4rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.z-50 {
    z-index: 50;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-md {
    max-width: 28rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.w-24 {
    width: 6rem;
}

.h-24 {
    height: 6rem;
}

.w-32 {
    width: 8rem;
}

.h-32 {
    height: 8rem;
}

.w-64 {
    width: 16rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.leading-tight {
    line-height: 1.25;
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.bg-white\/80 {
    background-color: rgba(255, 255, 255, 0.8);
}

.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

.bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.9);
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

.ring-2 {
    box-shadow: 0 0 0 2px currentColor;
}

.ring-white\/50 {
    --tw-ring-color: rgba(255, 255, 255, 0.5);
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px var(--tw-ring-color, currentColor);
}

.focus\:ring-white\/50:focus {
    --tw-ring-color: rgba(255, 255, 255, 0.5);
}

.border-0 {
    border-width: 0px;
}

.rounded-full {
    border-radius: 9999px;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-col {
    flex-direction: column;
}

.gap-4 {
    gap: 1rem;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.hover\:text-green-300:hover {
    color: #86efac;
}

/* Form Animations */
form input {
    transition: all 0.3s ease;
}

form input:focus {
    transform: translateY(-2px);
}

form button {
    transition: all 0.2s ease;
}

form button:hover {
    transform: translateY(-2px);
}

/* Background Gradients */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-green-400 {
    --tw-gradient-from: #4ade80;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-green-600 {
    --tw-gradient-to: #16a34a;
}

.from-blue-400 {
    --tw-gradient-from: #60a5fa;
}

.to-blue-600 {
    --tw-gradient-to: #2563eb;
}

.from-purple-400 {
    --tw-gradient-from: #c084fc;
}

.to-purple-600 {
    --tw-gradient-to: #9333ea;
}

.from-green-100 {
    --tw-gradient-from: #dcfce7;
}

.to-green-200 {
    --tw-gradient-to: #bbf7d0;
}

.from-green-500 {
    --tw-gradient-from: #22c55e;
}

.to-green-600 {
    --tw-gradient-to: #16a34a;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.text-green-800 {
    color: #166534;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

/* Responsive utilities */
@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
    
    .sm\:space-y-0 > * + * {
        margin-top: 0;
    }
    
    .sm\:space-x-4 > * + * {
        margin-left: 1rem;
    }
}

@media (min-width: 768px) {
    .md\:py-24 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    
    .md\:py-32 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
    
    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    
    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
    
    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    .md\:w-72 {
        width: 18rem;
    }
    
    .md\:mt-24 {
        margin-top: 6rem;
    }
}

/* Font weights */
.font-light {
    font-weight: 300;
}

.font-black {
    font-weight: 900;
}

/* Custom Styles for ProteinAI */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.h-64 {
    height: 16rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.inline-block {
    display: inline-block;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Additional spacing utilities */
.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}