/* 植物工場業界サイト - メインスタイルシート */

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* カラーパレット（CSS変数） */
:root {
    --primary-green: #2E7D32;
    --secondary-green: #4CAF50;
    --accent-green: #66BB6A;
    --light-green: #E8F5E8;
    --dark-green: #1B5E20;
    --tech-blue: #1565C0;
    --light-blue: #E3F2FD;
    --dark-gray: #212121;
    --medium-gray: #757575;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --gradient-bg: linear-gradient(135deg, #2E7D32, #4CAF50);
    --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 32px rgba(0,0,0,0.2);
}

/* 基本設定 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--dark-gray);
    background: var(--white);
    overflow-x: hidden;
}

/* 見出しフォント設定 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

/* リンクスタイル */
a {
    color: var(--tech-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background: var(--gradient-bg);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--white);
}

.logo:hover {
    color: var(--light-green);
    text-decoration: none;
}

/* ナビゲーション */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--light-green);
    text-decoration: none;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(rgba(46, 125, 50, 0.8), rgba(76, 175, 80, 0.8)), 
                url('images/hero-vertical-farming.jpg') center/cover;
    color: var(--white);
    text-align: center;
    padding: 8rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background: var(--secondary-green);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.cta-button:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    color: var(--white);
    text-decoration: none;
}

/* セクション共通スタイル */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary-green);
    margin: 1rem auto;
}

/* カードレイアウト */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-green);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* ニュースセクション */
.news-section {
    background: var(--light-gray);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-item {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.news-date {
    color: var(--tech-blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.news-title {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: var(--dark-green);
}

/* 画像スタイル */
.page-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-medium);
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin: 2rem 0;
}

/* コンテンツセクション */
.content-section {
    background: var(--white);
    padding: 3rem 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.content-wrapper ul, .content-wrapper ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* 統計ボックス */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-box {
    background: var(--gradient-bg);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* ハイライトボックス */
.highlight-box {
    background: var(--light-green);
    border-left: 5px solid var(--secondary-green);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box h4 {
    color: var(--dark-green);
    margin-bottom: 1rem;
}

/* フッター */
.footer {
    background: var(--dark-green);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light-green);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .page-image {
        height: 250px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* スクロールアニメーション */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}