:root {
    --background-color: #4952c9;
    --main-color: #2c2c2c;
    --accent-color: #f2dc11;
    --frame-color: #4e52b4;
    --glow-color: rgba(44, 44, 44, 0.3);
    --photo-border-color: rgba(44, 44, 44, 0.2);
}

body {
    font-family: 'Noto Sans JP', sans-serif; 
    font-weight: 400;
    margin: 0;
    padding: 0;
    background-color: var(--background-color); 
    color: var(--main-color);
    overflow-x: hidden;
    min-height: 100vh;
    cursor: none;
}

header, footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: transparent;
}
header {
    padding-bottom: 1rem;
}

header h1 {
    font-size: 7.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

header p {
    font-size: 1rem;
    color: var(--main-color);
    opacity: 0.8;
}

footer {
    padding: 3rem 1rem;
    margin-top: 2rem;
}

footer a {
    color: var(--main-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 1;
}

footer p {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

main {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.photo-item {
    width: 300px;
    height: 200px;
    margin: 0 10px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, filter 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.marquee-content {
    display: flex;
    width: fit-content;
    animation-name: scroll-left;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.marquee-container:nth-child(1) .marquee-content { animation-duration: 90s; }
.marquee-container:nth-child(2) { z-index: 10; margin: 40px 0; }
.marquee-container.marquee-container--reverse .marquee-content { animation-name: scroll-right; }
.marquee-container:nth-child(2) .marquee-content { animation-duration: 150s; }
.marquee-container:nth-child(2) .photo-item { width: 450px; height: 300px; }
.marquee-container:nth-child(2) .photo-item:hover { transform: scale(1.03); }
.marquee-container:nth-child(2):hover .marquee-content { animation-play-state: paused; }

.marquee-container:nth-child(3) .marquee-content { animation-duration: 90s; }

.marquee-container:nth-child(1) .photo-item,
.marquee-container:nth-child(3) .photo-item {
    filter: saturate(0) brightness(0.8) opacity(0.7);
}

.marquee-container:nth-child(1) .photo-item:hover,
.marquee-container:nth-child(3) .photo-item:hover {
    filter: saturate(1) brightness(1) opacity(1);
    transform: scale(1.1);
    border-color: var(--accent-color);
}

.marquee-container:nth-child(1) .photo-item img,
.marquee-container:nth-child(3) .photo-item img {
    cursor: default;
}

#loader { 
    background-color: var(--base-color); 
}

#system-messages, #progress-bar { 
    display: none; 
} 

header, footer, .marquee-container { 
    opacity: 0; 
}

.loaded header { 
    opacity: 1; transition: all 1.0s ease-in-out; transition-delay: 0s; 
}

.loaded .marquee-container:nth-child(1), .loaded .marquee-container:nth-child(3) { 
    opacity: 1; transition: all 0.9s ease-in-out; transition-delay: 0.1s; 
}

.loaded .marquee-container:nth-child(2) { 
    opacity: 1; transform: scale(1); transition: all 0.8s ease-in-out; transition-delay: 0.2s; 
}

.marquee-container:nth-child(2) { 
    transform: scale(1.25); 
}

.loaded footer { 
    opacity: 1; transition: all 0.7s ease-in-out; transition-delay: 0.3s; 
}

#cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border 0.3s;
}

#cursor-circle.hover {
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: 1px solid var(--accent-color);
}

.click-ripple { 
    border: 1px solid var(--main-color); 
}

.scattered-triangle { 
    border-color: transparent transparent var(--accent-color) transparent; 
}

.hover-text-scramble { 
    position: relative; cursor: pointer;
}

.hover-text-scramble span { 
    position: relative; display: inline-block; 
}

.hover-text-scramble span::before, .hover-text-scramble span::after { 
    content: attr(data-char); 
    position: absolute; 
    top: 0; 
    left: 0; 
    opacity: 0; 
    transition: opacity 0.2s, transform 0.2s; 

}
.hover-text-scramble span::before { 
    color: var(--accent-color); 
}

.hover-text-scramble span::after { 
    color: #fff; 
}

.hover-text-scramble:hover span::before, .hover-text-scramble:hover span::after { 
    opacity: 1; 
}
.hover-text-scramble:hover span::before { 
    transform: translate(2px, -1px); 
}
.hover-text-scramble:hover span::after { 
    transform: translate(-2px, 1px); 
}

@keyframes scroll-left { 
    from { transform: translateX(0); } to { transform: translateX(-50%); } 
}

@keyframes scroll-right {
    from { transform: translateX(-50%); } to { transform: translateX(0); } 
}

@keyframes cursor-click-pulse { 
    0% { transform: translate(-50%, -50%) scale(1.5); } 50% { transform: translate(-50%, -50%) scale(2.5); } 100% { transform: translate(-50%, -50%) scale(1.5); }
}
@keyframes triangle-burst { 
    from { opacity: 0.5; transform: scale(1) rotate(var(--rotation)); } to { opacity: 0; transform: scale(0) rotate(var(--rotation)); } 
}