@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Noto+Serif+JP:wght@300;500;700&display=swap');

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f4; 
}
::-webkit-scrollbar-thumb {
    background: #a8a29e; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #78716c; 
}

body {
    font-family: 'Noto Serif JP', serif;
    background-color: #f5f5f4; /* stone-100 */
    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%3Cg fill='%23e7e5e4' fill-opacity='0.4' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.shrine-red {
    color: #b91c1c;
}
.bg-shrine-red {
    background-color: #b91c1c;
}

/* Vertical Text for Navigation (Desktop) */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.3em;
}

/* Wood texture effect for Sidebar */
.wood-texture {
    background-color: #292524;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Card Hover Effects */
.tool-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Rope/Shimenawa decoration effect */
.shimenawa-border-top {
    position: relative;
    border-top: 4px double #b91c1c;
}
.shimenawa-border-top::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background-color: #b91c1c;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
