/* グローバルリセットとフォント設定 */
:root {
    --bg-dark: #080808; /* 背景の最も濃い色 */
    --card-dark: #1a1a1a; /* カードやサイドバーの背景色 */
    --text-light: #e0e0e0;
    --accent-blue: #00d4ff; /* 強調用のネオンブルー */
    --accent-glow: rgba(0, 212, 255, 0.5); /* 青のグロー */
    --accent-green: #39ff14; /* ステータス用のネオングリーン */
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
}

/* --- 全体コンテナ (Flexbox) --- */
.dashboard-container {
    display: flex;
    height: 100%;
}

/* --- サイドバー --- */
.sidebar {
    width: 280px; /* 少し広げた */
    background-color: var(--card-dark);
    padding: 30px 20px;
    border-right: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.logo {
    color: var(--accent-blue);
    font-size: 2em;
    margin-bottom: 40px;
    text-shadow: 0 0 10px var(--accent-glow); /* 強いグロー */
    font-weight: 900;
}

.main-nav {
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 15px;
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    font-size: 1.1em;
    border: 1px solid transparent;
}

.nav-item:hover {
    background-color: rgba(0, 212, 255, 0.05);
    color: var(--accent-blue);
    border-color: rgba(0, 212, 255, 0.2);
}

/* アクティブなページ */
.nav-item.active {
    background-color: var(--accent-blue);
    color: var(--bg-dark); /* テキストを濃い背景色にする */
    font-weight: bold;
    box-shadow: 0 0 15px var(--accent-glow);
    border-color: var(--accent-blue);
}

.nav-item .icon {
    margin-right: 15px;
    font-size: 1.2em;
}

.status-box {
    margin-top: 30px;
    padding: 15px;
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: var(--radius-md);
    background-color: rgba(57, 255, 20, 0.05);
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 5px rgba(57, 255, 20, 0.2);
}

/* --- メインコンテンツ --- */
.main-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

.header-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
}

.username {
    margin-right: 10px;
    font-weight: bold;
    color: var(--accent-green);
    text-shadow: 0 0 5px var(--accent-green);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 1.5s infinite; /* 点滅アニメーション */
}

.online-dot {
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* --- HOMEページ グリッドカード --- */
.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 左を広く、右を狭く */
    grid-template-rows: auto auto;
    gap: 25px;
}

.grid-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.grid-card:hover {
    transform: translateY(-5px);
}

.grid-card h3 {
    margin-bottom: 10px;
    font-size: 1.6em;
    font-weight: bold;
    color: var(--accent-blue);
    text-shadow: 0 0 3px rgba(0, 212, 255, 0.3);
}

.grid-card p {
    color: rgba(255, 255, 255, 0.8);
}

.detail {
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--accent-green);
}

/* カードバリエーション */
.primary-card {
    grid-column: 1 / 2;
    background: #2a2a2a;
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.secondary-card {
    background: var(--card-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

.secondary-card:hover {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.booth-card {
    grid-column: 2 / 3;
    grid-row: 1 / 3; /* 右側のスペース全体を占有 */
    background: #4a148c; /* Boothっぽい色 */
    border-color: #8e24aa;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.booth-card h3 {
    color: #ff80ff; /* Boothっぽいネオン色 */
    text-shadow: 0 0 5px rgba(255, 128, 255, 0.5);
}

.link-button {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: var(--accent-blue);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: bold;
    transition: background-color 0.2s;
}

/* --- ABOUT/LINKS ページ共通ボックス --- */
.content-box {
    background-color: var(--card-dark);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.content-box h3 {
    color: var(--accent-blue);
    margin-bottom: 15px;
    border-left: 5px solid var(--accent-blue);
    padding-left: 15px;
    text-shadow: 0 0 3px rgba(0, 212, 255, 0.3);
}

/* スキルリスト (ABOUT) */
.skill-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
}

.skill-list li {
    background-color: #333;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 5px;
    border-left: 3px solid var(--accent-green);
    font-size: 0.95em;
}

/* --- リンク集セクション (LINKS) --- */
.link-section {
    display: grid;
    gap: 20px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: var(--text-light);
    border-radius: var(--radius-lg);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.link-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.link-item .icon {
    font-size: 2.5em;
    margin-right: 20px;
    text-shadow: 0 0 10px var(--text-light);
    z-index: 2;
}

.link-info h4 {
    font-size: 1.4em;
    margin-bottom: 3px;
    font-weight: bold;
}
.link-info p {
    color: rgba(255, 255, 255, 0.8);
}

/* リンクアイテムの背景色とグロー（各サービス風） */
.discord-bg {
    background-color: #5865f2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.7);
}
.booth-bg {
    background-color: #f75591;
    box-shadow: 0 0 15px rgba(247, 85, 145, 0.7);
}
.twitter-bg {
    background-color: #1da1f2;
    box-shadow: 0 0 15px rgba(29, 161, 242, 0.7);
}
.github-bg {
    background-color: #24292e;
    box-shadow: 0 0 15px rgba(36, 41, 46, 0.7);
}

/* ネオンボタン (ABOUTページ用) */
.neon-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 0 10px var(--accent-glow);
}

.neon-button:hover {
    background-color: var(--accent-blue);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--accent-glow);
}