:root {
    /* Brand Colors */
    --color-primary: #007bc7; /* Hatchlink Blue */
    --color-primary-dark: #005a96;
    --color-secondary: #ff7a00; /* Hatchlink Orange */
    --color-secondary-dark: #e06b00;
    --color-accent: #ffb800;
    
    /* Neutral Colors */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-light: #f4f8fb;
    --color-border: #e0e0e0;
    
    /* Layout */
    --container-width: 1100px;
    --border-radius: 12px;
    --border-radius-lg: 24px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,123,199,0.08);
    --shadow-lg: 0 20px 40px rgba(0,123,199,0.12);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-highlight { color: var(--color-secondary); font-weight: 700; }
.text-white { color: #fff !important; }
.bg-light { background-color: var(--color-bg-light); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
}

.section {
    padding: 80px 0;
}

.section-subtitle {
    display: block;
    color: var(--color-secondary);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.section-desc {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary), #ff9500);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.4);
}

.btn-secondary {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    border: 2px solid var(--color-bg-light);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--color-primary);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 20px 48px;
    font-size: 1.2rem;
    border-radius: 60px;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 15px 0;
}

.header.scrolled {
    padding: 10px 0;
}

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

.logo a {
    display: flex;
    flex-direction: column;
}

.logo-img {
    height: 40px; /* Adjust based on actual logo aspect ratio */
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 45px;
    filter: brightness(0) invert(1); /* Assuming you want it white in the dark footer */
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.logo-accent {
    color: var(--color-secondary);
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--color-text-light);
    letter-spacing: 1px;
    font-weight: 700;
    margin-top: 2px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    font-weight: 700;
    color: var(--color-text);
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-list a:hover {
    color: var(--color-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    transition: var(--transition);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 800px;
    margin: 0;
    padding-left: 20px; /* Align slightly left for the gradient fade */
}

.hero-badge {
    display: inline-block;
    background-color: rgba(0, 123, 199, 0.1);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 123, 199, 0.2);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-text);
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(255,255,255,0.8);
}

.title-line {
    display: block;
    white-space: nowrap;
}

.hero-desc {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(255,255,255,0.8);
}

.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-bottom .shape-fill {
    fill: var(--color-bg);
}

/* Upcoming Events Grid */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.event-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 123, 199, 0.2);
}

.card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .card-img img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.badge-hot {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.badge-new {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

.badge-month {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 16px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.badge-month-orange {
    background: linear-gradient(135deg, #ff7a00, #ff9500);
}

.badge-month-green {
    background: linear-gradient(135deg, #05c3a7, #00d28d);
}

.badge-month-blue {
    background: linear-gradient(135deg, #007bc7, #009be5);
}

.badge-month-purple {
    background: linear-gradient(135deg, #9b51e0, #bb6bd9);
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.card-text {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

.feature-box {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 123, 199, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-primary);
    font-size: 2rem;
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    background: var(--color-primary);
    color: white;
}

.feature-box h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.feature-box p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Archive */
.archive-list {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Timeline vertical line */
.archive-list::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background: var(--color-border);
}

.archive-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 40px;
}

.archive-item:last-child {
    margin-bottom: 0;
}

.archive-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 82px;
    height: 82px;
    background: white;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.archive-details {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.archive-details:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 123, 199, 0.2);
}

.archive-details h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.archive-details p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.archive-link {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.archive-link:hover {
    color: var(--color-secondary-dark);
    transform: translateX(5px);
}

.archive-toggle-container {
    margin-bottom: 30px;
}

.archive-content {
    /* smooth transition if needed */
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.cta-title {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.cta-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #999;
    padding: 80px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-desc {
    margin-top: 20px;
    font-size: 0.95rem;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-up.visible, .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: 0.4s ease;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .nav-list a {
        font-size: 1.2rem;
        display: block;
        padding: 15px 0;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        align-items: center;
        text-align: center;
    }
    
    .hero-overlay {
        background: rgba(255,255,255,0.85); /* More opaque for readability on mobile */
    }
    
    .hero-content {
        padding-left: 0;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .archive-list::before {
        left: 20px;
    }
    
    .archive-item {
        padding-left: 60px;
    }
    
    .archive-year {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.3rem;
    }
}
