/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #999;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', 'Zen Old Mincho', serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: default;
    line-height: 1.8;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', 'Zen Old Mincho', serif;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

p, a, span, button, input, textarea {
    font-family: 'Inter', 'Zen Old Mincho', serif;
    letter-spacing: 0.03em;
}

/* Glassmorphism Header */
header.scrolled {
    background: rgba(242, 242, 242, 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Japanese Specific Typography */
.jp-serif {
    font-family: 'Zen Old Mincho', serif;
    font-weight: 400;
}

.serif-italic {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-mask {
    overflow: hidden;
    background-color: #eee;
}
.reveal-mask img {
    transform: scale(1.15);
    transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.9);
}
.reveal-mask.active img {
    transform: scale(1);
    filter: brightness(1);
}

/* Input Styles */
input, textarea {
    transition: all 0.4s ease;
}
input:focus, textarea:focus {
    padding-left: 10px;
    border-color: #000 !important;
}

/* Hover Effects */
.hover-underline {
    position: relative;
    display: inline-block;
}
.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.4s ease;
}
.group:hover .hover-underline::after {
    width: 100%;
}

/* Smooth Scroll behavior for anchor links */
html {
    scroll-behavior: smooth;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: #f2f2f2;
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-ticker {
    animation: ticker 25s linear infinite;
}
/* Accordion Styles */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    opacity: 0;
    visibility: hidden;
}

.accordion-content.open {
    max-height: 3000px;
    opacity: 1;
    visibility: visible;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.accordion-header {
    cursor: pointer;
}

.accordion-arrow {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
}
