/* © 2026 PassQuest Team (https://passquest.jp). All rights reserved. 無断複製・転載・改変を禁じます。 */
/* Mascot Support System - CSS */

/* 吹き出しメッセージ (オプションカード内) */
.mascot-message {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: fadeInDown 0.5s ease;
    min-width: 200px;
}

.speech-bubble {
    background: white;
    border-radius: 15px;
    padding: 12px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    white-space: nowrap;
    white-space: nowrap;
    font-size: 1.1rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.speech-bubble.sora {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: #1976D2;
    border: 2px solid #2196F3;
}

.speech-bubble.sora::after {
    border-top-color: #BBDEFB;
}

.speech-bubble.emma {
    background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD0 100%);
    color: #C2185B;
    border: 2px solid #E91E63;
}

.speech-bubble.emma::after {
    border-top-color: #F8BBD0;
}

.mascot-message.fade-out {
    animation: fadeOut 0.5s ease;
    opacity: 0;
}

/* フローティングメッセージ (画面中央) */
.floating-mascot-message {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 24px);
    z-index: 10000;
    background: white;
    border-radius: 18px;
    padding: 12px 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 92vw;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-mascot-message.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.mascot-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.mascot-avatar.sora {
    background-image: url('../images/sora_hero.png');
    border: 4px solid #2196F3;
}

.mascot-avatar.emma {
    background-image: url('../images/emma_mage.png');
    border: 4px solid #E91E63;
}

.message-content {
    font-size: 1.0em;
    font-weight: bold;
    color: #333;
    line-height: 1.45;
}

/* ヒントボタン */
.btn-hint {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFF59D 100%);
    color: #F57F17;
    border: 2px solid #FBC02D;
}

.btn-hint:hover {
    background: linear-gradient(135deg, #FFF59D 0%, #FFF176 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(251, 192, 45, 0.4);
}

/* アニメーション */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* レスポンシブ */
@media (max-width: 768px) {
    .floating-mascot-message {
        padding: 20px 25px;
        max-width: 90%;
    }

    .mascot-avatar {
        width: 90px;
        height: 90px;
    }

    .message-content {
        font-size: 1.1em;
    }

    .speech-bubble {
        font-size: 0.85em;
        padding: 10px 15px;
    }
}