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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

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

/* Centered Content for Index Page */
.centered-content {
    text-align: center;
}

.centered-content .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.centered-content .hero-text {
    text-align: left;
}

/* Header */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 0;
}

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

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

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

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 500;
    color: #2d5016;
    text-decoration: none;
    line-height: 1.2;
}

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

.brand-tagline {
    font-size: 12px;
    color: #1e3a8a;
    font-weight: 400;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
    padding: 80px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 48px;
    font-weight: 500;
    color: #2d5016;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    color: #374151;
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-button {
    background-color: #2d5016;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #1f3710;
}

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

.hero-img, .tech-img, .hydro-img, .product-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.hero-img {
    height: 320px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tech-img, .hydro-img {
    height: 280px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.product-img {
    height: 200px;
    border-radius: 8px;
}

.image-placeholder {
    width: 100%;
    height: 320px;
    background-color: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 14px;
    border: 2px dashed #d1d5db;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 36px;
    font-weight: 500;
    color: #2d5016;
    text-align: center;
    margin-bottom: 48px;
}

/* Features */
.features {
    background-color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: 12px;
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* How it Works */
.how-it-works {
    background-color: #f8fafc;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.step {
    text-align: center;
    padding: 24px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #1e3a8a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    margin: 0 auto 24px;
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.step p {
    color: #6b7280;
    line-height: 1.6;
}

/* IoT Technology */
.iot-tech {
    background-color: #ffffff;
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tech-text .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.tech-text p {
    font-size: 16px;
    color: #374151;
    margin-bottom: 32px;
    line-height: 1.7;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-feature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
}

.tech-feature strong {
    color: #1f2937;
    font-weight: 600;
}

.tech-feature span {
    color: #6b7280;
    font-size: 14px;
}

/* Hydroponic */
.hydroponic {
    background-color: #f8fafc;
}

.hydro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hydro-text .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.hydro-text p {
    font-size: 16px;
    color: #374151;
    margin-bottom: 24px;
    line-height: 1.7;
}

.hydro-benefits {
    list-style: none;
}

.hydro-benefits li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: #374151;
}

.hydro-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    color: #16a34a;
    font-weight: 600;
    font-size: 16px;
}

/* App Features */
.app-features {
    background-color: #ffffff;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.app-feature {
    text-align: center;
    padding: 32px 24px;
    border-radius: 12px;
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
}

.app-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.app-feature h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.app-feature p {
    color: #6b7280;
    line-height: 1.6;
}

/* Products */
.products {
    background-color: #f8fafc;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-image {
    margin-bottom: 24px;
}

.product-image .image-placeholder {
    height: 200px;
    background-color: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 14px;
    border: 2px dashed #d1d5db;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.product-card p {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

.product-price {
    font-size: 24px;
    font-weight: 600;
    color: #2d5016;
    margin-bottom: 24px;
}

.product-button {
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.product-button {
    background-color: #1e3a8a;
}

.product-button:hover {
    background-color: #1e40af;
}

.product-button:nth-child(2) {
    background-color: #059669;
}

.product-button:nth-child(2):hover {
    background-color: #047857;
}

.product-button:nth-child(3) {
    background-color: #dc2626;
}

.product-button:nth-child(3):hover {
    background-color: #b91c1c;
}

.product-button:nth-child(4) {
    background-color: #7c3aed;
}

.product-button:nth-child(4):hover {
    background-color: #6d28d9;
}

/* Services */
.services {
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    padding: 32px;
    border-radius: 12px;
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.service-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Contact */
.contact {
    background-color: #f8fafc;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.contact-item {
    text-align: center;
    padding: 32px 24px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.contact-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.contact-item p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 8px;
}

.contact-item strong {
    color: #1f2937;
    font-size: 16px;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: #d1d5db;
    padding: 60px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 32px;
}

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

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
}

.footer-tagline {
    font-size: 12px;
    color: #9ca3af;
}

.footer-description {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 48px;
    flex: 2;
}

.footer-nav-section {
    flex: 1;
}

.footer-nav-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-section li {
    margin-bottom: 8px;
}

.footer-nav-section a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-nav-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #374151;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 14px;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 32px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #9ca3af;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #1f2937;
}

.modal h2 {
    color: #1f2937;
    margin-bottom: 24px;
    font-family: 'Noto Serif JP', serif;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1f2937;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-button {
    background-color: #2d5016;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.submit-button:hover {
    background-color: #1f3710;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: #d1d5db;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 32px;
}

.footer-brand {
    flex: 1;
}

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

.footer-brand-info {
    display: flex;
    flex-direction: column;
}

.footer-brand-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}

.footer-tagline {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #374151;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .centered-content .hero-content {
        text-align: center;
    }
    
    .centered-content .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .tech-content,
    .hydro-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hydro-content .hydro-image {
        order: -1;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 32px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 24px;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .app-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}