/* Base Styles & Variables */
:root {
    /* Intellectual Blue & Trust Theme */
    --primary: #00B4D8; /* Cyan/Intelligent Blue */
    --primary-light: #48CAE4; /* Soft cyan */
    --primary-dark: #0077B6; /* Deep Trust Blue */
    --accent: #90E0EF; /* High brightness cyan */
    --bg: #0A192F; /* Deep Space Navy */
    --bg-card: rgba(10, 25, 47, 0.85);
    --text-main: #FFFFFF; /* Bright White */
    --text-muted: #d0d8e8; /* 明るい背景でも読めるよう白寄りに */
    --border: rgba(0, 180, 216, 0.2); /* Cyan tinted border */
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: #87CEEB;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 草原背景画像（1枚・固定） */
#bg-image {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
    background: url('assets/meadow-bg2.png') no-repeat center center;
    background-size: cover;
    filter: brightness(1.10);
}

/* Three.js Canvas（透過・アニメーション要素描画用） */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.3;
    font-weight: 800; /* Bolder for president-targeting impact */
}

/* テキスト可読性（明るい草原背景に対応） */
.hero-title, .hero-subtitle, .section-title, .section-desc, .cta-title, .cta-text {
    text-shadow:
        0 0 6px rgba(0, 0, 0, 1),
        0px 2px 6px rgba(0, 0, 0, 1),
        0px 4px 14px rgba(0, 0, 0, 0.95),
        0px 8px 28px rgba(0, 0, 0, 0.8);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-desc {
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
}

/* Layout Utilities */
.section {
    padding: 6rem 0;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(0, 180, 216, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.6);
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.btn-secondary {
    background: rgba(10, 25, 47, 0.4);
    color: var(--text-main);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(0, 180, 216, 0.1);
    border-color: rgba(0, 180, 216, 0.5);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(to bottom, rgba(10,25,47,0.8), rgba(10,25,47,0.3));
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a:not(.btn):hover {
    color: var(--primary-light);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 14rem 0 10rem;
    min-height: 100vh;
    display: flex;
    align-items: flex-start; /* Space for the cyberman in the center */
    justify-content: center;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    pointer-events: auto;
    background: radial-gradient(circle, rgba(10, 25, 47, 0.6) 0%, rgba(10, 25, 47, 0) 70%);
    padding: 2rem;
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.highlight-text {
    background: linear-gradient(to right, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Add duplicate drop shadow strictly on the text due to clip behaving weirdly in some browsers */
    filter: drop-shadow(0 2px 4px rgba(10,25,47,0.9));
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #E2E8F0; /* Brighter muted color for readability */
    font-weight: 500;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Card / Glassmorphism */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(16px);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 180, 216, 0.4);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    background: rgba(10, 25, 47, 0.8);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
}

/* CTA */
.cta-container {
    background: linear-gradient(135deg, rgba(0, 90, 108, 0.15), rgba(10, 25, 47, 0.90));
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 5rem 2rem;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-text {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-form {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
    margin: 0 auto;
}

.input-field {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.input-field:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.2);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    background: rgba(10, 25, 47, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Micro-animations Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .nav {
        display: none;
    }
    .cta-form {
        flex-direction: column;
    }
}
