/* =========================
   CSS RESET & BASE
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Inter", "Segoe UI", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* カーソル無効（PCのみ） */
@media (pointer: fine) {
    body {
        cursor: none;
    }
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

/* ヘッダー固定分の余白 */
body {
    padding-top: 70px; /* header.htmlの高さに合わせる */
}

/* =========================
   テーマ変数 (Discord/Enterprise Grade)
========================= */
:root {
    --bg: #36393f;         /* メインコンテンツ背景 */
    --bg2: #2f3136;        /* ヘッダー・フッター・カード背景 */
    --text: #ffffff;
    --text-muted: #b9bbbe; /* Discord風グレー */
    --border: rgba(255, 255, 255, 0.05);
    --accent: #5865F2;     /* Discord Blurple */
    --accent-glow: rgba(88, 101, 242, 0.3);
    --footer-link: #dcddde;
}

body.light {
    --bg: #f8f9fa;         
    --bg2: #ffffff;        
    --text: #1a1d21;
    --text-muted: #555555;
    --border: rgba(0, 0, 0, 0.08);
    --footer-link: #333333;
}

/* =========================
   コンテナ
========================= */
.container {
    width: 1200px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   NAVBAR (header.htmlとの同期用)
========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--bg2) !important;
    border-bottom: 1px solid var(--border);
    z-index: 3000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-inner {
    width: 1200px;
    max-width: 92%;
    margin: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ロゴ */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* ナビ中央 */
.nav-center {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-center a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted) !important;
}

.nav-center a:hover {
    color: #ffffff !important;
}

/* 右側（テーマボタン） */
.nav-right {
    display: flex;
    align-items: center;
}

.theme-btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* =========================
   FOOTER
========================= */
.footer {
    margin-top: 120px;
    padding: 80px 0 60px;
    background: var(--bg2); /* #2f3136 */
    border-top: 1px solid var(--border);
}

.footer-container {
    width: 1200px;
    max-width: 92%;
    margin: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h3, .footer-col h4 {
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 700;
}

.footer-about p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer a {
    font-size: 14px;
    color: var(--footer-link);
}

.footer a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.copyright {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* =========================
   CUSTOM CURSOR (PCのみ有効)
========================= */
.cursor-ring {
    position: fixed;
    left: 0;
    top: 0;
    width: 38px;
    height: 38px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s;
    will-change: transform;
}

.cursor-dot {
    position: fixed;
    left: 0;
    top: 0;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 1024px) {
    .nav-center {
        gap: 20px;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-center {
        display: none; 
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }
    .navbar-inner {
        padding: 0 15px;
    }
}