/* nanopico Custom Styles */

/* Base Settings */
body {
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
    font-feature-settings: "palt";
    cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #d4af37;
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
body:hover .cursor-outline.hovered {
    width: 80px;
    height: 80px;
    background-color: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    mix-blend-mode: difference;
}

/* Gold Text Gradient */
.text-gradient-gold {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}
/* SP対応: グラデーションが表示されない場合のフォールバック */
@supports not (-webkit-background-clip: text) {
    .text-gradient-gold {
        color: #d4af37;
        background: none;
    }
}

/* グラデーションテキストのフェードインアニメーション */
.hero-gradient-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes shine {
    to { background-position: 200% center; }
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background-color: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loader-text {
    overflow: hidden;
}
.loader-text span {
    display: inline-block;
    transform: translateY(100%);
}

/* Hero Image Animation */
.hero-bg {
    animation: zoomOut 20s infinite alternate ease-in-out;
}
@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Image Reveal Effect */
.reveal-image-wrapper {
    position: relative;
    overflow: hidden;
}
.reveal-curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #d4af37; /* Gold curtain */
    z-index: 2;
    transform: translateX(-100%);
}
.reveal-image {
    opacity: 0;
    transform: scale(1.2);
    transition: opacity 0.1s, transform 1.5s ease-out;
}

/* Glassmorphism */
.glass-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Magnetic Button Effect (Basic CSS fallback) */
.btn-magnetic {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn-magnetic:hover {
    transform: translateY(-2px);
}

/* Text Split Animation Setup */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

/* Navigation Link Underline */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: #d4af37;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.nav-link:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .cursor-dot, .cursor-outline { display: none; }
    body { cursor: auto; }
}
