:root { 
    --primary-color: #10b981;       /* Emerald */
    --primary-dark: #047857;        /* Deep Green */
    --primary-bg: #064e3b;          /* Very Dark Green for Hero */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --off-white: #f3f4f6;
    --font-main: 'Poppins', sans-serif;
}

body { 
    font-family: var(--font-main);
    margin: 0; 
    padding: 0; 
    color: var(--text-dark); 
    line-height: 1.7; 
    background-color: var(--off-white);
}

a { color: var(--primary-dark); text-decoration: none; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

/* Header */
.site-header { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 1000;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; height: 80px; }

.logo a { 
    font-size: 1.6rem; 
    font-weight: 800; 
    color: #111; 
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo span { color: var(--primary-color); }

/* Navigation */
.main-nav ul { list-style: none; display: flex; gap: 30px; padding:0; margin:0; }
.main-nav a { 
    color: #444; 
    font-weight: 500; 
    font-size: 0.95rem; 
    padding: 28px 0; /* Match header height for hover target */
}
.main-nav a:hover { color: var(--primary-color); }

/* Header CTA Button */
.header-btn {
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}
.header-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

/* Dropdown */
.has-child { position: relative; }
.dropdown { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: white; 
    min-width: 200px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}
.has-child:hover .dropdown { display: block; }
.dropdown li { border-bottom: 1px solid #f3f4f6; }
.dropdown a { display: block; padding: 12px 20px; font-size: 0.9rem; }
.dropdown a:hover { background: #f9fafb; padding-left: 25px; }

@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* Hero Section (The Main Gradient) */
.hero-section { 
    /* Modern diagonal gradient */
    background: linear-gradient(135deg, #065f46 0%, #059669 100%);
    color: var(--white);
    padding: 140px 0 180px 0; /* Extra bottom padding for the slant */
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); /* Diagonal Cut */
}
/* Subtle pattern overlay */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05) 0%, transparent 20%),
                      radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 20%);
    pointer-events: none;
}

.hero-content h1 { 
    font-size: 3.5rem; 
    margin-bottom: 20px; 
    font-weight: 800; 
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.hero-content p { 
    font-size: 1.25rem; 
    margin-bottom: 40px; 
    opacity: 0.9; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto; 
    font-weight: 300;
}
.hero-btn { 
    background: var(--white); 
    color: var(--primary-dark); 
    padding: 18px 50px; 
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: 0.3s;
}
.hero-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.2); 
    background: #f0fdf4;
}

/* Cards & Grid */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; }
.news-card { 
    background: var(--white); 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    transition: 0.3s;
    border: 1px solid #f0f0f0;
}
.news-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
    border-color: var(--primary-color);
}
.news-img { 
    height: 220px; 
    background: #e5e7eb; 
    position: relative; 
    overflow: hidden;
}
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.news-card:hover .news-img img { transform: scale(1.05); }

.news-body { padding: 30px; }
.news-body small { 
    color: var(--primary-color); 
    font-weight: 700; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}
.news-body h3 { margin: 10px 0; font-size: 1.4rem; line-height: 1.3; }
.news-body h3 a { color: #111; }
.news-body h3 a:hover { color: var(--primary-color); }

/* Buttons & Forms */
.btn { 
    display: inline-block; 
    background: var(--primary-color); 
    color: var(--white); 
    padding: 12px 30px; 
    border-radius: 6px; 
    border: none; 
    cursor: pointer; 
    font-weight: 600;
}
.btn:hover { background: var(--primary-dark); color: white; }
.form-control { 
    width: 100%; 
    padding: 15px; 
    border: 2px solid #e5e7eb; 
    border-radius: 8px; 
    font-size: 1rem;
    font-family: inherit;
    transition: 0.2s;
}
.form-control:focus { border-color: var(--primary-color); outline: none; background: #fff; }

/* Footer */
.site-footer { 
    background: #111827; 
    color: #9ca3af; 
    padding: 60px 0; 
    font-size: 0.95rem;
}
.site-footer a { color: #d1fae5; }
.site-footer a:hover { color: white; }/* Logo Adjustment */
.logo img { 
    max-height: 60px; /* ヘッダーからはみ出さないように制限 */
    width: auto; 
    vertical-align: middle;
}
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* --- Improved Footer Design --- */
.site-footer {
    background: #1e252b; /* Dark Slate */
    color: #b7c0c9;
    padding: 70px 0 20px;
    font-size: 0.95rem;
    margin-top: auto; /* Push to bottom */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b7c0c9;
    text-decoration: none;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.admin-link {
    background: rgba(255,255,255,0.05);
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block !important; /* Force block for padding */
}
.admin-link:hover {
    background: var(--primary-color);
    color: white !important;
}
.admin-link.logout:hover {
    background: #e74c3c;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: #fff;
    background: rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #7a8691;
}
/* --- Top Bar Styles --- */
.top-bar {
    background-color: #333; /* Dark Grey Background */
    color: #ccc;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid #444;
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact a {
    color: #ddd;
    margin-right: 20px;
    text-decoration: none;
    transition: color 0.2s;
}

.top-contact a:hover {
    color: #fff;
}

.top-contact i, .top-social i {
    margin-right: 5px;
    color: var(--primary-color); /* Icon Color */
}

.top-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-social a {
    color: #ccc;
    transition: color 0.2s;
}

.top-social a:hover {
    color: var(--primary-color);
}

.top-admin-link {
    background: #444;
    padding: 2px 10px;
    border-radius: 4px;
    color: #fff !important;
    font-weight: bold;
    font-size: 0.8rem;
}

.top-admin-link:hover {
    background: var(--primary-color);
}

.sep {
    color: #555;
    font-size: 0.8rem;
}

/* Responsive adjust for top bar */
@media (max-width: 768px) {
    .top-bar-flex {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    .top-contact a { margin: 0 10px; }
}
/* --- Stacked Header Layout --- */

/* Header Container */
.site-header {
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    padding: 0; /* Let rows handle padding */
}

/* Row 1: Logo & Button */
.header-upper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Row 2: Navigation */
.header-lower {
    padding: 0;
}

.main-nav ul {
    list-style: none; 
    display: flex; 
    gap: 40px; /* Space between items */
    padding:0; 
    margin:0; 
}

.main-nav a { 
    color: #333; 
    font-weight: 600; 
    font-size: 1rem; 
    padding: 15px 0; /* Vertical padding for click area */
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.main-nav a:hover { 
    color: var(--primary-color); 
}

/* Underline effect for menu */
.main-nav a::after {
    content: ''; display: block; width: 0; height: 3px; 
    background: var(--primary-color); transition: width 0.3s;
    position: absolute; bottom: 0; left: 0;
}
.main-nav a:hover::after { width: 100%; }

/* Dropdown adjustments for lower row */
.dropdown {
    top: 100%;
    margin-top: 0; /* Attach directly to bottom */
    border-top: 3px solid var(--primary-color);
}

/* Mobile responsiveness (simple stack) */
@media (max-width: 768px) {
    .header-upper {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding-bottom: 15px;
    }
}
/* --- Responsive & Mobile Menu Styles --- */

/* Top Bar Responsive */
.top-bar-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
@media (max-width: 768px) {
    .top-bar-flex { justify-content: center; gap: 5px; }
    .top-contact { display: flex; flex-direction: column; align-items: center; gap: 5px; }
    .top-contact a { margin: 0; }
    .top-social { margin-top: 5px; }
}

/* Header Elements */
.header-upper { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; position: relative; }
.desktop-only { display: block; }
.mobile-only { display: none; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: #333; cursor: pointer; }

/* Main Navigation (Desktop) */
.header-lower { display: block; border-top: 1px solid #f0f0f0; }
.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 15px 0; color: #333; font-weight: 600; text-decoration: none; position: relative; }
.dropdown { display: none; position: absolute; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-top: 3px solid var(--primary-color); min-width: 200px; z-index: 100; }
.has-child:hover .dropdown { display: block; }

/* --- Mobile View (Max Width 768px) --- */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    .mobile-toggle { display: block; }
    
    .brand-text { font-size: 1.1rem; } /* Reduce logo text size */
    .brand-row-1 { font-size: 1.2rem; }
    
    /* Navigation Menu (Hidden by default) */
    .header-lower { 
        display: none; 
        background: #fff; 
        border-top: 1px solid #eee;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .header-lower.active { display: block; animation: slideDown 0.3s ease; }
    
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 15px 20px; border-bottom: 1px solid #f9f9f9; }
    
    /* Mobile Dropdown (Always visible or indent) */
    .dropdown { position: static; display: block; box-shadow: none; border: none; background: #f9f9f9; padding-left: 20px; }
    .dropdown a { font-size: 0.9rem; padding: 10px 20px; color: #666; }
    .has-child:hover .dropdown { display: block; } /* Keep logic simple */
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- Dropdown Menu Fixes (v2) --- */

/* 1. 親メニュー（1階層目）は横並びを維持 */
.main-nav > ul {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

/* 2. ドロップダウン（2階層目）のスタイル修正 */
.dropdown {
    /* 基本設定 */
    display: none; /* 初期状態は非表示 */
    position: absolute;
    top: 100%; /* 親の真下に配置 */
    left: 0;
    
    /* デザイン */
    background: #fff;
    min-width: 240px; /* 幅を確保 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-top: 3px solid var(--primary-color);
    z-index: 1000; /* 他の要素より手前に */
    
    /* レイアウト崩れ防止：縦並びを強制 */
    flex-direction: column; 
    margin: 0;
    padding: 0;
}

/* 3. ホバー時の挙動（表示） */
/* 親要素(.has-child)にマウスがある時だけブロック要素として表示 */
.has-child:hover .dropdown {
    display: block;
}

/* 4. ドロップダウン内のアイテム修正 */
.dropdown li {
    display: block;     /* 縦に積む */
    width: 100%;        /* 横幅いっぱい */
    margin: 0;
    border-bottom: 1px solid #f5f5f5; /* 薄い区切り線 */
}

.dropdown li:last-child {
    border-bottom: none;
}

/* ドロップダウン内のリンク修正 */
.dropdown a {
    display: block;         /* クリック領域を確保 */
    width: auto;            /* 幅の制限を解除 */
    padding: 12px 20px;     /* 適度な余白 */
    white-space: nowrap;    /* 勝手な改行を防ぐ */
    
    /* 文字スタイル */
    color: #444;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: none;   /* 大文字強制を解除 */
    letter-spacing: normal;
}

/* ホバー時の装飾 */
.dropdown a:hover {
    background-color: #f0fdf4; /* 薄い緑色の背景 */
    color: var(--primary-color);
    padding-left: 25px; /* 少し右に動くアニメーション */
}

/* アフター擬似要素（下線）の無効化：ドロップダウン内では不要 */
.dropdown a::after {
    display: none;
}

/* =========================================
   NAVIGATION FIX (REWRITE)
   ========================================= */

/* 1. ナビゲーションのベース */
.main-nav {
    display: block !important;
}

/* 2. 1階層目（親メニュー）の横並び */
.main-nav > ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important; /* 隙間はpaddingで調整 */
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.main-nav > ul > li {
    position: relative !important; /* ドロップダウンの基準点 */
    display: block !important;
    margin: 0 !important;
}

/* 3. 親メニューのリンク */
.main-nav > ul > li > a {
    display: block !important;
    padding: 20px 25px !important; /* クリック領域を広く確保 */
    color: #333;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav > ul > li > a:hover {
    color: var(--primary-color);
    background-color: #f9f9f9; /* ホバー時の背景 */
}

/* 4. ドロップダウン（2階層目）の完全非表示設定 */
.dropdown {
    display: none !important; /* デフォルトは消す */
    
    position: absolute !important;
    top: 100% !important; /* 親の真下 */
    left: 0 !important;
    min-width: 220px !important;
    background: #fff !important;
    border-top: 3px solid var(--primary-color) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15) !important;
    z-index: 9999 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* 5. マウスオーバー時のみ表示（ここが重要） */
.main-nav > ul > li:hover > .dropdown {
    display: block !important; /* 親に乗っている時だけ出す */
}

/* 6. ドロップダウン内のアイテム（縦並び） */
.dropdown li {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid #eee !important;
}

.dropdown li a {
    display: block !important;
    padding: 12px 20px !important;
    color: #555 !important;
    font-size: 0.9rem !important;
    font-weight: normal !important;
    text-transform: none !important;
    background: none !important;
}

.dropdown li a:hover {
    background-color: #f0fdf4 !important; /* 薄い緑 */
    color: var(--primary-color) !important;
    padding-left: 25px !important; /* 動きをつける */
}

/* 下線エフェクトの無効化（ドロップダウン内） */
.dropdown a::after {
    display: none !important;
}

/* --- Mobile Toggle Fix --- */
@media (max-width: 768px) {
    .main-nav > ul { flex-direction: column !important; }
    .dropdown { position: static !important; box-shadow: none !important; border: none !important; display: none !important; }
    .main-nav > ul > li:hover > .dropdown { display: block !important; } /* スマホでもタップで開く */
}
/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}
/* Force Product Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-img {
    height: 200px;
    overflow: hidden;
    background: #f9f9f9;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-body h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #2c3e50;
}
.product-body p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}
.product-body .price {
    font-weight: bold;
    color: #27ae60;
    margin: 15px 0;
    font-size: 1.1rem;
}
.product-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}
/* --- Footer Grid Fix --- */
.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: auto;
}
.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-grid {
    display: grid;
    /* 最小220px幅で自動折り返し（PCでは4列、スマホでは1列に） */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    align-items: start; /* 上揃え */
}
.footer-col h3.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #27ae60; /* EM Green */
    display: inline-block;
    padding-bottom: 5px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #27ae60;
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}
/* Partner Logo Image Responsiveness */
.footer-col img {
    max-width: 100%;
    height: auto;
}
/* --- Order Form Styles (Fixed) --- */
.order-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box; /* 枠からはみ出さないように */
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #27ae60;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}
.form-group .required {
    color: #e74c3c;
    margin-left: 3px;
}
.btn-block {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-block:hover {
    background: #219150;
}
/* --- HERO SECTION CLEANUP --- */
.hero-section {
    position: relative;
    /* 画像パスの修正: cssフォルダから見て ../uploads/hero.jpg */
    background-image: url('../uploads/hero.jpg'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* 高さ確保 */
    height: 550px;
    width: 100%;

    /* 中央寄せレイアウト */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* 文字色 */
    color: #fff;
    padding: 0 20px;
}

/* グレー背景を削除し、画像の読み込み失敗時のみ黒っぽくする */
.hero-section {
    background-color: #222; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 画像の上に被せる黒半透明 */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* --- HERO SECTION FIX --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    
    /* 背景設定: 画像がない場合は緑色(#2E7D32)を表示 */
    background-color: #2E7D32;
    background-image: url('../uploads/hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* 中央寄せ（Flexbox） */
    display: flex;
    flex-direction: column;
    align-items: center;     /* 水平方向中央 */
    justify-content: center; /* 垂直方向中央 */
    text-align: center;      /* テキスト中央揃え */
    
    color: #fff;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 文字を見やすくするための暗幕 */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}