/* assets/css/style.css */

/* 基本的なリセットとフォント設定 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', 'sans-serif', 'Meiryo', 'Yu Gothic';
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;

/* ヘッダー */
header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: #327d31; /* MINORICAのブランドカラーをイメージ */
    text-decoration: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #327d31;
}

/* メインコンテンツのセクション */
section {
    padding: 80px 0;
    text-align: center;
}

section h2 {
    font-size: 36px;
    color: #327d31;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #327d31;
    margin: 10px auto 0;
}

.content-wrapper {
    max-width: 960px;
    margin: 0 auto;
    text-align: left; /* コンテンツ内のテキストは左寄せに */
}

/* フッター */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* ボタンの共通スタイル */
.btn {
    display: inline-block;
    background-color: #327d31;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #327d31;
}

/* フォームの基本スタイル */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

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

.form-group input[type="checkbox"] {
    margin-right: 10px;
}

.submit-btn {
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* レスポンシブ対応 (簡易版) */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 30px;
    }

    /* h1の見出しサイズ調整 */
    .hero-section h1 {
        font-size: 30px; /* トップのヒーローセクションの見出し */
        line-height: 1.3; /* 行間も調整すると読みやすい */
    }
}

/* Removed erroneous <style> tag */
        /* ========== 共通スタイル ========== */
        body {
            margin: 0;
            padding: 0;
            font-family: 'Arial', 'sans-serif', 'Meiryo', 'Yu Gothic';
            line-height: 1.6;
            color: #333;
            background-color: #f9f9f9;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap; /* レスポンシブ対応 */
        }

        section {
            padding: 80px 0;
            text-align: center;
        }

        section h2 {
            font-size: 36px;
            color: #327d31;
            margin-bottom: 40px;
            position: relative;
            display: inline-block;
        }

        section h2::after {
            content: '';
            display: block;
            width: 60px;
            height: 3px;
            background-color: #327d31;
            margin: 10px auto 0;
        }

        .content-wrapper {
            max-width: 960px;
            margin: 0 auto;
            text-align: left; /* コンテンツ内のテキストは左寄せに */
        }

        .btn {
            display: inline-block;
            background-color: #327d31;
            color: #fff;
            padding: 12px 25px;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            transition: background-color 0.3s ease;
        }

        .btn:hover {
            background-color: #218838;
        }

        /* ========== ヘッダー ========== */
        header {
            background-color: #fff;
            padding: 15px 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .logo a {
            font-size: 28px;
            font-weight: bold;
            color: #327d31;
            text-decoration: none;
        }

        /* PC用ナビゲーション */
        nav.nav-wrapper ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
        }

        nav.nav-wrapper ul li {
            margin-left: 30px;
        }

        nav.nav-wrapper ul li a {
            text-decoration: none;
            color: #555;
            font-weight: bold;
            font-size: 16px;
            transition: color 0.3s ease;
        }

        nav.nav-wrapper ul li a:hover {
            color: #327d31;
        }

        /* ハンバーガーメニューアイコン */
        .menu-toggle {
            display: none; /* デフォルトでは非表示 */
            flex-direction: column;
            justify-content: space-between;
            width: 30px;
            height: 20px;
            cursor: pointer;
            z-index: 1001; /* ナビより手前に表示 */
        }

        .menu-toggle .bar {
            width: 100%;
            height: 3px;
            background-color: #333;
            border-radius: 5px;
            transition: all 0.3s ease;
        }

        /* ハンバーガーメニュー active 時のアニメーション */
        .menu-toggle.active .bar:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.active .bar:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .menu-toggle.active .bar:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

        /* ========== メインコンテンツ - 各セクション固有スタイル ========== */

        /* トップセクション (ヒーローイメージ) */
        .hero-section {
            background-image: url('/assets/img/hero_background.png'); /* 適切な画像パスに修正 */
            background-size: cover;
            background-position: center;
            color: #fff;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
            padding: 150px 0;
        }
        .hero-section h1 {
            font-size: 48px;
            margin-bottom: 20px;
            margin: 0 auto;
        }
        .hero-section p {
            font-size: 20px;
            margin-top: 20px;
        }

        /* MINORICAについてセクション */
        .about-section {
            background-color: #fff;
        }

        /* 製品プレビューセクション */
        .products-preview-section {
            background-color: #eaf7ed;
        }
        .products-preview-section .product-card {
            flex: 1 1 45%;
            min-width: 300px;
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }
        .products-preview-section .product-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 5px;
            margin-top: 20px;
        }

        /* お問い合わせCTAセクション */
        .contact-cta-section {
            background-color: #fff;
        }

        /* 企業理念セクション */
        #philosophy-section h3 {
            color: #327d31;
            margin-top: 40px;
            margin-bottom: 15px;
            font-size: 28px;
        }
        #philosophy-section ul {
            list-style: disc;
            padding-left: 20px;
            margin-top: 20px;
        }
        #philosophy-section ul li {
            margin-bottom: 10px;
        }

        /* 製品紹介セクション */
        #products-section .product-item {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            margin-bottom: 60px;
            gap: 30px; /* アイテム間の隙間 */
        }
        #products-section .product-item img {
            width: 100%;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        #products-section .product-item > div:first-child {
             flex: 1 1 45%;
             min-width: 300px;
        }
        #products-section .product-item > div:last-child {
             flex: 1 1 50%;
             min-width: 300px;
        }
        #products-section .product-item ul {
            list-style: none;
            padding: 0;
        }
        #products-section .product-item ul li {
            margin-bottom: 10px;
            line-height: 1.8;
        }
        #products-section .case-study {
            flex: 1 1 45%;
            min-width: 300px;
            background-color: #f5f5f5;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        #products-section .case-study img {
            height: 200px;
            object-fit: cover;
            margin-top: 15px;
        }
            
        /* メンバー紹介セクション */
        #members-section .member-grid {
            display: flex; /* Enable flexbox for horizontal layout */
            flex-wrap: wrap; /* Allow items to wrap to the next line */
            justify-content: center; /* Center items horizontally */
            gap: 40px; /* Space between member cards */
            margin-top: 60px;
        }

        #members-section .member-card {
            flex: 1 1 calc(50% - 20px); /* Allow two cards per row with gap. Adjust 20px based on half of gap */
            max-width: 400px; /* Max width for each card, adjust as needed */
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            text-align: center;
            box-sizing: border-box; /* Include padding in the width calculation */
        }

        #members-section .member-card img {
            width: 150px; /* Fixed width for the image */
            height: 150px; /* Fixed height for the image */
            border-radius: 50%; /* Keep circular shape */
            object-fit: cover; /* Maintain aspect ratio and cover the area, but with fixed dimensions, it won't distort */
            border: 0px solid #6c757d;
            margin-bottom: 15px;
        }

        /* Responsive adjustment for smaller screens */
        @media (max-width: 768px) {
            #members-section .member-card {
                flex: 1 1 100%; /* Stack cards vertically on small screens */
                max-width: unset; /* Remove max-width restriction */
            }
        }

        

        /* 会社情報セクション */
        #company-section .company-info-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 40px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* テーブル全体に影を追加 */
            border-radius: 8px; /* 角を丸くする */
            overflow: hidden; /* 角丸を適用するために必要 */
        }
        #company-section .company-info-table th,
        #company-section .company-info-table td {
            border: 1px solid #ddd;
            padding: 12px;
            text-align: left;
        }
        #company-section .company-info-table th {
            background-color: #327d31; /* 色変更: ロゴの緑 */
            color: #fff; /* 文字色を白に */
            width: 150px; /* ラベルの幅を固定 */
            font-weight: bold; /* フォントを太く */
        }
        #company-section .company-info-table td {
            background-color: #fff; /* 背景色を白に */
        }
        #company-section .history-list {
            list-style: none;
            padding: 0;
            margin-top: 30px;
        }
        #company-section .history-list li {
            margin-bottom: 15px;
            border-left: 3px solid #327d31;
            padding-left: 15px;
        }
        #company-section .access-map {
            width: 100%;
            height: 450px;
            border: 1px solid #ddd;
            margin-top: 30px;
        }
        #company-section .access-map iframe {
            width: 100%;
            height: 100%;
            border: 0;
        }

        /* お問い合わせフォームセクション */
        #contact-section .contact-form-wrapper {
            max-width: 600px;
            margin: 40px auto;
            padding: 30px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            text-align: left;
        }
        #contact-section .form-group {
            margin-bottom: 20px;
        }
        #contact-section .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #555;
        }
        #contact-section .form-group input[type="text"],
        #contact-section .form-group input[type="email"],
        #contact-section .form-group input[type="tel"],
        #contact-section .form-group select,
        #contact-section .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            box-sizing: border-box;
            font-size: 16px;
        }
        #contact-section .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }
        #contact-section .form-group input[type="checkbox"] {
            margin-right: 10px;
            vertical-align: middle;
        }
        #contact-section .form-group label[for="privacy_agree"] {
            display: inline-block;
            font-weight: normal;
            margin-bottom: 0;
        }
        #contact-section .submit-btn {
            display: block;
            width: 100%;
            max-width: 300px;
            margin: 30px auto 0;
            background-color: #327d31; /* 色変更: ロゴの緑 */
            color: #fff;
            padding: 15px 30px;
            border: none;
            border-radius: 5px;
            font-size: 18px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        #contact-section .submit-btn:hover {
            background-color: #2c6f2c; /* 色変更: ロゴの緑を濃く */
        }
        #contact-section .privacy-agreement {
            text-align: center;
            margin-top: 40px;
            font-size: 14px;
            color: #777;
        }
        #contact-section .privacy-agreement a {
            color: #007bff; /* プライバシーポリシーリンクは青色のまま */
            text-decoration: none;
        }

        /* ========== フッター ========== */
        footer {
            background-color: #333;
            color: #fff;
            padding: 40px 0;
            text-align: center;
        }

        footer p {
            margin: 0;
            font-size: 14px;
        }

        /* ========== レスポンシブ対応 (メディアクエリ) ========== */
        @media (max-width: 768px) {
            .container {
                align-items: center;
                justify-content: space-between;
                padding: 0 15px;
            }

            .logo {
                flex-grow: 1;
                text-align: left;
            }

            nav.nav-wrapper {
                display: none; /* デフォルトで非表示 */
                flex-direction: column;
                width: 100%;
                position: absolute;
                top: 60px; /* ヘッダーの高さに応じて調整 */
                left: 0;
                background-color: #fff;
                box-shadow: 0 8px 16px rgba(0,0,0,0.1);
                padding: 20px 0;
                animation: slideDown 0.3s ease-out forwards;
                /* flex-grow: unset; */ /* これが原因ではないので、以前のままでOK */
            }
        
            nav.nav-wrapper.active {
                display: flex; /* アクティブ時に表示 */
            }
        
            nav.nav-wrapper ul {
                flex-direction: column;
                width: 100%;
                margin-top: 0;
            }
        
            nav.nav-wrapper ul li {
                margin: 0;
                border-bottom: 1px solid #eee;
            }
        
            nav.nav-wrapper ul li:last-child {
                border-bottom: none;
            }
        
            nav.nav-wrapper ul li a {
                padding: 15px 20px;
                display: block;
                text-align: left;
                font-size: 17px;
            }

            .menu-toggle {
                display: flex; /* モバイル時のみ表示 */
            }

            /* セクションのパディング調整 */
            section {
                padding: 60px 0;
            }

            section h2 {
                font-size: 30px;
            }

            /* 各コンテンツブロックの調整 */
            .products-preview-section .product-card,
            #products-section .product-item > div:first-child,
            #products-section .product-item > div:last-child,
            #members-section .member-profile > div:first-child,
            #members-section .member-profile > div:last-child,
            #members-section .member-card {
                flex: 1 1 100%; /* モバイルでは横幅いっぱいに */
                min-width: unset; /* 最小幅を解除 */
            }

            #products-section .product-item {
                flex-direction: column; /* 上下に積み重ねる */
            }
            #products-section .product-item > div:last-child {
                 order: unset; /* orderをリセット */
                 margin-left: 0; /* マージンをリセット */
            }
            #products-section .product-item > div:first-child {
                 margin-right: 0; /* マージンをリセット */
            }

            /* お問い合わせフォームのレスポンシブ調整 */
            #contact-section .contact-form-wrapper {
                margin: 20px 15px; /* 左右の余白を調整し、画面端からのマージンを確保 */
                padding: 20px; /* 内側のパディングも調整 */
                max-width: 100%; /* モバイルでは最大幅を親要素に合わせる */
            }

            #contact-section .submit-btn {
                max-width: 100%; /* ボタンも幅いっぱいに広げる */
            }
        }
            /* お問い合わせフォームのレスポンシブ調整の再修正 */
            #contact-section .contact-form-wrapper {
                width: calc(100% - 30px); /* 左右のcontainer padding 15px * 2 = 30px を考慮 */
            margin: 20px auto; /* 中央寄せ */
            padding: 20px; /* 内側のパディング */
            box-sizing: border-box; /* paddingとborderをwidthに含める */
            max-width: unset; /* PC用のmax-widthを解除 */
        }

    #contact-section .submit-btn {
        max-width: 100%; /* ボタンも幅いっぱいに広げる */
    }
}

            /* 各コンテンツブロックの調整 */
            .products-preview-section .product-card,
            #products-section .product-item > div:first-child,
            #products-section .product-item > div:last-child,
            #members-section .member-profile > div:first-child,
            #members-section .member-profile > div:last-child,
            #members-section .member-card {
                flex: 1 1 100%; /* モバイルでは横幅いっぱいに */
                min-width: unset; /* 最小幅を解除 */
            }

            #products-section .product-item {
                flex-direction: column; /* 上下に積み重ねる */
            }
            #products-section .product-item > div:last-child {
                 order: unset; /* orderをリセット */
                 margin-left: 0; /* マージンをリセット */
            }
            #products-section .product-item > div:first-child {
                 margin-right: 0; /* マージンをリセット */
            }
        

        /* アニメーション */
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ニュースセクション */
        #news-section .news-list {
            margin-top: 30px;
            border-top: 1px solid #eee;
        }
        
        #news-section .news-item {
            display: flex;
            align-items: baseline;
            padding: 15px 0;
            border-bottom: 1px solid #eee;
        }
        
        #news-section .news-item .news-date {
            font-size: 14px;
            color: #777;
            flex-shrink: 0; /* Prevent date from shrinking */
            margin-right: 20px;
        }
        
        #news-section .news-item .news-title {
            font-size: 16px;
            color: #333;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        #news-section .news-item .news-title:hover {
            color: #327d31; /* Hover color matching your brand */
        }
        
        /* Responsive adjustments for news section */
        @media (max-width: 768px) {
            #news-section .news-item {
                flex-direction: column; /* Stack date and title vertically */
                align-items: flex-start;
            }
            #news-section .news-item .news-date {
                margin-bottom: 5px;
            }
        }
        
        /* ヘッダーロゴの調整 */
        .logo a {
            display: flex; /* ロゴ画像とテキストを横並びにする */
            align-items: center; /* 垂直方向の中央揃え */
            gap: 10px; /* ロゴとテキストの間のスペース */
            /* 既存のロゴスタイルもここに含めるか、既に定義されている場合はそのままにする */
            font-size: 28px;
            font-weight: bold;
            color: #327d31;
            text-decoration: none;
        }

        .company-logo {
            height: 40px; /* ロゴの高さ。必要に応じて調整してください */
            width: auto; /* アスペクト比を維持 */
        }
