@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@300;400;500;700;900&family=Zen+Old+Mincho:wght@400;500;600;700;900&display=swap');

/* Base Configuration */
:root {
    --color-sakura-50: #fdf2f8;
    --color-sakura-100: #fce7f3;
    --color-sakura-200: #fbcfe8;
    --color-sakura-300: #f9a8d4;
    --color-sakura-400: #f472b6;
    --color-sakura-500: #ec4899;
    --color-sakura-600: #db2777;
    --color-sakura-900: #831843;
    --color-slate-800: #1e293b;
}

body {
    font-family: "Zen Kaku Gothic New", sans-serif;
    color: var(--color-slate-800);
    overflow-x: hidden;
    /* Hide horizontal scrollbar */
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Zen Old Mincho", serif;
}

/* Vertical Text Utility */
.writing-vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* Custom Selection Color */
::selection {
    background-color: var(--color-sakura-200);
    color: var(--color-sakura-900);
}

/* Loader Styles */
#loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    /* Allow click through if stuck */
}

#loader-curtain {
    position: fixed;
    inset: 0;
    z-index: 90;
    background-color: var(--color-sakura-100);
    transform: translateY(100%);
}

#menu-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.menu-link {
    position: relative;
    overflow: hidden;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Background Texture */
.bg-texture-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1h2v2H1V1zm4 0h2v2H5V1zm4 0h2v2H9V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1z' fill='%239C92AC' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Timeline Styles */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 8px;
    width: 16px;
    height: 16px;
    background-color: var(--color-sakura-200);
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 2px var(--color-sakura-100);
    transition: background-color 0.3s;
}

.group:hover .timeline-item::before {
    background-color: var(--color-sakura-500);
}

.timeline-line {
    position: absolute;
    left: 8px;
    top: 24px;
    bottom: -24px;
    width: 2px;
    background-color: var(--color-sakura-100);
}

.timeline-item:last-child .timeline-line {
    display: none;
}

/* Map Iframe Filter for Monochrome/Style */
.map-filter {
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s;
}

/* Reveal Animation Initial State */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Ensure sections stack properly */
section {
    position: relative;
    z-index: 10;
}

/* Specific fix for hero parallax container to stays behind */
#hero-img-container {
    z-index: 0;
}