/* Common CSS - 共通スタイルシート */
/* 全ページで共通して使用されるスタイルを集約 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --cursor-size: 20px;
}

/* ============================================
   Base Styles
   ============================================ */
body {
    background-color: #050505;
    color: #F0F0F0;
    overflow-x: hidden;
    /* カスタムカーソルが初期化されるまでデフォルトカーソルを表示 */
    cursor: auto;
}

/* モバイルデバイスでは常にデフォルトカーソルを表示 */
@media (max-width: 768px) {
    body {
        cursor: auto !important;
    }
}

/* ============================================
   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;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #D4FF00;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 255, 0, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 255, 0, 0.1);
    border-color: #D4FF00;
}

/* ============================================
   Noise Texture Overlay
   ============================================ */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ============================================
   Typography Utilities
   ============================================ */
.palt {
    font-feature-settings: "palt";
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* ============================================
   Grid Background
   ============================================ */
.grid-bg {
    background-size: 60px 60px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* ============================================
   Loader
   ============================================ */
.loader {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-bar {
    width: 0%;
    height: 2px;
    background: #D4FF00;
}

/* ============================================
   Header / Footer
   ============================================ */
/* ヘッダー/フッターは主にTailwindクラスでスタイリングされているため、
   追加の共通CSSは不要。必要に応じてここに追加する。 */












