/* Global Styles */
:root {
    --primary-color: #2E7D32; /* Grass Green */
    --secondary-color: #FFF8E1; /* Cream/Base color */
    --accent-color: #FF6F00; /* Energetic Orange */
    --text-color: #333;
    --text-light: #fff;
    --background-gradient: linear-gradient(135deg, #1b5e20 0%, #43a047 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.2);
    --font-heading: 'M PLUS Rounded 1c', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: var(--background-gradient);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    padding-bottom: 2rem;
}

/* Background Overlay for Texture */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--secondary-color) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Header */
.hero-header {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.main-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Container */
.main-container {
    max-width: 1000px; /* Kept reasonably wide but contained */
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Intro Section */
.intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.intro-text h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Section Titles */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border-left: 5px solid var(--accent-color);
    padding-left: 1rem;
    display: inline-block;
}

/* Techniques Grid (Top Table) */
.techniques-section {
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.nav-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: #fff;
}

.nav-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-card:hover::after {
    transform: scaleX(1);
}

.card-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.card-icon img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.card-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
}

/* General Info Grid (Bottom Table) */
.general-info-section .links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 700;
    transition: all 0.2s;
}

.link-item:hover {
    background: var(--primary-color);
    color: white;
    padding-left: 1.2rem;
}

.link-item i {
    width: 20px;
    text-align: center;
}

/* News Section */
.news-section {
    margin-top: 2rem;
}

.news-content {
    font-size: 0.95rem;
}

.news-list {
    margin-bottom: 2rem;
}

.news-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

@media (min-width: 600px) {
    .news-list li {
        flex-direction: row;
        gap: 1rem;
    }
}

.news-year {
    font-weight: bold;
    color: var(--accent-color);
    min-width: 60px;
}

.event-info {
    font-style: italic;
    background: rgba(0,0,0,0.03);
    padding: 1rem;
    border-radius: 8px;
}

.event-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }
}
