/* Vertical Writing Mode Utility */
.tategaki {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-feature-settings: "vhal" 1;
}

/* Base Editorial Styles */
.font-editorial-ja {
    font-family: 'Shippori Mincho', serif;
}

.font-editorial-en {
    font-family: 'Cinzel', serif;
}

/* Hide Scrollbar */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Cursor (Optional Polish) */
body {
    cursor: default;
}

/* Image Reveal Animation */
.image-reveal-container {
    overflow: hidden;
}

.image-reveal-img {
    transform: scale(1.1);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .image-reveal-img {
    transform: scale(1.0);
}

/* Text Reveal */
.char-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease forwards;
}

/* Infinite Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}


/* Back to Top Button */


.scroll-top.is-fadein {
    opacity: 1;
    pointer-events: auto;
}

/* Hamburger Animation */
#js-hamburger.is-active span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

#js-hamburger.is-active span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
}

/* Mobile Menu State */
#js-nav.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Cookie Banner - GDPR Compliant Minimal */
.cookie-banner {
    position: fixed;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(10, 10, 10, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(248, 244, 230, 0.85);
    padding: 0.45rem 0.7rem;
    border-radius: 0.28rem;
    font-size: 0.6rem;
    line-height: 1.5;
    z-index: 50;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    cursor: auto;
    font-family: 'Shippori Mincho', serif;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: min(420px, calc(100vw - 1.5rem));
    border: 1px solid rgba(248, 244, 230, 0.04);
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner__text {
    margin: 0;
    opacity: 0.6;
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-banner__link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 1px;
    opacity: 0.45;
}

.cookie-banner__link:hover {
    opacity: 1;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.4rem;
    flex: 0 0 auto;
    margin-left: auto;
}

.cookie-banner__btn {
    background: rgba(248, 244, 230, 0.05);
    border: none;
    color: inherit;
    padding: 0.25rem 0.5rem;
    border-radius: 0.2rem;
    font-size: 0.55rem;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-banner__btn:hover {
    background: rgba(248, 244, 230, 0.1);
}

.cookie-banner__btn--accept {
    background: rgba(248, 244, 230, 0.1);
}

.cookie-banner__btn--accept:hover {
    background: rgba(248, 244, 230, 0.16);
}

#cookie-settings {
    cursor: pointer;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        max-width: none;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 0.6rem 1rem;
    }
}