/* --- Base Styles --- */
:root {
    --primary-color: #2d6a4f;
    --primary-hover: #1b4332;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.hidden {
    display: none !important;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-svg {
    width: 35px;
    height: 35px;
    margin-right: 10px;
}

.desktop-nav .nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
}

.contact-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 600;
}

.contact-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

.menu-toggle svg {
    width: 32px;
    height: 32px;
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

.menu-close svg {
    width: 40px;
    height: 40px;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: bold;
}

/* --- Hero Section --- */
.hero {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.4) 100%),
        url('image/hero.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;

}

.sub-title {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.main-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 1rem 0;
    text-align: center;
}

.highlight {
    color: var(--primary-color);
}

.hero-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* --- Buttons --- */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
}

.btn-outline:hover {
    background: #f3f4f6;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
}

.accent-line {
    width: 64px;
    height: 4px;
    background: var(--primary-color);
    margin: 16px auto 0;
}

/* --- Features --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-color);
}

.feature-icon {
    color: var(--primary-color);
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.feature-icon svg {
    width: 56px;
    height: 56px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Products --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-img {
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 24px;
}

.product-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- Manufacturers --- */
.manufacturer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.m-item {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.m-item:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.manufacturer-comment {
    text-align: center;
    margin-top: 48px;
    margin-bottom: 24px;
    width: 100%;
    font-size: 18px;
    color: #333333;
    line-height: 1.6;
}

/* --- Company Table --- */
.company-table-wrapper {
    max-width: 800px;
    margin: 0 auto 48px;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.company-table th {
    background: var(--bg-light);
    width: 30%;
    font-size: 0.9rem;
    position: relative;
    padding-left: 40px;
}

.company-table th::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;

}

.access-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Contact Form --- */
.contact-section {
    background: var(--primary-color);
}

.contact-card {
    background: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.section-subtitle {
    margin-top: 8px;
    color: var(--text-muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    gap: 24px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-submit {
    text-align: center;
}

.btn-wide {
    width: 100%;
}

.success-alert {
    margin-top: 24px;
    padding: 24px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
}

/* --- Footer --- */
.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 60px 0;
    text-align: center;
}

.footer-brand {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-info {
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.copyright {
    font-size: 0.75rem;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-title {
        font-size: 2.0rem;
    }

    .hero {
        padding-top: 130px;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .section {
        padding: 60px 0;
    }

    .form-row {
        flex-direction: column;
    }

    .contact-card {
        padding: 30px;
    }

    .company-table th {
        width: 100%;
        display: block;
    }

    .company-table td {
        width: 100%;
        display: block;
        padding-top: 20px;
    }

}