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

/* Fallback font stack */
:root {
    --primary-color: #4a7c59;
    --text-color: #ffffff;
    --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    --font-family: 'Noto Serif JP', serif;
}

body {
    font-family: var(--font-family);
    overflow: hidden;
    background-color: #000;
}

.carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-color);
    text-shadow: var(--text-shadow);
    z-index: 1;
    width: 90%;
    max-width: 1200px;
    padding: 2rem;
}

h1 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    height: auto;
    width: 80%;
    max-width: 800px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

p {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.contact-link {
    color: var(--text-color) !important;
    text-decoration: none;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
    -webkit-tap-highlight-color: transparent;
}

.contact-link:hover,
.contact-link:active,
.contact-link:visited,
.contact-link:focus {
    color: var(--text-color) !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }
    
    h1 {
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 0.5rem;
    }
    
    h1 {
        margin-bottom: 0.5rem;
    }
    
    p {
        margin-top: 0.5rem;
    }
}

/* Landscape mode adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .content {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: clamp(2rem, 6vh, 3rem);
        margin-bottom: 0.5rem;
    }
    
    p {
        font-size: clamp(1rem, 3vh, 1.5rem);
        margin-top: 0.5rem;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .carousel-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .carousel {
        display: none;
    }
    
    .content {
        position: static;
        transform: none;
        color: #000;
        text-shadow: none;
    }
} 