/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Color Variables */
:root {
    --primary-green: #2d5016;
    --accent-green: #7cb342;
    --white: #ffffff;
    --black: #333333;
    --light-gray: #f5f5f5;
    --border-gray: #e0e0e0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

/* Fallback for old text logo style in case image fails to load */
.nav-brand .logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    display: none;
}

/* SNS Icons */
.nav-social {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-social a {
    display: flex;
    align-items: center;
}

.nav-social img {
    height: 30px;
    width: 30px;
    object-fit: contain;
    transition: opacity 0.3s;
}

.nav-social img:hover {
    opacity: 0.7;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-green);
}

/* Language Switcher - Common styles for all screen sizes */
.lang-switcher,
.mobile-lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-switcher a,
.mobile-lang-switcher a {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
}

.lang-switcher a.active,
.lang-switcher a:hover,
.mobile-lang-switcher a.active,
.mobile-lang-switcher a:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* Desktop: show mobile-lang-switcher in header */
.mobile-lang-switcher {
    display: flex;
}

.lang-switcher {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Button */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--light-gray);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-green);
}

.section-text {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Stats */
.stats {
    background: var(--primary-green);
    color: var(--white);
}

.stats .section-title {
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent-green);
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-date {
    color: var(--accent-green);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* Contact */
.contact {
    background: var(--light-gray);
    text-align: center;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Member Card */
.member-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-green);
}

.member-name {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--accent-green);
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.member-social a {
    color: var(--accent-green);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.member-social a:hover {
    color: var(--primary-green);
}

/* Business Cards */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.business-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    border-top: 5px solid var(--accent-green);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.business-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.business-card h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-green);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Company Info Grid */
.company-info-grid {
    display: grid;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: var(--primary-green);
    font-weight: 500;
}

/* News Category */
.news-category {
    color: var(--accent-green);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Form Error State */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e74c3c;
}

/* Active Navigation Link */
.nav-menu a.active {
    color: var(--accent-green);
    font-weight: 700;
}

/* Confirmation Screen Styles */
.confirm-data {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.confirm-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.confirm-item:last-child {
    border-bottom: none;
}

.confirm-item strong {
    display: inline-block;
    width: 150px;
    vertical-align: top;
}

.confirm-buttons {
    margin-top: 30px;
    text-align: center;
}

.confirm-buttons .btn {
    margin: 0 10px;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > a {
        padding: 1rem 2rem;
    }

    .nav-toggle {
        display: flex;
    }

    /* SNS icons size adjustment for mobile */
    .nav-social img {
        height: 25px;
        width: 25px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid,
    .news-grid,
    .business-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-item {
        flex-direction: column;
    }

    .logo {
        height: 35px;
        max-width: 120px;
    }
}