/* コンテナの配置 */
#lei-mission-wrapper {
    position: fixed;
    bottom: 0;
    right: 20px; /* 右端からの距離 */
    z-index: 9998;
    cursor: pointer;
}

/* ひょっこり画像の設定 */
#lei-peeking-img {
    width: 120px; /* PCでのサイズ（スマホはメディアクエリで調整） */
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* マウスを乗せた時にちょっと身を乗り出す演出 */
#lei-peeking-trigger:hover #lei-peeking-img {
    transform: translateY(-10px) scale(1.05);
}

/* 小さい吹き出しのスタイル */
#lei-mini-balloon {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 2px solid #00adb5; /* レイのイメージカラー */
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* ぴょこぴょこ動くアニメーション */
.lei-bounce {
    animation: lei-pyoko 3s infinite ease-in-out;
}

@keyframes lei-pyoko {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* スマホ用のサイズ調整 */
@media screen and (max-width: 768px) {
    #lei-peeking-img {
        width: 80px; /* スマホでは少し小さく */
    }
}


/* 非表示用のクラス */
.lei-hidden {
    display: none !important;
}

/* モーダル背景 */
#lei-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* 画面を暗くする */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* パネル本体 */
#lei-mission-panel {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 4px solid #00adb5;
}

/* 立ち絵の配置 */
#lei-char-box {
    margin-top: -80px; /* 少し上に突き出す */
    margin-bottom: 10px;
}
#lei-main-img {
    width: 180px;
    height: auto;
}

/* フキダシ */
#lei-bubble {
    background: #f0fdfa;
    border: 2px solid #00adb5;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
}
#lei-text {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #333;
}

/* プログレスバー */
#lei-progress-wrap {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}
#lei-bar-bg {
    background: #e0e0e0;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}
#lei-bar-fill {
    background: #00adb5;
    height: 100%;
    transition: width 0.5s ease;
}
#lei-progress-count {
    font-size: 12px;
    font-weight: bold;
    color: #00adb5;
}

/* ミッションボタン */
.lei-btn-group {
    display: flex;
    gap: 10px;
    width: 100%;
}
.lei-mission-btn {
    flex: 1;
    background: #00adb5;
    color: #fff;
    text-align: center;
    padding: 12px 5px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}
.lei-mission-btn:hover {
    background: #00818a;
    transform: translateY(-2px);
}

/* 閉じるボタン */
#lei-panel-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}
