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

:root {
    --color-navy-900: #1e3a5f;
    --color-navy-700: #2d5a8c;
    --color-sky-500: #4a90c8;
    --color-sky-400: #68a8d8;
    --color-sky-300: #8fc3e8;
    --color-gold-500: #d4af37;
    --color-overlay-hero: rgba(255, 255, 255, 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    background: linear-gradient(
        135deg,
        var(--color-sky-300) 0%,
        var(--color-sky-400) 35%,
        var(--color-sky-500) 70%,
        var(--color-navy-700) 100%
    );
    color: var(--color-navy-900);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
header {
    padding: 20px 0;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
}

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

.logo-icon img {
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--color-navy-900);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--color-gold-500);
    background: rgba(255, 255, 255, 0.3);
}

h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--color-navy-900);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

/* Hero Section */

.hero {
    padding: 100px 0 150px;
    text-align: center;
    position: relative;
    background-image: linear-gradient(
        var(--color-overlay-hero),
        var(--color-overlay-hero)
    ), url('../images/hamakko-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-navy-900);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    color: var(--color-navy-900);
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.note-link {
    color: var(--color-navy-900);
    font-weight: 600;
}

/* Join hero typography (moved from inline) */

#join p {
    font-size: 20px;
    margin-bottom: 40px;
}

/* Feature image utility (moved from inline) */
.feature-image {
    width: 100%;
    border-radius: 12px;
    margin-top: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: block;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--color-gold-500);
    color: var(--color-navy-900);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    animation: fadeInUp 0.8s ease 0.4s backwards;
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.25);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    background: #e0c04a;
}

/* Features Section */
.features {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 30px 0;
    border-radius: 30px;
    margin: 50px 20px;
    position: relative;
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.2);
}

/* Participants section outer margin (moved from inline) */
#participants.features {
    margin: 80px 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

/* Activity section specific spacing (moved from inline) */
#activity .features-grid {
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    border: 2px solid rgba(74, 144, 200, 0.3);
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.1);
    text-align: center;
}

/* Glass variant used in activity section (moved from inline) */
.feature-card--glass {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--color-gold-500);
    box-shadow: 0 12px 32px rgba(30, 58, 95, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-navy-900);
}

.feature-card p {
    line-height: 1.5;
    color: var(--color-navy-700);
}

/* Spacing for stacked cards (moved from inline) */
.feature-card--spaced {
    margin-bottom: 20px;
}

/* Horizontal feature item layout (moved from inline) */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-item .feature-icon {
    margin: 0;
}

/* Activity section larger vertical padding (moved from inline) */
#activity.about {
    padding: 40px 0;
}

.about p {
    font-size: 20px;
    max-width: 1000px;
    margin: 0 auto 20px;
    line-height: 1.5;
    color: var(--color-navy-900);
    font-weight: 500;
    text-shadow: 0.5px 0.5px 1px rgba(255, 255, 255, 0.3);
}

/* Centered intro paragraph in participants section (moved from inline) */
#participants .intro {
    text-align: center;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Utility for centered container with max width (replaces inline) */
.max-900 {
    max-width: 900px;
    margin: 0 auto;
}

/* Utility for bottom margin (replaces inline) */
.mb-10 {
    margin-bottom: 10px;
}

.no-mb {
    margin: 0;
}

/* Community Section */
.community {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 80px 0;
    border-radius: 30px;
    margin: 0 20px 80px;
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.2);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    color: var(--color-navy-700);
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: #ffffff;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }
    .hero p {
        font-size: 18px;
    }
    .nav-links {
        display: none;
    }
    .features {
        margin: -40px 10px 40px;
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}