/* ゲストユーザー向けバナー */
.guest-banner {
    background: linear-gradient(135deg, #e09850 0%, #d38b3e 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin-top: 100px; /* ナビゲーションバーの下に配置 */
    z-index: 1020;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.guest-banner-content {
    display: flex;
    align-items: center;
}

.guest-banner-text {
    font-size: 14px;
    font-weight: 500;
}

.guest-banner-actions {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.guest-banner .btn {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.guest-banner .btn-light {
    background-color: white;
    color: #d38b3e;
    border: none;
}

.guest-banner .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.guest-banner .btn-outline-light {
    border-color: white;
    color: white;
}

.guest-banner .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-1px);
}

/* ゲストバナー表示時のコンテンツ調整 */
body:has(.guest-banner) .container.mt-4 {
    margin-top: 100px !important; /* ナビゲーションバー(100px) + バナー(60px) - バナーとヘッダーの距離を詰める */
}

/* モバイル対応 */
@media (max-width: 768px) {
    .guest-banner {
        padding: 15px 0;
        margin-top: 95px; /* モバイルでのナビゲーションバー高さ */
    }

    .guest-banner .container {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .guest-banner-text {
        font-size: 13px;
        text-align: center;
        line-height: 1.4;
    }

    .guest-banner-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .guest-banner .btn {
        width: 100%;
        font-size: 13px;
        padding: 10px 16px;
        margin: 0 !important;
    }

    body:has(.guest-banner) .container.mt-4 {
        margin-top: 125px !important; /* ナビゲーションバー(95px) + バナー(80px) - バナーとヘッダーの距離を詰める */
    }
}

/* 小さいスマホ対応 */
@media (max-width: 480px) {
    .guest-banner {
        padding: 12px 0;
        margin-top: 100px;
    }

    .guest-banner .container {
        padding: 0 10px;
    }

    .guest-banner-text {
        font-size: 12px;
    }

    .guest-banner .btn {
        font-size: 12px;
        padding: 9px 14px;
    }

    body:has(.guest-banner) .container.mt-4 {
        margin-top: 165px !important; /* 小さいスマホ用調整 */
    }
}

/* ゲストモーダルのスタイル */
#guestModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#guestModal .modal-header {
    background: linear-gradient(135deg, #e09850 0%, #d38b3e 100%);
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom: none;
    padding: 20px 25px;
}

#guestModal .modal-header .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

#guestModal .modal-header .close:hover {
    opacity: 1;
}

#guestModal .modal-title {
    font-weight: 600;
    font-size: 1.3rem;
}

#guestModal .modal-body {
    padding: 25px;
}

#guestModal .modal-body ul li {
    padding: 8px 0;
    font-size: 15px;
}

#guestModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 25px;
}

#guestModal .btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.2s ease;
}

#guestModal .btn-primary {
    background: linear-gradient(135deg, #e09850 0%, #d38b3e 100%);
    border: none;
}

#guestModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 139, 62, 0.4);
}

#guestModal .btn-outline-primary {
    border-color: #d38b3e;
    color: #d38b3e;
}

#guestModal .btn-outline-primary:hover {
    background-color: #d38b3e;
    border-color: #d38b3e;
    color: white;
}
