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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    padding: 2rem;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
}

.inventory-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inventory-display {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #4CAF50;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.stock-info {
    font-size: 1.5rem;
    color: #4CAF50;
    font-weight: 600;
}

.stock-count {
    font-size: 2rem;
    font-weight: bold;
    color: #2E7D32;
    margin: 0 0.5rem;
}

.action-section {
    margin-bottom: 1.5rem;
}

.add-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.add-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.add-button:active {
    transform: translateY(0);
}

.add-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.status {
    padding: 1rem;
    text-align: center;
    font-size: 0.95rem;
    border-radius: 6px;
    min-height: 1.5rem;
}

.status.loading {
    color: #1976d2;
    background-color: #e3f2fd;
}

.status.success {
    color: #2e7d32;
    background-color: #e8f5e9;
}

.status.error {
    color: #c62828;
    background-color: #ffebee;
}

.error-message {
    color: #c62828;
    padding: 1rem;
    margin-top: 1rem;
    background-color: #ffebee;
    border-radius: 6px;
    display: none;
}

.error-message.show {
    display: block;
}
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ギャラリー セクション */
.gallery {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 6rem 2rem;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 1;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    color: white;
    font-size: 1.5rem;
}

/* について セクション */
.about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.about-content > p {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #666;
}

/* お問い合わせ セクション */
.contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6rem 2rem;
    color: white;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.submit-button {
    padding: 1rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.submit-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* フッター */
.footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 1rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }
}
