/*  ローディング画面  */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #5865F2; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 20px;
    z-index: 9999;
    opacity: 1;
}

/* 🦀を大きく中央に */
.loading-crab {
    font-size: 140px;
    margin-bottom: 25px;
    animation: crabBounce 1.5s infinite ease-in-out;
}

@keyframes crabBounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* loading... */
.loading-text {
    font-size: 26px;
    margin-bottom: 20px;
}

/* ローディングバー */
.loading-bar {
    width: 380px;
    height: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loading-bar-fill {
    width: 0%;
    height: 100%;
    background: #fff;
    transition: width 2.8s linear;
}

/* ようこそテキスト */
#welcome-text {
    font-size: 28px;
    margin-top: 10px;
}

/*  フェードアウト  */
.fade-out {
    animation: fadeOut 1.4s forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/*  本体フェードイン  */
.fade-in {
    animation: fadeIn 1.4s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/*  本体の既存デザイン  */
body {
    font-family: sans-serif;
    background: #5865F2;
    margin: 0;
    padding: 0;
    color: #fff;
}
/* サイドバー */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100%;
    background: #2f3136; /* Discordのダークグレー */
    padding: 20px;
    box-shadow: 3px 0 10px rgba(0,0,0,0.3);
    color: #fff;
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: 0.2s;
}

.sidebar-title:hover {
    color: #dcddde;
}


.sidebar-line {
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.15);
    margin-bottom: 20px;
}

.sidebar-item {
    display: block;
    padding: 12px 10px;
    margin-bottom: 10px;
    color: #dcddde; /* Discordの薄い文字色 */
    text-decoration: none;
    font-size: 17px;
    border-radius: 6px;
    transition: 0.2s;
}

.sidebar-item:hover {
    background: #40444b; /* Discordのホバー色 */
    color: #fff;
}

/* 本体の位置調整 */
.main-content {
    margin-left: 260px; /* サイドバーの幅 + 余白 */
    padding: 20px;
}
/* iframe（右側のコンテンツ） */
.main-frame {
    width: 100%;
    height: calc(100vh - 20px);
    border: none;
    background: #5865F2;
    color: #fff;
}
