/* =========================================
   Reset & CSS Variables
   ========================================= */
:root {
    --primary-color: #1a365d; /* 洗練されたネイビー */
    --secondary-color: #f8f9fa; /* 薄いグレー */
    --text-color: #333333;
    --light-text: #666666;
    --accent-color: #e67e22; /* アクセントカラー（温かみのあるオレンジ） */
    --font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    --transition: 0.3s ease-in-out;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.8;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   Layout & Typography
   ========================================= */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--secondary-color);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.section-title span {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

/* =========================================
   Header & Navigation
   ========================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo span {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--light-text);
}

.global-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.global-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.global-nav a:hover {
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--accent-color);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(230, 126, 34, 0.2);
}

.btn-contact:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

/* Mobile Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    /* 本番環境では高画質な工場の写真や秋田杉の画像を設定してください */
    background: linear-gradient(rgba(26, 54, 93, 0.7), rgba(26, 54, 93, 0.7)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding-top: 70px; /* Header offset */
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* =========================================
   News & Components
   ========================================= */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-list li {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
    align-items: center;
}

.news-list time {
    width: 130px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.95rem;
}

.news-list p {
    flex: 1;
}

/* Card Grid for Business */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.card h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.4rem;
    background-color: var(--accent-color);
    margin-right: 12px;
    border-radius: 2px;
}

/* Company Table */
.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
}

.company-table th, .company-table td {
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
}

.company-table th {
    width: 30%;
    text-align: left;
    font-weight: bold;
    color: var(--primary-color);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--primary-color);
    color: #ffffff;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.footer-address {
    color: #a0aec0;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.copyright {
    color: #718096;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* =========================================
   Animation Classes (Intersection Observer)
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 768px) {
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .global-nav.is-active {
        right: 0;
    }

    .global-nav .nav-list {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .news-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-list time {
        margin-bottom: 10px;
    }

    .company-table th, .company-table td {
        display: block;
        width: 100%;
    }
    
    .company-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
}
/* =========================================
   About Section
   ========================================= */
.about-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.about-lead {
    font-size: 1.15rem;
    line-height: 2;
    font-weight: 500;
}

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

.feature-card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
    transition: var(--transition);
}

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

.feature-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 15px;
    opacity: 0.85;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.7;
}

/* =========================================
   Contact Form Section
   ========================================= */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-required {
    background: #e74c3c;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.badge-optional {
    background: #95a5a6;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.btn-submit {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 15px 45px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
}

.btn-submit:hover {
    background-color: #0f2341;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 54, 93, 0.3);
}

.form-alert {
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.form-alert.success {
    background-color: #e8f8f5;
    border: 1px solid #2ecc71;
    color: #27ae60;
}

.form-alert.success h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.form-alert.error {
    background-color: #fadbd8;
    border: 1px solid #e74c3c;
    color: #c0392b;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 25px 20px;
    }
}