:root {
    /* Color Palette */
    --primary-color: #0056b3;
    /* Professional Blue */
    --secondary-color: #004494;
    /* Darker Blue for hover/accent */
    --accent-color: #e6f0fa;
    /* Light Blue for backgrounds */
    --text-color: #333333;
    --light-text: #666666;
    --background-color: #ffffff;
    --white: #ffffff;
    --border-color: #e0e0e0;

    /* Typography */
    --font-main: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --font-heading: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    /* Increased from 1000px */
    --header-height: 90px;
    /* Slight increase */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: #fafafa;
    background-image: radial-gradient(#e6f0fa 1px, transparent 1px);
    background-size: 20px 20px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: var(--container-width);
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-center {
    text-align: center;
}

.section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(5px);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-weight: bold;
}

/* Header */
.site-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    /* Increased from 1.2rem */
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
    margin-right: 20px;
    /* Add margin to prevent touch */
}

.main-nav ul {
    display: flex;
    gap: 15px;
    /* Reduced gap to fit items */
    flex-wrap: nowrap;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    /* Reduced size to prevent overflow */
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--accent-color);
    padding: 300px 0;
    /* Triple the original height (approx) */
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--white);
    /* Ensure white text */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    /* Stronger shadow */
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    /* Stronger shadow */
}

/* Response to overlap: Stack on slightly narrower screens */
@media (max-width: 900px) {
    .site-header .container {
        flex-direction: column;
        gap: 10px;
    }
}

/* Slider CSS */
.slider-container {
    position: relative;
    max-width: 100%;
    /* Full width within container */
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
    /* Add top/bottom padding for hover effect */
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* No default transform needed here, handled by JS */
}

.slide {
    min-width: 60%;
    /* Center Mode Width */
    box-sizing: border-box;
    padding: 0 15px;
    /* Spacing between slides */
    opacity: 0.5;
    /* Dim non-active slides */
    transition: opacity 0.3s, transform 0.3s;
    transform: scale(0.9);
    /* Shrink non-active slides */
}

.slide.active-slide {
    opacity: 1;
    transform: scale(1);
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.95);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}


/* Updates Section (Note & X) */
.updates-grid {
    display: flex;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
}

.updates-column {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 400px;
    /* Ensure height for visual balance */
}

.column-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    color: var(--primary-color);
}

.blog-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-item-vertical {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.blog-item-vertical:last-child {
    border-bottom: none;
}

.blog-thumb-small {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.blog-content-compact {
    display: flex;
    flex-direction: column;
}

.blog-date-compact {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}

.blog-title-compact {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin: 0;
    margin-bottom: 5px;
}

.blog-snippet-compact {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.x-feed-wrapper {
    /* Height handled by tweet limit content */
    overflow-y: visible;
}

/* Responsive for Updates Grid */
@media (max-width: 768px) {
    .updates-grid {
        flex-direction: column;
        gap: 30px;
    }
}

/* Feature Grid (Fallback for non-JS/Editing) - Keep for now, but we will replace usages */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

/* Contact Form */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: bold;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    text-align: center;
    margin-top: var(--spacing-xl);
}

.footer-links {
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    color: var(--accent-color);
    margin: 0 var(--spacing-sm);
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        padding: 0 var(--spacing-md);
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
        /* Hide via JS usually, simplfied here */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: var(--spacing-md);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }
}