/* common.css */
body {
    background-color: #000;
    color: #fff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ヘッダー */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #000;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1000;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right {
    gap: 15px;
}

.nav-link {
    color: #ccc;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
    white-space: nowrap;
}

.nav-link:hover {
    color: #fff;
}

.nav-link.active {
    color: #00E701;
}

/* 通知ボタン・バッジ */
.notification-btn {
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.notification-btn:hover {
    color: #00E701;
}

.badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ff4444;
    color: #fff;
    font-size: 0.6rem;
    min-width: 14px;
    height: 14px;
    padding: 2px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    border: 1px solid #000;
}

.nav-divider {
    width: 1px;
    height: 25px;
    background-color: #333;
}

/* ログイン・アバター */
.login-btn-nav {
    background-color: #5865F2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: 0.3s;
}

.login-btn-nav:hover {
    opacity: 0.8;
}

.user-avatar-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #00E701;
    cursor: pointer;
    object-fit: cover;
    background: #111;
}

/* メニュー・通知ポップアップ */
.dropdown-menu,
.notif-popup {
    position: absolute;
    top: 60px;
    right: 0;
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.9);
    z-index: 2000;
}

.dropdown-menu {
    width: 220px;
}

.notif-popup {
    width: 320px;
    right: -10px;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-menu.show,
.notif-popup.show {
    display: flex;
}

.menu-item {
    padding: 15px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #222;
    background: #111;
    cursor: pointer;
    transition: 0.2s;
}

.menu-item:hover {
    background: #222;
    color: #00E701;
}

.notif-item {
    padding: 15px;
    border-bottom: 1px solid #222;
    font-size: 0.9rem;
    color: #ccc;
    transition: 0.2s;
}

.notif-item:hover {
    background: #1a1a1a;
}

.notif-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* モバイル用 */
.mobile-menu-btn {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #000;
    z-index: 999;
    display: none;
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid #222;
    box-sizing: border-box;
}

.mobile-nav-overlay.show {
    display: flex;
}

.mobile-nav-link {
    font-size: 1.2rem;
    color: #ccc;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid #222;
    font-weight: bold;
}

.mobile-nav-link.active {
    color: #00E701;
}

@media (max-width: 768px) {
    .nav-link {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .sticky-nav {
        padding: 0 15px;
    }
}

/* フッター */
.footer-wrapper {
    margin-top: auto;
    width: 100%;
    border-top: 1px solid #333;
    background: #050505;
    padding: 30px 20px;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links,
.footer-icons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a,
.footer-icons a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-icons a:hover {
    color: #00E701;
}

.footer-copyright {
    text-align: center;
    width: 100%;
    margin-top: 20px;
    color: #444;
    font-size: 0.75rem;
}

/* ★グローバルモーダル (Global Modal) - 共通デザイン */
.global-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.global-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.global-modal-box {
    background: #111;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 231, 1, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.global-modal-overlay.show .global-modal-box {
    transform: scale(1);
}

.global-modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00E701, #00ab01);
}

.global-modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.global-modal-body {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 25px;
    white-space: pre-wrap;
}

.global-modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.g-modal-btn {
    padding: 12px 25px;
    border-radius: 50px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.2s;
    min-width: 100px;
}

.g-btn-primary {
    background: #00E701;
    color: #000;
}

.g-btn-primary:hover {
    box-shadow: 0 0 15px rgba(0, 231, 1, 0.4);
    transform: translateY(-2px);
}

.g-btn-secondary {
    background: #333;
    color: #fff;
    border: 1px solid #444;
}

.g-btn-secondary:hover {
    background: #444;
}

/* 共通ボタン */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: #00E701;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 231, 1, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 231, 1, 0.5);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #333;
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}