:root {
    /* Matcha-inspired Minimal Color Palette */
    --bg-primary: #FAFAFA;
    --bg-secondary: #F5F5F5;
    --text-primary: #1B5E20;
    --text-secondary: #2E7D32;
    --text-muted: #66BB6A;
    --matcha-light: #A5D6A7;
    --matcha-medium: #66BB6A;
    --matcha-dark: #388E3C;
    --matcha-deep: #2E7D32;
    --shadow-sm: 0 1px 3px rgba(30, 125, 50, 0.08);
    --shadow-md: 0 2px 8px rgba(30, 125, 50, 0.12);
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 16px;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 600px;
    width: 100%;
    position: relative;
}

.logo-transition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px; 
    padding: 12px 0;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.2s forwards;
}

.logo {
    border-radius: 15px;
    max-height: 80px;
    width: auto;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-chakokoro {
    animation: logoFadeIn 0.8s ease-out 0.4s forwards, logoFloat 3s ease-in-out infinite 1.2s;
}

.logo-nagocha {
    animation: logoFadeIn 0.8s ease-out 0.8s forwards, logoFloat 3s ease-in-out infinite 1.6s;
}

@keyframes logoFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

.logo-arrow {
    font-size: 2rem;
    color: #000000;
    opacity: 0;
    transform: translateX(-10px);
    animation: arrowFadeIn 0.6s ease-out 1.2s forwards, arrowSlide 2s ease-in-out infinite 1.8s;
    font-weight: 300;
}

@keyframes arrowFadeIn {
    to {
        opacity: 0.6;
        transform: translateX(0);
    }
}

@keyframes arrowSlide {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(8px);
        opacity: 1;
    }
}

.content {
    background: transparent;
    padding: 24px 20px;
    text-align: left;
    animation: fadeIn 1.2s ease-out;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-container {
    margin-bottom: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.building-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: imageFadeIn 1s ease-out 0.3s forwards;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0.1) brightness(0.98);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 16px 48px rgba(0, 0, 0, 0.08);
    will-change: transform;
}

@keyframes imageFadeIn {
    to {
        opacity: 0.95;
        transform: translateY(0) scale(1);
    }
}

.building-image:hover {
    opacity: 1;
    transform: translateY(-8px) scale(1.02);
    filter: grayscale(0) brightness(1.05);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 12px 32px rgba(0, 0, 0, 0.15),
        0 24px 64px rgba(0, 0, 0, 0.12);
}

.image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 187, 106, 0.05) 0%, transparent 70%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.image-container:hover::before {
    opacity: 1;
}

h1 {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 16px;
    color: #000000;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-transform: uppercase;
}

.divider {
    width: 40px;
    height: 1px;
    background: var(--matcha-medium); 
    margin: 0 0 20px 0;
    opacity: 0.4;
}

.message {
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #000000;
    line-height: 1.6;
    font-weight: 300;
    max-width: 600px;
}

.message strong {
    color: #000000;
    font-weight: 400;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: #000000;
    text-decoration: none;
    padding: 8px 0;
    border: none;
    margin-top: 12px;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    animation: buttonFadeIn 0.8s ease-out 0.6s forwards;
}

@keyframes buttonFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-text {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000000;
    position: relative;
    padding-bottom: 8px;
    z-index: 2;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #000000;
}

.arrow-right {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #000000;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.arrow-right::after {
    content: '';
    position: absolute;
    left: -10px;
    top: -6px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #000000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-4px);
}


/* Ripple Effect */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(102, 187, 106, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.redirect-msg {
    margin-top: 24px;
    font-size: 0.8rem;
    color: #000000;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

#countdown {
    font-weight: 400;
    color: #000000;
    font-size: 1em;
    display: inline-block;
    min-width: 1.2em;
    text-align: center;
    transition: opacity 0.2s ease;
}

#countdown.updating {
    opacity: 0.5;
}

/* Mobile Optimization */
@media (max-width: 640px) {
    body {
        padding: 12px;
    }
    
    .logo-transition {
        gap: 12px;
        margin-bottom: 20px;
        padding: 8px 0;
    }
    
    .logo {
        max-height: 60px;
    }
    
    .logo-arrow {
        font-size: 1.3rem;
    }
    
    .content {
        padding: 20px 16px;
    }
    
    h1 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .image-container {
        margin-bottom: 20px;
    }
    
    .building-image {
        max-width: 100%;
    }
    
    .message {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .btn-text {
        font-size: 0.85rem;
    }
    
    .arrow-right {
        border-top-width: 5px;
        border-bottom-width: 5px;
        border-left-width: 8px;
    }
    
    .divider {
        margin-bottom: 16px;
    }
    
    .redirect-msg {
        margin-top: 20px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .logo-transition {
        gap: 10px;
        margin-bottom: 16px;
        padding: 6px 0;
    }
    
    .logo {
        max-height: 80px;
    }
    
    .logo-arrow {
        font-size: 1.1rem;
    }
    
    .content {
        padding: 16px 12px;
    }
    
    h1 {
        font-size: 1.2rem;
        font-weight: 500;
        margin-bottom: 10px;
    }
    
    .message {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .divider {
        margin-bottom: 12px;
    }
    
    .redirect-msg {
        margin-top: 16px;
    }
}

/* Focus states for accessibility */
.btn:focus-visible {
    outline: 1px solid #000000;
    outline-offset: 2px;
}

/* Snow Effect */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #ffffff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    user-select: none;
    pointer-events: none;
    opacity: 0.8;
    animation: snowfall linear infinite;
}

.snowflake:nth-child(odd) {
    animation-duration: 10s;
}

.snowflake:nth-child(even) {
    animation-duration: 15s;
}

.snowflake:nth-child(3n) {
    animation-duration: 20s;
}

.snowflake:nth-child(4n) {
    animation-duration: 12s;
}

.snowflake:nth-child(5n) {
    animation-duration: 18s;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateX(50px) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(100px) rotate(360deg);
        opacity: 0.3;
    }
}

/* Christmas Sparkle Effect */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.christmas-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 
        0 0 6px #ffd700,
        0 0 12px #ff6b6b,
        0 0 18px #4ecdc4;
    animation: sparkle 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 10000;
}


