/* ==========================================================================
   global.css — A'27 共通ヘッダー & フッタースタイル
   ヘッダー基準：スクラップ (/t/)
   フッター基準：TOPページ
   ========================================================================== */

/* CSS変数（page-specific CSSで上書き可） */
:root {
    --text-color: #e5e5e5;
    --accent-color: #e63946;
    --gray-color: #222222;
    --light-gray: #777777;
}

.accent-dot {
    color: var(--accent-color);
}

/* ──────────────────────────────────────────
   ベーススタイル（全ページ共通）
   ────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #333 #080808;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #080808; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    background-color: var(--bg-color, #080808);
    color: var(--text-color);
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(230, 57, 70, 0.4);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ──────────────────────────────────────────
   共通ヘッダー
   ────────────────────────────────────────── */

/* コンテナ外にヘッダーがあるページ用の幅制御ラッパー */
.site-header-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
    width: 100%;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    position: relative;
    z-index: 10;
}

.site-header .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
}

.site-header .accent-dot {
    color: var(--accent-color);
}

.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.site-header nav a {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    transition: opacity 0.3s ease;
}

.site-header nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.site-header nav a:hover {
    opacity: 0.7;
}

.site-header nav a:hover::after {
    width: 100%;
}

/* ──────────────────────────────────────────
   共通フッター
   ────────────────────────────────────────── */

.site-footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--gray-color);
}

.site-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.site-footer .footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
}

.site-footer .footer-logo .accent-dot {
    color: var(--accent-color);
}

.site-footer .footer-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: #444;
    margin-top: 5px;
    letter-spacing: 3px;
}

.site-footer .copyright {
    text-align: center;
    margin-top: 60px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 1px;
}

.site-footer .privacy-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: #555;
    text-decoration: none;
    margin-left: 15px;
    border-bottom: 1px solid #555;
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.site-footer .privacy-link:hover {
    opacity: 0.7;
}

/* ──────────────────────────────────────────
   モバイル
   ────────────────────────────────────────── */

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

    .site-header {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .site-header nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-header nav a {
        font-size: 0.75rem;
    }

    .site-footer .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
}
